mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-12-04 23:45:17 +01:00
merge: staging (e2abe038) into pr/brush
Staging took in about 27 pull requests on 25.11. One conflict: - tests/unit/CMakeLists.txt: the editorScatter.cpp of this branch and the Camera.cpp of #474 (test_camera.cpp), both added after editorHttp.cpp. Both kept. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QRgQ1HXT7zwFMzhMEKcksM
This commit is contained in:
@@ -4,3 +4,5 @@ text=auto
|
||||
*.h text
|
||||
README text
|
||||
LICENSE text
|
||||
# the license texts the Windows build ships, checked by their SHA-256: byte for byte as upstream, LF on every checkout
|
||||
ref/licenses/*.txt -text
|
||||
|
||||
@@ -0,0 +1,137 @@
|
||||
# Installs Ubuntu packages, with the downloaded .deb files kept in the Actions cache.
|
||||
#
|
||||
# The Ubuntu mirror of the hosted runners has been slow: about 150 kB/s, with stalls of 30 s on single files,
|
||||
# so 130 small packages took over 13 minutes to download. The .deb files of the last install are kept in the
|
||||
# cache, under a key of the runner image and the package list:
|
||||
# - the same image and list (the usual case): the cached files are installed as they are, without the mirror
|
||||
# and without `apt-get update`; should that fail, the next way is taken
|
||||
# - otherwise: `apt-get update`, then `apt-get install`, which takes the cached files of the same version
|
||||
# (checked against the index) and downloads the rest; the files of this install are cached for the next run
|
||||
#
|
||||
# A cache entry can't be overwritten, so each one is saved under the key with the run appended, and the newest
|
||||
# entry of a key is restored by its prefix. Cached files that failed to install are then replaced by the next
|
||||
# save rather than restored again on every run of that image.
|
||||
#
|
||||
# Caches of a pull request are seen only by that pull request; the pushes to staging and master (Build binaries)
|
||||
# fill the ones every pull request starts from.
|
||||
|
||||
name: Install apt packages
|
||||
description: apt-get install, with the downloaded packages kept in the Actions cache
|
||||
|
||||
inputs:
|
||||
packages:
|
||||
description: The packages to install, separated by spaces or new lines
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
# the key: the runner image (its packages are what the cached files were resolved against) and the list,
|
||||
# sorted, so neither its order nor its line breaks change it. Without ImageVersion (not a GitHub-hosted
|
||||
# runner) the image isn't known, so the cached files are never installed as they are
|
||||
- name: Cache key of the packages
|
||||
id: key
|
||||
shell: bash
|
||||
env:
|
||||
PACKAGES: ${{ inputs.packages }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
printf '%s\n' "$PACKAGES" | tr -s '[:space:]' '\n' | sed '/^$/d' | sort -u > "$RUNNER_TEMP/apt-packages.txt"
|
||||
os="${ImageOS:-$(. /etc/os-release && echo "${ID}${VERSION_ID}")}"
|
||||
image="${ImageVersion:-unknown}"
|
||||
prefix="apt-v2-${os}-$(dpkg --print-architecture)-"
|
||||
list_hash="$(sha256sum < "$RUNNER_TEMP/apt-packages.txt" | cut -c1-16)"
|
||||
{
|
||||
echo "key=${prefix}${image}-${list_hash}"
|
||||
echo "save-key=${prefix}${image}-${list_hash}-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
|
||||
echo "image-prefix=${prefix}${image}-"
|
||||
echo "prefix=${prefix}"
|
||||
echo "known-image=$([ -n "${ImageVersion:-}" ] && echo true || echo false)"
|
||||
} >> "$GITHUB_OUTPUT"
|
||||
cat "$RUNNER_TEMP/apt-packages.txt"
|
||||
|
||||
# no entry is saved under the key itself, so this restores the newest entry of the key (by its prefix), else
|
||||
# a cache of another list (another workflow) or of an older image: the files apt finds there in the version
|
||||
# it wants aren't downloaded again
|
||||
- name: Restore the downloaded packages
|
||||
id: restore
|
||||
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
||||
with:
|
||||
path: /tmp/apt-archives
|
||||
key: ${{ steps.key.outputs.key }}
|
||||
restore-keys: |
|
||||
${{ steps.key.outputs.image-prefix }}
|
||||
${{ steps.key.outputs.prefix }}
|
||||
|
||||
# /tmp rather than the runner's temp folder: apt downloads as the user _apt, who has to reach the folder.
|
||||
# Recommended packages are left out: the build needs the headers and libraries the packages depend on
|
||||
- name: Install the packages
|
||||
id: install
|
||||
shell: bash
|
||||
env:
|
||||
EXACT_HIT: ${{ startsWith(steps.restore.outputs.cache-matched-key, format('{0}-', steps.key.outputs.key)) && steps.key.outputs.known-image == 'true' }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
archives=/tmp/apt-archives
|
||||
mkdir -p "$archives/partial"
|
||||
|
||||
# a mirror that stops answering used to hold this step for over an hour: time out each download and
|
||||
# retry it. The translations of the package descriptions aren't needed
|
||||
printf '%s\n' \
|
||||
'Acquire::Retries "3";' \
|
||||
'Acquire::http::Timeout "60";' \
|
||||
'Acquire::https::Timeout "60";' \
|
||||
'Acquire::Languages "none";' \
|
||||
| sudo tee /etc/apt/apt.conf.d/80-ci-retries > /dev/null
|
||||
|
||||
mapfile -t packages < "$RUNNER_TEMP/apt-packages.txt"
|
||||
apt=(sudo apt-get -y --no-install-recommends -o "Dir::Cache::Archives=$archives/")
|
||||
|
||||
all_installed() {
|
||||
local package
|
||||
for package in "${packages[@]}"; do
|
||||
[[ "$(dpkg-query -W -f '${db:Status-Abbrev}' "$package" 2> /dev/null)" == ii* ]] || return 1
|
||||
done
|
||||
}
|
||||
|
||||
done=false
|
||||
fix=()
|
||||
if [ "$EXACT_HIT" = true ] && compgen -G "$archives/*.deb" > /dev/null; then
|
||||
echo "::group::Install the $(ls "$archives"/*.deb | wc -l) cached packages"
|
||||
if "${apt[@]}" install "$archives"/*.deb && all_installed; then
|
||||
done=true
|
||||
echo "from-cache=true" >> "$GITHUB_OUTPUT"
|
||||
else
|
||||
echo "::warning::The cached packages didn't install; installing from the mirror"
|
||||
fix=(--fix-broken)
|
||||
fi
|
||||
echo "::endgroup::"
|
||||
fi
|
||||
|
||||
if [ "$done" != true ]; then
|
||||
sudo apt-get update
|
||||
"${apt[@]}" "${fix[@]}" install "${packages[@]}"
|
||||
all_installed
|
||||
fi
|
||||
|
||||
# only the files of the packages now installed are kept, in the version installed: the cached files then
|
||||
# are exactly this install, and the next run on this image can install them as they are
|
||||
sudo rm -rf "$archives/partial" "$archives/lock"
|
||||
sudo chown -R "$(id -u):$(id -g)" "$archives"
|
||||
installed="$(dpkg-query -W -f '${db:Status-Abbrev}|${Package}|${Version}|${Architecture}\n' \
|
||||
| awk -F'|' '$1 ~ /^ii/ { print $2 "|" $3 "|" $4 }')"
|
||||
for deb in "$archives"/*.deb; do
|
||||
[ -e "$deb" ] || continue
|
||||
id="$(dpkg-deb --show --showformat='${Package}|${Version}|${Architecture}' "$deb")"
|
||||
grep -qxF -- "$id" <<< "$installed" || rm -f "$deb"
|
||||
done
|
||||
echo "Cached packages: $(find "$archives" -maxdepth 1 -name '*.deb' | wc -l), $(du -sh "$archives" | cut -f1)"
|
||||
|
||||
# saved unless the cached files of this image and list installed as they are: after a miss, and after cached
|
||||
# files that failed to install and were replaced from the mirror
|
||||
- name: Save the downloaded packages
|
||||
if: steps.install.outputs.from-cache != 'true'
|
||||
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
||||
with:
|
||||
path: /tmp/apt-archives
|
||||
key: ${{ steps.key.outputs.save-key }}
|
||||
@@ -1,10 +1,12 @@
|
||||
# Keeps the GitHub Actions used by the workflows up to date. The actions are pinned by commit hash, with the
|
||||
# version in a comment; Dependabot updates both. One pull request a week for all of them, so the workflows
|
||||
# stay on the same versions.
|
||||
# Keeps the GitHub Actions used by the workflows and by the local actions (.github/actions) up to date. The actions
|
||||
# are pinned by commit hash, with the version in a comment; Dependabot updates both. One pull request a week for all
|
||||
# of them, so the workflows stay on the same versions.
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: github-actions
|
||||
directory: /
|
||||
directories:
|
||||
- /
|
||||
- /.github/actions/*
|
||||
schedule:
|
||||
interval: weekly
|
||||
groups:
|
||||
|
||||
+12
-15
@@ -41,23 +41,20 @@ jobs:
|
||||
with:
|
||||
python-version: '3.14'
|
||||
|
||||
# A mirror that stops answering used to hold this step for over an hour.
|
||||
# Time out each download, retry it, and give up on the whole step early.
|
||||
# The packages are kept in the Actions cache (.github/actions/apt-install): the mirror of the
|
||||
# runners has been too slow to download them every time. The timeout is a safety net.
|
||||
# The X11 packages are the ones GLFW (ref/glfw, 3.4) looks for; xorg-dev brought ~45 more.
|
||||
- name: Install build dependencies
|
||||
timeout-minutes: 15
|
||||
run: |
|
||||
printf '%s\n' \
|
||||
'Acquire::Retries "3";' \
|
||||
'Acquire::http::Timeout "60";' \
|
||||
'Acquire::https::Timeout "60";' \
|
||||
| sudo tee /etc/apt/apt.conf.d/80-ci-retries > /dev/null
|
||||
sudo apt-get update -y
|
||||
sudo apt-get install -y \
|
||||
build-essential \
|
||||
libgl1-mesa-dev libglew-dev libglfw3-dev \
|
||||
libpng-dev libopenal-dev libluajit-5.1-dev \
|
||||
libserialport-dev libsndfile1-dev \
|
||||
xorg-dev libxkbcommon-dev libwayland-dev wayland-protocols
|
||||
uses: ./.github/actions/apt-install
|
||||
with:
|
||||
packages: >-
|
||||
build-essential pkg-config
|
||||
libgl1-mesa-dev libglew-dev libglfw3-dev
|
||||
libpng-dev libopenal-dev libluajit-5.1-dev
|
||||
libserialport-dev libsndfile1-dev
|
||||
libx11-dev libxcursor-dev libxext-dev libxi-dev libxinerama-dev libxrandr-dev
|
||||
libxkbcommon-dev libwayland-dev wayland-protocols
|
||||
|
||||
- name: Build current OpenAL Soft
|
||||
run: |
|
||||
|
||||
@@ -180,9 +180,9 @@ jobs:
|
||||
-Recurse `
|
||||
-Force
|
||||
|
||||
# The downloads of the next step, kept between the runs: a release or raw.githubusercontent.com out of reach then
|
||||
# doesn't fail the build. The key is this file, which pins them; a cache of an older one is taken too, as the next
|
||||
# step checks every file by its SHA-256 and downloads only those it doesn't have.
|
||||
# The downloads of the next step, kept between the runs: a release out of reach then doesn't fail the build. The
|
||||
# key is this file, which pins them; a cache of an older one is taken too, as the next step checks every file by
|
||||
# its SHA-256 and downloads only those it doesn't have.
|
||||
- name: Restore the audio library downloads
|
||||
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
||||
with:
|
||||
@@ -199,7 +199,8 @@ jobs:
|
||||
# go with both variants. The exe links them by name: soft_oal.dll is shipped as OpenAL32.dll (as its readme says,
|
||||
# without the router), sndfile.dll as libsndfile-1.dll. Both are LGPL, so their license texts go with them, in
|
||||
# licenses/, with those of what the DLLs have built in (below); the libsndfile zip has none, its COPYING is taken
|
||||
# from the source tree of the same tag.
|
||||
# from the source tree of the same tag. Those texts are kept in ref/licenses (with where each comes from), so the
|
||||
# build doesn't depend on the servers they come from.
|
||||
- name: Add the OpenAL Soft and libsndfile DLLs
|
||||
shell: pwsh
|
||||
timeout-minutes: 10
|
||||
@@ -214,7 +215,7 @@ jobs:
|
||||
$pinned = [System.Collections.Generic.List[string]]::new()
|
||||
|
||||
# the file of the URL with the given SHA-256: the one kept by a run before, else downloaded. named by its
|
||||
# SHA-256 and the last part of its path, without the query: several license texts are named the same
|
||||
# SHA-256 and the last part of its path, without the query
|
||||
function Get-Pinned([string] $Url, [string] $Sha256) {
|
||||
$name = "$Sha256-$([uri]::new($Url).Segments[-1])"
|
||||
$pinned.Add($name)
|
||||
@@ -223,7 +224,6 @@ jobs:
|
||||
Write-Host "$Url kept by a run before"
|
||||
return $file
|
||||
}
|
||||
# not a browser's user agent, which Debian's server answers with a challenge page
|
||||
Invoke-WebRequest -Uri $Url -OutFile $file -UserAgent 'ci-download' -MaximumRetryCount 3 -RetryIntervalSec 10 -TimeoutSec 120
|
||||
$hash = (Get-FileHash -Algorithm SHA256 -Path $file).Hash.ToLowerInvariant()
|
||||
if ($hash -ne $Sha256) {
|
||||
@@ -262,39 +262,30 @@ jobs:
|
||||
# The versions in sndfile.dll: those it names (libopus 1.4, libFLAC 1.4.2, libVorbis 1.3.7), mpg123 1.31.3 by
|
||||
# the SHA-512 of its source archive in the build paths it keeps, and libogg 1.3.5 and LAME 3.100 of the vcpkg
|
||||
# ports of the time (mid 2023). LAME's from Debian's copy of the 3.100 source, the same file as in LAME's own
|
||||
# repository on SourceForge, which may answer a script with a challenge page
|
||||
# repository on SourceForge. The texts are in ref/licenses, whose README names the URL of each; each is
|
||||
# checked by its SHA-256, so an edit or a line ending changed on the way doesn't go out unnoticed
|
||||
$texts = [ordered]@{
|
||||
'libsndfile-COPYING.txt' = @('https://raw.githubusercontent.com/libsndfile/libsndfile/1.2.2/COPYING'
|
||||
'ad01ea5cd2755f6048383c8d54c88459cd6fcb17757c5c8892f8c5ea060f6140')
|
||||
'libsndfile-ALAC-LICENSE.txt' = @('https://raw.githubusercontent.com/libsndfile/libsndfile/1.2.2/src/ALAC/LICENSE'
|
||||
'232efbd83786e157286b0b96c68ebb673541b69b33036287bf1e5ec5067a49d9')
|
||||
'libsndfile-GSM610-COPYRIGHT.txt' = @('https://raw.githubusercontent.com/libsndfile/libsndfile/1.2.2/src/GSM610/COPYRIGHT'
|
||||
'1bbe7119b1bcd1489e0f36cb95b8902f7f0ceec9a2f3a67394bc9f4709a4e0a7')
|
||||
'libogg-COPYING.txt' = @('https://raw.githubusercontent.com/xiph/ogg/v1.3.5/COPYING'
|
||||
'd2ab5758336489da61c12cc5bb757da5339c4ae9001f9bb0562b4370249af814')
|
||||
'libvorbis-COPYING.txt' = @('https://raw.githubusercontent.com/xiph/vorbis/v1.3.7/COPYING'
|
||||
'ec1815db59fcd302846df949d7424876cb2e2dc5ed1606c5fb0b36787b1cf43a')
|
||||
'flac-COPYING.Xiph.txt' = @('https://raw.githubusercontent.com/xiph/flac/1.4.2/COPYING.Xiph'
|
||||
'6e58d3036f05e2a0d58af854c12a505ddbe75011d71a598a2170987f3b15408d')
|
||||
'opus-COPYING.txt' = @('https://raw.githubusercontent.com/xiph/opus/v1.4/COPYING'
|
||||
'8338ce8d922bb4416ce3dd1e5680173332435e3f0755007ac7801ccd674fe682')
|
||||
'mpg123-COPYING.txt' = @('https://scm.orgis.org/view/mpg123/tags/1.31.3/COPYING?view=co'
|
||||
'c22482728a634a8dfdb4ff72a96d4c1ed64cd8f3e79335c401751ac591609366')
|
||||
'lame-COPYING.txt' = @('https://sources.debian.org/data/main/l/lame/3.100-6/COPYING'
|
||||
'bfe4a52dc4645385f356a8e83cc54216a293e3b6f1cb4f79f5fc0277abf937fd')
|
||||
'openal-soft-pffft-LICENSE.txt' = @('https://raw.githubusercontent.com/kcat/openal-soft/1.25.2/LICENSE-pffft'
|
||||
'64056328b3e7bc104e24ef96accc1a7abead156f0c02d1b87c97e3f3a28030de')
|
||||
'openal-soft-gsl-LICENSE.txt' = @('https://raw.githubusercontent.com/kcat/openal-soft/1.25.2/gsl/LICENSE'
|
||||
'4c21dc82a1c7186ea754fd59d504c00947953a3401fe8e24eaa44109ef8e2555')
|
||||
'openal-soft-BSD-3Clause.txt' = @('https://raw.githubusercontent.com/kcat/openal-soft/1.25.2/BSD-3Clause'
|
||||
'b5a08cf98996dd83aa906a72c163600f6cb17a65ce546a553815a1267abd43ff')
|
||||
'openal-soft-winpthreads-COPYING.txt' = @('https://raw.githubusercontent.com/mingw-w64/mingw-w64/v13.0.0/mingw-w64-libraries/winpthreads/COPYING'
|
||||
'63263614cdd29f2f93cba85e992f041b31f9fc7b4033692f31269489a8a1b177')
|
||||
'openal-soft-mingw-w64-runtime.txt' = @('https://raw.githubusercontent.com/mingw-w64/mingw-w64/v13.0.0/COPYING.MinGW-w64-runtime/COPYING.MinGW-w64-runtime.txt'
|
||||
'e9b2dc02451ea29092a1f25fa0f3c07207ed421f1807dffb0c4e6dce69dee7bd')
|
||||
'libsndfile-COPYING.txt' = 'ad01ea5cd2755f6048383c8d54c88459cd6fcb17757c5c8892f8c5ea060f6140'
|
||||
'libsndfile-ALAC-LICENSE.txt' = '232efbd83786e157286b0b96c68ebb673541b69b33036287bf1e5ec5067a49d9'
|
||||
'libsndfile-GSM610-COPYRIGHT.txt' = '1bbe7119b1bcd1489e0f36cb95b8902f7f0ceec9a2f3a67394bc9f4709a4e0a7'
|
||||
'libogg-COPYING.txt' = 'd2ab5758336489da61c12cc5bb757da5339c4ae9001f9bb0562b4370249af814'
|
||||
'libvorbis-COPYING.txt' = 'ec1815db59fcd302846df949d7424876cb2e2dc5ed1606c5fb0b36787b1cf43a'
|
||||
'flac-COPYING.Xiph.txt' = '6e58d3036f05e2a0d58af854c12a505ddbe75011d71a598a2170987f3b15408d'
|
||||
'opus-COPYING.txt' = '8338ce8d922bb4416ce3dd1e5680173332435e3f0755007ac7801ccd674fe682'
|
||||
'mpg123-COPYING.txt' = 'c22482728a634a8dfdb4ff72a96d4c1ed64cd8f3e79335c401751ac591609366'
|
||||
'lame-COPYING.txt' = 'bfe4a52dc4645385f356a8e83cc54216a293e3b6f1cb4f79f5fc0277abf937fd'
|
||||
'openal-soft-pffft-LICENSE.txt' = '64056328b3e7bc104e24ef96accc1a7abead156f0c02d1b87c97e3f3a28030de'
|
||||
'openal-soft-gsl-LICENSE.txt' = '4c21dc82a1c7186ea754fd59d504c00947953a3401fe8e24eaa44109ef8e2555'
|
||||
'openal-soft-BSD-3Clause.txt' = 'b5a08cf98996dd83aa906a72c163600f6cb17a65ce546a553815a1267abd43ff'
|
||||
'openal-soft-winpthreads-COPYING.txt' = '63263614cdd29f2f93cba85e992f041b31f9fc7b4033692f31269489a8a1b177'
|
||||
'openal-soft-mingw-w64-runtime.txt' = 'e9b2dc02451ea29092a1f25fa0f3c07207ed421f1807dffb0c4e6dce69dee7bd'
|
||||
}
|
||||
foreach ($text in $texts.GetEnumerator()) {
|
||||
$file = Get-Pinned $text.Value[0] $text.Value[1]
|
||||
$file = Join-Path 'ref/licenses' $text.Key
|
||||
$hash = (Get-FileHash -Algorithm SHA256 -Path $file).Hash.ToLowerInvariant()
|
||||
if ($hash -ne $text.Value) {
|
||||
throw "${file}: SHA-256 $hash, expected $($text.Value)"
|
||||
}
|
||||
Copy-Item -Path $file -Destination (Join-Path $licenses $text.Key) -Force
|
||||
}
|
||||
|
||||
@@ -409,37 +400,39 @@ jobs:
|
||||
with:
|
||||
python-version: "3.14"
|
||||
|
||||
# A mirror that stops answering used to hold this step for over an hour.
|
||||
# Time out each download, retry it, and give up on the whole step early.
|
||||
# The packages are kept in the Actions cache (.github/actions/apt-install): the mirror of the runners has been
|
||||
# too slow to download them every time. The timeout is a safety net.
|
||||
# libasound2-dev, libpulse-dev and libpipewire-0.3-dev: the headers of OpenAL Soft's audio backends (built below).
|
||||
# Without them it builds with OSS only, which modern distributions and the Steam Linux Runtime don't have: no sound.
|
||||
# The X11 packages are the ones GLFW (ref/glfw, 3.4) looks for; xorg-dev brought ~45 more. The game loads the
|
||||
# X11 and Wayland libraries of the system, none of them is bundled (CMake_modules/bundle_runtime_libs.cmake).
|
||||
- name: Install Linux dependencies
|
||||
timeout-minutes: 15
|
||||
run: |
|
||||
printf '%s\n' \
|
||||
'Acquire::Retries "3";' \
|
||||
'Acquire::http::Timeout "60";' \
|
||||
'Acquire::https::Timeout "60";' \
|
||||
| sudo tee /etc/apt/apt.conf.d/80-ci-retries > /dev/null
|
||||
sudo apt-get update
|
||||
|
||||
# libasound2-dev, libpulse-dev and libpipewire-0.3-dev: the headers of OpenAL Soft's audio backends (built below).
|
||||
# Without them it builds with OSS only, which modern distributions and the Steam Linux Runtime don't have: no sound.
|
||||
sudo apt-get install -y \
|
||||
build-essential \
|
||||
libasound2-dev \
|
||||
libpulse-dev \
|
||||
libpipewire-0.3-dev \
|
||||
libgl1-mesa-dev \
|
||||
libglew-dev \
|
||||
libglfw3-dev \
|
||||
libpng-dev \
|
||||
libopenal-dev \
|
||||
libluajit-5.1-dev \
|
||||
libserialport-dev \
|
||||
libsndfile1-dev \
|
||||
libcurl4-openssl-dev \
|
||||
xorg-dev \
|
||||
libxkbcommon-dev \
|
||||
libwayland-dev \
|
||||
uses: ./.github/actions/apt-install
|
||||
with:
|
||||
packages: >-
|
||||
build-essential
|
||||
pkg-config
|
||||
libasound2-dev
|
||||
libpulse-dev
|
||||
libpipewire-0.3-dev
|
||||
libgl1-mesa-dev
|
||||
libglew-dev
|
||||
libglfw3-dev
|
||||
libpng-dev
|
||||
libopenal-dev
|
||||
libluajit-5.1-dev
|
||||
libserialport-dev
|
||||
libsndfile1-dev
|
||||
libcurl4-openssl-dev
|
||||
libx11-dev
|
||||
libxcursor-dev
|
||||
libxext-dev
|
||||
libxi-dev
|
||||
libxinerama-dev
|
||||
libxrandr-dev
|
||||
libxkbcommon-dev
|
||||
libwayland-dev
|
||||
wayland-protocols
|
||||
|
||||
#
|
||||
|
||||
@@ -47,14 +47,19 @@ jobs:
|
||||
# the same packages as the Build workflow: the game is configured as a whole,
|
||||
# though only the unit tests and the core library they link are built
|
||||
- name: Install build dependencies
|
||||
timeout-minutes: 15
|
||||
uses: ./.github/actions/apt-install
|
||||
with:
|
||||
packages: >-
|
||||
build-essential pkg-config
|
||||
libgl1-mesa-dev libglew-dev libglfw3-dev
|
||||
libpng-dev libopenal-dev libluajit-5.1-dev
|
||||
libserialport-dev libsndfile1-dev
|
||||
libx11-dev libxcursor-dev libxext-dev libxi-dev libxinerama-dev libxrandr-dev
|
||||
libxkbcommon-dev libwayland-dev wayland-protocols
|
||||
|
||||
- name: Install gcovr
|
||||
run: |
|
||||
sudo apt-get update -y
|
||||
sudo apt-get install -y \
|
||||
build-essential \
|
||||
libgl1-mesa-dev libglew-dev libglfw3-dev \
|
||||
libpng-dev libopenal-dev libluajit-5.1-dev \
|
||||
libserialport-dev libsndfile1-dev \
|
||||
xorg-dev libxkbcommon-dev libwayland-dev wayland-protocols
|
||||
python3 -m pip install --no-cache-dir --only-binary :all: gcovr==8.3
|
||||
|
||||
- name: Build current OpenAL Soft
|
||||
|
||||
@@ -291,6 +291,7 @@ set(SOURCES
|
||||
"utilities/dictionary.cpp"
|
||||
"rendering/particles.cpp"
|
||||
"utilities/headtrack.cpp"
|
||||
"utilities/hardwareprobe.cpp"
|
||||
"rendering/geometrybank.cpp"
|
||||
"rendering/openglcolor.cpp"
|
||||
"simulation/simulationsounds.cpp"
|
||||
@@ -552,9 +553,12 @@ set(CORE_SOURCES
|
||||
"McZapkie/derailment.cpp"
|
||||
"McZapkie/collision.cpp"
|
||||
"world/TrackCheck.cpp"
|
||||
"world/SleeperPack.cpp"
|
||||
"McZapkie/Oerlikon_ESt.cpp"
|
||||
"utilities/logfiles.cpp"
|
||||
"utilities/parser.cpp"
|
||||
"utilities/utilities.cpp"
|
||||
"utilities/hardwareinfo.cpp"
|
||||
"scene/sn_utils.cpp"
|
||||
"scene/regionfile.cpp"
|
||||
"utilities/inionlysettings.cpp"
|
||||
@@ -564,6 +568,7 @@ set(CORE_SOURCES
|
||||
"scripting/scriptscreenkernels.cpp"
|
||||
"scripting/scriptscreendrawing.cpp"
|
||||
"simulation/simulationtestrules.cpp"
|
||||
"vehicle/aipower.cpp"
|
||||
"vehicle/aiwire.cpp"
|
||||
"vehicle/blackbox.cpp"
|
||||
"utilities/physicslog.cpp"
|
||||
@@ -572,6 +577,8 @@ set(CORE_SOURCES
|
||||
"vehicle/gaugewrap.cpp"
|
||||
"vehicle/drivingaid.cpp"
|
||||
"vehicle/brakingcurve.cpp"
|
||||
"vehicle/signalpassing.cpp"
|
||||
"vehicle/brakereleaser.cpp"
|
||||
"vehicle/handover.cpp"
|
||||
"vehicle/crew.cpp"
|
||||
"vehicle/horn.cpp"
|
||||
@@ -584,6 +591,8 @@ set(CORE_SOURCES
|
||||
"world/timetableflags.cpp"
|
||||
"world/timetablereader.cpp"
|
||||
"world/stationnames.cpp"
|
||||
"world/eventconditions.cpp"
|
||||
"utilities/wholefile.cpp"
|
||||
)
|
||||
add_library(eu07_core STATIC ${CORE_SOURCES})
|
||||
target_link_libraries(eu07_core PUBLIC eu07_settings)
|
||||
|
||||
+5
-1
@@ -13759,7 +13759,11 @@ void TMoverParameters::LoadFIZ_EngineInductionMotor(std::string const &Input)
|
||||
extract_value(eimc[eimc_f_DU], "DU", Input, "");
|
||||
extract_value(eimc[eimc_f_I0], "I0", Input, "");
|
||||
extract_value(eimc[eimc_f_cfu], "fcfu", Input, "");
|
||||
extract_value(eimc[eimc_f_cfuH], "fcfuH", Input, std::to_string(eimc[eimc_f_cfu]));
|
||||
if (false == extract_value(eimc[eimc_f_cfuH], "fcfuH", Input, ""))
|
||||
{
|
||||
// without its own figure the dynamic brake takes the one of the traction
|
||||
eimc[eimc_f_cfuH] = eimc[eimc_f_cfu];
|
||||
}
|
||||
extract_value(eimc[eimc_p_F0], "F0", Input, "");
|
||||
extract_value(eimc[eimc_p_a1], "a1", Input, "");
|
||||
extract_value(eimc[eimc_p_Pmax], "Pmax", Input, "");
|
||||
|
||||
@@ -231,7 +231,7 @@ If detection still fails, padding the file (with comments) up to ~1 MB may hel
|
||||
## Minimum requirements
|
||||
|
||||
- OS: **Windows 10 64-bit**
|
||||
- Processor: **2 core at least 2 GHz (e.g. Intel Core i3-2100 / AMD Athlon II X2)**
|
||||
- Processor: **4 cores with AVX2 support (e.g. Intel Core i5-4430 / AMD Ryzen 3 1200)**
|
||||
- RAM: **6 GB RAM**
|
||||
- Graphics Card: **supporting OpenGL 3.3 with at least 1GB VRAM**
|
||||
- **150 GB of free disk space**
|
||||
|
||||
@@ -25,12 +25,14 @@ http://mozilla.org/MPL/2.0/.
|
||||
#include "rendering/renderer.h"
|
||||
#include "application/uilayer.h"
|
||||
#include "utilities/Logs.h"
|
||||
#include "utilities/logfiles.h"
|
||||
#include "world/SleeperWorker.h"
|
||||
#include "rendering/screenshot.h"
|
||||
#include "utilities/translation.h"
|
||||
#include "vehicle/Train.h"
|
||||
#include "utilities/Timer.h"
|
||||
#include "utilities/framepacer.h"
|
||||
#include "utilities/hardwareprobe.h"
|
||||
#include "utilities/dictionary.h"
|
||||
#include "version_info.h"
|
||||
#include "simulation/simulationtest.h"
|
||||
@@ -403,8 +405,10 @@ int eu07_application::init(int Argc, char *Argv[])
|
||||
Global.threads.emplace("LogService", std::move(sLoggingService));
|
||||
|
||||
init_debug();
|
||||
result = init_settings(Argc, Argv);
|
||||
// the log files are named by the settings (multiplelogs), so they are cleared and opened once those are read
|
||||
init_files();
|
||||
if ((result = init_settings(Argc, Argv)) != 0)
|
||||
if (result != 0)
|
||||
{
|
||||
ErrorLog("Failed to initialize settings! Maybe you're missing eu07.ini file?");
|
||||
return result;
|
||||
@@ -445,6 +449,9 @@ int eu07_application::init(int Argc, char *Argv[])
|
||||
if (Global.NvRenderer)
|
||||
Global.python_threadedupload = false;
|
||||
|
||||
// the cpu, the memory and the graphics adapters, for the bug reports
|
||||
hardware::log_system();
|
||||
|
||||
WriteLog("// startup");
|
||||
|
||||
if ((result = init_glfw()) != 0)
|
||||
@@ -1262,16 +1269,19 @@ void eu07_application::init_console()
|
||||
|
||||
void eu07_application::init_files()
|
||||
{
|
||||
|
||||
// without multiplelogs the run writes the shared log.txt / errors.txt, and those of the run before go. with it the
|
||||
// run writes files of its own in logs/, and the shared ones are left to whoever ran the game last without it
|
||||
for (auto const &file : stale_log_files(Global.MultipleLogs))
|
||||
{
|
||||
std::error_code error; // not there is fine
|
||||
std::filesystem::remove(file, error);
|
||||
}
|
||||
#ifdef _WIN32
|
||||
DeleteFile("log.txt");
|
||||
DeleteFile("errors.txt");
|
||||
CreateDirectory("logs", nullptr);
|
||||
#elif __unix__
|
||||
unlink("log.txt");
|
||||
unlink("errors.txt");
|
||||
mkdir("logs", 0750);
|
||||
#endif
|
||||
OpenLogFiles();
|
||||
}
|
||||
namespace fs = std::filesystem;
|
||||
|
||||
@@ -1626,6 +1636,9 @@ int eu07_application::init_ogl()
|
||||
}
|
||||
}
|
||||
|
||||
// which of the GPUs the context runs on, and its memory
|
||||
hardware::log_gl_context();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -7426,7 +7426,12 @@ void editor_mode::on_key(int const Key, int const Scancode, int const Action, in
|
||||
}
|
||||
if (is_press(Action))
|
||||
{
|
||||
// in the road window the first Esc gives up the road being drawn, the next one goes back to the selection
|
||||
auto const &road{m_roadtool};
|
||||
auto const next{editor_road::tool_after_escape(road.tool, road.chain || road.branchroad != nullptr || road.branchjunction != nullptr, road.lifting)};
|
||||
road_cancel();
|
||||
if (road.window && ui()->mode() != nodebank_panel::TRACK)
|
||||
road_choose_tool(next);
|
||||
}
|
||||
// the first Esc drops what is going on in the track mode, the next one goes back to the selection
|
||||
if (is_press(Action) && ui()->mode() == nodebank_panel::TRACK)
|
||||
|
||||
@@ -1,2 +1,7 @@
|
||||
#!/bin/sh
|
||||
g++ -std=c++17 -O2 -DSHADERVALIDATOR_STANDALONE ../ref/glad/src/glad.c ../gl/glsl_common.cpp ../gl/shader.cpp main.cpp -I../ref/glad/include -I../ref/glm -I. -o validateshaders
|
||||
# builds the shader validator next to this script. it compiles gl/shader.cpp and gl/glsl_common.cpp of the
|
||||
# simulator against the stand-in headers of this directory (stdafx.h, utilities/Globals.h, utilities/Logs.h)
|
||||
# and needs glslangValidator on PATH to run. run validateshaders from this directory
|
||||
set -e
|
||||
cd "$(dirname "$0")"
|
||||
${CXX:-g++} -std=c++20 -O2 -DSHADERVALIDATOR_STANDALONE ../ref/glad/src/glad.c ../gl/glsl_common.cpp ../gl/shader.cpp main.cpp -I../ref/glad/include -I../ref/glm -I. -o validateshaders
|
||||
|
||||
+86
-13
@@ -1,20 +1,70 @@
|
||||
#include "stdafx.h"
|
||||
#include "../gl/shader.h"
|
||||
#include "../gl/glsl_common.h"
|
||||
#include "Globals.h"
|
||||
#include "utilities/Globals.h"
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <filesystem>
|
||||
#include <vector>
|
||||
#include <algorithm>
|
||||
#ifdef _WIN32
|
||||
#include <random>
|
||||
#else
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
_global Global;
|
||||
|
||||
// writes the text to a new file with a unique name in the temporary directory of the system and returns its path,
|
||||
// or an empty string when it cannot be written. the file is created exclusively, so nothing put in a shared /tmp
|
||||
// under a name known in advance (a file or a link) is written through
|
||||
std::string write_temp_file(std::string const &text)
|
||||
{
|
||||
std::string path = (std::filesystem::temp_directory_path() / "maszyna-shader-XXXXXX").string();
|
||||
std::FILE *file = nullptr;
|
||||
#ifdef _WIN32
|
||||
// no mkstemp() in the CRT; a random name, opened with "x", which fails when the file is there already
|
||||
std::random_device random;
|
||||
for (int attempt = 0; attempt < 100 && file == nullptr; ++attempt) {
|
||||
path.replace(path.size() - 6, 6, std::to_string(100000 + random() % 900000));
|
||||
if (fopen_s(&file, path.c_str(), "wx") != 0)
|
||||
file = nullptr;
|
||||
}
|
||||
#else
|
||||
int const descriptor = mkstemp(path.data());
|
||||
if (descriptor != -1) {
|
||||
file = fdopen(descriptor, "w");
|
||||
if (file == nullptr) {
|
||||
close(descriptor);
|
||||
std::remove(path.c_str());
|
||||
}
|
||||
}
|
||||
#endif
|
||||
if (file == nullptr)
|
||||
return {};
|
||||
|
||||
bool const written = std::fwrite(text.data(), 1, text.size(), file) == text.size();
|
||||
if (std::fclose(file) != 0 || !written) {
|
||||
std::remove(path.c_str());
|
||||
return {};
|
||||
}
|
||||
return path;
|
||||
}
|
||||
|
||||
bool check_shader(std::string filename)
|
||||
{
|
||||
gl::shader shader_processor;
|
||||
|
||||
gl::glsl_common_setup();
|
||||
std::pair<GLuint, std::string> source = shader_processor.process_source(filename, "../shaders/");
|
||||
std::pair<GLuint, std::string> source;
|
||||
try {
|
||||
source = shader_processor.process_source(filename, "../shaders/");
|
||||
}
|
||||
catch (gl::shader_exception const &e) {
|
||||
std::cout << "failed to preprocess: " << e.what() << std::endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
std::string stage;
|
||||
if (source.first == GL_VERTEX_SHADER)
|
||||
@@ -26,11 +76,26 @@ bool check_shader(std::string filename)
|
||||
else
|
||||
return false;
|
||||
|
||||
std::ofstream file("/tmp/shader");
|
||||
file << source.second;
|
||||
file.close();
|
||||
// glslang defines the GL_ARB_gpu_shader5 macro without the #extension directive, so light_common.glsl
|
||||
// takes its textureGather() path, which needs the extension enabled on desktop GL 3.30. has_gl_extension()
|
||||
// of gl/shader.cpp has no GL context here and says no, so the directive which the simulator gives on the
|
||||
// drivers with the extension is added here
|
||||
std::string const gpu_shader5 = "#extension GL_ARB_gpu_shader5 : enable\n";
|
||||
if (!Global.gfx_usegles && source.second.find(gpu_shader5) == std::string::npos) {
|
||||
std::size_t const version_end = source.second.find('\n');
|
||||
if (version_end != std::string::npos)
|
||||
source.second.insert(version_end + 1, gpu_shader5);
|
||||
}
|
||||
|
||||
int ret = system(("glslangValidator -S " + stage + " /tmp/shader").c_str());
|
||||
// the stage is given with -S, so the file needs no extension
|
||||
std::string const path = write_temp_file(source.second);
|
||||
if (path.empty()) {
|
||||
std::cout << "cannot write the shader to the temporary directory" << std::endl;
|
||||
return false;
|
||||
}
|
||||
|
||||
int ret = system(("glslangValidator -S " + stage + " \"" + path + "\"").c_str());
|
||||
std::remove(path.c_str());
|
||||
|
||||
return ret == 0;
|
||||
}
|
||||
@@ -90,24 +155,32 @@ bool check_shader_confs(std::string filename)
|
||||
|
||||
int main()
|
||||
{
|
||||
bool suc = true;
|
||||
// in name order, so the runs can be compared
|
||||
std::vector<std::string> shaders;
|
||||
for (auto &f : std::filesystem::recursive_directory_iterator("../shaders/")) {
|
||||
if (!f.is_regular_file())
|
||||
continue;
|
||||
|
||||
std::string relative = std::filesystem::relative(f.path(), "../shaders/").string();
|
||||
if (f.path().extension() != ".frag" && f.path().extension() != ".geom" && f.path().extension() != ".vert")
|
||||
continue;
|
||||
|
||||
shaders.push_back(std::filesystem::relative(f.path(), "../shaders/").generic_string());
|
||||
}
|
||||
std::sort(shaders.begin(), shaders.end());
|
||||
|
||||
std::vector<std::string> failed;
|
||||
for (auto const &relative : shaders) {
|
||||
std::cout << "== validating shader " << relative << ": " << std::flush;
|
||||
if (!check_shader_confs(relative))
|
||||
suc = false;
|
||||
failed.push_back(relative);
|
||||
}
|
||||
|
||||
if (suc)
|
||||
std::cout << "==== all checks ok" << std::endl;
|
||||
if (failed.empty())
|
||||
std::cout << "==== all checks ok (" << shaders.size() << " shaders)" << std::endl;
|
||||
else {
|
||||
std::cout << "==== checks failed" << std::endl;
|
||||
std::cout << "==== checks failed for " << failed.size() << " of " << shaders.size() << " shaders:" << std::endl;
|
||||
for (auto const &relative : failed)
|
||||
std::cout << relative << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
#pragma once
|
||||
// stands in for the precompiled header of the simulator, with what gl/shader.cpp, gl/glsl_common.cpp and the
|
||||
// headers they include take from it
|
||||
#define GLM_ENABLE_EXPERIMENTAL
|
||||
#define GLM_FORCE_CTOR_INIT
|
||||
#include <glm/glm.hpp>
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <string>
|
||||
#include <string_view>
|
||||
#include <stdexcept>
|
||||
|
||||
@@ -21,3 +21,4 @@
|
||||
| utilities/ | Logging, timing, parsing, math, globals, crash reporter |
|
||||
| world/ | Tracks, traction, events, memory cells, stations |
|
||||
| vehicle/ | Train, dynamic objects, driver, gauges, camera |
|
||||
| docs/ | Documentation |
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
# Local changes of the bundled ImGui
|
||||
|
||||
`imgui/` holds Dear ImGui **v1.91.9b-docking** (`IMGUI_VERSION "1.91.9b"`, the docking branch: upstream tag
|
||||
[`v1.91.9b-docking`](https://github.com/ocornut/imgui/tree/v1.91.9b-docking)), the GLFW, OpenGL 2 and OpenGL 3 backends
|
||||
of the same tag, and ImGuizmo. The changes below are ours: an update of ImGui has to carry them over, or drop them on
|
||||
purpose. Most of them are marked in the code with a `MaSzyna` comment (`grep -n MaSzyna imgui/*`), but not every
|
||||
changed line is.
|
||||
|
||||
Compared with the upstream tag, these files are unchanged: `imgui_demo.cpp`, `imgui_draw.cpp`, `imgui_internal.h`,
|
||||
`imgui_tables.cpp`, `imstb_rectpack.h`, `imstb_textedit.h`, `imstb_truetype.h`, `LICENSE.txt` and the backend headers
|
||||
(`imgui_impl_glfw.h`, `imgui_impl_opengl2.h`, `imgui_impl_opengl3.h`). The backends are in `backends/` upstream, here
|
||||
next to the rest.
|
||||
|
||||
## ImGui itself
|
||||
|
||||
| Change | Files | Since | Used by |
|
||||
|--------|-------|-------|---------|
|
||||
| `io.ConfigViewportsNoAutoDetach` (default `false`): a floating window stays inside its host viewport. A resize stops at the viewport's edge, a window left past the edge or too big for it is moved back and shrunk, and it gets a viewport (an OS window) of its own only when dragged with the cursor outside the host viewport. Tooltips and popups over the main viewport, or begun outside any window, stay in the main viewport. Upstream has no such option ([#236](https://github.com/MaSzyna-EU07/maszyna/pull/236); the closest upstream report is [ocornut/imgui#9594](https://github.com/ocornut/imgui/issues/9594)) | `imgui.h` (`ImGuiIO` field), `imgui.cpp`: its default in `ImGuiIO::ImGuiIO()`; `WindowStaysInHostViewport()`, `IsWindowBeingMoved()`, `KeepWindowInsideRect()`; the resize limit in `UpdateWindowManualResize()`; two places in `Begin()` (no late viewport, window kept inside the work rect); the fallback and `ViewportAllowPlatformMonitorExtend` in `UpdateSelectWindowViewport()` | 5fa03304e (#236), be4000880, d0ca44cd6 | `application/uilayer.cpp`, with the viewports on |
|
||||
| `io.ConfigTooltipsWrapWidth` (default `0`, no wrapping): the text of `SetTooltip()` / `SetItemTooltip()` wraps at that width. `BeginTooltip()` is not affected | `imgui.h` (`ImGuiIO` field), `imgui.cpp` (default, `SetTooltipV()`) | be4000880 | `application/uilayer.cpp` (40 font sizes) |
|
||||
| `ImGui::BufferingBar()` and `ImGui::Spinner()`, by zfedoran from [ocornut/imgui#1901](https://github.com/ocornut/imgui/issues/1901) | `imgui.h`, end of `imgui_widgets.cpp` | ae3cecfa4 (2019, for the progress bar of the loading screen of the time), carried over in 344034ec7 | nothing at present: can be dropped |
|
||||
| `#define IMGUI_IMPL_OPENGL_LOADER_CUSTOM`: the OpenGL 3 backend uses glad, loaded by the simulator, instead of its own loader | `imconfig.h` | 344034ec7 | the OpenGL 3 backend |
|
||||
|
||||
## Backends
|
||||
|
||||
| Change | File | Since |
|
||||
|--------|------|-------|
|
||||
| With multi-viewports, ImGui positions are relative to the simulator's main window instead of the desktop, so the main viewport stays at (0,0) and the overlays, picking and editor gizmo work in window coordinates as without viewports. `MainWindowOrigin` in the backend data, `ImGui_ImplGlfw_UpdateMainWindowOrigin()` called from `NewFrame()`; the origin is subtracted from the mouse position (callback and `UpdateMouseData()`), the monitors' `MainPos` / `WorkPos` and `GetWindowPos()`, and added back in `CreateWindow()` and `SetWindowPos()` | `imgui_impl_glfw.cpp` | 476f3bf1b |
|
||||
| GL functions from glad (`<glad/glad.h>`) instead of the system's `GL/gl.h` | `imgui_impl_opengl2.cpp` | 344034ec7 |
|
||||
| GL functions from glad, with `stdafx.h` and `utilities/Globals.h` included for the renderer's settings | `imgui_impl_opengl3.cpp` | 344034ec7 |
|
||||
| `GlslVersionString` is 128 bytes instead of 32, for the longer GLES version string the simulator passes | `imgui_impl_opengl3.cpp` | 344034ec7 |
|
||||
| Gamma of the UI follows the renderer: the vertex shaders linearise the vertex colour (`pow(Color.rgb, 2.2)`); each fragment shader's output goes through `FBOUT()`, which applies `1/2.2` when `Global.gfx_shadergamma` is set and passes it through otherwise; with desktop GL and no shader gamma `GL_FRAMEBUFFER_SRGB` is enabled while the UI is drawn and restored after | `imgui_impl_opengl3.cpp` (`RenderDrawData()`, the shader sources, `CreateDeviceObjects()`) | 344034ec7 |
|
||||
|
||||
## ImGuizmo
|
||||
|
||||
From [CedricGuillemet/ImGuizmo](https://github.com/CedricGuillemet/ImGuizmo), added in 5a39ed519; the upstream commit
|
||||
it was taken from isn't recorded. Changed in 344034ec7 for the ImGui API of 1.91:
|
||||
|
||||
- `IMGUI_DEFINE_MATH_OPERATORS` is defined before the first `#include "imgui.h"` (ImGui 1.86 and later want it so).
|
||||
- `ImGui::CaptureMouseFromApp()` is replaced by `ImGui::SetNextFrameWantCaptureMouse(true)` (six places).
|
||||
|
||||
And since 5a39ed519, for the ImGui of the time:
|
||||
|
||||
- A compatibility shim, `#define ImAbs(X)` when `ImAbs` isn't a macro (`ImGuizmo.cpp:42-44`). ImGui 1.91 has `ImAbs`
|
||||
as an inline function in `imgui_internal.h`, so the macro is always defined now and hides that function in
|
||||
`ImGuizmo.cpp`. It can be dropped.
|
||||
|
||||
## Checking an update
|
||||
|
||||
Download the files of the new tag (`imgui*.cpp`, `imgui*.h`, `imstb_*.h`, `imconfig.h`, and from `backends/`
|
||||
`imgui_impl_glfw.*`, `imgui_impl_opengl2.*`, `imgui_impl_opengl3.*`), diff the files here against the tag listed at the
|
||||
top, and apply that diff to the new files. The diff of the files here against `v1.91.9b-docking` is exactly the list
|
||||
above.
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
This Source Code Form is subject to the
|
||||
terms of the Mozilla Public License, v.
|
||||
2.0. If a copy of the MPL was not
|
||||
distributed with this file, You can
|
||||
obtain one at
|
||||
http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
// the room a road leaving the side of a roundabout takes of the ring, seen from above. on a straight road the edge of the road
|
||||
// leaving meets the edge of the road it leaves where the two straight lines cross; the ring bends away from the road leaving it
|
||||
// to the outside, so there the edges meet sooner; and a road leaving at a slant meets the edge of the ring sooner on the side
|
||||
// it leans away from than on the side it leans towards
|
||||
namespace editor_ring
|
||||
{
|
||||
|
||||
// the shortest piece of the ring a junction leaves before the next junction, or before the end of the arc it's cut from.
|
||||
// the ring goes on past it, so it can be much shorter than a road of its own; a junction which would leave less takes
|
||||
// the rest of the arc, and the shorter this is the less a junction grows next to the end of an arc
|
||||
double constexpr shortest_piece{0.5};
|
||||
|
||||
// how far along the axis of the ring, from the point a road leaves it, the edge of that road meets the outer edge of the ring.
|
||||
// Centre: of the ring, Radius: of its axis, Point: where the axis of the road leaving meets the axis of the ring,
|
||||
// Direction: the way the road leaves, Along: the way along the ring the room is measured, Halfwidth: of the ring,
|
||||
// Branchhalfwidth: of the road leaving. returns: the distance along the axis of the ring, 0 if the edges cross before they get
|
||||
// past the point the road leaves, or a negative value if there's no such point: the road doesn't leave towards the outside,
|
||||
// or it leans so far that the edge on that side stays outside the ring all along
|
||||
inline double edge_room(glm::dvec2 const &Centre, double const Radius, glm::dvec2 const &Point, glm::dvec2 const &Direction, glm::dvec2 const &Along, double const Halfwidth,
|
||||
double const Branchhalfwidth)
|
||||
{
|
||||
if (Radius <= 0.0 || glm::length(Direction) < 1e-9 || glm::length(Point - Centre) < 1e-9)
|
||||
return -1.0;
|
||||
auto const direction{glm::normalize(Direction)};
|
||||
auto const outwards{glm::normalize(Point - Centre)};
|
||||
if (glm::dot(direction, outwards) < 1e-6)
|
||||
return -1.0;
|
||||
// the edge of the road leaving on the side the room is measured for
|
||||
glm::dvec2 side{-direction.y, direction.x};
|
||||
if (glm::dot(side, Along) < 0.0)
|
||||
side = -side;
|
||||
auto const start{Point - Centre + side * Branchhalfwidth};
|
||||
auto const edge{Radius + Halfwidth};
|
||||
// start + direction * t on the circle of the outer edge, where the edge leaves it going out. a road wide enough, or leaning
|
||||
// far enough, has the start of that edge outside the circle already: the edges crossed before it
|
||||
auto const b{glm::dot(start, direction)};
|
||||
auto const discriminant{b * b + edge * edge - glm::dot(start, start)};
|
||||
if (discriminant < 0.0)
|
||||
return -1.0;
|
||||
auto const t{-b + std::sqrt(discriminant)};
|
||||
auto const meet{start + direction * t};
|
||||
// the angle from the point the road leaves to that point, around the centre and the way the room is measured, carried onto the axis
|
||||
auto const turn{outwards.x * Along.y - outwards.y * Along.x < 0.0 ? -1.0 : 1.0};
|
||||
auto const angle{std::atan2(turn * (outwards.x * meet.y - outwards.y * meet.x), glm::dot(outwards, meet))};
|
||||
return std::max(0.0, Radius * angle);
|
||||
}
|
||||
|
||||
} // namespace editor_ring
|
||||
+42
-2
@@ -10,6 +10,7 @@ http://mozilla.org/MPL/2.0/.
|
||||
#include "stdafx.h"
|
||||
#include "editor/editorRoad.hpp"
|
||||
#include "editor/editorFormat.hpp"
|
||||
#include "editor/editorRingRoom.hpp"
|
||||
|
||||
#include "editor/editorTrack.hpp"
|
||||
#include "world/Track.h"
|
||||
@@ -274,7 +275,9 @@ bool follow(road_node &Road, double const T, bool const Forward, double const Di
|
||||
auto const lengths{stations(state)};
|
||||
auto const here{station_at(lengths, from)};
|
||||
auto const available{forward ? lengths.back() - here : here};
|
||||
if (remaining <= 0.0 || available >= remaining + kShortestRoad)
|
||||
// what's left of a piece of a roundabout carries on round, so it can be shorter than a road of its own
|
||||
auto const shortest{state.roundabout ? editor_ring::shortest_piece : kShortestRoad};
|
||||
if (remaining <= 0.0 || available >= remaining + shortest)
|
||||
{
|
||||
// the cut is put here; with nothing left to go the piece is kept whole
|
||||
Cut.road = piece;
|
||||
@@ -339,6 +342,27 @@ double edge_reach(double const Halfwidth, double const Otherhalfwidth, double co
|
||||
return (Otherhalfwidth + Halfwidth * std::cos(Angle)) / std::sin(Angle);
|
||||
}
|
||||
|
||||
// the circle the axis of a piece bends along at specified value of its curve parameter, seen from above. returns: false if it's straight there
|
||||
bool ring_circle(road_node::state const &State, double const T, glm::dvec2 &Centre, double &Radius)
|
||||
{
|
||||
auto const points{curve_points(State.axis)};
|
||||
auto const u{1.0 - T};
|
||||
auto const first{3.0 * u * u * (points[1] - points[0]) + 6.0 * u * T * (points[2] - points[1]) + 3.0 * T * T * (points[3] - points[2])};
|
||||
auto const second{6.0 * u * (points[2] - 2.0 * points[1] + points[0]) + 6.0 * T * (points[3] - 2.0 * points[2] + points[1])};
|
||||
glm::dvec2 const velocity{first.x, first.z};
|
||||
auto const speed{glm::length(velocity)};
|
||||
if (speed < 1e-9)
|
||||
return false;
|
||||
auto const curvature{(velocity.x * second.z - velocity.y * second.x) / (speed * speed * speed)};
|
||||
if (std::abs(curvature) < 1e-5)
|
||||
return false;
|
||||
auto const point{curve_point(points, T)};
|
||||
auto const tangent{velocity / speed};
|
||||
Centre = glm::dvec2{point.x, point.z} + glm::dvec2{-tangent.y, tangent.x} / curvature;
|
||||
Radius = 1.0 / std::abs(curvature);
|
||||
return true;
|
||||
}
|
||||
|
||||
// the look of a junction goes after the road it's made on
|
||||
void dress(junction_node::state &Junction, road_node::state const &Road)
|
||||
{
|
||||
@@ -1852,11 +1876,27 @@ bool editor_road::branch_from(road_node &Road, double const T, glm::dvec2 const
|
||||
auto const branchhalfwidth{0.5 * (Incoming + Outgoing) * Width};
|
||||
auto const reach{edge_reach(halfwidth, branchhalfwidth, angle) + kCornerRoom};
|
||||
auto const branchreach{edge_reach(branchhalfwidth, halfwidth, angle) + kCornerRoom};
|
||||
// how far the junction takes the road back along it and ahead of the centre
|
||||
std::array<double, 2> reaches{reach, reach};
|
||||
glm::dvec2 ringcentre{0.0};
|
||||
double ringradius{0.0};
|
||||
if (layout.roundabout && ring_circle(layout, T, ringcentre, ringradius))
|
||||
{
|
||||
// the ring bends away from a road leaving it to the outside, so their edges meet sooner than on a straight road; and a road
|
||||
// leaving at a slant meets the edge of the ring sooner on the side it leans away from. the room of a straight road, measured
|
||||
// on the side the road leans towards, is the most a side takes
|
||||
for (int side = 0; side < 2; ++side)
|
||||
{
|
||||
auto const room{editor_ring::edge_room(ringcentre, ringradius, glm::dvec2{centre.x, centre.z}, direction, side == 0 ? -along : along, halfwidth, branchhalfwidth)};
|
||||
if (room >= 0.0)
|
||||
reaches[side] = std::min(reach, room + kCornerRoom);
|
||||
}
|
||||
}
|
||||
|
||||
// where the road is cut on both sides of the centre
|
||||
road_cut cuts[2];
|
||||
std::vector<road_node *> consumed;
|
||||
if (false == follow(Road, T, false, reach, cuts[0], consumed, Error) || false == follow(Road, T, true, reach, cuts[1], consumed, Error))
|
||||
if (false == follow(Road, T, false, reaches[0], cuts[0], consumed, Error) || false == follow(Road, T, true, reaches[1], cuts[1], consumed, Error))
|
||||
return false;
|
||||
if (cuts[0].road == cuts[1].road && cuts[0].road != &Road)
|
||||
{
|
||||
|
||||
@@ -173,6 +173,13 @@ class editor_road
|
||||
// Radius: of the axis of that road; Layout: what the road is like. the lanes it has along its axis are the ones the roundabout gets.
|
||||
// Island: what the middle is covered with, "none" to leave the ground showing
|
||||
static std::vector<road_node::state> roundabout(glm::dvec3 const &Centre, double const Radius, road_node::state const &Layout, std::string const &Island);
|
||||
// the tool of the road window (0 select, 1 build, 2 place) Esc leaves. while a road is being drawn, or led out of the side of
|
||||
// a road or a junction, or the selected points are dragged up or down, the tool in use stays and Esc gives that up; with
|
||||
// nothing going on Esc goes back to the selection
|
||||
static constexpr int tool_after_escape(int const Tool, bool const Drawing, bool const Lifting)
|
||||
{
|
||||
return (Drawing || Lifting) ? Tool : 0;
|
||||
}
|
||||
|
||||
private:
|
||||
// takes down what depends on the listed pieces and junctions, lets the caller change them, then builds it all again
|
||||
|
||||
+4
-2
@@ -30,8 +30,10 @@ namespace {
|
||||
// SHADERVALIDATOR_STANDALONE gates out the GL queries because the offline
|
||||
// shader validator tool links glad.c but never calls gladLoadGL(); the
|
||||
// function pointers stay null and a real call would crash. Returning
|
||||
// false there means the standalone validator simply compiles the original
|
||||
// 16-tap PCF fallback path in light_common.glsl, which is what we want.
|
||||
// false there adds no #extension directive. For desktop GL the validator
|
||||
// adds GL_ARB_gpu_shader5 itself (ci_shadervalidator/main.cpp), since
|
||||
// glslang defines that macro anyway, so light_common.glsl is validated on
|
||||
// its textureGather() path, not on the 16-tap PCF fallback.
|
||||
bool has_gl_extension(char const *name) {
|
||||
#ifdef SHADERVALIDATOR_STANDALONE
|
||||
(void)name;
|
||||
|
||||
@@ -9,8 +9,18 @@ void ui::vehicles_bank::scan_textures()
|
||||
if (f->path().filename() != "textures.txt")
|
||||
continue;
|
||||
|
||||
auto const folder{std::filesystem::relative(f->path().parent_path(), "dynamic/", error)};
|
||||
try {
|
||||
// the vehicles are kept by narrow names. on Windows a folder named with a character the code page lacks
|
||||
// can't be given one and would throw at the first vehicle; the game couldn't load it by that name anyway
|
||||
[[maybe_unused]] auto const name{folder.generic_string()};
|
||||
}
|
||||
catch (std::system_error const &) {
|
||||
continue;
|
||||
}
|
||||
ctx_path = folder;
|
||||
|
||||
std::fstream stream(f->path(), std::ios_base::binary | std::ios_base::in);
|
||||
ctx_path = std::filesystem::relative(f->path().parent_path(), "dynamic/", error);
|
||||
|
||||
std::string line;
|
||||
while (std::getline(stream, line))
|
||||
|
||||
+3
-14
@@ -24,6 +24,7 @@ Copyright (C) 2001-2004 Marcin Wozniak, Maciej Czapkiewicz and others
|
||||
#include "simulation/simulationtime.h"
|
||||
#include "world/mtable.h"
|
||||
#include "scene/sn_utils.h"
|
||||
#include "utilities/wholefile.h"
|
||||
|
||||
#include <bit>
|
||||
|
||||
@@ -2653,20 +2654,8 @@ void TModel3d::LoadFromBinFile(std::string const &FileName, bool dynamic)
|
||||
WriteLog("Loading binary format 3d model data from \"" + FileName + "\"...", logtype::model);
|
||||
|
||||
// the file is read whole in one go and parsed from memory
|
||||
std::unique_ptr<char[]> filedata;
|
||||
std::size_t filesize{0};
|
||||
{
|
||||
std::ifstream input(FileName, std::ios::binary | std::ios::ate);
|
||||
auto const length{input.tellg()};
|
||||
if (length > 0)
|
||||
{
|
||||
filedata.reset(new char[static_cast<std::size_t>(length)]);
|
||||
input.seekg(0);
|
||||
input.read(filedata.get(), length);
|
||||
filesize = static_cast<std::size_t>(input.gcount());
|
||||
}
|
||||
}
|
||||
e3d_memorybuffer buffer(filedata.get(), filedata.get() + filesize);
|
||||
auto const filedata{read_whole_file(FileName)};
|
||||
e3d_memorybuffer buffer(filedata.data.get(), filedata.data.get() + filedata.size);
|
||||
std::istream file(&buffer);
|
||||
|
||||
uint32_t type = sn_utils::ld_uint32(file);
|
||||
|
||||
@@ -287,6 +287,8 @@ int generate_nodebank_previews(int Argc, char *Argv[])
|
||||
{
|
||||
Global.LoadIniFile("eu07.ini");
|
||||
}
|
||||
// the settings are read, so the log service writes as it goes instead of holding everything until it stops
|
||||
OpenLogFiles();
|
||||
// the progress goes to the console, the log keeps the details
|
||||
Global.iWriteLogEnabled &= ~2;
|
||||
std::thread logservice(LogService);
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
# License texts of the Windows audio DLLs
|
||||
|
||||
The Windows build ships `OpenAL32.dll` (OpenAL Soft 1.25.2) and `libsndfile-1.dll` (libsndfile 1.2.2), and in
|
||||
`licenses/` next to them the texts of those libraries and of what they have built in. The DLLs and OpenAL Soft's own
|
||||
`COPYING` come from the release zips, which CI downloads; the texts below are kept here, so a build doesn't depend on
|
||||
the servers they come from. CI copies them into `licenses/` and checks each one by the SHA-256 in
|
||||
`.github/workflows/build_bin.yml` (step "Add the OpenAL Soft and libsndfile DLLs"). `.gitattributes` keeps them byte
|
||||
for byte as upstream (`-text`), whatever the line ending settings of a checkout. What each text covers is in
|
||||
`audio-libraries.txt`, which that step writes.
|
||||
|
||||
| File | Taken from | SHA-256 |
|
||||
|------|------------|---------|
|
||||
| `libsndfile-COPYING.txt` | https://raw.githubusercontent.com/libsndfile/libsndfile/1.2.2/COPYING | `ad01ea5cd2755f6048383c8d54c88459cd6fcb17757c5c8892f8c5ea060f6140` |
|
||||
| `libsndfile-ALAC-LICENSE.txt` | https://raw.githubusercontent.com/libsndfile/libsndfile/1.2.2/src/ALAC/LICENSE | `232efbd83786e157286b0b96c68ebb673541b69b33036287bf1e5ec5067a49d9` |
|
||||
| `libsndfile-GSM610-COPYRIGHT.txt` | https://raw.githubusercontent.com/libsndfile/libsndfile/1.2.2/src/GSM610/COPYRIGHT | `1bbe7119b1bcd1489e0f36cb95b8902f7f0ceec9a2f3a67394bc9f4709a4e0a7` |
|
||||
| `libogg-COPYING.txt` | https://raw.githubusercontent.com/xiph/ogg/v1.3.5/COPYING | `d2ab5758336489da61c12cc5bb757da5339c4ae9001f9bb0562b4370249af814` |
|
||||
| `libvorbis-COPYING.txt` | https://raw.githubusercontent.com/xiph/vorbis/v1.3.7/COPYING | `ec1815db59fcd302846df949d7424876cb2e2dc5ed1606c5fb0b36787b1cf43a` |
|
||||
| `flac-COPYING.Xiph.txt` | https://raw.githubusercontent.com/xiph/flac/1.4.2/COPYING.Xiph | `6e58d3036f05e2a0d58af854c12a505ddbe75011d71a598a2170987f3b15408d` |
|
||||
| `opus-COPYING.txt` | https://raw.githubusercontent.com/xiph/opus/v1.4/COPYING | `8338ce8d922bb4416ce3dd1e5680173332435e3f0755007ac7801ccd674fe682` |
|
||||
| `mpg123-COPYING.txt` | https://scm.orgis.org/view/mpg123/tags/1.31.3/COPYING?view=co | `c22482728a634a8dfdb4ff72a96d4c1ed64cd8f3e79335c401751ac591609366` |
|
||||
| `lame-COPYING.txt` | https://sources.debian.org/data/main/l/lame/3.100-6/COPYING (the same file as in LAME 3.100) | `bfe4a52dc4645385f356a8e83cc54216a293e3b6f1cb4f79f5fc0277abf937fd` |
|
||||
| `openal-soft-pffft-LICENSE.txt` | https://raw.githubusercontent.com/kcat/openal-soft/1.25.2/LICENSE-pffft | `64056328b3e7bc104e24ef96accc1a7abead156f0c02d1b87c97e3f3a28030de` |
|
||||
| `openal-soft-gsl-LICENSE.txt` | https://raw.githubusercontent.com/kcat/openal-soft/1.25.2/gsl/LICENSE | `4c21dc82a1c7186ea754fd59d504c00947953a3401fe8e24eaa44109ef8e2555` |
|
||||
| `openal-soft-BSD-3Clause.txt` | https://raw.githubusercontent.com/kcat/openal-soft/1.25.2/BSD-3Clause | `b5a08cf98996dd83aa906a72c163600f6cb17a65ce546a553815a1267abd43ff` |
|
||||
| `openal-soft-winpthreads-COPYING.txt` | https://raw.githubusercontent.com/mingw-w64/mingw-w64/v13.0.0/mingw-w64-libraries/winpthreads/COPYING | `63263614cdd29f2f93cba85e992f041b31f9fc7b4033692f31269489a8a1b177` |
|
||||
| `openal-soft-mingw-w64-runtime.txt` | https://raw.githubusercontent.com/mingw-w64/mingw-w64/v13.0.0/COPYING.MinGW-w64-runtime/COPYING.MinGW-w64-runtime.txt | `e9b2dc02451ea29092a1f25fa0f3c07207ed421f1807dffb0c4e6dce69dee7bd` |
|
||||
|
||||
When a DLL is updated to another version, its texts here are replaced by those of the new version's source tree, and
|
||||
their SHA-256 in the workflow with them.
|
||||
@@ -0,0 +1,29 @@
|
||||
Copyright (C) 2000-2009 Josh Coalson
|
||||
Copyright (C) 2011-2022 Xiph.Org Foundation
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
- Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
- Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
- Neither the name of the Xiph.Org Foundation nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
|
||||
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@@ -0,0 +1,481 @@
|
||||
GNU LIBRARY GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1991 Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the library GPL. It is
|
||||
numbered 2 because it goes with version 2 of the ordinary GPL.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software--to make sure the software is free for all its users.
|
||||
|
||||
This license, the Library General Public License, applies to some
|
||||
specially designated Free Software Foundation software, and to any
|
||||
other libraries whose authors decide to use it. You can use it for
|
||||
your libraries, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if
|
||||
you distribute copies of the library, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis
|
||||
or for a fee, you must give the recipients all the rights that we gave
|
||||
you. You must make sure that they, too, receive or can get the source
|
||||
code. If you link a program with the library, you must provide
|
||||
complete object files to the recipients so that they can relink them
|
||||
with the library, after making changes to the library and recompiling
|
||||
it. And you must show them these terms so they know their rights.
|
||||
|
||||
Our method of protecting your rights has two steps: (1) copyright
|
||||
the library, and (2) offer you this license which gives you legal
|
||||
permission to copy, distribute and/or modify the library.
|
||||
|
||||
Also, for each distributor's protection, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
library. If the library is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original
|
||||
version, so that any problems introduced by others will not reflect on
|
||||
the original authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that companies distributing free
|
||||
software will individually obtain patent licenses, thus in effect
|
||||
transforming the program into proprietary software. To prevent this,
|
||||
we have made it clear that any patent must be licensed for everyone's
|
||||
free use or not licensed at all.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the ordinary
|
||||
GNU General Public License, which was designed for utility programs. This
|
||||
license, the GNU Library General Public License, applies to certain
|
||||
designated libraries. This license is quite different from the ordinary
|
||||
one; be sure to read it in full, and don't assume that anything in it is
|
||||
the same as in the ordinary license.
|
||||
|
||||
The reason we have a separate public license for some libraries is that
|
||||
they blur the distinction we usually make between modifying or adding to a
|
||||
program and simply using it. Linking a program with a library, without
|
||||
changing the library, is in some sense simply using the library, and is
|
||||
analogous to running a utility program or application program. However, in
|
||||
a textual and legal sense, the linked executable is a combined work, a
|
||||
derivative of the original library, and the ordinary General Public License
|
||||
treats it as such.
|
||||
|
||||
Because of this blurred distinction, using the ordinary General
|
||||
Public License for libraries did not effectively promote software
|
||||
sharing, because most developers did not use the libraries. We
|
||||
concluded that weaker conditions might promote sharing better.
|
||||
|
||||
However, unrestricted linking of non-free programs would deprive the
|
||||
users of those programs of all benefit from the free status of the
|
||||
libraries themselves. This Library General Public License is intended to
|
||||
permit developers of non-free programs to use free libraries, while
|
||||
preserving your freedom as a user of such programs to change the free
|
||||
libraries that are incorporated in them. (We have not seen how to achieve
|
||||
this as regards changes in header files, but we have achieved it as regards
|
||||
changes in the actual functions of the Library.) The hope is that this
|
||||
will lead to faster development of free libraries.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow. Pay close attention to the difference between a
|
||||
"work based on the library" and a "work that uses the library". The
|
||||
former contains code derived from the library, while the latter only
|
||||
works together with the library.
|
||||
|
||||
Note that it is possible for a library to be covered by the ordinary
|
||||
General Public License rather than by this special one.
|
||||
|
||||
GNU LIBRARY GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library which
|
||||
contains a notice placed by the copyright holder or other authorized
|
||||
party saying it may be distributed under the terms of this Library
|
||||
General Public License (also called "this License"). Each licensee is
|
||||
addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data
|
||||
prepared so as to be conveniently linked with application programs
|
||||
(which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work
|
||||
which has been distributed under these terms. A "work based on the
|
||||
Library" means either the Library or any derivative work under
|
||||
copyright law: that is to say, a work containing the Library or a
|
||||
portion of it, either verbatim or with modifications and/or translated
|
||||
straightforwardly into another language. (Hereinafter, translation is
|
||||
included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for
|
||||
making modifications to it. For a library, complete source code means
|
||||
all the source code for all modules it contains, plus any associated
|
||||
interface definition files, plus the scripts used to control compilation
|
||||
and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running a program using the Library is not restricted, and output from
|
||||
such a program is covered only if its contents constitute a work based
|
||||
on the Library (independent of the use of the Library in a tool for
|
||||
writing it). Whether that is true depends on what the Library does
|
||||
and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's
|
||||
complete source code as you receive it, in any medium, provided that
|
||||
you conspicuously and appropriately publish on each copy an
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||
all the notices that refer to this License and to the absence of any
|
||||
warranty; and distribute a copy of this License along with the
|
||||
Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy,
|
||||
and you may at your option offer warranty protection in exchange for a
|
||||
fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion
|
||||
of it, thus forming a work based on the Library, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no
|
||||
charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a
|
||||
table of data to be supplied by an application program that uses
|
||||
the facility, other than as an argument passed when the facility
|
||||
is invoked, then you must make a good faith effort to ensure that,
|
||||
in the event an application does not supply such function or
|
||||
table, the facility still operates, and performs whatever part of
|
||||
its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has
|
||||
a purpose that is entirely well-defined independent of the
|
||||
application. Therefore, Subsection 2d requires that any
|
||||
application-supplied function or table used by this function must
|
||||
be optional: if the application does not supply it, the square
|
||||
root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Library,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Library, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library
|
||||
with the Library (or with a work based on the Library) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||
License instead of this License to a given copy of the Library. To do
|
||||
this, you must alter all the notices that refer to this License, so
|
||||
that they refer to the ordinary GNU General Public License, version 2,
|
||||
instead of to this License. (If a newer version than version 2 of the
|
||||
ordinary GNU General Public License has appeared, then you can specify
|
||||
that version instead if you wish.) Do not make any other change in
|
||||
these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for
|
||||
that copy, so the ordinary GNU General Public License applies to all
|
||||
subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of
|
||||
the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or
|
||||
derivative of it, under Section 2) in object code or executable form
|
||||
under the terms of Sections 1 and 2 above provided that you accompany
|
||||
it with the complete corresponding machine-readable source code, which
|
||||
must be distributed under the terms of Sections 1 and 2 above on a
|
||||
medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy
|
||||
from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place satisfies the requirement to
|
||||
distribute the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the
|
||||
Library, but is designed to work with the Library by being compiled or
|
||||
linked with it, is called a "work that uses the Library". Such a
|
||||
work, in isolation, is not a derivative work of the Library, and
|
||||
therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library
|
||||
creates an executable that is a derivative of the Library (because it
|
||||
contains portions of the Library), rather than a "work that uses the
|
||||
library". The executable is therefore covered by this License.
|
||||
Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file
|
||||
that is part of the Library, the object code for the work may be a
|
||||
derivative work of the Library even though the source code is not.
|
||||
Whether this is true is especially significant if the work can be
|
||||
linked without the Library, or if the work is itself a library. The
|
||||
threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data
|
||||
structure layouts and accessors, and small macros and small inline
|
||||
functions (ten lines or less in length), then the use of the object
|
||||
file is unrestricted, regardless of whether it is legally a derivative
|
||||
work. (Executables containing this object code plus portions of the
|
||||
Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may
|
||||
distribute the object code for the work under the terms of Section 6.
|
||||
Any executables containing that work also fall under Section 6,
|
||||
whether or not they are linked directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also compile or
|
||||
link a "work that uses the Library" with the Library to produce a
|
||||
work containing portions of the Library, and distribute that work
|
||||
under terms of your choice, provided that the terms permit
|
||||
modification of the work for the customer's own use and reverse
|
||||
engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the
|
||||
Library is used in it and that the Library and its use are covered by
|
||||
this License. You must supply a copy of this License. If the work
|
||||
during execution displays copyright notices, you must include the
|
||||
copyright notice for the Library among them, as well as a reference
|
||||
directing the user to the copy of this License. Also, you must do one
|
||||
of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding
|
||||
machine-readable source code for the Library including whatever
|
||||
changes were used in the work (which must be distributed under
|
||||
Sections 1 and 2 above); and, if the work is an executable linked
|
||||
with the Library, with the complete machine-readable "work that
|
||||
uses the Library", as object code and/or source code, so that the
|
||||
user can modify the Library and then relink to produce a modified
|
||||
executable containing the modified Library. (It is understood
|
||||
that the user who changes the contents of definitions files in the
|
||||
Library will not necessarily be able to recompile the application
|
||||
to use the modified definitions.)
|
||||
|
||||
b) Accompany the work with a written offer, valid for at
|
||||
least three years, to give the same user the materials
|
||||
specified in Subsection 6a, above, for a charge no more
|
||||
than the cost of performing this distribution.
|
||||
|
||||
c) If distribution of the work is made by offering access to copy
|
||||
from a designated place, offer equivalent access to copy the above
|
||||
specified materials from the same place.
|
||||
|
||||
d) Verify that the user has already received a copy of these
|
||||
materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the
|
||||
Library" must include any data and utility programs needed for
|
||||
reproducing the executable from it. However, as a special exception,
|
||||
the source code distributed need not include anything that is normally
|
||||
distributed (in either source or binary form) with the major
|
||||
components (compiler, kernel, and so on) of the operating system on
|
||||
which the executable runs, unless that component itself accompanies
|
||||
the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license
|
||||
restrictions of other proprietary libraries that do not normally
|
||||
accompany the operating system. Such a contradiction means you cannot
|
||||
use both them and the Library together in an executable that you
|
||||
distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the
|
||||
Library side-by-side in a single library together with other library
|
||||
facilities not covered by this License, and distribute such a combined
|
||||
library, provided that the separate distribution of the work based on
|
||||
the Library and of the other library facilities is otherwise
|
||||
permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities. This must be distributed under the terms of the
|
||||
Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact
|
||||
that part of it is a work based on the Library, and explaining
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute
|
||||
the Library except as expressly provided under this License. Any
|
||||
attempt otherwise to copy, modify, sublicense, link with, or
|
||||
distribute the Library is void, and will automatically terminate your
|
||||
rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses
|
||||
terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Library or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Library (or any work based on the
|
||||
Library), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the
|
||||
Library), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute, link with or modify the Library
|
||||
subject to these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Library at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Library by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Library under this License may add
|
||||
an explicit geographical distribution limitation excluding those countries,
|
||||
so that distribution is permitted only in or among countries not thus
|
||||
excluded. In such case, this License incorporates the limitation as if
|
||||
written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new
|
||||
versions of the Library General Public License from time to time.
|
||||
Such new versions will be similar in spirit to the present version,
|
||||
but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library
|
||||
specifies a version number of this License which applies to it and
|
||||
"any later version", you have the option of following the terms and
|
||||
conditions either of that version or of any later version published by
|
||||
the Free Software Foundation. If the Library does not specify a
|
||||
license version number, you may choose any version ever published by
|
||||
the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free
|
||||
programs whose distribution conditions are incompatible with these,
|
||||
write to the author to ask for permission. For software which is
|
||||
copyrighted by the Free Software Foundation, write to the Free
|
||||
Software Foundation; we sometimes make exceptions for this. Our
|
||||
decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new library, and you want it to be of the greatest
|
||||
possible use to the public, we recommend making it free software that
|
||||
everyone can redistribute and change. You can do so by permitting
|
||||
redistribution under these terms (or, alternatively, under the terms of the
|
||||
ordinary General Public License).
|
||||
|
||||
To apply these terms, attach the following notices to the library. It is
|
||||
safest to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least the
|
||||
"copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the library's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the library, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
||||
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1990
|
||||
Ty Coon, President of Vice
|
||||
|
||||
That's all there is to it!
|
||||
@@ -0,0 +1,28 @@
|
||||
Copyright (c) 2002, Xiph.org Foundation
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
- Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
- Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
- Neither the name of the Xiph.org Foundation nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION
|
||||
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@@ -0,0 +1,170 @@
|
||||
Apache License
|
||||
|
||||
Version 2.0, January 2004
|
||||
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction, and
|
||||
distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by the
|
||||
copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all other
|
||||
entities that control, are controlled by, or are under common control
|
||||
with that entity. For the purposes of this definition, "control" means
|
||||
(i) the power, direct or indirect, to cause the direction or management
|
||||
of such entity, whether by contract or otherwise, or (ii) ownership
|
||||
of fifty percent (50%) or more of the outstanding shares, or (iii)
|
||||
beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity exercising
|
||||
permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation source,
|
||||
and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but not
|
||||
limited to compiled object code, generated documentation, and
|
||||
conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or Object
|
||||
form, made available under the License, as indicated by a copyright
|
||||
notice that is included in or attached to the work (an example is
|
||||
provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including the original
|
||||
version of the Work and any modifications or additions to that Work or
|
||||
Derivative Works thereof, that is intentionally submitted to Licensor
|
||||
for inclusion in the Work by the copyright owner or by an individual
|
||||
or Legal Entity authorized to submit on behalf of the copyright owner.
|
||||
For the purposes of this definition, "submitted" means any form of
|
||||
electronic, verbal, or written communication sent to the Licensor
|
||||
or its representatives, including but not limited to communication
|
||||
on electronic mailing lists, source code control systems, and issue
|
||||
tracking systems that are managed by, or on behalf of, the Licensor
|
||||
for the purpose of discussing and improving the Work, but excluding
|
||||
communication that is conspicuously marked or otherwise designated in
|
||||
writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions
|
||||
of this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of, publicly
|
||||
display, publicly perform, sublicense, and distribute the Work and such
|
||||
Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except
|
||||
as stated in this section) patent license to make, have made, use,
|
||||
offer to sell, sell, import, and otherwise transfer the Work, where
|
||||
such license applies only to those patent claims licensable by such
|
||||
Contributor that are necessarily infringed by their Contribution(s)
|
||||
alone or by combination of their Contribution(s) with the Work to which
|
||||
such Contribution(s) was submitted. If You institute patent litigation
|
||||
against any entity (including a cross-claim or counterclaim in a
|
||||
lawsuit) alleging that the Work or a Contribution incorporated within
|
||||
the Work constitutes direct or contributory patent infringement, then
|
||||
any patent licenses granted to You under this License for that Work
|
||||
shall terminate as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You meet the
|
||||
following conditions:
|
||||
|
||||
You must give any other recipients of the Work or Derivative Works a
|
||||
copy of this License; and
|
||||
|
||||
You must cause any modified files to carry prominent notices stating
|
||||
that You changed the files; and
|
||||
|
||||
You must retain, in the Source form of any Derivative Works that You
|
||||
distribute, all copyright, patent, trademark, and attribution notices
|
||||
from the Source form of the Work, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works; and
|
||||
|
||||
If the Work includes a "NOTICE" text file as part of its distribution,
|
||||
then any Derivative Works that You distribute must include a readable
|
||||
copy of the attribution notices contained within such NOTICE file,
|
||||
excluding those notices that do not pertain to any part of the
|
||||
Derivative Works, in at least one of the following places: within a
|
||||
NOTICE text file distributed as part of the Derivative Works; within
|
||||
the Source form or documentation, if provided along with the Derivative
|
||||
Works; or, within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents of the
|
||||
NOTICE file are for informational purposes only and do not modify the
|
||||
License. You may add Your own attribution notices within Derivative
|
||||
Works that You distribute, alongside or as an addendum to the NOTICE
|
||||
text from the Work, provided that such additional attribution notices
|
||||
cannot be construed as modifying the License. You may add Your own
|
||||
copyright statement to Your modifications and may provide additional
|
||||
or different license terms and conditions for use, reproduction, or
|
||||
distribution of Your modifications, or for any such Derivative Works as
|
||||
a whole, provided Your use, reproduction, and distribution of the Work
|
||||
otherwise complies with the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work by
|
||||
You to the Licensor shall be under the terms and conditions of this
|
||||
License, without any additional terms or conditions. Notwithstanding
|
||||
the above, nothing herein shall supersede or modify the terms of any
|
||||
separate license agreement you may have executed with Licensor regarding
|
||||
such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or agreed
|
||||
to in writing, Licensor provides the Work (and each Contributor
|
||||
provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR
|
||||
CONDITIONS OF ANY KIND, either express or implied, including, without
|
||||
limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT,
|
||||
MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are
|
||||
solely responsible for determining the appropriateness of using or
|
||||
redistributing the Work and assume any risks associated with Your
|
||||
exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise, unless
|
||||
required by applicable law (such as deliberate and grossly negligent
|
||||
acts) or agreed to in writing, shall any Contributor be liable to You
|
||||
for damages, including any direct, indirect, special, incidental, or
|
||||
consequential damages of any character arising as a result of this
|
||||
License or out of the use or inability to use the Work (including but
|
||||
not limited to damages for loss of goodwill, work stoppage, computer
|
||||
failure or malfunction, or any and all other commercial damages or
|
||||
losses), even if such Contributor has been advised of the possibility of
|
||||
such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing the
|
||||
Work or Derivative Works thereof, You may choose to offer, and charge a
|
||||
fee for, acceptance of support, warranty, indemnity, or other liability
|
||||
obligations and/or rights consistent with this License. However, in
|
||||
accepting such obligations, You may act only on Your own behalf and
|
||||
on Your sole responsibility, not on behalf of any other Contributor,
|
||||
and only if You agree to indemnify, defend, and hold each Contributor
|
||||
harmless for any liability incurred by, or claims asserted against, such
|
||||
Contributor by reason of your accepting any such warranty or additional
|
||||
liability.
|
||||
@@ -0,0 +1,503 @@
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
Version 2.1, February 1999
|
||||
|
||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the Lesser GPL. It also counts
|
||||
as the successor of the GNU Library Public License, version 2, hence
|
||||
the version number 2.1.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software--to make sure the software is free for all its users.
|
||||
|
||||
This license, the Lesser General Public License, applies to some
|
||||
specially designated software packages--typically libraries--of the
|
||||
Free Software Foundation and other authors who decide to use it. You
|
||||
can use it too, but we suggest you first think carefully about whether
|
||||
this license or the ordinary General Public License is the better
|
||||
strategy to use in any particular case, based on the explanations below.
|
||||
|
||||
When we speak of free software, we are referring to freedom of use,
|
||||
not price. Our General Public Licenses are designed to make sure that
|
||||
you have the freedom to distribute copies of free software (and charge
|
||||
for this service if you wish); that you receive source code or can get
|
||||
it if you want it; that you can change the software and use pieces of
|
||||
it in new free programs; and that you are informed that you can do
|
||||
these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
distributors to deny you these rights or to ask you to surrender these
|
||||
rights. These restrictions translate to certain responsibilities for
|
||||
you if you distribute copies of the library or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis
|
||||
or for a fee, you must give the recipients all the rights that we gave
|
||||
you. You must make sure that they, too, receive or can get the source
|
||||
code. If you link other code with the library, you must provide
|
||||
complete object files to the recipients, so that they can relink them
|
||||
with the library after making changes to the library and recompiling
|
||||
it. And you must show them these terms so they know their rights.
|
||||
|
||||
We protect your rights with a two-step method: (1) we copyright the
|
||||
library, and (2) we offer you this license, which gives you legal
|
||||
permission to copy, distribute and/or modify the library.
|
||||
|
||||
To protect each distributor, we want to make it very clear that
|
||||
there is no warranty for the free library. Also, if the library is
|
||||
modified by someone else and passed on, the recipients should know
|
||||
that what they have is not the original version, so that the original
|
||||
author's reputation will not be affected by problems that might be
|
||||
introduced by others.
|
||||
|
||||
Finally, software patents pose a constant threat to the existence of
|
||||
any free program. We wish to make sure that a company cannot
|
||||
effectively restrict the users of a free program by obtaining a
|
||||
restrictive license from a patent holder. Therefore, we insist that
|
||||
any patent license obtained for a version of the library must be
|
||||
consistent with the full freedom of use specified in this license.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the
|
||||
ordinary GNU General Public License. This license, the GNU Lesser
|
||||
General Public License, applies to certain designated libraries, and
|
||||
is quite different from the ordinary General Public License. We use
|
||||
this license for certain libraries in order to permit linking those
|
||||
libraries into non-free programs.
|
||||
|
||||
When a program is linked with a library, whether statically or using
|
||||
a shared library, the combination of the two is legally speaking a
|
||||
combined work, a derivative of the original library. The ordinary
|
||||
General Public License therefore permits such linking only if the
|
||||
entire combination fits its criteria of freedom. The Lesser General
|
||||
Public License permits more lax criteria for linking other code with
|
||||
the library.
|
||||
|
||||
We call this license the "Lesser" General Public License because it
|
||||
does Less to protect the user's freedom than the ordinary General
|
||||
Public License. It also provides other free software developers Less
|
||||
of an advantage over competing non-free programs. These disadvantages
|
||||
are the reason we use the ordinary General Public License for many
|
||||
libraries. However, the Lesser license provides advantages in certain
|
||||
special circumstances.
|
||||
|
||||
For example, on rare occasions, there may be a special need to
|
||||
encourage the widest possible use of a certain library, so that it becomes
|
||||
a de-facto standard. To achieve this, non-free programs must be
|
||||
allowed to use the library. A more frequent case is that a free
|
||||
library does the same job as widely used non-free libraries. In this
|
||||
case, there is little to gain by limiting the free library to free
|
||||
software only, so we use the Lesser General Public License.
|
||||
|
||||
In other cases, permission to use a particular library in non-free
|
||||
programs enables a greater number of people to use a large body of
|
||||
free software. For example, permission to use the GNU C Library in
|
||||
non-free programs enables many more people to use the whole GNU
|
||||
operating system, as well as its variant, the GNU/Linux operating
|
||||
system.
|
||||
|
||||
Although the Lesser General Public License is Less protective of the
|
||||
users' freedom, it does ensure that the user of a program that is
|
||||
linked with the Library has the freedom and the wherewithal to run
|
||||
that program using a modified version of the Library.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow. Pay close attention to the difference between a
|
||||
"work based on the library" and a "work that uses the library". The
|
||||
former contains code derived from the library, whereas the latter must
|
||||
be combined with the library in order to run.
|
||||
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library or other
|
||||
program which contains a notice placed by the copyright holder or
|
||||
other authorized party saying it may be distributed under the terms of
|
||||
this Lesser General Public License (also called "this License").
|
||||
Each licensee is addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data
|
||||
prepared so as to be conveniently linked with application programs
|
||||
(which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work
|
||||
which has been distributed under these terms. A "work based on the
|
||||
Library" means either the Library or any derivative work under
|
||||
copyright law: that is to say, a work containing the Library or a
|
||||
portion of it, either verbatim or with modifications and/or translated
|
||||
straightforwardly into another language. (Hereinafter, translation is
|
||||
included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for
|
||||
making modifications to it. For a library, complete source code means
|
||||
all the source code for all modules it contains, plus any associated
|
||||
interface definition files, plus the scripts used to control compilation
|
||||
and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running a program using the Library is not restricted, and output from
|
||||
such a program is covered only if its contents constitute a work based
|
||||
on the Library (independent of the use of the Library in a tool for
|
||||
writing it). Whether that is true depends on what the Library does
|
||||
and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's
|
||||
complete source code as you receive it, in any medium, provided that
|
||||
you conspicuously and appropriately publish on each copy an
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||
all the notices that refer to this License and to the absence of any
|
||||
warranty; and distribute a copy of this License along with the
|
||||
Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy,
|
||||
and you may at your option offer warranty protection in exchange for a
|
||||
fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion
|
||||
of it, thus forming a work based on the Library, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no
|
||||
charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a
|
||||
table of data to be supplied by an application program that uses
|
||||
the facility, other than as an argument passed when the facility
|
||||
is invoked, then you must make a good faith effort to ensure that,
|
||||
in the event an application does not supply such function or
|
||||
table, the facility still operates, and performs whatever part of
|
||||
its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has
|
||||
a purpose that is entirely well-defined independent of the
|
||||
application. Therefore, Subsection 2d requires that any
|
||||
application-supplied function or table used by this function must
|
||||
be optional: if the application does not supply it, the square
|
||||
root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Library,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Library, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library
|
||||
with the Library (or with a work based on the Library) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||
License instead of this License to a given copy of the Library. To do
|
||||
this, you must alter all the notices that refer to this License, so
|
||||
that they refer to the ordinary GNU General Public License, version 2,
|
||||
instead of to this License. (If a newer version than version 2 of the
|
||||
ordinary GNU General Public License has appeared, then you can specify
|
||||
that version instead if you wish.) Do not make any other change in
|
||||
these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for
|
||||
that copy, so the ordinary GNU General Public License applies to all
|
||||
subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of
|
||||
the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or
|
||||
derivative of it, under Section 2) in object code or executable form
|
||||
under the terms of Sections 1 and 2 above provided that you accompany
|
||||
it with the complete corresponding machine-readable source code, which
|
||||
must be distributed under the terms of Sections 1 and 2 above on a
|
||||
medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy
|
||||
from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place satisfies the requirement to
|
||||
distribute the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the
|
||||
Library, but is designed to work with the Library by being compiled or
|
||||
linked with it, is called a "work that uses the Library". Such a
|
||||
work, in isolation, is not a derivative work of the Library, and
|
||||
therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library
|
||||
creates an executable that is a derivative of the Library (because it
|
||||
contains portions of the Library), rather than a "work that uses the
|
||||
library". The executable is therefore covered by this License.
|
||||
Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file
|
||||
that is part of the Library, the object code for the work may be a
|
||||
derivative work of the Library even though the source code is not.
|
||||
Whether this is true is especially significant if the work can be
|
||||
linked without the Library, or if the work is itself a library. The
|
||||
threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data
|
||||
structure layouts and accessors, and small macros and small inline
|
||||
functions (ten lines or less in length), then the use of the object
|
||||
file is unrestricted, regardless of whether it is legally a derivative
|
||||
work. (Executables containing this object code plus portions of the
|
||||
Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may
|
||||
distribute the object code for the work under the terms of Section 6.
|
||||
Any executables containing that work also fall under Section 6,
|
||||
whether or not they are linked directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also combine or
|
||||
link a "work that uses the Library" with the Library to produce a
|
||||
work containing portions of the Library, and distribute that work
|
||||
under terms of your choice, provided that the terms permit
|
||||
modification of the work for the customer's own use and reverse
|
||||
engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the
|
||||
Library is used in it and that the Library and its use are covered by
|
||||
this License. You must supply a copy of this License. If the work
|
||||
during execution displays copyright notices, you must include the
|
||||
copyright notice for the Library among them, as well as a reference
|
||||
directing the user to the copy of this License. Also, you must do one
|
||||
of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding
|
||||
machine-readable source code for the Library including whatever
|
||||
changes were used in the work (which must be distributed under
|
||||
Sections 1 and 2 above); and, if the work is an executable linked
|
||||
with the Library, with the complete machine-readable "work that
|
||||
uses the Library", as object code and/or source code, so that the
|
||||
user can modify the Library and then relink to produce a modified
|
||||
executable containing the modified Library. (It is understood
|
||||
that the user who changes the contents of definitions files in the
|
||||
Library will not necessarily be able to recompile the application
|
||||
to use the modified definitions.)
|
||||
|
||||
b) Use a suitable shared library mechanism for linking with the
|
||||
Library. A suitable mechanism is one that (1) uses at run time a
|
||||
copy of the library already present on the user's computer system,
|
||||
rather than copying library functions into the executable, and (2)
|
||||
will operate properly with a modified version of the library, if
|
||||
the user installs one, as long as the modified version is
|
||||
interface-compatible with the version that the work was made with.
|
||||
|
||||
c) Accompany the work with a written offer, valid for at
|
||||
least three years, to give the same user the materials
|
||||
specified in Subsection 6a, above, for a charge no more
|
||||
than the cost of performing this distribution.
|
||||
|
||||
d) If distribution of the work is made by offering access to copy
|
||||
from a designated place, offer equivalent access to copy the above
|
||||
specified materials from the same place.
|
||||
|
||||
e) Verify that the user has already received a copy of these
|
||||
materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the
|
||||
Library" must include any data and utility programs needed for
|
||||
reproducing the executable from it. However, as a special exception,
|
||||
the materials to be distributed need not include anything that is
|
||||
normally distributed (in either source or binary form) with the major
|
||||
components (compiler, kernel, and so on) of the operating system on
|
||||
which the executable runs, unless that component itself accompanies
|
||||
the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license
|
||||
restrictions of other proprietary libraries that do not normally
|
||||
accompany the operating system. Such a contradiction means you cannot
|
||||
use both them and the Library together in an executable that you
|
||||
distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the
|
||||
Library side-by-side in a single library together with other library
|
||||
facilities not covered by this License, and distribute such a combined
|
||||
library, provided that the separate distribution of the work based on
|
||||
the Library and of the other library facilities is otherwise
|
||||
permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities. This must be distributed under the terms of the
|
||||
Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact
|
||||
that part of it is a work based on the Library, and explaining
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute
|
||||
the Library except as expressly provided under this License. Any
|
||||
attempt otherwise to copy, modify, sublicense, link with, or
|
||||
distribute the Library is void, and will automatically terminate your
|
||||
rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses
|
||||
terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Library or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Library (or any work based on the
|
||||
Library), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the
|
||||
Library), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute, link with or modify the Library
|
||||
subject to these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties with
|
||||
this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Library at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Library by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Library under this License may add
|
||||
an explicit geographical distribution limitation excluding those countries,
|
||||
so that distribution is permitted only in or among countries not thus
|
||||
excluded. In such case, this License incorporates the limitation as if
|
||||
written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new
|
||||
versions of the Lesser General Public License from time to time.
|
||||
Such new versions will be similar in spirit to the present version,
|
||||
but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library
|
||||
specifies a version number of this License which applies to it and
|
||||
"any later version", you have the option of following the terms and
|
||||
conditions either of that version or of any later version published by
|
||||
the Free Software Foundation. If the Library does not specify a
|
||||
license version number, you may choose any version ever published by
|
||||
the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free
|
||||
programs whose distribution conditions are incompatible with these,
|
||||
write to the author to ask for permission. For software which is
|
||||
copyrighted by the Free Software Foundation, write to the Free
|
||||
Software Foundation; we sometimes make exceptions for this. Our
|
||||
decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new library, and you want it to be of the greatest
|
||||
possible use to the public, we recommend making it free software that
|
||||
everyone can redistribute and change. You can do so by permitting
|
||||
redistribution under these terms (or, alternatively, under the terms of the
|
||||
ordinary General Public License).
|
||||
|
||||
To apply these terms, attach the following notices to the library. It is
|
||||
safest to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least the
|
||||
"copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the library's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the library, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
||||
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1990
|
||||
Ty Coon, President of Vice
|
||||
|
||||
That's all there is to it!
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
Copyright 1992, 1993, 1994 by Jutta Degener and Carsten Bormann,
|
||||
Technische Universitaet Berlin
|
||||
|
||||
Any use of this software is permitted provided that this notice is not
|
||||
removed and that neither the authors nor the Technische Universitaet Berlin
|
||||
are deemed to have made any representations as to the suitability of this
|
||||
software for any purpose nor are held responsible for any defects of
|
||||
this software. THERE IS ABSOLUTELY NO WARRANTY FOR THIS SOFTWARE.
|
||||
|
||||
As a matter of courtesy, the authors request to be informed about uses
|
||||
this software has found, about bugs in this software, and about any
|
||||
improvements that may be of general interest.
|
||||
|
||||
Berlin, 28.11.1994
|
||||
Jutta Degener
|
||||
Carsten Bormann
|
||||
@@ -0,0 +1,28 @@
|
||||
Copyright (c) 2002-2020 Xiph.org Foundation
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
- Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
- Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
- Neither the name of the Xiph.org Foundation nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION
|
||||
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@@ -0,0 +1,772 @@
|
||||
This is the file that contains the terms of use, copying, etc. for the mpg123 distribution package.
|
||||
|
||||
Main message, to include in "About ..." boxes, etc:
|
||||
|
||||
Copyright (c) 1995-2020 by Michael Hipp and others,
|
||||
free software under the terms of the LGPL v2.1
|
||||
|
||||
There is an attempt to cover the actual list of authors in the AUTHORS file.
|
||||
Project maintainer since 2006 is Thomas Orgis and many people have contributed
|
||||
since the Michael Hipp era, but he stays the initial source and it would
|
||||
be impractical to count them all individually, so it's "and others".
|
||||
Source files contain the phrase "the mpg123 project" to the same effect
|
||||
in their license boilerplate; especially those that were added after
|
||||
maintainership changed. The person mainly responsible for the first version
|
||||
is usually named in the phrase "initially written by ...".
|
||||
|
||||
All files in the distribution that don't carry a license note on their own are
|
||||
licensed under the terms of the LGPL 2.1; exceptions may apply, especially to
|
||||
files not in the official distribution but in the revision control repository.
|
||||
|
||||
The formal license text follows.
|
||||
|
||||
=======================
|
||||
1. The LGPL version 2.1
|
||||
=======================
|
||||
|
||||
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
Version 2.1, February 1999
|
||||
|
||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the Lesser GPL. It also counts
|
||||
as the successor of the GNU Library Public License, version 2, hence
|
||||
the version number 2.1.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software--to make sure the software is free for all its users.
|
||||
|
||||
This license, the Lesser General Public License, applies to some
|
||||
specially designated software packages--typically libraries--of the
|
||||
Free Software Foundation and other authors who decide to use it. You
|
||||
can use it too, but we suggest you first think carefully about whether
|
||||
this license or the ordinary General Public License is the better
|
||||
strategy to use in any particular case, based on the explanations below.
|
||||
|
||||
When we speak of free software, we are referring to freedom of use,
|
||||
not price. Our General Public Licenses are designed to make sure that
|
||||
you have the freedom to distribute copies of free software (and charge
|
||||
for this service if you wish); that you receive source code or can get
|
||||
it if you want it; that you can change the software and use pieces of
|
||||
it in new free programs; and that you are informed that you can do
|
||||
these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
distributors to deny you these rights or to ask you to surrender these
|
||||
rights. These restrictions translate to certain responsibilities for
|
||||
you if you distribute copies of the library or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis
|
||||
or for a fee, you must give the recipients all the rights that we gave
|
||||
you. You must make sure that they, too, receive or can get the source
|
||||
code. If you link other code with the library, you must provide
|
||||
complete object files to the recipients, so that they can relink them
|
||||
with the library after making changes to the library and recompiling
|
||||
it. And you must show them these terms so they know their rights.
|
||||
|
||||
We protect your rights with a two-step method: (1) we copyright the
|
||||
library, and (2) we offer you this license, which gives you legal
|
||||
permission to copy, distribute and/or modify the library.
|
||||
|
||||
To protect each distributor, we want to make it very clear that
|
||||
there is no warranty for the free library. Also, if the library is
|
||||
modified by someone else and passed on, the recipients should know
|
||||
that what they have is not the original version, so that the original
|
||||
author's reputation will not be affected by problems that might be
|
||||
introduced by others.
|
||||
|
||||
Finally, software patents pose a constant threat to the existence of
|
||||
any free program. We wish to make sure that a company cannot
|
||||
effectively restrict the users of a free program by obtaining a
|
||||
restrictive license from a patent holder. Therefore, we insist that
|
||||
any patent license obtained for a version of the library must be
|
||||
consistent with the full freedom of use specified in this license.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the
|
||||
ordinary GNU General Public License. This license, the GNU Lesser
|
||||
General Public License, applies to certain designated libraries, and
|
||||
is quite different from the ordinary General Public License. We use
|
||||
this license for certain libraries in order to permit linking those
|
||||
libraries into non-free programs.
|
||||
|
||||
When a program is linked with a library, whether statically or using
|
||||
a shared library, the combination of the two is legally speaking a
|
||||
combined work, a derivative of the original library. The ordinary
|
||||
General Public License therefore permits such linking only if the
|
||||
entire combination fits its criteria of freedom. The Lesser General
|
||||
Public License permits more lax criteria for linking other code with
|
||||
the library.
|
||||
|
||||
We call this license the "Lesser" General Public License because it
|
||||
does Less to protect the user's freedom than the ordinary General
|
||||
Public License. It also provides other free software developers Less
|
||||
of an advantage over competing non-free programs. These disadvantages
|
||||
are the reason we use the ordinary General Public License for many
|
||||
libraries. However, the Lesser license provides advantages in certain
|
||||
special circumstances.
|
||||
|
||||
For example, on rare occasions, there may be a special need to
|
||||
encourage the widest possible use of a certain library, so that it becomes
|
||||
a de-facto standard. To achieve this, non-free programs must be
|
||||
allowed to use the library. A more frequent case is that a free
|
||||
library does the same job as widely used non-free libraries. In this
|
||||
case, there is little to gain by limiting the free library to free
|
||||
software only, so we use the Lesser General Public License.
|
||||
|
||||
In other cases, permission to use a particular library in non-free
|
||||
programs enables a greater number of people to use a large body of
|
||||
free software. For example, permission to use the GNU C Library in
|
||||
non-free programs enables many more people to use the whole GNU
|
||||
operating system, as well as its variant, the GNU/Linux operating
|
||||
system.
|
||||
|
||||
Although the Lesser General Public License is Less protective of the
|
||||
users' freedom, it does ensure that the user of a program that is
|
||||
linked with the Library has the freedom and the wherewithal to run
|
||||
that program using a modified version of the Library.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow. Pay close attention to the difference between a
|
||||
"work based on the library" and a "work that uses the library". The
|
||||
former contains code derived from the library, whereas the latter must
|
||||
be combined with the library in order to run.
|
||||
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library or other
|
||||
program which contains a notice placed by the copyright holder or
|
||||
other authorized party saying it may be distributed under the terms of
|
||||
this Lesser General Public License (also called "this License").
|
||||
Each licensee is addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data
|
||||
prepared so as to be conveniently linked with application programs
|
||||
(which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work
|
||||
which has been distributed under these terms. A "work based on the
|
||||
Library" means either the Library or any derivative work under
|
||||
copyright law: that is to say, a work containing the Library or a
|
||||
portion of it, either verbatim or with modifications and/or translated
|
||||
straightforwardly into another language. (Hereinafter, translation is
|
||||
included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for
|
||||
making modifications to it. For a library, complete source code means
|
||||
all the source code for all modules it contains, plus any associated
|
||||
interface definition files, plus the scripts used to control compilation
|
||||
and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running a program using the Library is not restricted, and output from
|
||||
such a program is covered only if its contents constitute a work based
|
||||
on the Library (independent of the use of the Library in a tool for
|
||||
writing it). Whether that is true depends on what the Library does
|
||||
and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's
|
||||
complete source code as you receive it, in any medium, provided that
|
||||
you conspicuously and appropriately publish on each copy an
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||
all the notices that refer to this License and to the absence of any
|
||||
warranty; and distribute a copy of this License along with the
|
||||
Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy,
|
||||
and you may at your option offer warranty protection in exchange for a
|
||||
fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion
|
||||
of it, thus forming a work based on the Library, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no
|
||||
charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a
|
||||
table of data to be supplied by an application program that uses
|
||||
the facility, other than as an argument passed when the facility
|
||||
is invoked, then you must make a good faith effort to ensure that,
|
||||
in the event an application does not supply such function or
|
||||
table, the facility still operates, and performs whatever part of
|
||||
its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has
|
||||
a purpose that is entirely well-defined independent of the
|
||||
application. Therefore, Subsection 2d requires that any
|
||||
application-supplied function or table used by this function must
|
||||
be optional: if the application does not supply it, the square
|
||||
root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Library,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Library, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library
|
||||
with the Library (or with a work based on the Library) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||
License instead of this License to a given copy of the Library. To do
|
||||
this, you must alter all the notices that refer to this License, so
|
||||
that they refer to the ordinary GNU General Public License, version 2,
|
||||
instead of to this License. (If a newer version than version 2 of the
|
||||
ordinary GNU General Public License has appeared, then you can specify
|
||||
that version instead if you wish.) Do not make any other change in
|
||||
these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for
|
||||
that copy, so the ordinary GNU General Public License applies to all
|
||||
subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of
|
||||
the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or
|
||||
derivative of it, under Section 2) in object code or executable form
|
||||
under the terms of Sections 1 and 2 above provided that you accompany
|
||||
it with the complete corresponding machine-readable source code, which
|
||||
must be distributed under the terms of Sections 1 and 2 above on a
|
||||
medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy
|
||||
from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place satisfies the requirement to
|
||||
distribute the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the
|
||||
Library, but is designed to work with the Library by being compiled or
|
||||
linked with it, is called a "work that uses the Library". Such a
|
||||
work, in isolation, is not a derivative work of the Library, and
|
||||
therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library
|
||||
creates an executable that is a derivative of the Library (because it
|
||||
contains portions of the Library), rather than a "work that uses the
|
||||
library". The executable is therefore covered by this License.
|
||||
Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file
|
||||
that is part of the Library, the object code for the work may be a
|
||||
derivative work of the Library even though the source code is not.
|
||||
Whether this is true is especially significant if the work can be
|
||||
linked without the Library, or if the work is itself a library. The
|
||||
threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data
|
||||
structure layouts and accessors, and small macros and small inline
|
||||
functions (ten lines or less in length), then the use of the object
|
||||
file is unrestricted, regardless of whether it is legally a derivative
|
||||
work. (Executables containing this object code plus portions of the
|
||||
Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may
|
||||
distribute the object code for the work under the terms of Section 6.
|
||||
Any executables containing that work also fall under Section 6,
|
||||
whether or not they are linked directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also combine or
|
||||
link a "work that uses the Library" with the Library to produce a
|
||||
work containing portions of the Library, and distribute that work
|
||||
under terms of your choice, provided that the terms permit
|
||||
modification of the work for the customer's own use and reverse
|
||||
engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the
|
||||
Library is used in it and that the Library and its use are covered by
|
||||
this License. You must supply a copy of this License. If the work
|
||||
during execution displays copyright notices, you must include the
|
||||
copyright notice for the Library among them, as well as a reference
|
||||
directing the user to the copy of this License. Also, you must do one
|
||||
of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding
|
||||
machine-readable source code for the Library including whatever
|
||||
changes were used in the work (which must be distributed under
|
||||
Sections 1 and 2 above); and, if the work is an executable linked
|
||||
with the Library, with the complete machine-readable "work that
|
||||
uses the Library", as object code and/or source code, so that the
|
||||
user can modify the Library and then relink to produce a modified
|
||||
executable containing the modified Library. (It is understood
|
||||
that the user who changes the contents of definitions files in the
|
||||
Library will not necessarily be able to recompile the application
|
||||
to use the modified definitions.)
|
||||
|
||||
b) Use a suitable shared library mechanism for linking with the
|
||||
Library. A suitable mechanism is one that (1) uses at run time a
|
||||
copy of the library already present on the user's computer system,
|
||||
rather than copying library functions into the executable, and (2)
|
||||
will operate properly with a modified version of the library, if
|
||||
the user installs one, as long as the modified version is
|
||||
interface-compatible with the version that the work was made with.
|
||||
|
||||
c) Accompany the work with a written offer, valid for at
|
||||
least three years, to give the same user the materials
|
||||
specified in Subsection 6a, above, for a charge no more
|
||||
than the cost of performing this distribution.
|
||||
|
||||
d) If distribution of the work is made by offering access to copy
|
||||
from a designated place, offer equivalent access to copy the above
|
||||
specified materials from the same place.
|
||||
|
||||
e) Verify that the user has already received a copy of these
|
||||
materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the
|
||||
Library" must include any data and utility programs needed for
|
||||
reproducing the executable from it. However, as a special exception,
|
||||
the materials to be distributed need not include anything that is
|
||||
normally distributed (in either source or binary form) with the major
|
||||
components (compiler, kernel, and so on) of the operating system on
|
||||
which the executable runs, unless that component itself accompanies
|
||||
the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license
|
||||
restrictions of other proprietary libraries that do not normally
|
||||
accompany the operating system. Such a contradiction means you cannot
|
||||
use both them and the Library together in an executable that you
|
||||
distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the
|
||||
Library side-by-side in a single library together with other library
|
||||
facilities not covered by this License, and distribute such a combined
|
||||
library, provided that the separate distribution of the work based on
|
||||
the Library and of the other library facilities is otherwise
|
||||
permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities. This must be distributed under the terms of the
|
||||
Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact
|
||||
that part of it is a work based on the Library, and explaining
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute
|
||||
the Library except as expressly provided under this License. Any
|
||||
attempt otherwise to copy, modify, sublicense, link with, or
|
||||
distribute the Library is void, and will automatically terminate your
|
||||
rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses
|
||||
terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Library or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Library (or any work based on the
|
||||
Library), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the
|
||||
Library), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute, link with or modify the Library
|
||||
subject to these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties with
|
||||
this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Library at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Library by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Library under this License may add
|
||||
an explicit geographical distribution limitation excluding those countries,
|
||||
so that distribution is permitted only in or among countries not thus
|
||||
excluded. In such case, this License incorporates the limitation as if
|
||||
written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new
|
||||
versions of the Lesser General Public License from time to time.
|
||||
Such new versions will be similar in spirit to the present version,
|
||||
but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library
|
||||
specifies a version number of this License which applies to it and
|
||||
"any later version", you have the option of following the terms and
|
||||
conditions either of that version or of any later version published by
|
||||
the Free Software Foundation. If the Library does not specify a
|
||||
license version number, you may choose any version ever published by
|
||||
the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free
|
||||
programs whose distribution conditions are incompatible with these,
|
||||
write to the author to ask for permission. For software which is
|
||||
copyrighted by the Free Software Foundation, write to the Free
|
||||
Software Foundation; we sometimes make exceptions for this. Our
|
||||
decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
|
||||
====================
|
||||
2. The GPL version 2
|
||||
====================
|
||||
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
@@ -0,0 +1,31 @@
|
||||
Portions of this software are licensed under the BSD 3-Clause license.
|
||||
|
||||
Copyright (c) 2015, Archontis Politis
|
||||
Copyright (c) 2019, Anis A. Hireche
|
||||
Copyright (c) 2019, Christopher Robinson
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
* Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
* Neither the name of Spherical-Harmonic-Transform nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@@ -0,0 +1,21 @@
|
||||
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
|
||||
|
||||
This code is licensed under the MIT License (MIT).
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
of the Software, and to permit persons to whom the Software is furnished to do
|
||||
so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
@@ -0,0 +1,240 @@
|
||||
MinGW-w64 runtime licensing
|
||||
***************************
|
||||
|
||||
This program or library was built using MinGW-w64 and statically
|
||||
linked against the MinGW-w64 runtime. Some parts of the runtime
|
||||
are under licenses which require that the copyright and license
|
||||
notices are included when distributing the code in binary form.
|
||||
These notices are listed below.
|
||||
|
||||
|
||||
========================
|
||||
Overall copyright notice
|
||||
========================
|
||||
|
||||
Copyright (c) 2009, 2010, 2011, 2012, 2013 by the mingw-w64 project
|
||||
|
||||
This license has been certified as open source. It has also been designated
|
||||
as GPL compatible by the Free Software Foundation (FSF).
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions in source code must retain the accompanying copyright
|
||||
notice, this list of conditions, and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the accompanying
|
||||
copyright notice, this list of conditions, and the following disclaimer
|
||||
in the documentation and/or other materials provided with the
|
||||
distribution.
|
||||
3. Names of the copyright holders must not be used to endorse or promote
|
||||
products derived from this software without prior written permission
|
||||
from the copyright holders.
|
||||
4. The right to distribute this software or to use it for any purpose does
|
||||
not give you the right to use Servicemarks (sm) or Trademarks (tm) of
|
||||
the copyright holders. Use of them is covered by separate agreement
|
||||
with the copyright holders.
|
||||
5. If any files are modified, you must cause the modified files to carry
|
||||
prominent notices stating that you changed the files and the date of
|
||||
any change.
|
||||
|
||||
Disclaimer
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
|
||||
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
|
||||
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
|
||||
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
|
||||
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
========================================
|
||||
getopt, getopt_long, and getop_long_only
|
||||
========================================
|
||||
|
||||
Copyright (c) 2002 Todd C. Miller <Todd.Miller@courtesan.com>
|
||||
|
||||
Permission to use, copy, modify, and distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
||||
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
||||
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
|
||||
Sponsored in part by the Defense Advanced Research Projects
|
||||
Agency (DARPA) and Air Force Research Laboratory, Air Force
|
||||
Materiel Command, USAF, under agreement number F39502-99-1-0512.
|
||||
|
||||
* * * * * * *
|
||||
|
||||
Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
All rights reserved.
|
||||
|
||||
This code is derived from software contributed to The NetBSD Foundation
|
||||
by Dieter Baron and Thomas Klausner.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
1. Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
||||
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
|
||||
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
|
||||
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
===============================================================
|
||||
gdtoa: Converting between IEEE floating point numbers and ASCII
|
||||
===============================================================
|
||||
|
||||
The author of this software is David M. Gay.
|
||||
|
||||
Copyright (C) 1997, 1998, 1999, 2000, 2001 by Lucent Technologies
|
||||
All Rights Reserved
|
||||
|
||||
Permission to use, copy, modify, and distribute this software and
|
||||
its documentation for any purpose and without fee is hereby
|
||||
granted, provided that the above copyright notice appear in all
|
||||
copies and that both that the copyright notice and this
|
||||
permission notice and warranty disclaimer appear in supporting
|
||||
documentation, and that the name of Lucent or any of its entities
|
||||
not be used in advertising or publicity pertaining to
|
||||
distribution of the software without specific, written prior
|
||||
permission.
|
||||
|
||||
LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||||
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
|
||||
IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
|
||||
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
|
||||
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||||
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
||||
THIS SOFTWARE.
|
||||
|
||||
* * * * * * *
|
||||
|
||||
The author of this software is David M. Gay.
|
||||
|
||||
Copyright (C) 2005 by David M. Gay
|
||||
All Rights Reserved
|
||||
|
||||
Permission to use, copy, modify, and distribute this software and its
|
||||
documentation for any purpose and without fee is hereby granted,
|
||||
provided that the above copyright notice appear in all copies and that
|
||||
both that the copyright notice and this permission notice and warranty
|
||||
disclaimer appear in supporting documentation, and that the name of
|
||||
the author or any of his current or former employers not be used in
|
||||
advertising or publicity pertaining to distribution of the software
|
||||
without specific, written prior permission.
|
||||
|
||||
THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||||
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN
|
||||
NO EVENT SHALL THE AUTHOR OR ANY OF HIS CURRENT OR FORMER EMPLOYERS BE
|
||||
LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY
|
||||
DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||||
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||||
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||
SOFTWARE.
|
||||
|
||||
* * * * * * *
|
||||
|
||||
The author of this software is David M. Gay.
|
||||
|
||||
Copyright (C) 2004 by David M. Gay.
|
||||
All Rights Reserved
|
||||
Based on material in the rest of /netlib/fp/gdota.tar.gz,
|
||||
which is copyright (C) 1998, 2000 by Lucent Technologies.
|
||||
|
||||
Permission to use, copy, modify, and distribute this software and
|
||||
its documentation for any purpose and without fee is hereby
|
||||
granted, provided that the above copyright notice appear in all
|
||||
copies and that both that the copyright notice and this
|
||||
permission notice and warranty disclaimer appear in supporting
|
||||
documentation, and that the name of Lucent or any of its entities
|
||||
not be used in advertising or publicity pertaining to
|
||||
distribution of the software without specific, written prior
|
||||
permission.
|
||||
|
||||
LUCENT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
||||
INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
|
||||
IN NO EVENT SHALL LUCENT OR ANY OF ITS ENTITIES BE LIABLE FOR ANY
|
||||
SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
|
||||
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
|
||||
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
||||
THIS SOFTWARE.
|
||||
|
||||
|
||||
=========================
|
||||
Parts of the math library
|
||||
=========================
|
||||
|
||||
Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
|
||||
|
||||
Developed at SunSoft, a Sun Microsystems, Inc. business.
|
||||
Permission to use, copy, modify, and distribute this
|
||||
software is freely granted, provided that this notice
|
||||
is preserved.
|
||||
|
||||
* * * * * * *
|
||||
|
||||
Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
|
||||
|
||||
Developed at SunPro, a Sun Microsystems, Inc. business.
|
||||
Permission to use, copy, modify, and distribute this
|
||||
software is freely granted, provided that this notice
|
||||
is preserved.
|
||||
|
||||
* * * * * * *
|
||||
|
||||
FIXME: Cephes math lib
|
||||
Copyright (C) 1984-1998 Stephen L. Moshier
|
||||
|
||||
It sounds vague, but as to be found at
|
||||
<http://lists.debian.org/debian-legal/2004/12/msg00295.html>, it gives an
|
||||
impression that the author could be willing to give an explicit
|
||||
permission to distribute those files e.g. under a BSD style license. So
|
||||
probably there is no problem here, although it could be good to get a
|
||||
permission from the author and then add a license into the Cephes files
|
||||
in MinGW runtime. At least on follow-up it is marked that debian sees the
|
||||
version a-like BSD one. As MinGW.org (where those cephes parts are coming
|
||||
from) distributes them now over 6 years, it should be fine.
|
||||
|
||||
===================================
|
||||
Headers and IDLs imported from Wine
|
||||
===================================
|
||||
|
||||
Some header and IDL files were imported from the Wine project. These files
|
||||
are prominent maked in source. Their copyright belongs to contributors and
|
||||
they are distributed under LGPL license.
|
||||
|
||||
Disclaimer
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
@@ -0,0 +1,38 @@
|
||||
A modified PFFFT is included, with the following license.
|
||||
|
||||
Copyright (c) 2023 Christopher Robinson
|
||||
|
||||
Copyright (c) 2013 Julien Pommier ( pommier@modartt.com )
|
||||
|
||||
Copyright (c) 2004 the University Corporation for Atmospheric
|
||||
Research ("UCAR"). All rights reserved. Developed by NCAR's
|
||||
Computational and Information Systems Laboratory, UCAR,
|
||||
www.cisl.ucar.edu.
|
||||
|
||||
Redistribution and use of the Software in source and binary forms,
|
||||
with or without modification, is permitted provided that the
|
||||
following conditions are met:
|
||||
|
||||
- Neither the names of NCAR's Computational and Information Systems
|
||||
Laboratory, the University Corporation for Atmospheric Research,
|
||||
nor the names of its sponsors or contributors may be used to
|
||||
endorse or promote products derived from this Software without
|
||||
specific prior written permission.
|
||||
|
||||
- Redistributions of source code must retain the above copyright
|
||||
notices, this list of conditions, and the disclaimer below.
|
||||
|
||||
- Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions, and the disclaimer below in the
|
||||
documentation and/or other materials provided with the
|
||||
distribution.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE CONTRIBUTORS OR COPYRIGHT
|
||||
HOLDERS BE LIABLE FOR ANY CLAIM, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
||||
ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS WITH THE
|
||||
SOFTWARE.
|
||||
@@ -0,0 +1,57 @@
|
||||
Copyright (c) 2011 mingw-w64 project
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a
|
||||
copy of this software and associated documentation files (the "Software"),
|
||||
to deal in the Software without restriction, including without limitation
|
||||
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
and/or sell copies of the Software, and to permit persons to whom the
|
||||
Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
/*
|
||||
* Parts of this library are derived by:
|
||||
*
|
||||
* Posix Threads library for Microsoft Windows
|
||||
*
|
||||
* Use at own risk, there is no implied warranty to this code.
|
||||
* It uses undocumented features of Microsoft Windows that can change
|
||||
* at any time in the future.
|
||||
*
|
||||
* (C) 2010 Lockless Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
*
|
||||
*
|
||||
* * Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
* * Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
* * Neither the name of Lockless Inc. nor the names of its contributors may be
|
||||
* used to endorse or promote products derived from this software without
|
||||
* specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AN
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
* IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
|
||||
* BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
|
||||
* OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
@@ -0,0 +1,44 @@
|
||||
Copyright 2001-2011 Xiph.Org, Skype Limited, Octasic,
|
||||
Jean-Marc Valin, Timothy B. Terriberry,
|
||||
CSIRO, Gregory Maxwell, Mark Borgerding,
|
||||
Erik de Castro Lopo
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
- Redistributions of source code must retain the above copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
|
||||
- Redistributions in binary form must reproduce the above copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
|
||||
- Neither the name of Internet Society, IETF or IETF Trust, nor the
|
||||
names of specific contributors, may be used to endorse or promote
|
||||
products derived from this software without specific prior written
|
||||
permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
|
||||
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
||||
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
||||
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
||||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
||||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
Opus is subject to the royalty-free patent licenses which are
|
||||
specified at:
|
||||
|
||||
Xiph.Org Foundation:
|
||||
https://datatracker.ietf.org/ipr/1524/
|
||||
|
||||
Microsoft Corporation:
|
||||
https://datatracker.ietf.org/ipr/1914/
|
||||
|
||||
Broadcom Corporation:
|
||||
https://datatracker.ietf.org/ipr/1526/
|
||||
@@ -144,12 +144,11 @@ Besides the 200 million instructions of a call, a Lua screen is held to what run
|
||||
- memory: a screen holds at most 128 MB: its Lua heap and the pixels of its images, fonts and sprites (4 bytes a pixel
|
||||
of an image, 1 of a font or a sprite). An object that would take the screen over is refused (`memory limit
|
||||
exceeded`), and a screen found holding more stops with that error. Garbage doesn't count: the check collects it
|
||||
first. Where LuaJIT takes an allocator of the game's (2.1 in its GC64 mode), anything over twice the limit is refused
|
||||
as it is asked for (`not enough memory`); the game's LuaJIT 2.0 on 64-bit Windows takes none, and there the heap is
|
||||
checked every thousand instructions and before the calls below, and whatever a script makes between two checks is
|
||||
made whole first: every concatenation (`a .. b`) within one interval of a thousand instructions, so a loop doubling a
|
||||
string (`for i = 1, 11 do s = s .. s end` on a 1 MB `s`) gets to LuaJIT's own heap limit of about 2 GB before the
|
||||
check sees it;
|
||||
first, every thousand instructions and before the calls below. Between the checks the screen's heap goes through a
|
||||
counter of the game's, in front of LuaJIT's own allocator, which refuses a block that would take the screen over
|
||||
twice the limit as it is asked for (`not enough memory`, an error the script may catch). So what one instruction
|
||||
makes is held as well: a loop doubling a string (`for i = 1, 11 do s = s .. s end` on a 1 MB `s`) stops at the
|
||||
concatenation that would go over 256 MB, not at LuaJIT's own heap limit of about 2 GB;
|
||||
- `string.rep` makes no string over 1 MB; `string.format`, `table.concat` and `string.gsub` (with a string or a table to
|
||||
replace with) refuse a result that may be over the memory of a screen, counted from the lengths of what they are
|
||||
given;
|
||||
|
||||
+93
-69
@@ -32,7 +32,7 @@ http://mozilla.org/MPL/2.0/.
|
||||
|
||||
#include <algorithm>
|
||||
#include <array>
|
||||
#include <cstdlib>
|
||||
#include <atomic>
|
||||
#include <cstring>
|
||||
#include <format>
|
||||
#include <new>
|
||||
@@ -57,22 +57,61 @@ constexpr char sprite_metatable[]{"eu07.sprite"};
|
||||
// the address is the key of the program in the registry of its state
|
||||
constexpr char program_key{0};
|
||||
|
||||
// the memory of a screen: what its Lua heap holds, when the allocator counts it, and the pixels of its images, fonts
|
||||
// and sprites, which the objects keep outside the heap
|
||||
// what set_lua_screen_memory_limit() set
|
||||
std::atomic<std::size_t> &memory_limit_setting()
|
||||
{
|
||||
static std::atomic<std::size_t> setting{max_screen_memory};
|
||||
return setting;
|
||||
}
|
||||
|
||||
// what lua_screen_memory_peak() gives
|
||||
std::atomic<std::size_t> &memory_peak()
|
||||
{
|
||||
static std::atomic<std::size_t> peak{0};
|
||||
return peak;
|
||||
}
|
||||
|
||||
// the memory of a screen: what its Lua heap holds and the pixels of its images, fonts and sprites, which the objects
|
||||
// keep outside the heap
|
||||
struct screen_memory
|
||||
{
|
||||
std::size_t limit{max_screen_memory}; // what the screen may hold, read when its state is made
|
||||
std::size_t heap{0};
|
||||
std::size_t objects{0};
|
||||
bool counted{false}; // the state was made with limited_alloc
|
||||
std::size_t peak{0}; // the most the screen held
|
||||
bool enforced{false}; // a call into the script is in progress: the allocator refuses what goes over the limit
|
||||
// what the screen holds when it is checked next (lua_program::over_memory) with a full collection
|
||||
std::size_t collect_at{max_screen_memory};
|
||||
// LuaJIT's own allocator of the state, which limited_alloc gives the blocks to
|
||||
lua_Alloc base{nullptr};
|
||||
void *base_data{nullptr};
|
||||
};
|
||||
|
||||
// the allocator of a screen's state (lua_newstate), which refuses a block that would take the screen over twice
|
||||
// max_screen_memory (what it holds, and its garbage between the collections) while a call into the script is in
|
||||
// progress: LuaJIT raises "not enough memory" there, in the protected call. the game's own work between the calls isn't
|
||||
// refused, as it isn't protected
|
||||
// keeps the most the screen held
|
||||
void note_peak(screen_memory &Memory)
|
||||
{
|
||||
auto const held{Memory.heap + Memory.objects};
|
||||
if (held <= Memory.peak)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Memory.peak = held;
|
||||
auto &peak{memory_peak()};
|
||||
auto seen{peak.load()};
|
||||
while (held > seen && false == peak.compare_exchange_weak(seen, held))
|
||||
{
|
||||
// a failed exchange put the value another screen stored in seen; try again while held is still more
|
||||
}
|
||||
}
|
||||
|
||||
// the allocator of a screen's state, put in front of LuaJIT's own (lua_setallocf) once the state is made: LuaJIT 2.0
|
||||
// on x64 (the game's on Windows) and 2.1 on x64 without GC64 make no state with an allocator of the game's
|
||||
// (lua_newstate gives nullptr), as their heap has to stay in the low addresses only their own allocator keeps to. so
|
||||
// LuaJIT's allocator still makes every block; this one counts them, and refuses a block that would take the screen over
|
||||
// twice its limit (what it holds, and its garbage between the collections) while a call into the script is in
|
||||
// progress: LuaJIT raises "not enough memory" there, in the protected call, before the block is made. that holds what
|
||||
// one instruction makes, which the instruction hook sees only once it is made (a concatenation, a .. b). the game's own
|
||||
// work between the calls isn't refused, as it isn't protected
|
||||
void *limited_alloc(void *Data, void *Block, std::size_t Old, std::size_t New)
|
||||
{
|
||||
auto &memory{*static_cast<screen_memory *>(Data)};
|
||||
@@ -80,20 +119,15 @@ void *limited_alloc(void *Data, void *Block, std::size_t Old, std::size_t New)
|
||||
{
|
||||
Old = 0;
|
||||
}
|
||||
if (New == 0)
|
||||
{
|
||||
std::free(Block);
|
||||
memory.heap -= Old;
|
||||
return nullptr;
|
||||
}
|
||||
if (New > Old && memory.enforced && memory.heap - Old + New + memory.objects > 2 * max_screen_memory)
|
||||
if (New > Old && memory.enforced && memory.heap - std::min(Old, memory.heap) + New + memory.objects > 2 * memory.limit)
|
||||
{
|
||||
return nullptr;
|
||||
}
|
||||
auto *result{std::realloc(Block, New)};
|
||||
if (result != nullptr)
|
||||
auto *result{memory.base(memory.base_data, Block, Old, New)};
|
||||
if (New == 0 || result != nullptr)
|
||||
{
|
||||
memory.heap = memory.heap - Old + New;
|
||||
memory.heap = memory.heap - std::min(Old, memory.heap) + New;
|
||||
note_peak(memory);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -111,6 +145,12 @@ class lua_program final : public program
|
||||
{
|
||||
// the finalizers lua_close runs aren't counted: the budget of the last call may be spent
|
||||
lua_sethook(m_state, nullptr, 0, 0);
|
||||
// LuaJIT's own allocator back: lua_close frees the whole heap of its allocator only when the state has it,
|
||||
// and otherwise leaves the heap's own bookkeeping behind
|
||||
if (memory.base != nullptr)
|
||||
{
|
||||
lua_setallocf(m_state, memory.base, memory.base_data);
|
||||
}
|
||||
lua_close(m_state);
|
||||
}
|
||||
}
|
||||
@@ -130,7 +170,7 @@ class lua_program final : public program
|
||||
char const *stopped{nullptr}; // why the call in progress is being stopped: the hook raises it at every instruction
|
||||
screen_memory memory;
|
||||
|
||||
// true when the screen would hold more than max_screen_memory with Adding bytes more. checked with a full collection
|
||||
// true when the screen would hold more than its limit with Adding bytes more. checked with a full collection
|
||||
// once it has made a quarter of the limit since the last one, so a screen near its limit isn't collected over and
|
||||
// over
|
||||
bool over_memory(lua_State *L, std::size_t Adding);
|
||||
@@ -156,20 +196,15 @@ lua_program *program_of(lua_State *L)
|
||||
|
||||
bool lua_program::over_memory(lua_State *L, std::size_t const Adding)
|
||||
{
|
||||
auto const used{[this, L] {
|
||||
auto const heap{memory.counted ? memory.heap
|
||||
: static_cast<std::size_t>(lua_gc(L, LUA_GCCOUNT, 0)) * 1024 + static_cast<std::size_t>(lua_gc(L, LUA_GCCOUNTB, 0))};
|
||||
return heap + memory.objects;
|
||||
}};
|
||||
if (used() + Adding <= memory.collect_at)
|
||||
if (memory.heap + memory.objects + Adding <= memory.collect_at)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
// what is garbage doesn't count
|
||||
lua_gc(L, LUA_GCCOLLECT, 0);
|
||||
auto const held{used()};
|
||||
memory.collect_at = std::max(max_screen_memory, held + max_screen_memory / 4);
|
||||
return held + Adding > max_screen_memory;
|
||||
auto const held{memory.heap + memory.objects};
|
||||
memory.collect_at = std::max(memory.limit, held + memory.limit / 4);
|
||||
return held + Adding > memory.limit;
|
||||
}
|
||||
|
||||
void count_hook(lua_State *L, lua_Debug * /*Debug*/)
|
||||
@@ -188,7 +223,7 @@ void count_hook(lua_State *L, lua_Debug * /*Debug*/)
|
||||
}
|
||||
else if (self->over_memory(L, 0))
|
||||
{
|
||||
// what the allocator doesn't refuse (where the screen has none of its own) is caught here
|
||||
// what the allocator lets through, up to twice the limit with the garbage, is caught here
|
||||
self->stopped = "memory limit exceeded";
|
||||
}
|
||||
}
|
||||
@@ -208,10 +243,17 @@ void reserve_memory(lua_State *L, std::size_t const Bytes)
|
||||
{
|
||||
if (auto *self{program_of(L)}; self != nullptr && self->over_memory(L, Bytes))
|
||||
{
|
||||
luaL_error(L, "memory limit exceeded (%d MB)", static_cast<int>(max_screen_memory / (1024 * 1024)));
|
||||
luaL_error(L, "memory limit exceeded (%d MB)", static_cast<int>(self->memory.limit / (1024 * 1024)));
|
||||
}
|
||||
}
|
||||
|
||||
// the memory the screen of the state may hold
|
||||
std::size_t memory_limit(lua_State *L)
|
||||
{
|
||||
auto const *self{program_of(L)};
|
||||
return self != nullptr ? self->memory.limit : max_screen_memory;
|
||||
}
|
||||
|
||||
// objects of the api -------------------------------------------------------------------------------------------------
|
||||
|
||||
// where the userdata of an object keeps the bytes it counts in the screen's memory, after the object
|
||||
@@ -230,6 +272,7 @@ template <typename Type_> std::remove_cvref_t<Type_> *push_object(lua_State *L,
|
||||
if (auto *self{program_of(L)}; self != nullptr)
|
||||
{
|
||||
self->memory.objects += Bytes;
|
||||
note_peak(self->memory);
|
||||
}
|
||||
luaL_getmetatable(L, Metatable);
|
||||
lua_setmetatable(L, -2);
|
||||
@@ -855,7 +898,7 @@ int api_repeat(lua_State *L)
|
||||
// the result may be over the memory of a screen. what they make otherwise is counted with the rest of the heap
|
||||
int too_large(lua_State *L, char const *Function)
|
||||
{
|
||||
return luaL_error(L, "%s: the result may be over the memory of a screen (%d MB)", Function, static_cast<int>(max_screen_memory / (1024 * 1024)));
|
||||
return luaL_error(L, "%s: the result may be over the memory of a screen (%d MB)", Function, static_cast<int>(memory_limit(L) / (1024 * 1024)));
|
||||
}
|
||||
|
||||
// calls the library's own function, the upvalue, with the arguments, and returns what it returns
|
||||
@@ -878,7 +921,7 @@ int api_format(lua_State *L)
|
||||
{
|
||||
total += lua_type(L, idx) == LUA_TSTRING ? 4.0 * static_cast<double>(lua_objlen(L, idx)) : 512.0;
|
||||
}
|
||||
if (total > static_cast<double>(max_screen_memory))
|
||||
if (total > static_cast<double>(memory_limit(L)))
|
||||
{
|
||||
return too_large(L, "string.format");
|
||||
}
|
||||
@@ -894,6 +937,7 @@ int api_concat(lua_State *L)
|
||||
luaL_optlstring(L, 2, "", &separator);
|
||||
auto const first{luaL_optinteger(L, 3, 1)};
|
||||
auto const last{lua_isnoneornil(L, 4) ? static_cast<lua_Integer>(lua_objlen(L, 1)) : luaL_checkinteger(L, 4)};
|
||||
auto const limit{static_cast<double>(memory_limit(L))};
|
||||
auto total{0.0};
|
||||
for (auto idx = first; idx <= last; ++idx)
|
||||
{
|
||||
@@ -906,7 +950,7 @@ int api_concat(lua_State *L)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (total > static_cast<double>(max_screen_memory))
|
||||
if (total > limit)
|
||||
{
|
||||
return too_large(L, "table.concat");
|
||||
}
|
||||
@@ -978,7 +1022,7 @@ int api_pattern(lua_State *L)
|
||||
{
|
||||
auto const size{static_cast<double>(subject)};
|
||||
auto const matches{lua_isnumber(L, 4) ? std::clamp(static_cast<double>(lua_tonumber(L, 4)), 0.0, size + 1.0) : size + 1.0};
|
||||
if (auto const replaced{replacement_length(L, 3, size, matches)}; replaced.has_value() && size + *replaced > static_cast<double>(max_screen_memory))
|
||||
if (auto const replaced{replacement_length(L, 3, size, matches)}; replaced.has_value() && size + *replaced > static_cast<double>(memory_limit(L)))
|
||||
{
|
||||
return too_large(L, name);
|
||||
}
|
||||
@@ -1195,46 +1239,20 @@ int call_render(lua_State *L)
|
||||
return 1;
|
||||
}
|
||||
|
||||
// true when a screen's state can be made with an allocator of its own: LuaJIT 2.0 on x64, and 2.1 on x64 without GC64,
|
||||
// refuse one (lua_newstate gives nullptr, and writes so to stderr: 2.0 isn't asked)
|
||||
bool custom_allocator_works()
|
||||
{
|
||||
#if LUAJIT_VERSION_NUM < 20100
|
||||
if constexpr (sizeof(void *) == 8)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
static bool const works{[] {
|
||||
screen_memory probe;
|
||||
auto *state{lua_newstate(limited_alloc, &probe)};
|
||||
if (state == nullptr)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
lua_close(state);
|
||||
return true;
|
||||
}()};
|
||||
return works;
|
||||
}
|
||||
|
||||
bool lua_program::start()
|
||||
{
|
||||
// the screen's own allocator counts its memory, where LuaJIT takes one
|
||||
if (custom_allocator_works())
|
||||
{
|
||||
m_state = lua_newstate(limited_alloc, &memory);
|
||||
memory.counted = m_state != nullptr;
|
||||
}
|
||||
if (m_state == nullptr)
|
||||
{
|
||||
m_state = luaL_newstate();
|
||||
}
|
||||
m_state = luaL_newstate();
|
||||
if (m_state == nullptr)
|
||||
{
|
||||
ErrorLog(std::format("Lua screen \"{}\": failed to create the state", script));
|
||||
return false;
|
||||
}
|
||||
// the screen's allocator in front of LuaJIT's own, counting from what the state holds already
|
||||
memory.limit = memory_limit_setting().load();
|
||||
memory.collect_at = memory.limit;
|
||||
memory.heap = static_cast<std::size_t>(lua_gc(m_state, LUA_GCCOUNT, 0)) * 1024 + static_cast<std::size_t>(lua_gc(m_state, LUA_GCCOUNTB, 0));
|
||||
memory.base = lua_getallocf(m_state, &memory.base_data);
|
||||
lua_setallocf(m_state, limited_alloc, &memory);
|
||||
// no compiled code: LuaJIT calls no hooks in it, and the hook is what stops a script stuck in a loop
|
||||
luaJIT_setmode(m_state, 0, LUAJIT_MODE_ENGINE | LUAJIT_MODE_OFF);
|
||||
open_libraries();
|
||||
@@ -1340,9 +1358,15 @@ class lua_runtime_host final : public runtime
|
||||
|
||||
} // namespace
|
||||
|
||||
bool lua_screen_memory_allocator()
|
||||
void set_lua_screen_memory_limit(std::size_t const Bytes)
|
||||
{
|
||||
return custom_allocator_works();
|
||||
memory_limit_setting().store(Bytes);
|
||||
memory_peak().store(0);
|
||||
}
|
||||
|
||||
std::size_t lua_screen_memory_peak()
|
||||
{
|
||||
return memory_peak().load();
|
||||
}
|
||||
|
||||
std::unique_ptr<runtime> make_lua_runtime()
|
||||
|
||||
@@ -39,16 +39,14 @@ constexpr std::size_t max_log_line{1024}; // bytes of the text, a longer one is
|
||||
// the largest file a screen reads: its script or module, a file below its folder
|
||||
constexpr std::uintmax_t max_screen_file{16 * 1024 * 1024};
|
||||
// the memory a Lua screen may hold: its Lua heap, and the pixels of its images, fonts and sprites. checked with a full
|
||||
// collection, so its garbage doesn't count; between the collections it may take the screen up to twice this
|
||||
// collection, so its garbage doesn't count; between the collections it may take the screen up to twice this, which
|
||||
// the screen's allocator refuses to go over as each block is asked for
|
||||
constexpr std::size_t max_screen_memory{128 * 1024 * 1024};
|
||||
|
||||
// true when the Lua screens count their memory in an allocator of their own, which refuses what goes over
|
||||
// max_screen_memory as it is asked for: LuaJIT 2.1 in its GC64 mode, a 32-bit build. LuaJIT 2.0 on x64 (the game's on
|
||||
// Windows) and 2.1 on x64 without GC64 take no allocator; there the memory is checked by the instruction hook every
|
||||
// so many instructions, and before what makes images and large strings in one call (string.rep, string.format,
|
||||
// table.concat, string.gsub), but not at the concatenation operator: one concatenation of large strings is made
|
||||
// whole, as far as LuaJIT's own heap goes (2 GB on x64), and the screen is stopped at the next check
|
||||
bool lua_screen_memory_allocator();
|
||||
// for the unit tests, which fill the memory of a screen and stay small: the memory a Lua screen made from now on may
|
||||
// hold in place of max_screen_memory, and the most any Lua screen held since it was set (its heap and its objects)
|
||||
void set_lua_screen_memory_limit(std::size_t Bytes);
|
||||
std::size_t lua_screen_memory_peak();
|
||||
|
||||
struct pending_command
|
||||
{
|
||||
|
||||
@@ -722,8 +722,9 @@ std::uint32_t blackbox_recorder::known_id(TDynamicObject const *Vehicle) {
|
||||
return Vehicle != nullptr && Vehicle->bEnabled ? vehicle_id(Vehicle) : blackbox::no_vehicle;
|
||||
}
|
||||
|
||||
std::uint32_t blackbox_recorder::signal_at(glm::dvec3 const &Location) const {
|
||||
auto const found{std::ranges::find_if(m_signals, [&Location](signal_entry const &Signal) { return glm::distance(Signal.location, Location) < 0.01; })};
|
||||
std::uint32_t blackbox_recorder::signal_of(TMemCell const *Cell) const {
|
||||
// by the memory cell, not by its position: two signals can have their cells at one point
|
||||
auto const found{std::ranges::find(m_signals, Cell, &signal_entry::cell)};
|
||||
if (found == m_signals.end())
|
||||
return blackbox::no_signal;
|
||||
return static_cast<std::uint32_t>(std::distance(m_signals.begin(), found));
|
||||
@@ -752,7 +753,7 @@ void blackbox_recorder::signal_passed(TDynamicObject const *Vehicle, basic_event
|
||||
if (m_writer == nullptr || Vehicle == nullptr)
|
||||
return;
|
||||
auto const location{Event.input_location()};
|
||||
m_writer->signal_passed({m_time, vehicle_id(Vehicle), signal_at(location), text_of(Event.name()), location, static_cast<float>(Speed1), static_cast<float>(Speed2),
|
||||
m_writer->signal_passed({m_time, vehicle_id(Vehicle), signal_of(Event.input_cell()), text_of(Event.name()), location, static_cast<float>(Speed1), static_cast<float>(Speed2),
|
||||
static_cast<float>(Trainspeed), static_cast<float>(Overrun), Flags});
|
||||
}
|
||||
|
||||
|
||||
@@ -106,7 +106,8 @@ private:
|
||||
std::uint32_t vehicle_id(TDynamicObject const *Vehicle);
|
||||
// the number of a vehicle still on the scenery, no_vehicle for none or one taken off it
|
||||
std::uint32_t known_id(TDynamicObject const *Vehicle);
|
||||
std::uint32_t signal_at(glm::dvec3 const &Location) const;
|
||||
// the number of the signal whose aspect the memory cell tells, no_signal for one which isn't on the map
|
||||
std::uint32_t signal_of(TMemCell const *Cell) const;
|
||||
|
||||
std::mutex m_mutex;
|
||||
std::array<char, 256 * 1024> m_filebuffer{};
|
||||
|
||||
+196
-9
@@ -135,7 +135,7 @@ Python 3.10+, no extra packages. Options:
|
||||
`cmake-build-*/bin/Release/eu07*.exe`. The build needs the `--test` and `-ini` command
|
||||
line options.
|
||||
- name one or more cases to run only those, e.g. `run.py ... eu07_td_timetable`.
|
||||
- `-j N` runs N cases at once. Each case prints its results when it is done. The 22 cases
|
||||
- `-j N` runs N cases at once. Each case prints its results when it is done. The 42 cases
|
||||
that aren't `slow` take about 30 s with `-j 4` and 2 minutes one at a time, loading included.
|
||||
- `--watch` runs a case the old way, in a visible window in real time (or faster with
|
||||
`--timespeed N`), closed after the case's `duration`; the exit code isn't checked then. For
|
||||
@@ -215,6 +215,7 @@ to `logs/`.
|
||||
| `fragment` | `.scn` file in `cases/` added to the scenery: trainsets after `FirstInit` (before it they derail on unlinked track), the rest before it (launchers read after it never fire). Optional when the case keeps the scenery's trainsets |
|
||||
| `vars` | values for `{{name}}` in the fragment; a list becomes one line per item |
|
||||
| `timetable` | a timetable file in `cases/` for a trainset of the fragment, for a train whose timetable no scenery of the game has: copied to the game's `scenery/` dir as `autotest_<case>.txt` for the run and removed after it; the fragment names it `{{timetable}}` |
|
||||
| `vehicle_variants` | vehicles of the case's own, made from those of the game, e.g. with a `.fiz` key the game's data doesn't have yet: a list of `{ "name": ..., "from": "<dir>/<type>", "replace": [[old, new], ...] }`. For the run the vehicle's `.fiz`, with the literal replacements (an `old` it doesn't have is an error), and its `.mmd` are copied beside it in the game's `dynamic/` dir as `autotest_<case>_<name>` and removed after it; the fragment names the type `{{variant_<name>}}`, e.g. `dynamic pkp/et42_v2 112e-014-a {{variant_a}} ...`. The copy of the `.mmd` has the name of the vehicle it is made from in place of `(p2)`, the type name the simulator hands it, which some pass on to the include that names the model |
|
||||
| `expect` | the result the test mode should end with: `pass`, `fail`, `signal_passed_at_danger`, `timeout`, `standstill` or `error`, or `wall_timeout` for the timeout of the real time watchdog (the timeout code with a verdict saying it was the real time; a case expecting `timeout` fails on it). Default `timeout` for a case with `duration`, else `pass` |
|
||||
| `duration` | seconds of simulation to record: the test timeout of the run (`--test-timeout`) |
|
||||
| `timeout` | wall-clock seconds before giving up, loading included: the simulator's `--test-wall-timeout` (default 600) |
|
||||
@@ -236,6 +237,21 @@ starting at `vars.velocity` km/h; with `track_friction` 0.03 it locks the wheels
|
||||
and slides past the signal, so those cases set `test.fail_if_stop_overran no`.
|
||||
`td_red_signal_pass.scn` adds the `test_pass` event, which `test_mode_pass` puts as `event0`
|
||||
on `tor1k`, the track in front of the signal.
|
||||
`td_shunt_red_signal.scn` is the same with no timetable, so the AI shunts (Shunt) towards the signal at
|
||||
stop, starting `vars.offset` m into `tdo_n1734`: `eu07_td_shunt_red_signal` alone and
|
||||
`eu07_td_shunt_push_red_signal` pushing three coaches, both from 30 km/h, have to stop before the signal,
|
||||
151 m from the start (the shunting AI used to coast up to it and pass it at about 28 km/h, fixed
|
||||
by #409). They stop after 145 m and 141 m.
|
||||
|
||||
The `traxx_*` cases run a Traxx (E186, `p160dc`), whose driver's brake handle (MHZ_6P) has a time
|
||||
chamber, like the MHZ_K5P, M394, Knorr, St113, FVel6 and FVE408 handles, which no other case has: the
|
||||
AI getting such a locomotive ready has a rule of its own for releasing the train brake (5775493b2,
|
||||
#444). `traxx_td_timetable` is the timetable run from a trainset ready to depart,
|
||||
`traxx_td_timetable_cold` the same from a cold start (`td_cold_timetable.scn`, the handle in its
|
||||
holding position, the brake pipe low), and `traxx_td_crew_add` the locomotive standing ready to depart
|
||||
with nobody in it, the handle in its holding position and the brake pipe charged, until a driver is
|
||||
put in (`td_crew.scn`, as `eu07_td_crew_add`). In all three the driver puts the handle to running
|
||||
within a second of starting and leaves.
|
||||
|
||||
`eu07_td_departure_station_capitals` runs an EU07 from where `td_timetable.scn` puts it, with the W4 of Stacja1 about
|
||||
35 m ahead, on a timetable of its own (`td_departure_station_capitals.txt`, fragment `td_departure_station.scn`):
|
||||
@@ -249,6 +265,52 @@ the td/rozklad train, an EU07 with three coaches, with its head 80 m past the W4
|
||||
under the consist, behind the head, and the driver still counts Stacja1 and leaves at 10:35, since the scan of the
|
||||
route begins at the last vehicle and keeps a W4 behind the head.
|
||||
|
||||
`eu07_coaches_td_timetable` is the timetable case with the EU07 and three coaches, a train that brakes with the train
|
||||
brake, beside the light EU07 and the SN61 alone, which brake with the independent brake. The `*_td_downgrade_w4_signal`
|
||||
cases (fragment `td_downgrade_w4_signal.scn`, timetable `td_downgrade.txt`) run on a line the fragment adds beside the
|
||||
tracks of td.scn, at x = -3000: 300 m level, then 3000 m down a gradient of 20 per mille, under an overhead wire fed
|
||||
by a substation of its own (`gr_pwr`; the wire on the section `pwr01` of td.scn gave the EU07 no voltage). The train
|
||||
starts on the level at the W4 of Gora, stops at the W4 of Dol 1500 m down the gradient, leaves at 10:38 and stops before
|
||||
`gr_sem`, a signal at stop 1100 m further down (a memory cell with `SetVelocity 0 0` and the event that reads it, no
|
||||
model), about 1590 m and 2690 m from the start. The three trains are the light EU07, the SN61 alone and the EU07 with
|
||||
three coaches.
|
||||
|
||||
### Heavy trains
|
||||
|
||||
The heavy train cases (#187, #199, #263, #265) run on lines of their own beside the tracks of td.scn, at x = -3000, as
|
||||
the `*_td_downgrade_w4_signal` cases of #479 do: 100 m tracks, an overhead wire fed by a substation of its own (none for
|
||||
the diesel case) and signals at stop that are a memory cell with `SetVelocity 0 0` and the event that reads it, with no
|
||||
model. Each train starts on a level stretch long enough for the whole consist, with its head 10 m before the W4 of Gora,
|
||||
which is where the distances in the checks start from. A freight train leaves a station of its timetable as soon as it
|
||||
stands there (`IsCargoTrain` in `TController`), so the freight trains leave Gora at once, not at 10:35. The checks that
|
||||
look for a train that comes to a stand use the vehicle speed (`keeps_moving`), as the wheels of a heavy train starting
|
||||
on poor rails spin while it stands; `starts_again` checks a start from a signal that clears at a given time, and how far
|
||||
the train rolls back meanwhile.
|
||||
|
||||
| case | fragment | train | what it shows |
|
||||
| --- | --- | --- | --- |
|
||||
| `et41_coal_td_downgrade_restriction` | `td_downgrade_restriction.scn`: 600 m level, 3500 m down 20 per mille, 20 km/h from 1500 to 1900 m down, the signal 3000 m down | ET41, 25 coal wagons 412W with 40 t each, G (about 1670 t) | passes: through the restriction at 10.5 km/h at the lowest, stops at the signal (3078 m) |
|
||||
| `et22_764_td_downgrade_restriction` | the same | ET22, 20 heavy wagons 764 with 84 t each (about 2650 t) | `xfail`: dips to 8.5 km/h in the 20 km/h restriction (below the 10 km/h #263 counts as a defect); it doesn't stop |
|
||||
| `st43_steel_td_downgrade12_long` | `td_downgrade12_long.scn`: 900 m level, 6500 m down 12 per mille, no wire, the signal 6000 m down | ST43, 45 coil wagons 425S, G | passes: holds 35-37.5 km/h of the 40 all the way down, never below 20 km/h, stops at the signal |
|
||||
| `et41_coal_td_upgrade_start` | `td_upgrade_signal_start.scn`: 600 m level, 2500 m up 10 per mille, a signal 1000 m up that clears at 10:42, another 2300 m up | the ET41 with 25 coal wagons | passes: stops at the first signal with the whole train on the gradient, moves off 4.7 s after it clears, 10 km/h after 52 s, rolls back 0.04 m |
|
||||
| `eu07a_coaches_td_upgrade_long` | `td_upgrade_long.scn`: 600 m level, 5500 m up 10 per mille, the signal 5300 m up | EU07A (303E), 8 coaches (about 360 t), passenger timetable at 80 km/h | passes: 80 km/h at 1430 m, never below 73.8 km/h on the climb |
|
||||
| `et41_coal_td_slippery_start` | `td_level_signal.scn`: 2100 m level, the signal 1000 m ahead | ET41, 25 coal wagons with 60 t each (about 2170 t), `friction 0.3` | passes with the fix of this branch: gets going and stops at the signal (1082 m, at 392 s); before it, 395 slips in 1500 s and 75 m |
|
||||
|
||||
What the AI still does with heavy trains, without a case that fails on it:
|
||||
|
||||
- On a steep descent into a restriction a heavy G train holds the speed by applying and releasing the train brake in
|
||||
turn. Its brake takes 10-15 s to release, so it falls well below the limit before the brake lets go: 10.5-12 km/h
|
||||
for the ET41 with coal wagons, 8.5 km/h for the ET22 with the 764 wagons (the `xfail` above), in a 20 km/h
|
||||
restriction. #263 reported this train stopping before the restriction in 10 of 12 runs; on staging it no longer
|
||||
does, also with `friction 0.5` and with the wagons fully loaded.
|
||||
- Starting uphill, a heavy train pulls against its train brake while the brake releases (#265): in
|
||||
`et41_coal_td_upgrade_start` about 13 s at about 200 kN with the head moving by the slack of the couplers alone. It
|
||||
starts at full power, without taking up the slack first.
|
||||
- The AI doesn't know the adhesion of the rails: it plans braking with `Global.FrictionWeatherFactor` alone, and the
|
||||
result of its running brake test (`adjust_desired_speed_for_braking_test`) is shown in the debug panel only. It sands
|
||||
ahead of a slip only at a high motor current, and, since the fix of `et41_coal_td_slippery_start`, through the rest of
|
||||
a start that has slipped (`control_wheelslip()`); not before a hard brake, nor before the first slip of a start.
|
||||
|
||||
The `test_mode_*` cases show the ends of the test mode: `test_mode_pass` (exit 0, the pass
|
||||
event), `test_mode_signal_passed_at_danger` (exit 11), `test_mode_timeout` (exit 12, from
|
||||
`test.timeout`), `test_mode_standstill` (exit 13, from `test.standstill`) and
|
||||
@@ -259,6 +321,13 @@ standstill of 100 s ends the test although the traffic runs on (counting every v
|
||||
into the test timeout).
|
||||
`test_mode_pass_while_moving` reports the pass from `event2` of `tor1k` (the direction the train runs), as the train runs onto
|
||||
it, with `test.no_movement_before_pass no`, so the test ends with the train still moving.
|
||||
`test_mode_standing_1m_past_signal` and `test_mode_standing_4m_past_signal` (fragment `td_past_red_signal.scn`) set
|
||||
the td/rozklad train at a stand with its head 1 m and 4 m past the exit signal at stop (the memory cell of the
|
||||
signal is 51 m into `tor1k`). The driver finds the signal behind the head at its first look ahead, 13.6 s in, and a
|
||||
standing train passes nothing, so both run into their timeout. When a signal found up to 5 m behind the head
|
||||
still counted as one the head had ahead, standing or not, both ended as signals passed at danger at 13.6 s (a
|
||||
train set 6 m or 20 m past didn't). Starting at 0 km/h the driver doesn't wake up within the case, so they start at
|
||||
0.1 km/h, as `td_red_signal.scn` does.
|
||||
|
||||
The `en57_2000_automatic_coupler_*` cases (issue #86) share `td_automatic_coupler_hit.scn`: an
|
||||
EN57-2000 unit without a driver runs at `vars.velocity` km/h into a standing one, from
|
||||
@@ -269,6 +338,12 @@ couple and neither shows up: the black box has to have the last car of the stand
|
||||
writes nothing to the log when couplers catch). Nothing reports a result, so both end on the 60 s
|
||||
test timeout.
|
||||
|
||||
`et21_td_no_wire_reports` (issue #421, fragment `td_no_wire.scn`) adds a 200 m track of its own,
|
||||
with no overhead wire, 400 m off the line of td.scn (every track of td.scn is under the wire), with
|
||||
an ET21 and its AI driver on it. The pantographs go up and find no wire, so the locomotive can't
|
||||
start: the driver has to say so in the log, once, naming the locomotive and where it stands, and
|
||||
not mistake it for a wire without voltage. It ends on the standstill.
|
||||
|
||||
`eu07_td_cold_connect` (fragment `td_cold_connect.scn`) has an EU07 with a hand brake
|
||||
(`4E-ZEZ_GREY`; the plain `4e` has none) standing cold on track 1 of Stacja1 (trainset velocity 0,
|
||||
so it starts with the hand brake on) and two coaches standing 45 m ahead of it. Its driver sleeps
|
||||
@@ -278,6 +353,30 @@ pushed, runs onto `tor1k` (`eventall2`), with the train still moving, and the bl
|
||||
locomotive coupled to the coaches (it couples about 70 s after the start). A driver that leaves its
|
||||
hand brake on under Connect pulls against it for good and the case ends as a standstill after 300 s.
|
||||
|
||||
The `eu07_td_buckle_*` cases (fragment `td_buckle_event.scn`) run the timetable train of
|
||||
`td_timetable.scn` and buckle the curve `tdo_n222`, about 950 m ahead of it, with a `trackbuckle`
|
||||
event of `vars.amplitude` at 10:35. Both have `physics.derailment new` in `ini`: the default,
|
||||
`monitor`, leaves the decision to the legacy draw and only logs what the criteria would do
|
||||
(`derailment monitor: ... overturned at 46 km/h on track tdo_n222`), so the train runs on to
|
||||
Przystanek whatever the buckle. With 600 mm over a main lobe of 8 m the locomotive overturns on
|
||||
the buckle at 46 km/h, 1036 m from the start (`Bad driving: ... derailed on buckled track`); with
|
||||
30 mm it keeps on the rails and stops at Przystanek after 1400 m.
|
||||
|
||||
`sm42_td_uncouple_past_signal` (fragment `td_uncouple_past_signal.scn`) is the uncoupling of the SM42 at Debica on
|
||||
L053 poranek (step 10 of `deb_sm42_stat`) on td.scn. An SM42 with no timetable stands turned at the far end of `tor1k`,
|
||||
three wagons loaded with gravel (51 m of train) behind it towards the exit signal `stacja1_j`, which stays at stop (no
|
||||
route). `tdo_n1734`, the track behind `tor1k`, is closed (`trackvel 0`) from the start. `event0` of `tor1k` gives the
|
||||
driver `Shunt -1 0`: it pulls the wagons back for 47 m and stops in front of the closed track, with the far end of the
|
||||
last wagon 2 m past the signal's memory cell (the `distance` check keeps it 0-4 m past). The pull leaves the screw
|
||||
coupler stretched, 0.019 m apart at the buffers, and a screw coupler is let go only with the buffers pressed together
|
||||
(under 0.01 m). At the first stand `event0` gives `Shunt 0 0`: brake the wagons, change direction, push the buffers in,
|
||||
uncouple. After the direction change the driver counts `stacja1_j` as passed at its first move, so its speed is capped
|
||||
at 0. The driver used to work the brake releaser only while it wanted to speed up, so the locomotive stayed braked by
|
||||
the wagons' brake application and never closed the gap: no `uncoupled` in the log, and the case ran into its timeout.
|
||||
Now the locomotive is released, eases into the wagons and uncouples within a second. The wagons are loaded so that the
|
||||
stop leaves the gap above 0.01 m: with a coach and an empty wagon the buffers came to rest 0.009 m apart and the
|
||||
coupler let go at once.
|
||||
|
||||
The `*_td_crew_*` cases (eu07/maszyna#510, fragment `td_crew.scn`) are about the crew command of a
|
||||
`putvalues` event, `Crew:<vehicle> <cab> <flags>`: cab 1 or -1 puts an AI driver in cab A or B of
|
||||
the vehicle named, 0 takes its AI driver off. The vehicle is named in the text, so the events are
|
||||
@@ -332,6 +431,74 @@ brake of the Vectron switched on), and `event0` of the track gives the driver `O
|
||||
starts up, charges the brake pipe and leaves on time (the stop after 209 s and 1393 m); without the `H`
|
||||
the pipe stays below 1 bar and the case ends as a standstill after 300 s.
|
||||
|
||||
`eu07_td_reinspect_brakes_after_coupling` (fragment `td_reinspect_brakes.scn`, eu07/maszyna#350 and #282) is about the
|
||||
wagon inspector of the AI (`TController::AutoRewident()`) on a train formed by coupling. An EU07 stands cold on the line
|
||||
from Stacja1 (`koniec`) and a cut stands 45 m ahead of it, braked, with nobody in it: 16 coaches with P alone (BDhpumn)
|
||||
and next to the locomotive 8 empty wagons with G and P (401W), 541 m of wagons. `event0` of the locomotive's track gives
|
||||
the driver `Shunt -3 3`, once: couple to the cut with the coupler and the brake hose and run it on as a train
|
||||
(`Obey_train`), waiting for the way, which `event2` of `tdo_n231`, in front of the cut, gives as a `SetVelocity 40 40`
|
||||
(no signal of the line is in sight). Over 500 m of wagons make it a train on G (Cw-1 §19.1), where the brake of a wagon
|
||||
without G is cut out (§19.9). The inspector looks at the train as the AI couples, at 4 km/h (t=69 s), too fast for it to
|
||||
cut a brake out, and leaves that for the next standstill: `reinspect_brakes()` cuts the 16 coaches out as the train stands
|
||||
a moment later, its brakes applied by the empty pipe of the cut. Neither the physicslog nor the black box has the brakes
|
||||
of the wagons, so the case tells by how the train brakes: `event2` of `tdo_n240` takes the driver off at 38 km/h, which
|
||||
leaves the brake valve in the emergency position, and braked by the locomotive and the 8 wagons alone the train stops 29 s
|
||||
and 211 m later, a mean deceleration of 0.27 m/s² (`stops_driverless` with `max_deceleration` 0.40). With every brake
|
||||
working it stops at 0.57 m/s², 99 m: that is `eu07_td_reinspect_brakes_legacy_inspector`, the same run with the inspector
|
||||
of the earlier releases (`ai.brakesetting.cw1 no`), which cuts no brake out, and also what a build whose
|
||||
`reinspect_brakes()` does nothing gives for the first case, which then fails. The test passes 150 s after the driver goes.
|
||||
|
||||
The `*_section*` and `*_converter_interlock*` cases are about the line breaker closed ahead of the pantographs
|
||||
(`PantRequiresMain=Yes` in `Cntrl.`, MaSzyna-EU07/maszyna#272) and the line contactors that wait for the
|
||||
converter of their own vehicle (`LineContactorsInterlock=Converter`, #276), driven by the AI on the timetable
|
||||
run of td.scn. The overhead wire of td.scn is changed with `replace`: one span of it, 61 m some 400 m from
|
||||
the start (`0.7764 5.845 1561.2417` onwards, over the way out of Stacja1, which the train runs under power at
|
||||
50-55 km/h), gets no supply and 0 V (`traction none 0`), and in `ep05_td_section_insulator` the span before
|
||||
it is split around a section insulator 1 m long (`traction * 0`, as sceneries hang insulators). The EP05 has
|
||||
`PantRequiresMain=Yes` in the game's data; the ET42 has no `LineContactorsInterlock` yet (SVN data of #276),
|
||||
so those cases run variants of the vehicles made for the run (`vehicle_variants`).
|
||||
|
||||
- `ep05_td_timetable`: the EP05 on the plain timetable run, the reference: 20 km/h after 73 s, the stop
|
||||
after 205 s and 1400 m.
|
||||
- `ep05_td_dead_section`: the EP05 runs into the span without voltage under power, nothing on the track
|
||||
telling its driver to coast. The traction force drops to nothing at once and the AI puts the master
|
||||
controller to 0; the line breaker stays closed (the log
|
||||
says the vehicle lost power for 4.05 s, which it says only while the line breaker is closed). Behind the
|
||||
section the AI takes power again (535 m, 36 kN by 595 m) and stops at Przystanek (1399 m).
|
||||
- `ep05_td_neutral_section`: the same with the track under that span, `koniec`, marked as one to coast
|
||||
through (`overhead 0`, which `track_events` adds as it adds events): the AI puts the master controller to
|
||||
0 as the locomotive runs onto it, 25 m ahead of the dead wire, and takes power again behind it.
|
||||
- `eu07_td_dead_section`: the old behaviour for reference, an EU07 (pantographs first) into the same span:
|
||||
its line breaker opens after 0.2 s (`lost power for 0.21 sec`, no longer), and behind the section the AI
|
||||
closes it again and takes power (493 m).
|
||||
- `ep05_td_section_insulator`: the EP05 runs under the insulator under power at 50 km/h. The pantograph is
|
||||
without voltage for some 0.07 s, which the vehicle bridges by holding the last voltage for 0.2 s
|
||||
(`TDynamicObject::Update`): the traction force stays between 50 and 58 kN past it and nothing is logged.
|
||||
Without the hold the undervoltage relay of a `PantRequiresMain` vehicle would open the line contactors,
|
||||
which close again only with the master controller back at its first position. With the insulator 15 m long
|
||||
instead (a trial run) the vehicle does lose power there (logged, the force drops to 0), which shows the
|
||||
pantograph runs under the piece of wire.
|
||||
- `et42_td_converter_interlock_cold`: an ET42 with `LineContactorsInterlock=Converter` in both sections
|
||||
stands cold (`td_cold_timetable.scn`) and is ordered to run the timetable: the AI starts the converters,
|
||||
leaves (20 km/h after 74 s) and stops at Przystanek (1393 m). It and `et42_td_converter_interlock`, the
|
||||
same from the timetable start, check that the AI gets such a train going; a plain ET42 passes them too.
|
||||
- `et42_td_converter_interlock_slow_converter`: the check that the interlock takes effect. The same cold ET42
|
||||
with a converter that starts 60 s after it is switched on (`ConverterStartDelay=60`): the line contactors
|
||||
wait for it, and the train reaches 20 km/h at 80.0 s; `starts` with `after: 77` fails it earlier. With the
|
||||
same converter and no interlock it gets there at 73.8 s, as fast as without the slow converter (a copy of
|
||||
the case without the key, run once, not kept).
|
||||
- `ep05_td_interlock_dead_section_cold`: #272 and #276 together, an EP05 with `LineContactorsInterlock=Converter`
|
||||
added, standing cold, with the span without voltage on its way: the pantographs can go up only through the
|
||||
closed line breaker, so the AI has to close it first, then start the converter; it leaves (20 km/h after
|
||||
77 s). Under the dead wire the converter stops with the main circuit, behind it the converter starts again
|
||||
and the AI takes power (573 m, 4 s later than the EP05 without the interlock) and stops at Przystanek
|
||||
(1393 m).
|
||||
|
||||
What these can't reach: the local converter switch of the ET42 (`converterlocal_sw:`), which the AI has to put
|
||||
back on (`LineContactorsHeldByLocalConverterSwitch()`, the part of #276 in `determine_consist_state()` and
|
||||
the `converteron` hint), is in the cab only: no command of a scenery or of the train's cables sets
|
||||
`ConverterAllowLocal`, and nobody sits in a cab in the test mode, so the switch is always on in a case.
|
||||
|
||||
### Cases on a mission of a scenery
|
||||
|
||||
The cases made from players' reports (eu07/maszyna#421, #506, #524, #525) run a whole mission
|
||||
@@ -361,15 +528,16 @@ track it stands on). The first of them may be the one to couple (`Shunt -2 -3`):
|
||||
first order is `Connect` releases the hand brake a cold locomotive starts with
|
||||
(`eu07_td_cold_connect`). The mission trains of velocity 0.1 wait for their signal and need nothing.
|
||||
|
||||
The cases and what they showed on master of 2026-11-11:
|
||||
The cases and what they showed on master of 2026-11-11 (the two L053 poranek rows also on
|
||||
staging f15ea405 of 2026-11-23):
|
||||
|
||||
| case | report | result |
|
||||
| --- | --- | --- |
|
||||
| `wrzosy_pxe336080_couples` | #524 | passes: ordered to, the locomotive couples to the rake (`couples`, 262 s) and takes it out of the depot (696 s). The scenery itself gives no such order |
|
||||
| `baltyk_skm1_roj55324_shunting_signal` | #525 | passes, with four seeds: the unit on the siding is let into the platforms 4 minutes after the start, once the shunter beside it has done its first moves, and leaves at 10:42 |
|
||||
| `baltyk_skm1_roj55321_departure` | #525 | passes, with three seeds: the unit in the platform leaves at 10:34 |
|
||||
| `l053_poranek_tme222158_debica` | #421 | `xfail`: the train is never let into Debica, the station jams 4 minutes after the start: the AI of EP07-338'16 passes the shunting signal Tm4 at stop at 29 km/h and stops 20 m beyond the checkpoint the station waits for it at |
|
||||
| `l053_poranek_tme222158_debica_et21` | #421 | `xfail`: with an ET21, as in the report, the locomotive stops for good at Debica Towarowa: running round the wagons it stands on the headshunt 20 m past the end of the overhead wire, and its driver never gets out of `Prepare_engine` |
|
||||
| `l053_poranek_tme222158_debica` | #421 | passes: TME222158 gets the exit signal to Sandomierz (step 6 of `deb_tme222158_stat`) after 4086.2 s. On master of 2026-11-11 the station jammed 4 minutes after the start, the AI of EP07-338'16 passed the shunting signal Tm4 at stop at 29 km/h; #409 fixed that. On staging f15ea405 (2026-11-23) the station's SM42-1096 jammed it next: ordered to uncouple at step 10 of `deb_sm42_stat`, with its cut standing across `debica_k_sem_info` at stop, it stayed braked and never got the coupler off (standstill after 4347 s), until the AI kept the locomotive released while it pushes the buffers in to uncouple (`sm42_td_uncouple_past_signal`) |
|
||||
| `l053_poranek_tme222158_debica_et21` | #421 | passes after 4131.6 s. On master of 2026-11-11, with an ET21 as in the report, the locomotive stopped for good at Debica Towarowa, on the headshunt 20 m past the end of the overhead wire, and its driver never got out of `Prepare_engine`. Since #409 the ET21 gets through Debica Towarowa (steps 1-5 of `dt_tme222158_stat`) to Debica; there it waited for the SM42 as `l053_poranek_tme222158_debica` did, until the same fix |
|
||||
| `l053_poludnie_roj32134_debica` | #506 | passes: both trains run and the unit ends at Debica after 6134 s; no train in its way |
|
||||
|
||||
In the L053 sceneries the test mode logs a signal passed at danger for several shunting
|
||||
@@ -385,13 +553,16 @@ the physicslog Velocity column, which is the wheel speed: it stays at 0 while th
|
||||
locked in a skid. The ones marked *vehicle speed* use the vehicle speed column at the end of
|
||||
the row instead, logged by builds from this branch on.
|
||||
|
||||
- `starts` `min_speed`, `within`: reaches `min_speed` within `within` seconds.
|
||||
- `starts` `min_speed`, `within` (`after`): reaches `min_speed` within `within` seconds (and not before `after` seconds,
|
||||
when given).
|
||||
- `max_speed` `limit`, `tolerance`: never goes faster than `limit + tolerance`.
|
||||
- `brakes` `min_pressure`: after moving off, brake cylinder pressure reaches `min_pressure` bar
|
||||
(physicslog pressures are in bar whatever its header says; the brake pipe runs at 5.0).
|
||||
- `stops` `moving_speed`, `stop_speed`, `hold`, optional `min_distance`, `max_distance`: after
|
||||
reaching `moving_speed`, stays at or below `stop_speed` for `hold` seconds; with the distances,
|
||||
that stop has to be between them (metres travelled, as in `distance`).
|
||||
- `stops` `moving_speed`, `stop_speed`, `hold`, optional `min_distance`, `max_distance`, `max_time`,
|
||||
`nth`: after reaching `moving_speed`, stays at or below `stop_speed` for `hold` seconds; with the
|
||||
distances, that stop has to be between them (metres travelled, as in `distance`), with `max_time`
|
||||
it has to begin by then (seconds of the physicslog). `nth` (default 1) takes a later stop: each
|
||||
stop after the first counts once the train has reached `moving_speed` again.
|
||||
- `stays_stopped` `moving_speed`, `stop_speed`: after moving off and stopping, never goes
|
||||
above `stop_speed` again.
|
||||
- `distance` `min`, `max`: total distance travelled. The physicslog has no position, so the
|
||||
@@ -405,6 +576,12 @@ the row instead, logged by builds from this branch on.
|
||||
after moving off, moves no more than `max_distance` metres, e.g. no creeping on locked wheels.
|
||||
- `ends_moving` `min_speed`: the last row of the physicslog is at `min_speed` or faster, e.g.
|
||||
the test ended without waiting for the train to stop.
|
||||
- `keeps_moving` `moving_speed`, `min_speed`, `until_distance`, optional `from_distance` (*vehicle speed*): once at
|
||||
`moving_speed`, the speed stays at or above `min_speed` between the two distances (metres travelled, from the vehicle
|
||||
speed), e.g. a heavy train doesn't come to a stand on a descent before a restriction. Reports the lowest speed.
|
||||
- `starts_again` `after`, `min_speed`, `within`, optional `max_rollback` (*vehicle speed* for the rollback): standing
|
||||
at the time `after` (a signal that clears then), the train reaches `min_speed` within `within` seconds, and rolls back
|
||||
no more than `max_rollback` metres meanwhile.
|
||||
- `log_contains` `pattern`: a line of the run's `log.txt` matches the regex, e.g. the
|
||||
`Bad driving: ... collided` message of a collision.
|
||||
- `log_lacks` `pattern`: no line of the run's `log.txt` matches the regex.
|
||||
@@ -424,9 +601,19 @@ the row instead, logged by builds from this branch on.
|
||||
(1 m), `hold` (60 s): the black box has the vehicle lose its driver at `min_speed` or faster,
|
||||
stand `within` seconds later and stay within `max_creep` of where it stopped for the rest of
|
||||
the recording, or until it gets a driver again, at least `hold` seconds. The physicslog can't
|
||||
tell: the driver writes it, so it ends when the driver goes.
|
||||
tell: the driver writes it, so it ends when the driver goes. Optional `min_deceleration`,
|
||||
`max_deceleration` (m/s²): the mean deceleration of that stop, from the speed the driver left at
|
||||
and the way to the stop (v²/2s), has to be within them, e.g. a train some of whose brakes are
|
||||
cut out stops slower.
|
||||
- `moves` `vehicle`, `min_speed`, optional `direction` (`front`, or `rear`): the black box has the
|
||||
vehicle reach `min_speed` with that end leading (the physicslog speed has no direction).
|
||||
- `traction` `from_distance`, `to_distance`, and one or more of `reaches`, `at_most`, `at_least`: the
|
||||
traction force in kN (the physicslog has it in N, whatever its header says) while the vehicle runs between
|
||||
the two distances (metres travelled, as in `distance`): its highest there reaches `reaches`, e.g. the power
|
||||
taken again behind a section without voltage; it stays at or below `at_most`, e.g. none under a dead wire;
|
||||
it stays at or above `at_least`, e.g. no power lost under an insulator.
|
||||
- `master_controller` `from_distance`, `to_distance`, `at_most`: the master controller stays at or below the
|
||||
position between the two distances, e.g. at 0 where the scenery tells the driver to coast.
|
||||
|
||||
New check types go in `CHECKS` in `run.py`; each gets the physicslog rows and the check's
|
||||
parameters and returns `(passed, detail)`. Checks on the log go in `LOG_CHECKS` and get the
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"description": "#272: an EP05 (PantRequiresMain=Yes: its line breaker closes ahead of the pantographs and holds without voltage) runs the td/rozklad timetable of td.scn with one span of the overhead wire on its way, 61 m some 400 m from the start, left without voltage, and nothing on the track to tell the driver to coast. The AI runs into it under power: the line breaker stays closed (the log keeps saying the vehicle lost power, which it says only while the line breaker is closed), the traction force drops to nothing and the AI puts the master controller to 0; behind the section the AI takes power again and stops at Przystanek.",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_timetable.scn",
|
||||
"vars": {
|
||||
"consist": "node -1 0 {{vehicle}} dynamic pkp/ep05_v2 ep05-23 ep05 0 headdriver 0 0 enddynamic"
|
||||
},
|
||||
"replace": [
|
||||
["node -1 0 none traction pwr01 3500 4500 0.01 cu 3.0 1\r\n0.7764 5.845 1561.2417", "node -1 0 none traction none 0 4500 0.01 cu 3.0 1\r\n0.7764 5.845 1561.2417"]
|
||||
],
|
||||
"duration": 240,
|
||||
"timeout": 600,
|
||||
"checks": [
|
||||
{"type": "starts", "min_speed": 20, "within": 150},
|
||||
{"type": "max_speed", "limit": 90, "tolerance": 3},
|
||||
{"type": "traction", "from_distance": 420, "to_distance": 455, "at_most": 1},
|
||||
{"type": "traction", "from_distance": 460, "to_distance": 620, "reaches": 25},
|
||||
{"type": "log_contains", "pattern": "lost power for [3-9]\\.\\d\\d sec"},
|
||||
{"type": "stops", "moving_speed": 20, "stop_speed": 1.0, "hold": 0, "min_distance": 1380, "max_distance": 1420}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"description": "#272 with #276: an EP05 whose line breaker closes ahead of the pantographs (PantRequiresMain=Yes) and whose line contactors close only with its own converter running (LineContactorsInterlock=Converter, a variant of the .fiz made for the run) stands cold on track 1 of Stacja1 and gets the order to run the td/rozklad timetable, with the span without voltage of ep05_td_dead_section on its way. The pantographs go up only through the closed line breaker, so the AI has to close it first, then start the converter, and leave; under the dead wire the main circuit, and with it the converter, has no voltage; behind it the AI takes power again and stops at Przystanek.",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_cold_timetable.scn",
|
||||
"vars": {
|
||||
"consist": "node -1 0 {{vehicle}} dynamic pkp/ep05_v2 ep05-23 {{variant_ep05}} 0 headdriver 0 0 enddynamic"
|
||||
},
|
||||
"vehicle_variants": [
|
||||
{"name": "ep05", "from": "pkp/ep05_v2/ep05", "replace": [["Camshaft=Yes PantRequiresMain=Yes", "Camshaft=Yes PantRequiresMain=Yes LineContactorsInterlock=Converter"]]}
|
||||
],
|
||||
"replace": [
|
||||
["node -1 0 none traction pwr01 3500 4500 0.01 cu 3.0 1\r\n0.7764 5.845 1561.2417", "node -1 0 none traction none 0 4500 0.01 cu 3.0 1\r\n0.7764 5.845 1561.2417"]
|
||||
],
|
||||
"track_events": {
|
||||
"tdo_n1734": "event0 autotest_wake"
|
||||
},
|
||||
"duration": 300,
|
||||
"timeout": 600,
|
||||
"checks": [
|
||||
{"type": "starts", "min_speed": 20, "within": 150},
|
||||
{"type": "max_speed", "limit": 90, "tolerance": 3},
|
||||
{"type": "traction", "from_distance": 420, "to_distance": 455, "at_most": 1},
|
||||
{"type": "traction", "from_distance": 460, "to_distance": 620, "reaches": 25},
|
||||
{"type": "log_contains", "pattern": "lost power for [3-9]\\.\\d\\d sec"},
|
||||
{"type": "stops", "moving_speed": 20, "stop_speed": 1.0, "hold": 0, "min_distance": 1380, "max_distance": 1420}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"description": "#272: as ep05_td_dead_section, with the track under the span without voltage (koniec, 371-466 m) marked as a section to coast through (overhead 0), as a scenery marks a neutral section: the AI puts the master controller to zero when the locomotive runs onto that track, coasts under the dead wire with the line breaker closed, and takes power again behind it.",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_timetable.scn",
|
||||
"vars": {
|
||||
"consist": "node -1 0 {{vehicle}} dynamic pkp/ep05_v2 ep05-23 ep05 0 headdriver 0 0 enddynamic"
|
||||
},
|
||||
"replace": [
|
||||
["node -1 0 none traction pwr01 3500 4500 0.01 cu 3.0 1\r\n0.7764 5.845 1561.2417", "node -1 0 none traction none 0 4500 0.01 cu 3.0 1\r\n0.7764 5.845 1561.2417"]
|
||||
],
|
||||
"track_events": {
|
||||
"koniec": "overhead 0"
|
||||
},
|
||||
"duration": 240,
|
||||
"timeout": 600,
|
||||
"checks": [
|
||||
{"type": "starts", "min_speed": 20, "within": 150},
|
||||
{"type": "max_speed", "limit": 90, "tolerance": 3},
|
||||
{"type": "master_controller", "from_distance": 395, "to_distance": 455, "at_most": 0},
|
||||
{"type": "traction", "from_distance": 415, "to_distance": 455, "at_most": 1},
|
||||
{"type": "traction", "from_distance": 470, "to_distance": 640, "reaches": 25},
|
||||
{"type": "log_contains", "pattern": "lost power for [3-9]\\.\\d\\d sec"},
|
||||
{"type": "stops", "moving_speed": 20, "stop_speed": 1.0, "hold": 0, "min_distance": 1380, "max_distance": 1420}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"description": "#272: the EP05 of ep05_td_timetable runs under power under a section insulator: a piece of the overhead wire 1 m long with no supply (\"*\", 0 V), some 375 m from the start. The pantograph is without voltage for a few hundredths of a second, which the vehicle bridges by holding the last voltage for 0.2 s (TDynamicObject::Update). Without the hold the undervoltage relay would open the line contactors, which on a PantRequiresMain vehicle close again only with the master controller back at its first position: the traction force stays up all the way past the insulator.",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_timetable.scn",
|
||||
"vars": {
|
||||
"consist": "node -1 0 {{vehicle}} dynamic pkp/ep05_v2 ep05-23 ep05 0 headdriver 0 0 enddynamic"
|
||||
},
|
||||
"replace": [
|
||||
["node -1 0 none traction pwr01 3500 4500 0.01 cu 3.0 1\r\n0.687223 5.8 1500.25\r\n0.7764 5.845 1561.2417\r\n0.687223 7.5 1500.25\r\n0.7764 7.545 1561.2417\r\n0.4 4.0 3 0.04 vis\r\nendtraction", "node -1 0 none traction pwr01 3500 4500 0.01 cu 3.0 1\r\n0.687223 5.8 1500.25\r\n0.7457 5.8295 1540.2499\r\n0.687223 7.5 1500.25\r\n0.7457 7.5295 1540.2499\r\n0.4 4.0 3 0.04 vis\r\nendtraction\r\nnode -1 0 none traction * 0 4500 0.01 cu 3.0 1\r\n0.7457 5.8295 1540.2499\r\n0.7472 5.8302 1541.2499\r\n0.7457 7.5295 1540.2499\r\n0.7472 7.5302 1541.2499\r\n0.4 4.0 3 0.04 vis\r\nendtraction\r\nnode -1 0 none traction pwr01 3500 4500 0.01 cu 3.0 1\r\n0.7472 5.8302 1541.2499\r\n0.7764 5.845 1561.2417\r\n0.7472 7.5302 1541.2499\r\n0.7764 7.545 1561.2417\r\n0.4 4.0 3 0.04 vis\r\nendtraction"]
|
||||
],
|
||||
"duration": 240,
|
||||
"timeout": 600,
|
||||
"checks": [
|
||||
{"type": "starts", "min_speed": 20, "within": 150},
|
||||
{"type": "max_speed", "limit": 90, "tolerance": 3},
|
||||
{"type": "traction", "from_distance": 345, "to_distance": 395, "at_least": 30},
|
||||
{"type": "log_lacks", "pattern": "lost power"},
|
||||
{"type": "stops", "moving_speed": 20, "stop_speed": 1.0, "hold": 0, "min_distance": 1380, "max_distance": 1420}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"description": "EP05 (PantRequiresMain=Yes) on td.scn, AI driver on the td/rozklad timetable: starts from Stacja1, keeps to the speed limit, brakes to a stop at Przystanek. The reference run of the ep05_td_*_section cases, with the overhead wire live all the way.",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_timetable.scn",
|
||||
"vars": {
|
||||
"consist": "node -1 0 {{vehicle}} dynamic pkp/ep05_v2 ep05-23 ep05 0 headdriver 0 0 enddynamic"
|
||||
},
|
||||
"duration": 240,
|
||||
"timeout": 600,
|
||||
"checks": [
|
||||
{"type": "starts", "min_speed": 20, "within": 150},
|
||||
{"type": "max_speed", "limit": 90, "tolerance": 3},
|
||||
{"type": "brakes", "min_pressure": 0.5},
|
||||
{"type": "stops", "moving_speed": 20, "stop_speed": 1.0, "hold": 0, "min_distance": 1380, "max_distance": 1420}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"description": "ET21 with an AI driver on a track of td.scn's own with no overhead wire: it raises the pantographs, finds no wire and can't start; the driver tells of it in the log, once, and keeps waiting for the voltage (eu07/maszyna#421). The test ends on the standstill.",
|
||||
"base_scenery": "td.scn",
|
||||
"fragment": "td_no_wire.scn",
|
||||
"vars": {
|
||||
"consist": "node -1 0 {{vehicle}} dynamic pkp\\et21_v2 ET21-367 3e2 0 headdriver 0 0 enddynamic"
|
||||
},
|
||||
"test_config": [
|
||||
"test.standstill 300"
|
||||
],
|
||||
"expect": "standstill",
|
||||
"timeout": 900,
|
||||
"checks": [
|
||||
{
|
||||
"type": "log_contains",
|
||||
"pattern": "AI \\[autotest_et21_td_no_wire_reports\\]: can't start, no overhead wire above its raised pantographs \\(at -?[\\d.]+, -?[\\d.]+, -?[\\d.]+\\)"
|
||||
},
|
||||
{
|
||||
"type": "log_lacks",
|
||||
"pattern": "no voltage in the overhead wire at its raised pantographs"
|
||||
},
|
||||
{
|
||||
"type": "distance",
|
||||
"max": 1
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
{
|
||||
"description": "An ET22 with 20 loaded heavy wagons 764 (Uaai, 84 t of machinery each, KE, G; about 2650 t) on the line of et41_coal_td_downgrade_restriction: down 20 per mille into a 20 km/h restriction 400 m long, then to the signal at stop. The train is to keep above 10 km/h through the restriction (#187: it almost stops).",
|
||||
"xfail": "#187, #263: down 20 per mille the AI holds the 20 km/h restriction by applying and releasing the train brake in turn (handle 0, then 1.25-2.75, then 0 again); the release of this G train takes 10-15 s, so each one comes late and the train dips to 8.5 km/h, below the 10 km/h #263 counts as a defect. It doesn't stop. Known limitation of the AI, not fixed here",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_downgrade_restriction.scn",
|
||||
"timetable": "td_freight_downgrade.txt",
|
||||
"vars": {
|
||||
"consist": [
|
||||
"node -1 0 {{vehicle}} dynamic pkp\\et22_v3 201E-1150 201E 0 headdriver 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w01 dynamic db\\uaaikks_v1 993_6_221-5 764 0 nobody 3 84 hmachinnery1 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w02 dynamic db\\uaaikks_v1 993_6_221-5 764 0 nobody 3 84 hmachinnery1 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w03 dynamic db\\uaaikks_v1 993_6_221-5 764 0 nobody 3 84 hmachinnery1 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w04 dynamic db\\uaaikks_v1 993_6_221-5 764 0 nobody 3 84 hmachinnery1 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w05 dynamic db\\uaaikks_v1 993_6_221-5 764 0 nobody 3 84 hmachinnery1 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w06 dynamic db\\uaaikks_v1 993_6_221-5 764 0 nobody 3 84 hmachinnery1 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w07 dynamic db\\uaaikks_v1 993_6_221-5 764 0 nobody 3 84 hmachinnery1 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w08 dynamic db\\uaaikks_v1 993_6_221-5 764 0 nobody 3 84 hmachinnery1 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w09 dynamic db\\uaaikks_v1 993_6_221-5 764 0 nobody 3 84 hmachinnery1 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w10 dynamic db\\uaaikks_v1 993_6_221-5 764 0 nobody 3 84 hmachinnery1 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w11 dynamic db\\uaaikks_v1 993_6_221-5 764 0 nobody 3 84 hmachinnery1 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w12 dynamic db\\uaaikks_v1 993_6_221-5 764 0 nobody 3 84 hmachinnery1 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w13 dynamic db\\uaaikks_v1 993_6_221-5 764 0 nobody 3 84 hmachinnery1 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w14 dynamic db\\uaaikks_v1 993_6_221-5 764 0 nobody 3 84 hmachinnery1 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w15 dynamic db\\uaaikks_v1 993_6_221-5 764 0 nobody 3 84 hmachinnery1 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w16 dynamic db\\uaaikks_v1 993_6_221-5 764 0 nobody 3 84 hmachinnery1 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w17 dynamic db\\uaaikks_v1 993_6_221-5 764 0 nobody 3 84 hmachinnery1 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w18 dynamic db\\uaaikks_v1 993_6_221-5 764 0 nobody 3 84 hmachinnery1 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w19 dynamic db\\uaaikks_v1 993_6_221-5 764 0 nobody 3 84 hmachinnery1 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w20 dynamic db\\uaaikks_v1 993_6_221-5 764 0 nobody 3 84 hmachinnery1 enddynamic"
|
||||
]
|
||||
},
|
||||
"expect": "standstill",
|
||||
"duration": 1200,
|
||||
"timeout": 1500,
|
||||
"checks": [
|
||||
{
|
||||
"type": "starts",
|
||||
"min_speed": 20,
|
||||
"within": 300
|
||||
},
|
||||
{
|
||||
"type": "max_speed",
|
||||
"limit": 60,
|
||||
"tolerance": 5
|
||||
},
|
||||
{
|
||||
"type": "keeps_moving",
|
||||
"moving_speed": 20,
|
||||
"min_speed": 10,
|
||||
"until_distance": 2450
|
||||
},
|
||||
{
|
||||
"type": "stops",
|
||||
"moving_speed": 15,
|
||||
"stop_speed": 1.0,
|
||||
"hold": 20,
|
||||
"min_distance": 2950,
|
||||
"max_distance": 3110
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"description": "An ET41 with 25 loaded coal wagons (412W, 60 t each, cast-iron blocks, G; about 1670 t) on a line of its own beside td.scn: from the level down a gradient of 20 per mille at the 60 km/h of its timetable, into a 20 km/h restriction 400 m long 1500 m down the gradient, then to the signal at stop 3000 m down. The train is to pass through the restriction without coming to a stand, and stop at the signal (#263, #187).",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_downgrade_restriction.scn",
|
||||
"timetable": "td_freight_downgrade.txt",
|
||||
"vars": {
|
||||
"consist": [
|
||||
"node -1 0 {{vehicle}} dynamic pkp\\et41_v2 41-045-a 203e-a 0 headdriver 55 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_b dynamic pkp\\et41_v2 41-045-b 203e-b 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w01 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w02 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w03 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w04 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w05 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w06 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w07 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w08 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w09 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w10 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w11 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w12 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w13 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w14 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w15 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w16 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w17 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w18 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w19 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w20 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w21 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w22 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w23 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w24 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w25 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic"
|
||||
]
|
||||
},
|
||||
"expect": "standstill",
|
||||
"duration": 1200,
|
||||
"timeout": 1500,
|
||||
"checks": [
|
||||
{
|
||||
"type": "starts",
|
||||
"min_speed": 20,
|
||||
"within": 300
|
||||
},
|
||||
{
|
||||
"type": "max_speed",
|
||||
"limit": 60,
|
||||
"tolerance": 5
|
||||
},
|
||||
{
|
||||
"type": "keeps_moving",
|
||||
"moving_speed": 20,
|
||||
"min_speed": 10,
|
||||
"until_distance": 2400
|
||||
},
|
||||
{
|
||||
"type": "stops",
|
||||
"moving_speed": 15,
|
||||
"stop_speed": 1.0,
|
||||
"hold": 20,
|
||||
"min_distance": 2950,
|
||||
"max_distance": 3110
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
{
|
||||
"description": "An ET41 with 25 fully loaded coal wagons (412W, 80 t each, G; about 2170 t) starts on level track with the rail friction at 0.3 of its normal (eu07.ini friction 0.3, as on wet leaves), and runs to the signal at stop 1000 m ahead. The train is to get going, keep moving and stop at the signal (#187: heavy trains slip, grip and snatch over and over and often don't get going).",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_level_signal.scn",
|
||||
"timetable": "td_freight_downgrade.txt",
|
||||
"ini": [
|
||||
"friction 0.3"
|
||||
],
|
||||
"vars": {
|
||||
"consist": [
|
||||
"node -1 0 {{vehicle}} dynamic pkp\\et41_v2 41-045-a 203e-a 0 headdriver 55 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_b dynamic pkp\\et41_v2 41-045-b 203e-b 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w01 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 60 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w02 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 60 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w03 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 60 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w04 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 60 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w05 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 60 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w06 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 60 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w07 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 60 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w08 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 60 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w09 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 60 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w10 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 60 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w11 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 60 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w12 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 60 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w13 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 60 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w14 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 60 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w15 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 60 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w16 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 60 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w17 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 60 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w18 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 60 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w19 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 60 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w20 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 60 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w21 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 60 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w22 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 60 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w23 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 60 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w24 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 60 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w25 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 60 coal enddynamic"
|
||||
]
|
||||
},
|
||||
"expect": "standstill",
|
||||
"duration": 1500,
|
||||
"timeout": 1800,
|
||||
"checks": [
|
||||
{
|
||||
"type": "moves",
|
||||
"vehicle": "{{vehicle}}",
|
||||
"min_speed": 10
|
||||
},
|
||||
{
|
||||
"type": "keeps_moving",
|
||||
"moving_speed": 5,
|
||||
"min_speed": 3,
|
||||
"from_distance": 100,
|
||||
"until_distance": 900
|
||||
},
|
||||
{
|
||||
"type": "stops",
|
||||
"moving_speed": 10,
|
||||
"stop_speed": 1.0,
|
||||
"hold": 20,
|
||||
"min_distance": 1040,
|
||||
"max_distance": 1150
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,73 @@
|
||||
{
|
||||
"description": "An ET41 with 25 loaded coal wagons (412W, 60 t each, G; about 1670 t) on a line of its own beside td.scn: up a gradient of 10 per mille to the signal hu_sem1 1000 m up, at stop until 10:42, where it stops with the whole train on the gradient; when the signal clears, it is to start without rolling back and get away, to the signal at stop 2300 m up (#265, #187).",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_upgrade_signal_start.scn",
|
||||
"timetable": "td_freight_downgrade.txt",
|
||||
"vars": {
|
||||
"consist": [
|
||||
"node -1 0 {{vehicle}} dynamic pkp\\et41_v2 41-045-a 203e-a 0 headdriver 55 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_b dynamic pkp\\et41_v2 41-045-b 203e-b 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w01 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w02 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w03 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w04 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w05 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w06 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w07 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w08 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w09 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w10 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w11 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w12 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w13 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w14 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w15 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w16 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w17 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w18 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w19 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w20 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w21 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w22 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w23 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w24 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic",
|
||||
"node -1 0 {{vehicle}}_w25 dynamic pkp\\412w_v2 31515362022-6 412W 0 nobody 3 40 coal enddynamic"
|
||||
]
|
||||
},
|
||||
"expect": "standstill",
|
||||
"duration": 1500,
|
||||
"timeout": 1800,
|
||||
"checks": [
|
||||
{
|
||||
"type": "starts",
|
||||
"min_speed": 20,
|
||||
"within": 300
|
||||
},
|
||||
{
|
||||
"type": "max_speed",
|
||||
"limit": 60,
|
||||
"tolerance": 5
|
||||
},
|
||||
{
|
||||
"type": "stops",
|
||||
"moving_speed": 15,
|
||||
"stop_speed": 1.0,
|
||||
"hold": 60,
|
||||
"min_distance": 1040,
|
||||
"max_distance": 1110
|
||||
},
|
||||
{
|
||||
"type": "starts_again",
|
||||
"after": 480,
|
||||
"min_speed": 10,
|
||||
"within": 120,
|
||||
"max_rollback": 1.0
|
||||
},
|
||||
{
|
||||
"type": "distance",
|
||||
"min": 2340,
|
||||
"max": 2410
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"description": "#276: as et42_td_converter_interlock_cold, from the timetable start (trainset velocity 0.1, the locomotive ready to go).",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_timetable.scn",
|
||||
"vars": {
|
||||
"consist": [
|
||||
"node -1 0 {{vehicle}} dynamic pkp/et42_v2 112e-014-a {{variant_a}} 0 headdriver 255 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_b dynamic pkp/et42_v2 112e-014-b {{variant_b}} 0 nobody 3 0 enddynamic"
|
||||
]
|
||||
},
|
||||
"vehicle_variants": [
|
||||
{"name": "a", "from": "pkp/et42_v2/112e-a", "replace": [["IniCDelay=0.5 SCDelay=0.1", "IniCDelay=0.5 SCDelay=0.1 LineContactorsInterlock=Converter"]]},
|
||||
{"name": "b", "from": "pkp/et42_v2/112e-b", "replace": [["IniCDelay=0.5 SCDelay=0.1", "IniCDelay=0.5 SCDelay=0.1 LineContactorsInterlock=Converter"]]}
|
||||
],
|
||||
"duration": 240,
|
||||
"timeout": 600,
|
||||
"checks": [
|
||||
{"type": "starts", "min_speed": 20, "within": 150},
|
||||
{"type": "max_speed", "limit": 90, "tolerance": 3},
|
||||
{"type": "brakes", "min_pressure": 0.5},
|
||||
{"type": "stops", "moving_speed": 20, "stop_speed": 1.0, "hold": 0, "min_distance": 1380, "max_distance": 1420}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"description": "#276: an ET42 whose sections take power only with their own converter running (LineContactorsInterlock=Converter in Cntrl., the .fiz key the shipped et42_v2 doesn't have yet: a variant of both sections made for the run) stands cold on track 1 of Stacja1 on td.scn and gets the order to run the td/rozklad timetable. The AI has to start the converters before the line contactors close: it leaves, keeps to the speed limit and stops at Przystanek.",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_cold_timetable.scn",
|
||||
"vars": {
|
||||
"consist": [
|
||||
"node -1 0 {{vehicle}} dynamic pkp/et42_v2 112e-014-a {{variant_a}} 0 headdriver 255 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_b dynamic pkp/et42_v2 112e-014-b {{variant_b}} 0 nobody 3 0 enddynamic"
|
||||
]
|
||||
},
|
||||
"vehicle_variants": [
|
||||
{"name": "a", "from": "pkp/et42_v2/112e-a", "replace": [["IniCDelay=0.5 SCDelay=0.1", "IniCDelay=0.5 SCDelay=0.1 LineContactorsInterlock=Converter"]]},
|
||||
{"name": "b", "from": "pkp/et42_v2/112e-b", "replace": [["IniCDelay=0.5 SCDelay=0.1", "IniCDelay=0.5 SCDelay=0.1 LineContactorsInterlock=Converter"]]}
|
||||
],
|
||||
"track_events": {
|
||||
"tdo_n1734": "event0 autotest_wake"
|
||||
},
|
||||
"duration": 300,
|
||||
"timeout": 600,
|
||||
"checks": [
|
||||
{"type": "starts", "min_speed": 20, "within": 150},
|
||||
{"type": "max_speed", "limit": 90, "tolerance": 3},
|
||||
{"type": "brakes", "min_pressure": 0.5},
|
||||
{"type": "stops", "moving_speed": 20, "stop_speed": 1.0, "hold": 0, "min_distance": 1380, "max_distance": 1420}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"description": "#276, the check that the interlock takes effect: the ET42 of et42_td_converter_interlock_cold, with ConverterStartDelay=60 added to both sections, so the converters need a minute to start. With LineContactorsInterlock=Converter the line contactors wait for them and the train leaves later than it does with the same converter delay and no interlock (20 km/h at 80.0 s with it, at 73.8 s without it, measured with this case and a copy without the interlock key). Then it runs the timetable to Przystanek.",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_cold_timetable.scn",
|
||||
"vars": {
|
||||
"consist": [
|
||||
"node -1 0 {{vehicle}} dynamic pkp/et42_v2 112e-014-a {{variant_a}} 0 headdriver 255 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_b dynamic pkp/et42_v2 112e-014-b {{variant_b}} 0 nobody 3 0 enddynamic"
|
||||
]
|
||||
},
|
||||
"vehicle_variants": [
|
||||
{"name": "a", "from": "pkp/et42_v2/112e-a", "replace": [["IniCDelay=0.5 SCDelay=0.1", "IniCDelay=0.5 SCDelay=0.1 LineContactorsInterlock=Converter ConverterStartDelay=60"]]},
|
||||
{"name": "b", "from": "pkp/et42_v2/112e-b", "replace": [["IniCDelay=0.5 SCDelay=0.1", "IniCDelay=0.5 SCDelay=0.1 LineContactorsInterlock=Converter ConverterStartDelay=60"]]}
|
||||
],
|
||||
"track_events": {
|
||||
"tdo_n1734": "event0 autotest_wake"
|
||||
},
|
||||
"duration": 300,
|
||||
"timeout": 600,
|
||||
"checks": [
|
||||
{"type": "starts", "min_speed": 20, "after": 77, "within": 150},
|
||||
{"type": "max_speed", "limit": 90, "tolerance": 3},
|
||||
{"type": "brakes", "min_pressure": 0.5},
|
||||
{"type": "stops", "moving_speed": 20, "stop_speed": 1, "hold": 0, "min_distance": 1380, "max_distance": 1420}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"description": "An EU07 with three coaches on the line of eu07_td_downgrade_w4_signal, down a gradient of 20 per mille: stops at the W4 of Dol, then before the signal at stop. A train braking with the train brake, the control of the light EU07 and SN61 cases.",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_downgrade_w4_signal.scn",
|
||||
"timetable": "td_downgrade.txt",
|
||||
"vars": {
|
||||
"consist": [
|
||||
"node -1 0 {{vehicle}} dynamic pkp\\4e_v1 4e-004 4e 0 headdriver 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c1 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c2 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c3 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 0 0 enddynamic"
|
||||
]
|
||||
},
|
||||
"duration": 540,
|
||||
"timeout": 900,
|
||||
"checks": [
|
||||
{
|
||||
"type": "starts",
|
||||
"min_speed": 20,
|
||||
"within": 150
|
||||
},
|
||||
{
|
||||
"type": "max_speed",
|
||||
"limit": 80,
|
||||
"tolerance": 3
|
||||
},
|
||||
{
|
||||
"type": "stops",
|
||||
"moving_speed": 20,
|
||||
"stop_speed": 1.0,
|
||||
"hold": 20,
|
||||
"min_distance": 1500,
|
||||
"max_distance": 1700
|
||||
},
|
||||
{
|
||||
"type": "distance",
|
||||
"min": 2550,
|
||||
"max": 2750
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"description": "EU07 with three coaches on td.scn, AI driver on the td/rozklad timetable: starts from Stacja1, keeps to the speed limit, brakes to a stop at Przystanek with the train brake.",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_timetable.scn",
|
||||
"vars": {
|
||||
"consist": [
|
||||
"node -1 0 {{vehicle}} dynamic pkp\\4e_v1 4e-004 4e 0 headdriver 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c1 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c2 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c3 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 0 0 enddynamic"
|
||||
]
|
||||
},
|
||||
"duration": 360,
|
||||
"timeout": 600,
|
||||
"checks": [
|
||||
{
|
||||
"type": "starts",
|
||||
"min_speed": 20,
|
||||
"within": 150
|
||||
},
|
||||
{
|
||||
"type": "max_speed",
|
||||
"limit": 90,
|
||||
"tolerance": 3
|
||||
},
|
||||
{
|
||||
"type": "brakes",
|
||||
"min_pressure": 0.5
|
||||
},
|
||||
{
|
||||
"type": "stops",
|
||||
"moving_speed": 20,
|
||||
"stop_speed": 1.0,
|
||||
"hold": 0,
|
||||
"min_distance": 1380,
|
||||
"max_distance": 1420
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"description": "EU07 on td.scn on the td/rozklad timetable; at 10:35, as it leaves, the curve tdo_n222 about 950 m ahead buckles hard with a trackbuckle event: 600 mm out of the curve over a main lobe of 8 m (an equivalent radius of 9 m, about 30 m for the body on axles 11 m apart). The AI doesn't see it and runs into it at the 46 km/h it has there: the locomotive leaves the rails on the buckle and stops short of Przystanek.",
|
||||
"description": "EU07 on td.scn on the td/rozklad timetable; at 10:35, as it leaves, the curve tdo_n222 about 950 m ahead buckles hard with a trackbuckle event: 600 mm out of the curve over a main lobe of 8 m (an equivalent radius of 9 m, about 30 m for the body on axles 11 m apart). The AI doesn't see it and runs into it at the 46 km/h it has there: with physics.derailment new (the default, monitor, only logs what the criteria would do and the train runs on) the locomotive leaves the rails on the buckle and stops short of Przystanek.",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_buckle_event.scn",
|
||||
@@ -7,7 +7,7 @@
|
||||
"consist": "node -1 0 {{vehicle}} dynamic pkp\\4e_v1 4e-004 4e 0 headdriver 0 0 enddynamic",
|
||||
"amplitude": "600 8"
|
||||
},
|
||||
"ini": ["gfxrenderer null"],
|
||||
"ini": ["gfxrenderer null", "physics.derailment new"],
|
||||
"duration": 240,
|
||||
"timeout": 600,
|
||||
"checks": [
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"description": "EU07 on td.scn on the td/rozklad timetable; at 10:35, as it leaves, the curve tdo_n222 about 950 m ahead buckles with a trackbuckle event (30 mm out of the curve, as the heat does: an equivalent radius of 330 m, too little to derail it). The track is laid again during the game and the train keeps on it to Przystanek.",
|
||||
"description": "EU07 on td.scn on the td/rozklad timetable; at 10:35, as it leaves, the curve tdo_n222 about 950 m ahead buckles with a trackbuckle event (30 mm out of the curve, as the heat does: an equivalent radius of 330 m, too little to derail it). The track is laid again during the game and the train keeps on it to Przystanek, with physics.derailment new: the criteria decide, as in eu07_td_buckle_derails.",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_buckle_event.scn",
|
||||
@@ -7,7 +7,7 @@
|
||||
"consist": "node -1 0 {{vehicle}} dynamic pkp\\4e_v1 4e-004 4e 0 headdriver 0 0 enddynamic",
|
||||
"amplitude": "30"
|
||||
},
|
||||
"ini": ["gfxrenderer null"],
|
||||
"ini": ["gfxrenderer null", "physics.derailment new"],
|
||||
"duration": 240,
|
||||
"timeout": 600,
|
||||
"checks": [
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"description": "The reference of ep05_td_dead_section: an EU07, whose pantographs come first and whose line breaker opens without voltage (no PantRequiresMain), runs into the same span without voltage under power. Its line breaker opens 0.2 s into the section (the log says it lost power for 0.2x s, no longer: it says so only while the line breaker is closed), and behind it the AI closes the line breaker again, takes power and stops at Przystanek.",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_timetable.scn",
|
||||
"vars": {
|
||||
"consist": "node -1 0 {{vehicle}} dynamic pkp/4e_v1 4e-004 4e 0 headdriver 0 0 enddynamic"
|
||||
},
|
||||
"replace": [
|
||||
["node -1 0 none traction pwr01 3500 4500 0.01 cu 3.0 1\r\n0.7764 5.845 1561.2417", "node -1 0 none traction none 0 4500 0.01 cu 3.0 1\r\n0.7764 5.845 1561.2417"]
|
||||
],
|
||||
"duration": 240,
|
||||
"timeout": 600,
|
||||
"checks": [
|
||||
{"type": "starts", "min_speed": 20, "within": 150},
|
||||
{"type": "max_speed", "limit": 90, "tolerance": 3},
|
||||
{"type": "log_contains", "pattern": "lost power for 0\\.2\\d sec"},
|
||||
{"type": "log_lacks", "pattern": "lost power for (0\\.[3-9]|[1-9])"},
|
||||
{"type": "traction", "from_distance": 460, "to_distance": 700, "reaches": 25},
|
||||
{"type": "stops", "moving_speed": 20, "stop_speed": 1.0, "hold": 0, "min_distance": 1380, "max_distance": 1420}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"description": "A light EU07 on a line of its own beside td.scn, down a gradient of 20 per mille on a timetable: stops at the W4 of Dol 1500 m down the gradient, leaves at 10:38 and stops before the signal gr_sem at stop 1100 m further down. The EU07 alone brakes with its independent brake.",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_downgrade_w4_signal.scn",
|
||||
"timetable": "td_downgrade.txt",
|
||||
"vars": {
|
||||
"consist": "node -1 0 {{vehicle}} dynamic pkp\\4e_v1 4e-004 4e 0 headdriver 0 0 enddynamic"
|
||||
},
|
||||
"duration": 540,
|
||||
"timeout": 900,
|
||||
"checks": [
|
||||
{
|
||||
"type": "starts",
|
||||
"min_speed": 20,
|
||||
"within": 150
|
||||
},
|
||||
{
|
||||
"type": "max_speed",
|
||||
"limit": 80,
|
||||
"tolerance": 3
|
||||
},
|
||||
{
|
||||
"type": "stops",
|
||||
"moving_speed": 20,
|
||||
"stop_speed": 1.0,
|
||||
"hold": 20,
|
||||
"min_distance": 1500,
|
||||
"max_distance": 1700
|
||||
},
|
||||
{
|
||||
"type": "stops",
|
||||
"moving_speed": 20,
|
||||
"stop_speed": 1.0,
|
||||
"hold": 20,
|
||||
"min_distance": 2550,
|
||||
"max_distance": 2750,
|
||||
"max_time": 355,
|
||||
"nth": 2
|
||||
},
|
||||
{
|
||||
"type": "distance",
|
||||
"min": 2550,
|
||||
"max": 2750
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"description": "eu07/maszyna#350, #282: an EU07 on td.scn couples on the run (Shunt -3 3) to a cut standing on the line, 16 coaches with P alone and 8 empty wagons with G and P, 541 m of wagons, and runs it on as a train (Obey_train): a train on G (Cw-1 19.1), so the brakes of the coaches are to be cut out (19.9). The inspector looks at the train as it couples, at 4 km/h, and leaves the cut-outs for the standstill; reinspect_brakes() makes them as the train stands just after. The driver taken off at 38 km/h leaves the brake valve in the emergency position: braked by the locomotive and the 8 wagons alone the train stops at some 0.27 m/s2, over 210 m (with every brake working, 0.57 m/s2 over 99 m).",
|
||||
"base_scenery": "td.scn",
|
||||
"fragment": "td_reinspect_brakes.scn",
|
||||
"vars": {
|
||||
"locomotive": "pkp\\4e_v1 4e-004 4e",
|
||||
"cut": [
|
||||
"node -1 0 {{vehicle}}_c01 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c02 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c03 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c04 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c05 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c06 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c07 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c08 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c09 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c10 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c11 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c12 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c13 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c14 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c15 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c16 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w1 dynamic pkp\\401w_v2 82515314470-4 401w_w_d 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w2 dynamic pkp\\401w_v2 82515314470-4 401w_w_d 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w3 dynamic pkp\\401w_v2 82515314470-4 401w_w_d 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w4 dynamic pkp\\401w_v2 82515314470-4 401w_w_d 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w5 dynamic pkp\\401w_v2 82515314470-4 401w_w_d 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w6 dynamic pkp\\401w_v2 82515314470-4 401w_w_d 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w7 dynamic pkp\\401w_v2 82515314470-4 401w_w_d 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w8 dynamic pkp\\401w_v2 82515314470-4 401w_w_d 0 nobody 0 0 enddynamic"
|
||||
]
|
||||
},
|
||||
"track_events": {
|
||||
"koniec": "event0 autotest_wake",
|
||||
"tdo_n231": "event2 autotest_way",
|
||||
"tdo_n240": "event2 autotest_crew_off"
|
||||
},
|
||||
"test_config": [
|
||||
"test.timeout 1200",
|
||||
"test.standstill 600"
|
||||
],
|
||||
"expect": "pass",
|
||||
"timeout": 600,
|
||||
"checks": [
|
||||
{
|
||||
"type": "couples",
|
||||
"vehicle": "{{vehicle}}",
|
||||
"other": "{{vehicle}}_w8"
|
||||
},
|
||||
{
|
||||
"type": "stops_driverless",
|
||||
"vehicle": "{{vehicle}}",
|
||||
"min_speed": 30,
|
||||
"within": 90,
|
||||
"hold": 60,
|
||||
"min_deceleration": 0.15,
|
||||
"max_deceleration": 0.4
|
||||
},
|
||||
{
|
||||
"type": "log_lacks",
|
||||
"pattern": "derailed"
|
||||
},
|
||||
{
|
||||
"type": "log_lacks",
|
||||
"pattern": "collided"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"description": "The train of eu07_td_reinspect_brakes_after_coupling with the inspector of the releases before eu07/maszyna#350 (ai.brakesetting.cw1 no), which cuts no brake out: every brake of the train works, and the emergency stop after the driver is taken off at 38 km/h comes at some 0.57 m/s2, over 99 m. It shows what the deceleration check of that case tells apart.",
|
||||
"base_scenery": "td.scn",
|
||||
"fragment": "td_reinspect_brakes.scn",
|
||||
"vars": {
|
||||
"locomotive": "pkp\\4e_v1 4e-004 4e",
|
||||
"cut": [
|
||||
"node -1 0 {{vehicle}}_c01 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c02 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c03 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c04 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c05 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c06 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c07 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c08 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c09 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c10 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c11 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c12 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c13 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c14 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c15 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c16 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w1 dynamic pkp\\401w_v2 82515314470-4 401w_w_d 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w2 dynamic pkp\\401w_v2 82515314470-4 401w_w_d 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w3 dynamic pkp\\401w_v2 82515314470-4 401w_w_d 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w4 dynamic pkp\\401w_v2 82515314470-4 401w_w_d 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w5 dynamic pkp\\401w_v2 82515314470-4 401w_w_d 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w6 dynamic pkp\\401w_v2 82515314470-4 401w_w_d 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w7 dynamic pkp\\401w_v2 82515314470-4 401w_w_d 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w8 dynamic pkp\\401w_v2 82515314470-4 401w_w_d 0 nobody 0 0 enddynamic"
|
||||
]
|
||||
},
|
||||
"track_events": {
|
||||
"koniec": "event0 autotest_wake",
|
||||
"tdo_n231": "event2 autotest_way",
|
||||
"tdo_n240": "event2 autotest_crew_off"
|
||||
},
|
||||
"test_config": [
|
||||
"test.timeout 1200",
|
||||
"test.standstill 600"
|
||||
],
|
||||
"expect": "pass",
|
||||
"timeout": 600,
|
||||
"checks": [
|
||||
{
|
||||
"type": "couples",
|
||||
"vehicle": "{{vehicle}}",
|
||||
"other": "{{vehicle}}_w8"
|
||||
},
|
||||
{
|
||||
"type": "stops_driverless",
|
||||
"vehicle": "{{vehicle}}",
|
||||
"min_speed": 30,
|
||||
"within": 60,
|
||||
"hold": 60,
|
||||
"min_deceleration": 0.45
|
||||
},
|
||||
{
|
||||
"type": "log_lacks",
|
||||
"pattern": "derailed"
|
||||
},
|
||||
{
|
||||
"type": "log_lacks",
|
||||
"pattern": "collided"
|
||||
}
|
||||
],
|
||||
"ini": [
|
||||
"ai.brakesetting.cw1 no"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"description": "EU07 shunting on td.scn (no timetable, so its AI drives under Shunt), pushing three coaches with no route set, the first coach starting at 30 km/h about 150 m before the exit signal stacja1_j at stop: stops before the signal and stays there.",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_shunt_red_signal.scn",
|
||||
"vars": {
|
||||
"offset": "0.0",
|
||||
"velocity": "30",
|
||||
"consist": [
|
||||
"node -1 0 {{vehicle}}_w1 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 115 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w2 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608011-6 BDHPUMN_NG_1 0 nobody 115 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w3 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 115 0 enddynamic",
|
||||
"node -1 0 {{vehicle}} dynamic pkp\\4e_v1 4e-004 4e 0 headdriver 0 0 enddynamic"
|
||||
]
|
||||
},
|
||||
"duration": 240,
|
||||
"timeout": 600,
|
||||
"checks": [
|
||||
{ "type": "max_speed", "limit": 40 },
|
||||
{ "type": "stops", "moving_speed": 5, "stop_speed": 0.5, "hold": 5 },
|
||||
{ "type": "stays_stopped", "moving_speed": 5, "stop_speed": 0.5 },
|
||||
{ "type": "distance", "max": 150 }
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"description": "EU07 shunting on td.scn (no timetable, so its AI drives under Shunt) with no route set, starting at 30 km/h about 150 m before the exit signal stacja1_j at stop: stops before the signal and stays there.",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_shunt_red_signal.scn",
|
||||
"vars": {
|
||||
"offset": "0.0",
|
||||
"velocity": "30",
|
||||
"consist": "node -1 0 {{vehicle}} dynamic pkp\\4e_v1 4e-004 4e 0 headdriver 0 0 enddynamic"
|
||||
},
|
||||
"duration": 240,
|
||||
"timeout": 600,
|
||||
"checks": [
|
||||
{ "type": "max_speed", "limit": 40 },
|
||||
{ "type": "stops", "moving_speed": 5, "stop_speed": 0.5, "hold": 5 },
|
||||
{ "type": "stays_stopped", "moving_speed": 5, "stop_speed": 0.5 },
|
||||
{ "type": "distance", "max": 150 }
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"description": "An EU07A (303E) with 8 coaches (about 360 t) on a line of its own beside td.scn: up a gradient of 10 per mille, 5.5 km long, at the 80 km/h of its timetable, to the signal at stop 5300 m up. The train is to keep above 70 km/h on the climb (#187: an EU07A hung at 55-58 km/h on 10 per mille).",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_upgrade_long.scn",
|
||||
"timetable": "td_passenger_upgrade.txt",
|
||||
"vars": {
|
||||
"consist": [
|
||||
"node -1 0 {{vehicle}} dynamic pkp\\303e_v1 303E-336'20 303E 0 headdriver 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c1 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c2 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c3 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c4 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c5 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c6 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c7 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_c8 dynamic pkp\\bdhpumn_v3 bdhpumn_50512608068-6 BDHPUMN_TAPICERKA_1 0 nobody 3 0 enddynamic"
|
||||
]
|
||||
},
|
||||
"expect": "standstill",
|
||||
"duration": 1200,
|
||||
"timeout": 1500,
|
||||
"checks": [
|
||||
{
|
||||
"type": "starts",
|
||||
"min_speed": 20,
|
||||
"within": 150
|
||||
},
|
||||
{
|
||||
"type": "max_speed",
|
||||
"limit": 80,
|
||||
"tolerance": 3
|
||||
},
|
||||
{
|
||||
"type": "keeps_moving",
|
||||
"moving_speed": 20,
|
||||
"min_speed": 70,
|
||||
"from_distance": 2500,
|
||||
"until_distance": 4800
|
||||
},
|
||||
{
|
||||
"type": "stops",
|
||||
"moving_speed": 15,
|
||||
"stop_speed": 1.0,
|
||||
"hold": 20,
|
||||
"min_distance": 5330,
|
||||
"max_distance": 5410
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -10,7 +10,6 @@
|
||||
"reason": "tme222158_got_the_exit_signal_at_debica"
|
||||
},
|
||||
"slow": true,
|
||||
"xfail": "eu07/maszyna#421 is not reached: with every train driven by AI Debica jams 4 minutes after the start, the AI of EP07-338'16 passes the shunting signal Tm4 at stop at 29 km/h and stops 20 m beyond the checkpoint before it (tor1834:event0), so RPE23113 never reports there and TME222158 is never let into the station",
|
||||
"physicslog": false,
|
||||
"ini": [
|
||||
"file.binary.terrain no"
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
"reason": "tme222158_got_the_exit_signal_at_debica"
|
||||
},
|
||||
"slow": true,
|
||||
"xfail": "eu07/maszyna#421: the ET21 stands for good at Debica Towarowa with the shunting signal at Ms2. Running round the wagons it stops on the headshunt 20 m past the end of the overhead wire (the wire ends at z 4804 over tor2466, the locomotive stands at z 4786), loses power, and its driver never gets out of Prepare_engine; the ET22 the scenery has there now gets through",
|
||||
"physicslog": false,
|
||||
"ini": [
|
||||
"file.binary.terrain no"
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"description": "SM42 shunter on td.scn pulls three loaded wagons back along tor1k and stops with the far end of the last one a few metres past the exit signal stacja1_j at stop, then gets Shunt 0 0 (uncouple): after the direction change the signal lies at stop over that wagon, behind the new head, and the AI has to push the buffers in all the same and let the coupler go.",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_uncouple_past_signal.scn",
|
||||
"vars": {
|
||||
"wagons": [
|
||||
"node -1 0 {{vehicle}}_w3 dynamic pkp\\401z_v2 82515940087-8 401zp_2 0 nobody 3 60 gravel enddynamic",
|
||||
"node -1 0 {{vehicle}}_w2 dynamic pkp\\401z_v2 82515942691-5 401zp_1 0 nobody 3 60 gravel enddynamic",
|
||||
"node -1 0 {{vehicle}}_w1 dynamic pkp\\401z_v2 82515993043-7 401zl_2 0 nobody 3 60 gravel enddynamic"
|
||||
]
|
||||
},
|
||||
"track_events": {
|
||||
"tor1k": "event0 autotest_wake"
|
||||
},
|
||||
"test_config": [
|
||||
"test.fail_if_stop_overran no"
|
||||
],
|
||||
"duration": 180,
|
||||
"timeout": 600,
|
||||
"checks": [
|
||||
{ "type": "log_contains", "pattern": "Uncoupling \\[autotest_sm42_td_uncouple_past_signal\\]: uncoupled" },
|
||||
{ "type": "distance", "min": 45, "max": 49 }
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"description": "An SN61 railcar alone on the line of eu07_td_downgrade_w4_signal, down a gradient of 20 per mille: stops at the W4 of Dol, then before the signal at stop. The SN61 alone brakes with its independent brake.",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_downgrade_w4_signal.scn",
|
||||
"timetable": "td_downgrade.txt",
|
||||
"vars": {
|
||||
"consist": "node -1 0 {{vehicle}} dynamic pkp\\sn61_v2 SN61-13 SN61_v1 0 headdriver 0 0 enddynamic"
|
||||
},
|
||||
"duration": 540,
|
||||
"timeout": 900,
|
||||
"checks": [
|
||||
{
|
||||
"type": "starts",
|
||||
"min_speed": 20,
|
||||
"within": 150
|
||||
},
|
||||
{
|
||||
"type": "max_speed",
|
||||
"limit": 80,
|
||||
"tolerance": 3
|
||||
},
|
||||
{
|
||||
"type": "stops",
|
||||
"moving_speed": 20,
|
||||
"stop_speed": 1.0,
|
||||
"hold": 20,
|
||||
"min_distance": 1500,
|
||||
"max_distance": 1700
|
||||
},
|
||||
{
|
||||
"type": "stops",
|
||||
"moving_speed": 20,
|
||||
"stop_speed": 1.0,
|
||||
"hold": 20,
|
||||
"min_distance": 2550,
|
||||
"max_distance": 2750,
|
||||
"max_time": 366,
|
||||
"nth": 2
|
||||
},
|
||||
{
|
||||
"type": "distance",
|
||||
"min": 2550,
|
||||
"max": 2750
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
{
|
||||
"description": "An ST43 with 45 loaded steel coil wagons (425S, G) on a line of its own beside td.scn: from the level down a gradient of 12 per mille, 6 km long, at the 40 km/h of its timetable, to the signal at stop 6000 m down. The train is not to come to a stand on the way down (#199).",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_downgrade12_long.scn",
|
||||
"timetable": "td_freight_downgrade12.txt",
|
||||
"vars": {
|
||||
"consist": [
|
||||
"node -1 0 {{vehicle}} dynamic pkp\\st43_v1 st43-195 060Da 0 headdriver 3 0 enddynamic",
|
||||
"node -1 0 {{vehicle}}_w01 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w02 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w03 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w04 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w05 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w06 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w07 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w08 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w09 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w10 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w11 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w12 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w13 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w14 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w15 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w16 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w17 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w18 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w19 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w20 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w21 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w22 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w23 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w24 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w25 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w26 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w27 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w28 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w29 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w30 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w31 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w32 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w33 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w34 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w35 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w36 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w37 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w38 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w39 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w40 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w41 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w42 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w43 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w44 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic",
|
||||
"node -1 0 {{vehicle}}_w45 dynamic pkp\\425s_v1 31514644357-9 425S_1 0 nobody 3 3 steel_coils enddynamic"
|
||||
]
|
||||
},
|
||||
"expect": "standstill",
|
||||
"duration": 1500,
|
||||
"timeout": 1800,
|
||||
"checks": [
|
||||
{
|
||||
"type": "starts",
|
||||
"min_speed": 20,
|
||||
"within": 400
|
||||
},
|
||||
{
|
||||
"type": "max_speed",
|
||||
"limit": 40,
|
||||
"tolerance": 5
|
||||
},
|
||||
{
|
||||
"type": "keeps_moving",
|
||||
"moving_speed": 20,
|
||||
"min_speed": 5,
|
||||
"until_distance": 5800
|
||||
},
|
||||
{
|
||||
"type": "stops",
|
||||
"moving_speed": 15,
|
||||
"stop_speed": 1.0,
|
||||
"hold": 20,
|
||||
"min_distance": 5950,
|
||||
"max_distance": 6110
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
________________________________________________________________
|
||||
[ Rodzaj i numer pociagu | TEST26 ]
|
||||
[ Kategoria | RO ]
|
||||
[________________________________________________|______________]
|
||||
[ | Gora ]
|
||||
[ Relacja pociagu | Koniec ]
|
||||
[________________________________________________|______________]
|
||||
[ Wymagany % ciezaru hamujacego | 88% ]
|
||||
[________________________________________________|______________]
|
||||
[ Seria i obciazenie lokomotywy | EU07 210 ]
|
||||
[________________________________________________|______________]
|
||||
[ | | Gora 2 | | ]
|
||||
[ | 80 | R1,L,H,RT,PP 2 10.35 | ]
|
||||
[ | |----------------------------------1----------|---]
|
||||
[ | | Dol 1 10.37 | 4 ]
|
||||
[ |_____| R1,+,L,H,PP 1 10.38 | ]
|
||||
[ | 80 |----------------------------------1----------|---]
|
||||
[ | | Koniec 1 10.45 | 7 ]
|
||||
[ | | R1 1 10.46 | ]
|
||||
[_______|_____|__________________________________1__________|___]
|
||||
@@ -0,0 +1,608 @@
|
||||
// added by tests/scenarios/run.py to td.scn, whose own trainsets were removed.
|
||||
// a line of its own, away from the tracks of td.scn: 900 m level, then 6500 m down a gradient of 12 per mille,
|
||||
// with no overhead wire (diesel trains). the train starts on the level with its head 10 m before the W4 of Gora and runs on
|
||||
// the timetable {{timetable}} (no stop; a freight train leaves Gora at once) at its line limit, down to the signal hl_sem
|
||||
// at stop 6000 m down the gradient. the line goes on 500 m past the signal
|
||||
node -1 0 hl_00 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -900.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -800.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_01 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -800.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -700.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_02 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -700.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -600.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_03 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -600.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_04 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -500.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_05 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_06 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_07 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_08 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 0.0 0.0
|
||||
0
|
||||
event2 gora#1_stopinfo
|
||||
endtrack
|
||||
node -1 0 hl_09 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 58.80 100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_10 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 58.80 100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 57.60 200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_11 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 57.60 200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 56.40 300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_12 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 56.40 300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 55.20 400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_13 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 55.20 400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 54.00 500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_14 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 54.00 500.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 52.80 600.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_15 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 52.80 600.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 51.60 700.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_16 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 51.60 700.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 50.40 800.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_17 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 50.40 800.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 49.20 900.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_18 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 49.20 900.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 48.00 1000.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_19 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 48.00 1000.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 46.80 1100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_20 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 46.80 1100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 45.60 1200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_21 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 45.60 1200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 44.40 1300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_22 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 44.40 1300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 43.20 1400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_23 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 43.20 1400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 42.00 1500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_24 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 42.00 1500.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 40.80 1600.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_25 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 40.80 1600.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 39.60 1700.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_26 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 39.60 1700.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 38.40 1800.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_27 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 38.40 1800.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 37.20 1900.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_28 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 37.20 1900.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 36.00 2000.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_29 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 36.00 2000.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 34.80 2100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_30 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 34.80 2100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 33.60 2200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_31 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 33.60 2200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 32.40 2300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_32 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 32.40 2300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 31.20 2400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_33 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 31.20 2400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 30.00 2500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_34 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 30.00 2500.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 28.80 2600.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_35 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 28.80 2600.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 27.60 2700.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_36 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 27.60 2700.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 26.40 2800.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_37 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 26.40 2800.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 25.20 2900.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_38 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 25.20 2900.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 24.00 3000.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_39 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 24.00 3000.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 22.80 3100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_40 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 22.80 3100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 21.60 3200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_41 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 21.60 3200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 20.40 3300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_42 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 20.40 3300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 19.20 3400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_43 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 19.20 3400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 18.00 3500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_44 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 18.00 3500.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 16.80 3600.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_45 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 16.80 3600.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 15.60 3700.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_46 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 15.60 3700.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 14.40 3800.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_47 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 14.40 3800.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 13.20 3900.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_48 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 13.20 3900.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 12.00 4000.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_49 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 12.00 4000.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 10.80 4100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_50 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 10.80 4100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 9.60 4200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_51 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 9.60 4200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 8.40 4300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_52 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 8.40 4300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 7.20 4400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_53 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 7.20 4400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 6.00 4500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_54 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 6.00 4500.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 4.80 4600.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_55 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 4.80 4600.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 3.60 4700.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_56 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 3.60 4700.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 2.40 4800.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_57 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 2.40 4800.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 1.20 4900.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_58 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 1.20 4900.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 -0.00 5000.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_59 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 -0.00 5000.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 -1.20 5100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_60 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 -1.20 5100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 -2.40 5200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_61 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 -2.40 5200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 -3.60 5300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_62 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 -3.60 5300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 -4.80 5400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_63 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 -4.80 5400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 -6.00 5500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_64 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 -6.00 5500.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 -7.20 5600.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_65 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 -7.20 5600.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 -8.40 5700.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_66 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 -8.40 5700.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 -9.60 5800.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_67 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 -9.60 5800.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 -10.80 5900.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_68 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 -10.80 5900.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 -12.00 6000.0 0.0
|
||||
0
|
||||
event2 hl_sem_info
|
||||
endtrack
|
||||
node -1 0 hl_69 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 -12.00 6000.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 -13.20 6100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_70 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 -13.20 6100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 -14.40 6200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_71 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 -14.40 6200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 -15.60 6300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_72 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 -15.60 6300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 -16.80 6400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hl_73 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 -16.80 6400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 -18.00 6500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
// the W4 of the stations of the timetable
|
||||
include ip/pkp/w4n.inc gora#1 -2997.3 60.00 -90.0 180 0 0 -10 202 end
|
||||
// a signal at stop: what the AI reads of one, a memory cell with SetVelocity 0 0 and the event that reads it
|
||||
node -1 0 hl_sem_mem memcell -2997.3 -4.00 6000.0 SetVelocity 0.0 0.0 none endmemcell
|
||||
event hl_sem_info getvalues 5.0 hl_sem_mem endevent
|
||||
|
||||
trainset {{timetable}} hl_08 0.0 0.1
|
||||
{{consist}}
|
||||
endtrainset
|
||||
@@ -0,0 +1,638 @@
|
||||
// added by tests/scenarios/run.py to td.scn, whose own trainsets were removed.
|
||||
// a line of its own, away from the tracks of td.scn: 600 m level, then 3500 m down a gradient of 20 per mille,
|
||||
// under an overhead wire. the train starts on the level with its head 10 m before the W4 of Gora and runs on the timetable
|
||||
// {{timetable}} (no stop; a freight train leaves Gora at once): its line limit, a 20 km/h restriction from 1500 to 1900 m
|
||||
// down the gradient, then the signal hr_sem at stop 3000 m down the gradient. the line goes on 500 m past the signal
|
||||
node -1 0 hr_00 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -600.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_01 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -500.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_02 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_03 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_04 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_05 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 0.0 0.0
|
||||
0
|
||||
event2 gora#1_stopinfo
|
||||
endtrack
|
||||
node -1 0 hr_06 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 58.00 100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_07 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 58.00 100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 56.00 200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_08 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 56.00 200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 54.00 300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_09 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 54.00 300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 52.00 400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_10 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 52.00 400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 50.00 500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_11 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 50.00 500.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 48.00 600.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_12 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 48.00 600.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 46.00 700.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_13 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 46.00 700.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 44.00 800.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_14 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 44.00 800.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 42.00 900.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_15 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 42.00 900.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 40.00 1000.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_16 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 40.00 1000.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 38.00 1100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_17 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 38.00 1100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 36.00 1200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_18 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 36.00 1200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 34.00 1300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_19 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 34.00 1300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 32.00 1400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_20 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 32.00 1400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 30.00 1500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_21 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 30.00 1500.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 28.00 1600.0 0.0
|
||||
0
|
||||
velocity 20
|
||||
endtrack
|
||||
node -1 0 hr_22 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 28.00 1600.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 26.00 1700.0 0.0
|
||||
0
|
||||
velocity 20
|
||||
endtrack
|
||||
node -1 0 hr_23 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 26.00 1700.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 24.00 1800.0 0.0
|
||||
0
|
||||
velocity 20
|
||||
endtrack
|
||||
node -1 0 hr_24 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 24.00 1800.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 22.00 1900.0 0.0
|
||||
0
|
||||
velocity 20
|
||||
endtrack
|
||||
node -1 0 hr_25 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 22.00 1900.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 20.00 2000.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_26 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 20.00 2000.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 18.00 2100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_27 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 18.00 2100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 16.00 2200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_28 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 16.00 2200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 14.00 2300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_29 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 14.00 2300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 12.00 2400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_30 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 12.00 2400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 10.00 2500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_31 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 10.00 2500.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 8.00 2600.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_32 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 8.00 2600.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 6.00 2700.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_33 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 6.00 2700.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 4.00 2800.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_34 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 4.00 2800.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 2.00 2900.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_35 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 2.00 2900.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 0.00 3000.0 0.0
|
||||
0
|
||||
event2 hr_sem_info
|
||||
endtrack
|
||||
node -1 0 hr_36 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 0.00 3000.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 -2.00 3100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_37 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 -2.00 3100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 -4.00 3200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_38 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 -4.00 3200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 -6.00 3300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_39 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 -6.00 3300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 -8.00 3400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hr_40 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 -8.00 3400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 -10.00 3500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
// the overhead wire along the whole line, as td.scn has it: 5.6 m above the rail, the carrier 1.7 m higher, fed by
|
||||
// a substation of its own
|
||||
node -1 0 hr_pwr tractionpowersource -3000.0 60.00 0.0 3400 0 0.01 2000 1.0 3 60.0 end
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -600.0
|
||||
-3000.0 65.60 -500.0
|
||||
-3000.0 67.30 -600.0
|
||||
-3000.0 67.30 -500.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -500.0
|
||||
-3000.0 65.60 -400.0
|
||||
-3000.0 67.30 -500.0
|
||||
-3000.0 67.30 -400.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -400.0
|
||||
-3000.0 65.60 -300.0
|
||||
-3000.0 67.30 -400.0
|
||||
-3000.0 67.30 -300.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -300.0
|
||||
-3000.0 65.60 -200.0
|
||||
-3000.0 67.30 -300.0
|
||||
-3000.0 67.30 -200.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -200.0
|
||||
-3000.0 65.60 -100.0
|
||||
-3000.0 67.30 -200.0
|
||||
-3000.0 67.30 -100.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -100.0
|
||||
-3000.0 65.60 0.0
|
||||
-3000.0 67.30 -100.0
|
||||
-3000.0 67.30 0.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 0.0
|
||||
-3000.0 63.60 100.0
|
||||
-3000.0 67.30 0.0
|
||||
-3000.0 65.30 100.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 63.60 100.0
|
||||
-3000.0 61.60 200.0
|
||||
-3000.0 65.30 100.0
|
||||
-3000.0 63.30 200.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 61.60 200.0
|
||||
-3000.0 59.60 300.0
|
||||
-3000.0 63.30 200.0
|
||||
-3000.0 61.30 300.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 59.60 300.0
|
||||
-3000.0 57.60 400.0
|
||||
-3000.0 61.30 300.0
|
||||
-3000.0 59.30 400.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 57.60 400.0
|
||||
-3000.0 55.60 500.0
|
||||
-3000.0 59.30 400.0
|
||||
-3000.0 57.30 500.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 55.60 500.0
|
||||
-3000.0 53.60 600.0
|
||||
-3000.0 57.30 500.0
|
||||
-3000.0 55.30 600.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 53.60 600.0
|
||||
-3000.0 51.60 700.0
|
||||
-3000.0 55.30 600.0
|
||||
-3000.0 53.30 700.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 51.60 700.0
|
||||
-3000.0 49.60 800.0
|
||||
-3000.0 53.30 700.0
|
||||
-3000.0 51.30 800.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 49.60 800.0
|
||||
-3000.0 47.60 900.0
|
||||
-3000.0 51.30 800.0
|
||||
-3000.0 49.30 900.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 47.60 900.0
|
||||
-3000.0 45.60 1000.0
|
||||
-3000.0 49.30 900.0
|
||||
-3000.0 47.30 1000.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 45.60 1000.0
|
||||
-3000.0 43.60 1100.0
|
||||
-3000.0 47.30 1000.0
|
||||
-3000.0 45.30 1100.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 43.60 1100.0
|
||||
-3000.0 41.60 1200.0
|
||||
-3000.0 45.30 1100.0
|
||||
-3000.0 43.30 1200.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 41.60 1200.0
|
||||
-3000.0 39.60 1300.0
|
||||
-3000.0 43.30 1200.0
|
||||
-3000.0 41.30 1300.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 39.60 1300.0
|
||||
-3000.0 37.60 1400.0
|
||||
-3000.0 41.30 1300.0
|
||||
-3000.0 39.30 1400.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 37.60 1400.0
|
||||
-3000.0 35.60 1500.0
|
||||
-3000.0 39.30 1400.0
|
||||
-3000.0 37.30 1500.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 35.60 1500.0
|
||||
-3000.0 33.60 1600.0
|
||||
-3000.0 37.30 1500.0
|
||||
-3000.0 35.30 1600.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 33.60 1600.0
|
||||
-3000.0 31.60 1700.0
|
||||
-3000.0 35.30 1600.0
|
||||
-3000.0 33.30 1700.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 31.60 1700.0
|
||||
-3000.0 29.60 1800.0
|
||||
-3000.0 33.30 1700.0
|
||||
-3000.0 31.30 1800.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 29.60 1800.0
|
||||
-3000.0 27.60 1900.0
|
||||
-3000.0 31.30 1800.0
|
||||
-3000.0 29.30 1900.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 27.60 1900.0
|
||||
-3000.0 25.60 2000.0
|
||||
-3000.0 29.30 1900.0
|
||||
-3000.0 27.30 2000.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 25.60 2000.0
|
||||
-3000.0 23.60 2100.0
|
||||
-3000.0 27.30 2000.0
|
||||
-3000.0 25.30 2100.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 23.60 2100.0
|
||||
-3000.0 21.60 2200.0
|
||||
-3000.0 25.30 2100.0
|
||||
-3000.0 23.30 2200.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 21.60 2200.0
|
||||
-3000.0 19.60 2300.0
|
||||
-3000.0 23.30 2200.0
|
||||
-3000.0 21.30 2300.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 19.60 2300.0
|
||||
-3000.0 17.60 2400.0
|
||||
-3000.0 21.30 2300.0
|
||||
-3000.0 19.30 2400.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 17.60 2400.0
|
||||
-3000.0 15.60 2500.0
|
||||
-3000.0 19.30 2400.0
|
||||
-3000.0 17.30 2500.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 15.60 2500.0
|
||||
-3000.0 13.60 2600.0
|
||||
-3000.0 17.30 2500.0
|
||||
-3000.0 15.30 2600.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 13.60 2600.0
|
||||
-3000.0 11.60 2700.0
|
||||
-3000.0 15.30 2600.0
|
||||
-3000.0 13.30 2700.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 11.60 2700.0
|
||||
-3000.0 9.60 2800.0
|
||||
-3000.0 13.30 2700.0
|
||||
-3000.0 11.30 2800.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 9.60 2800.0
|
||||
-3000.0 7.60 2900.0
|
||||
-3000.0 11.30 2800.0
|
||||
-3000.0 9.30 2900.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 7.60 2900.0
|
||||
-3000.0 5.60 3000.0
|
||||
-3000.0 9.30 2900.0
|
||||
-3000.0 7.30 3000.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 5.60 3000.0
|
||||
-3000.0 3.60 3100.0
|
||||
-3000.0 7.30 3000.0
|
||||
-3000.0 5.30 3100.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 3.60 3100.0
|
||||
-3000.0 1.60 3200.0
|
||||
-3000.0 5.30 3100.0
|
||||
-3000.0 3.30 3200.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 1.60 3200.0
|
||||
-3000.0 -0.40 3300.0
|
||||
-3000.0 3.30 3200.0
|
||||
-3000.0 1.30 3300.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 -0.40 3300.0
|
||||
-3000.0 -2.40 3400.0
|
||||
-3000.0 1.30 3300.0
|
||||
-3000.0 -0.70 3400.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 -2.40 3400.0
|
||||
-3000.0 -4.40 3500.0
|
||||
-3000.0 -0.70 3400.0
|
||||
-3000.0 -2.70 3500.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
// the W4 of the stations of the timetable
|
||||
include ip/pkp/w4n.inc gora#1 -2997.3 60.00 -90.0 180 0 0 -10 202 end
|
||||
// a signal at stop: what the AI reads of one, a memory cell with SetVelocity 0 0 and the event that reads it
|
||||
node -1 0 hr_sem_mem memcell -2997.3 8.00 3000.0 SetVelocity 0.0 0.0 none endmemcell
|
||||
event hr_sem_info getvalues 5.0 hr_sem_mem endevent
|
||||
|
||||
trainset {{timetable}} hr_05 0.0 0.1
|
||||
{{consist}}
|
||||
endtrainset
|
||||
@@ -0,0 +1,518 @@
|
||||
// added by tests/scenarios/run.py to td.scn, whose own trainsets were removed.
|
||||
// a line of its own, away from the tracks of td.scn: 300 m level, then 3000 m down a gradient of 20 per mille,
|
||||
// under an overhead wire.
|
||||
// the train starts on the level, with the W4 of Gora about 40 m ahead, and runs on the timetable {{timetable}}:
|
||||
// Gora 10:35 -> Dol, a W4 1500 m down the gradient (stop, leaves at 10:38) -> the signal gr_sem, 1100 m further
|
||||
// down, which stays at stop. the line goes on 400 m past the signal
|
||||
node -1 0 gr_00 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_01 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_02 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 0.0 0.0
|
||||
0
|
||||
event2 gora#1_stopinfo
|
||||
endtrack
|
||||
node -1 0 gr_03 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 58.00 100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_04 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 58.00 100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 56.00 200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_05 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 56.00 200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 54.00 300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_06 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 54.00 300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 52.00 400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_07 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 52.00 400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 50.00 500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_08 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 50.00 500.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 48.00 600.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_09 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 48.00 600.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 46.00 700.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_10 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 46.00 700.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 44.00 800.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_11 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 44.00 800.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 42.00 900.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_12 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 42.00 900.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 40.00 1000.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_13 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 40.00 1000.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 38.00 1100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_14 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 38.00 1100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 36.00 1200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_15 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 36.00 1200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 34.00 1300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_16 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 34.00 1300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 32.00 1400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_17 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 32.00 1400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 30.00 1500.0 0.0
|
||||
0
|
||||
event2 dol#1_stopinfo
|
||||
endtrack
|
||||
node -1 0 gr_18 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 30.00 1500.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 28.00 1600.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_19 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 28.00 1600.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 26.00 1700.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_20 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 26.00 1700.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 24.00 1800.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_21 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 24.00 1800.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 22.00 1900.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_22 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 22.00 1900.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 20.00 2000.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_23 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 20.00 2000.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 18.00 2100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_24 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 18.00 2100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 16.00 2200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_25 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 16.00 2200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 14.00 2300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_26 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 14.00 2300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 12.00 2400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_27 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 12.00 2400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 10.00 2500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_28 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 10.00 2500.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 8.00 2600.0 0.0
|
||||
0
|
||||
event2 gr_sem_info
|
||||
endtrack
|
||||
node -1 0 gr_29 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 8.00 2600.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 6.00 2700.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_30 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 6.00 2700.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 4.00 2800.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_31 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 4.00 2800.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 2.00 2900.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 gr_32 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 2.00 2900.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 0.00 3000.0 0.0
|
||||
0
|
||||
endtrack
|
||||
// the overhead wire along the whole line, as td.scn has it: 5.6 m above the rail, the carrier 1.7 m higher, fed by
|
||||
// a substation of its own
|
||||
node -1 0 gr_pwr tractionpowersource -3000.0 60.00 0.0 3400 0 0.01 2000 1.0 3 60.0 end
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -300.0
|
||||
-3000.0 65.60 -200.0
|
||||
-3000.0 67.30 -300.0
|
||||
-3000.0 67.30 -200.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -200.0
|
||||
-3000.0 65.60 -100.0
|
||||
-3000.0 67.30 -200.0
|
||||
-3000.0 67.30 -100.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -100.0
|
||||
-3000.0 65.60 0.0
|
||||
-3000.0 67.30 -100.0
|
||||
-3000.0 67.30 0.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 0.0
|
||||
-3000.0 63.60 100.0
|
||||
-3000.0 67.30 0.0
|
||||
-3000.0 65.30 100.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 63.60 100.0
|
||||
-3000.0 61.60 200.0
|
||||
-3000.0 65.30 100.0
|
||||
-3000.0 63.30 200.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 61.60 200.0
|
||||
-3000.0 59.60 300.0
|
||||
-3000.0 63.30 200.0
|
||||
-3000.0 61.30 300.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 59.60 300.0
|
||||
-3000.0 57.60 400.0
|
||||
-3000.0 61.30 300.0
|
||||
-3000.0 59.30 400.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 57.60 400.0
|
||||
-3000.0 55.60 500.0
|
||||
-3000.0 59.30 400.0
|
||||
-3000.0 57.30 500.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 55.60 500.0
|
||||
-3000.0 53.60 600.0
|
||||
-3000.0 57.30 500.0
|
||||
-3000.0 55.30 600.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 53.60 600.0
|
||||
-3000.0 51.60 700.0
|
||||
-3000.0 55.30 600.0
|
||||
-3000.0 53.30 700.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 51.60 700.0
|
||||
-3000.0 49.60 800.0
|
||||
-3000.0 53.30 700.0
|
||||
-3000.0 51.30 800.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 49.60 800.0
|
||||
-3000.0 47.60 900.0
|
||||
-3000.0 51.30 800.0
|
||||
-3000.0 49.30 900.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 47.60 900.0
|
||||
-3000.0 45.60 1000.0
|
||||
-3000.0 49.30 900.0
|
||||
-3000.0 47.30 1000.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 45.60 1000.0
|
||||
-3000.0 43.60 1100.0
|
||||
-3000.0 47.30 1000.0
|
||||
-3000.0 45.30 1100.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 43.60 1100.0
|
||||
-3000.0 41.60 1200.0
|
||||
-3000.0 45.30 1100.0
|
||||
-3000.0 43.30 1200.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 41.60 1200.0
|
||||
-3000.0 39.60 1300.0
|
||||
-3000.0 43.30 1200.0
|
||||
-3000.0 41.30 1300.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 39.60 1300.0
|
||||
-3000.0 37.60 1400.0
|
||||
-3000.0 41.30 1300.0
|
||||
-3000.0 39.30 1400.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 37.60 1400.0
|
||||
-3000.0 35.60 1500.0
|
||||
-3000.0 39.30 1400.0
|
||||
-3000.0 37.30 1500.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 35.60 1500.0
|
||||
-3000.0 33.60 1600.0
|
||||
-3000.0 37.30 1500.0
|
||||
-3000.0 35.30 1600.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 33.60 1600.0
|
||||
-3000.0 31.60 1700.0
|
||||
-3000.0 35.30 1600.0
|
||||
-3000.0 33.30 1700.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 31.60 1700.0
|
||||
-3000.0 29.60 1800.0
|
||||
-3000.0 33.30 1700.0
|
||||
-3000.0 31.30 1800.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 29.60 1800.0
|
||||
-3000.0 27.60 1900.0
|
||||
-3000.0 31.30 1800.0
|
||||
-3000.0 29.30 1900.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 27.60 1900.0
|
||||
-3000.0 25.60 2000.0
|
||||
-3000.0 29.30 1900.0
|
||||
-3000.0 27.30 2000.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 25.60 2000.0
|
||||
-3000.0 23.60 2100.0
|
||||
-3000.0 27.30 2000.0
|
||||
-3000.0 25.30 2100.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 23.60 2100.0
|
||||
-3000.0 21.60 2200.0
|
||||
-3000.0 25.30 2100.0
|
||||
-3000.0 23.30 2200.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 21.60 2200.0
|
||||
-3000.0 19.60 2300.0
|
||||
-3000.0 23.30 2200.0
|
||||
-3000.0 21.30 2300.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 19.60 2300.0
|
||||
-3000.0 17.60 2400.0
|
||||
-3000.0 21.30 2300.0
|
||||
-3000.0 19.30 2400.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 17.60 2400.0
|
||||
-3000.0 15.60 2500.0
|
||||
-3000.0 19.30 2400.0
|
||||
-3000.0 17.30 2500.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 15.60 2500.0
|
||||
-3000.0 13.60 2600.0
|
||||
-3000.0 17.30 2500.0
|
||||
-3000.0 15.30 2600.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 13.60 2600.0
|
||||
-3000.0 11.60 2700.0
|
||||
-3000.0 15.30 2600.0
|
||||
-3000.0 13.30 2700.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 11.60 2700.0
|
||||
-3000.0 9.60 2800.0
|
||||
-3000.0 13.30 2700.0
|
||||
-3000.0 11.30 2800.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 9.60 2800.0
|
||||
-3000.0 7.60 2900.0
|
||||
-3000.0 11.30 2800.0
|
||||
-3000.0 9.30 2900.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction gr_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 7.60 2900.0
|
||||
-3000.0 5.60 3000.0
|
||||
-3000.0 9.30 2900.0
|
||||
-3000.0 7.30 3000.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
|
||||
// the W4 of the two stations of the timetable; the middle of the consist 2 m before it, leaves on time
|
||||
include ip/pkp/w4n.inc gora#1 -2997.3 60.00 -60.0 180 0 0 2 202 end
|
||||
include ip/pkp/w4n.inc dol#1 -2997.3 30.00 1500.0 180 0 0 2 202 end
|
||||
// a signal at stop: what the AI reads of one, a memory cell with SetVelocity 0 0 and the event that reads it
|
||||
node -1 0 gr_sem_mem memcell -2997.3 8.00 2600.0 SetVelocity 0.0 0.0 none endmemcell
|
||||
event gr_sem_info getvalues 5.0 gr_sem_mem endevent
|
||||
|
||||
trainset {{timetable}} gr_02 0.0 0.1
|
||||
{{consist}}
|
||||
endtrainset
|
||||
@@ -0,0 +1,17 @@
|
||||
________________________________________________________________
|
||||
[ Rodzaj i numer pociagu | TEST44 ]
|
||||
[ Kategoria | TME ]
|
||||
[________________________________________________|______________]
|
||||
[ | Gora ]
|
||||
[ Relacja pociagu | Koniec ]
|
||||
[________________________________________________|______________]
|
||||
[ Wymagany % ciezaru hamujacego | 50% ]
|
||||
[________________________________________________|______________]
|
||||
[ Seria i obciazenie lokomotywy | ET41 1700 ]
|
||||
[________________________________________________|______________]
|
||||
[ | | Gora 2 | | ]
|
||||
[ | 60 | R1,L,H,RT,PP 2 10.35 | ]
|
||||
[ | |----------------------------------1----------|---]
|
||||
[ | | Koniec 1 10.55 | 20]
|
||||
[ | | R1 1 10.56 | ]
|
||||
[_______|_____|__________________________________1__________|___]
|
||||
@@ -0,0 +1,17 @@
|
||||
________________________________________________________________
|
||||
[ Rodzaj i numer pociagu | TEST45 ]
|
||||
[ Kategoria | TME ]
|
||||
[________________________________________________|______________]
|
||||
[ | Gora ]
|
||||
[ Relacja pociagu | Koniec ]
|
||||
[________________________________________________|______________]
|
||||
[ Wymagany % ciezaru hamujacego | 50% ]
|
||||
[________________________________________________|______________]
|
||||
[ Seria i obciazenie lokomotywy | ST43 3000 ]
|
||||
[________________________________________________|______________]
|
||||
[ | | Gora 2 | | ]
|
||||
[ | 40 | R1,L,H,RT,PP 2 10.35 | ]
|
||||
[ | |----------------------------------1----------|---]
|
||||
[ | | Koniec 1 11.10 | 35]
|
||||
[ | | R1 1 11.11 | ]
|
||||
[_______|_____|__________________________________1__________|___]
|
||||
@@ -0,0 +1,333 @@
|
||||
// added by tests/scenarios/run.py to td.scn, whose own trainsets were removed.
|
||||
// a line of its own, away from the tracks of td.scn: 2100 m level, under an overhead wire. the train starts with
|
||||
// its head 10 m before the W4 of Gora and runs on the timetable {{timetable}} (no stop; a freight train leaves Gora at once) to the signal
|
||||
// lv_sem at stop 1000 m ahead. the line goes on 500 m past it
|
||||
node -1 0 lv_00 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -600.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 lv_01 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -500.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 lv_02 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 lv_03 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 lv_04 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 lv_05 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 0.0 0.0
|
||||
0
|
||||
event2 gora#1_stopinfo
|
||||
endtrack
|
||||
node -1 0 lv_06 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 lv_07 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 lv_08 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 lv_09 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 lv_10 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 lv_11 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 500.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 600.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 lv_12 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 600.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 700.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 lv_13 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 700.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 800.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 lv_14 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 800.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 900.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 lv_15 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 900.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 1000.0 0.0
|
||||
0
|
||||
event2 lv_sem_info
|
||||
endtrack
|
||||
node -1 0 lv_16 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 1000.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 1100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 lv_17 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 1100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 1200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 lv_18 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 1200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 1300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 lv_19 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 1300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 1400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 lv_20 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 1400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 1500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
// the overhead wire along the whole line, as td.scn has it: 5.6 m above the rail, the carrier 1.7 m higher, fed by
|
||||
// a substation of its own
|
||||
node -1 0 lv_pwr tractionpowersource -3000.0 60.00 0.0 3400 0 0.01 2000 1.0 3 60.0 end
|
||||
node -1 0 none traction lv_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -600.0
|
||||
-3000.0 65.60 -500.0
|
||||
-3000.0 67.30 -600.0
|
||||
-3000.0 67.30 -500.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction lv_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -500.0
|
||||
-3000.0 65.60 -400.0
|
||||
-3000.0 67.30 -500.0
|
||||
-3000.0 67.30 -400.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction lv_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -400.0
|
||||
-3000.0 65.60 -300.0
|
||||
-3000.0 67.30 -400.0
|
||||
-3000.0 67.30 -300.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction lv_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -300.0
|
||||
-3000.0 65.60 -200.0
|
||||
-3000.0 67.30 -300.0
|
||||
-3000.0 67.30 -200.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction lv_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -200.0
|
||||
-3000.0 65.60 -100.0
|
||||
-3000.0 67.30 -200.0
|
||||
-3000.0 67.30 -100.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction lv_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -100.0
|
||||
-3000.0 65.60 0.0
|
||||
-3000.0 67.30 -100.0
|
||||
-3000.0 67.30 0.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction lv_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 0.0
|
||||
-3000.0 65.60 100.0
|
||||
-3000.0 67.30 0.0
|
||||
-3000.0 67.30 100.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction lv_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 100.0
|
||||
-3000.0 65.60 200.0
|
||||
-3000.0 67.30 100.0
|
||||
-3000.0 67.30 200.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction lv_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 200.0
|
||||
-3000.0 65.60 300.0
|
||||
-3000.0 67.30 200.0
|
||||
-3000.0 67.30 300.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction lv_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 300.0
|
||||
-3000.0 65.60 400.0
|
||||
-3000.0 67.30 300.0
|
||||
-3000.0 67.30 400.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction lv_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 400.0
|
||||
-3000.0 65.60 500.0
|
||||
-3000.0 67.30 400.0
|
||||
-3000.0 67.30 500.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction lv_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 500.0
|
||||
-3000.0 65.60 600.0
|
||||
-3000.0 67.30 500.0
|
||||
-3000.0 67.30 600.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction lv_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 600.0
|
||||
-3000.0 65.60 700.0
|
||||
-3000.0 67.30 600.0
|
||||
-3000.0 67.30 700.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction lv_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 700.0
|
||||
-3000.0 65.60 800.0
|
||||
-3000.0 67.30 700.0
|
||||
-3000.0 67.30 800.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction lv_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 800.0
|
||||
-3000.0 65.60 900.0
|
||||
-3000.0 67.30 800.0
|
||||
-3000.0 67.30 900.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction lv_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 900.0
|
||||
-3000.0 65.60 1000.0
|
||||
-3000.0 67.30 900.0
|
||||
-3000.0 67.30 1000.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction lv_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 1000.0
|
||||
-3000.0 65.60 1100.0
|
||||
-3000.0 67.30 1000.0
|
||||
-3000.0 67.30 1100.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction lv_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 1100.0
|
||||
-3000.0 65.60 1200.0
|
||||
-3000.0 67.30 1100.0
|
||||
-3000.0 67.30 1200.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction lv_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 1200.0
|
||||
-3000.0 65.60 1300.0
|
||||
-3000.0 67.30 1200.0
|
||||
-3000.0 67.30 1300.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction lv_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 1300.0
|
||||
-3000.0 65.60 1400.0
|
||||
-3000.0 67.30 1300.0
|
||||
-3000.0 67.30 1400.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction lv_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 1400.0
|
||||
-3000.0 65.60 1500.0
|
||||
-3000.0 67.30 1400.0
|
||||
-3000.0 67.30 1500.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
// the W4 of the stations of the timetable
|
||||
include ip/pkp/w4n.inc gora#1 -2997.3 60.00 -90.0 180 0 0 -10 202 end
|
||||
// a signal at stop: what the AI reads of one, a memory cell with SetVelocity 0 0 and the event that reads it
|
||||
node -1 0 lv_sem_mem memcell -2997.3 68.00 1000.0 SetVelocity 0.0 0.0 none endmemcell
|
||||
event lv_sem_info getvalues 5.0 lv_sem_mem endevent
|
||||
|
||||
trainset {{timetable}} lv_05 0.0 0.1
|
||||
{{consist}}
|
||||
endtrainset
|
||||
@@ -0,0 +1,18 @@
|
||||
// added by tests/scenarios/run.py to td.scn, whose own trainsets were removed.
|
||||
// a piece of track of its own, 200 m long and with no overhead wire above it, 400 m off the line of td.scn
|
||||
// (all of whose tracks are under the wire), and an electric locomotive with an AI driver standing on it.
|
||||
// the driver raises the pantographs, which find no wire, and waits in Prepare_engine for the voltage for good
|
||||
// (eu07/maszyna#421); it tells of it in the log once.
|
||||
node -1 0 autotest_no_wire track normal 200.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-400.0 0.2 0.0 0.0 //point 1
|
||||
0.0 0.0 0.0 //control vector 1
|
||||
0.0 0.0 0.0 //control vector 2
|
||||
-400.0 0.2 200.0 0.0 //point 2
|
||||
0
|
||||
endtrack
|
||||
|
||||
// no timetable: the driver goes shunting; 0.01 km/h has it prepare the vehicle and wait for a signal (at 0 it sleeps)
|
||||
trainset none autotest_no_wire 100.0 0.01
|
||||
{{consist}}
|
||||
endtrainset
|
||||
@@ -0,0 +1,17 @@
|
||||
________________________________________________________________
|
||||
[ Rodzaj i numer pociagu | TEST28 ]
|
||||
[ Kategoria | RO ]
|
||||
[________________________________________________|______________]
|
||||
[ | Gora ]
|
||||
[ Relacja pociagu | Koniec ]
|
||||
[________________________________________________|______________]
|
||||
[ Wymagany % ciezaru hamujacego | 88% ]
|
||||
[________________________________________________|______________]
|
||||
[ Seria i obciazenie lokomotywy | EU07 400 ]
|
||||
[________________________________________________|______________]
|
||||
[ | | Gora 2 | | ]
|
||||
[ | 80 | R1,L,H,RT,PP 2 10.35 | ]
|
||||
[ | |----------------------------------1----------|---]
|
||||
[ | | Koniec 1 10.45 | 10]
|
||||
[ | | R1 1 10.46 | ]
|
||||
[_______|_____|__________________________________1__________|___]
|
||||
@@ -0,0 +1,7 @@
|
||||
// added by tests/scenarios/run.py to td.scn, whose own trainsets were removed.
|
||||
// the timetable train of td.scn (td/rozklad) set at a stand past the exit signal stacja1_j, which stays at stop
|
||||
// (no route): the head {{offset}} m into tor1k, whose memory cell of the signal is 51 m into the track. the train
|
||||
// starts at 0.1 km/h, as in td_red_signal.scn: set at 0 its AI driver doesn't wake up within the case
|
||||
trainset td/rozklad tor1k {{offset}} 0.1
|
||||
{{consist}}
|
||||
endtrainset
|
||||
@@ -0,0 +1,33 @@
|
||||
// added by tests/scenarios/run.py to td.scn, whose own trainsets were removed.
|
||||
// on the line from Stacja1 to Stacja2 (flat, curves of 600 m): a locomotive with an AI driver stands cold
|
||||
// (trainset velocity 0) on koniec, its front 35 m past point 1 of the track, facing point 2, towards Stacja2;
|
||||
// a cut of wagons (vars.cut) stands, braked as well and with nobody in it, ahead of it, its front 56 m past
|
||||
// point 1 of tdo_n222, some 45 m in front of the locomotive.
|
||||
trainset none koniec 35.0 0.0
|
||||
node -1 0 {{vehicle}} dynamic {{locomotive}} 0 headdriver 0 0 enddynamic
|
||||
endtrainset
|
||||
|
||||
trainset none tdo_n222 56.0 0.0
|
||||
{{cut}}
|
||||
endtrainset
|
||||
|
||||
// event0 of the locomotive's track (the case's track_events) runs while the locomotive stands there. it wakes
|
||||
// the driver and gives it, once, the order to couple to the cut ahead and run it on as a train: Shunt -3 3,
|
||||
// Connect (with the coupler and the brake hose) then Obey_train, which waits for the way to be given. the AI
|
||||
// couples on the run, at some 4 km/h, and the wagon inspector of the train run looks at the new train then,
|
||||
// before it stands.
|
||||
node -1 0 autotest_ordered memcell 0 0 0 ordered 0 0 none endmemcell
|
||||
event autotest_wake multiple 0 autotest_ordered autotest_order autotest_order_given condition memcompare * 0 * endevent
|
||||
event autotest_order PutValues 0 none 0 0 0 Shunt -3 3 endevent
|
||||
event autotest_order_given UpdateValues 0 autotest_ordered * 1 * endevent
|
||||
|
||||
// the way: no signal of the line is in sight, so event2 of tdo_n231 (the case's track_events), 40 m in front of
|
||||
// the cut, gives the speed a signal at proceed would, 40 km/h, which the AI reads as it scans the track ahead
|
||||
event autotest_way PutValues 0 none 0 0 0 SetVelocity 40 40 endevent
|
||||
|
||||
// event2 of tdo_n240 (the case's track_events), some 700 m on, as the locomotive runs over it pushing the train:
|
||||
// the driver is taken off (Crew:<vehicle> 0 0), which leaves the brake valve in the emergency position, so the
|
||||
// train stops on the brakes it has. the pass comes 150 s later, with the train standing.
|
||||
event autotest_crew_off multiple 0 none autotest_driver_off autotest_pass endevent
|
||||
event autotest_driver_off putvalues 0 none 0 0 0 Crew:{{vehicle}} 0 0 endevent
|
||||
event autotest_pass UpdateValues 150 __test.result the_train_was_stopped_with_the_brakes_it_has 1 * endevent
|
||||
@@ -0,0 +1,7 @@
|
||||
// added by tests/scenarios/run.py to td.scn, whose own trainsets were removed.
|
||||
// like td_red_signal_moving.scn (no route, the exit signal stacja1_j about 150 m ahead of the start of
|
||||
// tdo_n1734 stays at stop), but the train has no timetable, so its AI driver shunts (Shunt), and it
|
||||
// starts {{offset}} m into tdo_n1734, already moving at {{velocity}} km/h.
|
||||
trainset none tdo_n1734 {{offset}} {{velocity}}
|
||||
{{consist}}
|
||||
endtrainset
|
||||
@@ -0,0 +1,31 @@
|
||||
// added by tests/scenarios/run.py to td.scn, whose own trainsets were removed.
|
||||
// a shunter with no timetable stands at the far end of tor1k (point 2), turned (offset -1) to face back towards
|
||||
// track 1 of Stacja1, with its wagons (vars.wagons) behind it, towards the exit signal stacja1_j (at stop, no route;
|
||||
// its memory cell is 51 m into tor1k). the trainset's velocity is negative, so its driver takes the direction of the
|
||||
// locomotive's cab and pulls. tdo_n1734, the track behind tor1k, is closed (speed 0) from the start, so the shunter
|
||||
// pulls the wagons back along tor1k and stops in front of it, with the far end of the last wagon a few metres past
|
||||
// the signal: the signal stands at stop over that wagon for the direction the shunter pushes in when it uncouples.
|
||||
// the pull leaves the screw coupler stretched, as at a real stop.
|
||||
trainset none tor1k 100.0 -0.1
|
||||
{{wagons}}
|
||||
node -1 0 {{vehicle}} dynamic pkp\sm42_v1 6DA-1096 6da -1 headdriver 0 0 enddynamic
|
||||
endtrainset
|
||||
|
||||
node -1 0 autotest_closed eventlauncher 0 0 0 -1 none 1034 autotest_close end
|
||||
event autotest_close trackvel 0 tdo_n1734 0 endevent
|
||||
|
||||
// a standing shunter waits for the scenery's orders. event0 of tor1k (the case's track_events) runs while it stands
|
||||
// there. the first time it gives the order to go (Shunt -1 0). 25 s later the shunter is on its way, and the first
|
||||
// time it stands again, in front of tdo_n1734, it gets the order a scenery gives to leave the wagons: Shunt 0 0,
|
||||
// uncouple everything behind the locomotive and stay. it brakes the wagons, changes direction, pushes the buffers in
|
||||
// and lets the coupler go. the order comes at once: standing for long, the wagons' brakes release and the coupler
|
||||
// draws the buffers together, which leaves nothing to push
|
||||
node -1 0 autotest_ordered memcell 0 0 0 ordered 0 0 none endmemcell
|
||||
event autotest_wake multiple 0 none autotest_go autotest_uncouple endevent
|
||||
event autotest_go multiple 0 autotest_ordered autotest_go_order autotest_go_given autotest_go_done condition memcompare * 0 * endevent
|
||||
event autotest_go_order PutValues 0 none 0 0 0 Shunt -1 0 endevent
|
||||
event autotest_go_given UpdateValues 0 autotest_ordered * 1 * endevent
|
||||
event autotest_go_done UpdateValues 25 autotest_ordered * 2 * endevent
|
||||
event autotest_uncouple multiple 0 autotest_ordered autotest_uncouple_order autotest_uncouple_given condition memcompare * 2 * endevent
|
||||
event autotest_uncouple_order PutValues 0 none 0 0 0 Shunt 0 0 endevent
|
||||
event autotest_uncouple_given UpdateValues 0 autotest_ordered * 3 * endevent
|
||||
@@ -0,0 +1,934 @@
|
||||
// added by tests/scenarios/run.py to td.scn, whose own trainsets were removed.
|
||||
// a line of its own, away from the tracks of td.scn: 600 m level, then 5500 m up a gradient of 10 per mille,
|
||||
// under an overhead wire. the train starts on the level with its head 10 m before the W4 of Gora and runs on the
|
||||
// timetable {{timetable}} (leaves Gora at 10:35, no other stop) at the line limit of the timetable, up to the signal ul_sem
|
||||
// at stop 5300 m up the gradient. the line goes on 200 m past it
|
||||
node -1 0 ul_00 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -600.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_01 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -500.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_02 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_03 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_04 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_05 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 0.0 0.0
|
||||
0
|
||||
event2 gora#1_stopinfo
|
||||
endtrack
|
||||
node -1 0 ul_06 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 61.00 100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_07 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 61.00 100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 62.00 200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_08 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 62.00 200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 63.00 300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_09 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 63.00 300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 64.00 400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_10 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 64.00 400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 65.00 500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_11 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 65.00 500.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 66.00 600.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_12 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 66.00 600.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 67.00 700.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_13 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 67.00 700.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 68.00 800.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_14 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 68.00 800.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 69.00 900.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_15 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 69.00 900.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 70.00 1000.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_16 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 70.00 1000.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 71.00 1100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_17 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 71.00 1100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 72.00 1200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_18 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 72.00 1200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 73.00 1300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_19 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 73.00 1300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 74.00 1400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_20 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 74.00 1400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 75.00 1500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_21 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 75.00 1500.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 76.00 1600.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_22 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 76.00 1600.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 77.00 1700.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_23 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 77.00 1700.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 78.00 1800.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_24 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 78.00 1800.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 79.00 1900.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_25 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 79.00 1900.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 80.00 2000.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_26 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 80.00 2000.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 81.00 2100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_27 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 81.00 2100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 82.00 2200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_28 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 82.00 2200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 83.00 2300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_29 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 83.00 2300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 84.00 2400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_30 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 84.00 2400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 85.00 2500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_31 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 85.00 2500.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 86.00 2600.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_32 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 86.00 2600.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 87.00 2700.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_33 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 87.00 2700.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 88.00 2800.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_34 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 88.00 2800.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 89.00 2900.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_35 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 89.00 2900.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 90.00 3000.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_36 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 90.00 3000.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 91.00 3100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_37 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 91.00 3100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 92.00 3200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_38 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 92.00 3200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 93.00 3300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_39 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 93.00 3300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 94.00 3400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_40 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 94.00 3400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 95.00 3500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_41 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 95.00 3500.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 96.00 3600.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_42 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 96.00 3600.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 97.00 3700.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_43 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 97.00 3700.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 98.00 3800.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_44 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 98.00 3800.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 99.00 3900.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_45 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 99.00 3900.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 100.00 4000.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_46 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 100.00 4000.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 101.00 4100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_47 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 101.00 4100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 102.00 4200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_48 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 102.00 4200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 103.00 4300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_49 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 103.00 4300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 104.00 4400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_50 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 104.00 4400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 105.00 4500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_51 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 105.00 4500.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 106.00 4600.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_52 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 106.00 4600.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 107.00 4700.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_53 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 107.00 4700.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 108.00 4800.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_54 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 108.00 4800.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 109.00 4900.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_55 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 109.00 4900.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 110.00 5000.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_56 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 110.00 5000.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 111.00 5100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_57 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 111.00 5100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 112.00 5200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_58 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 112.00 5200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 113.00 5300.0 0.0
|
||||
0
|
||||
event2 ul_sem_info
|
||||
endtrack
|
||||
node -1 0 ul_59 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 113.00 5300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 114.00 5400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 ul_60 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 114.00 5400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 115.00 5500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
// the overhead wire along the whole line, as td.scn has it: 5.6 m above the rail, the carrier 1.7 m higher, fed by
|
||||
// a substation of its own
|
||||
node -1 0 ul_pwr tractionpowersource -3000.0 60.00 0.0 3400 0 0.01 2000 1.0 3 60.0 end
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -600.0
|
||||
-3000.0 65.60 -500.0
|
||||
-3000.0 67.30 -600.0
|
||||
-3000.0 67.30 -500.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -500.0
|
||||
-3000.0 65.60 -400.0
|
||||
-3000.0 67.30 -500.0
|
||||
-3000.0 67.30 -400.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -400.0
|
||||
-3000.0 65.60 -300.0
|
||||
-3000.0 67.30 -400.0
|
||||
-3000.0 67.30 -300.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -300.0
|
||||
-3000.0 65.60 -200.0
|
||||
-3000.0 67.30 -300.0
|
||||
-3000.0 67.30 -200.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -200.0
|
||||
-3000.0 65.60 -100.0
|
||||
-3000.0 67.30 -200.0
|
||||
-3000.0 67.30 -100.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -100.0
|
||||
-3000.0 65.60 0.0
|
||||
-3000.0 67.30 -100.0
|
||||
-3000.0 67.30 0.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 0.0
|
||||
-3000.0 66.60 100.0
|
||||
-3000.0 67.30 0.0
|
||||
-3000.0 68.30 100.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 66.60 100.0
|
||||
-3000.0 67.60 200.0
|
||||
-3000.0 68.30 100.0
|
||||
-3000.0 69.30 200.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 67.60 200.0
|
||||
-3000.0 68.60 300.0
|
||||
-3000.0 69.30 200.0
|
||||
-3000.0 70.30 300.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 68.60 300.0
|
||||
-3000.0 69.60 400.0
|
||||
-3000.0 70.30 300.0
|
||||
-3000.0 71.30 400.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 69.60 400.0
|
||||
-3000.0 70.60 500.0
|
||||
-3000.0 71.30 400.0
|
||||
-3000.0 72.30 500.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 70.60 500.0
|
||||
-3000.0 71.60 600.0
|
||||
-3000.0 72.30 500.0
|
||||
-3000.0 73.30 600.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 71.60 600.0
|
||||
-3000.0 72.60 700.0
|
||||
-3000.0 73.30 600.0
|
||||
-3000.0 74.30 700.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 72.60 700.0
|
||||
-3000.0 73.60 800.0
|
||||
-3000.0 74.30 700.0
|
||||
-3000.0 75.30 800.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 73.60 800.0
|
||||
-3000.0 74.60 900.0
|
||||
-3000.0 75.30 800.0
|
||||
-3000.0 76.30 900.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 74.60 900.0
|
||||
-3000.0 75.60 1000.0
|
||||
-3000.0 76.30 900.0
|
||||
-3000.0 77.30 1000.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 75.60 1000.0
|
||||
-3000.0 76.60 1100.0
|
||||
-3000.0 77.30 1000.0
|
||||
-3000.0 78.30 1100.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 76.60 1100.0
|
||||
-3000.0 77.60 1200.0
|
||||
-3000.0 78.30 1100.0
|
||||
-3000.0 79.30 1200.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 77.60 1200.0
|
||||
-3000.0 78.60 1300.0
|
||||
-3000.0 79.30 1200.0
|
||||
-3000.0 80.30 1300.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 78.60 1300.0
|
||||
-3000.0 79.60 1400.0
|
||||
-3000.0 80.30 1300.0
|
||||
-3000.0 81.30 1400.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 79.60 1400.0
|
||||
-3000.0 80.60 1500.0
|
||||
-3000.0 81.30 1400.0
|
||||
-3000.0 82.30 1500.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 80.60 1500.0
|
||||
-3000.0 81.60 1600.0
|
||||
-3000.0 82.30 1500.0
|
||||
-3000.0 83.30 1600.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 81.60 1600.0
|
||||
-3000.0 82.60 1700.0
|
||||
-3000.0 83.30 1600.0
|
||||
-3000.0 84.30 1700.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 82.60 1700.0
|
||||
-3000.0 83.60 1800.0
|
||||
-3000.0 84.30 1700.0
|
||||
-3000.0 85.30 1800.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 83.60 1800.0
|
||||
-3000.0 84.60 1900.0
|
||||
-3000.0 85.30 1800.0
|
||||
-3000.0 86.30 1900.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 84.60 1900.0
|
||||
-3000.0 85.60 2000.0
|
||||
-3000.0 86.30 1900.0
|
||||
-3000.0 87.30 2000.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 85.60 2000.0
|
||||
-3000.0 86.60 2100.0
|
||||
-3000.0 87.30 2000.0
|
||||
-3000.0 88.30 2100.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 86.60 2100.0
|
||||
-3000.0 87.60 2200.0
|
||||
-3000.0 88.30 2100.0
|
||||
-3000.0 89.30 2200.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 87.60 2200.0
|
||||
-3000.0 88.60 2300.0
|
||||
-3000.0 89.30 2200.0
|
||||
-3000.0 90.30 2300.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 88.60 2300.0
|
||||
-3000.0 89.60 2400.0
|
||||
-3000.0 90.30 2300.0
|
||||
-3000.0 91.30 2400.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 89.60 2400.0
|
||||
-3000.0 90.60 2500.0
|
||||
-3000.0 91.30 2400.0
|
||||
-3000.0 92.30 2500.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 90.60 2500.0
|
||||
-3000.0 91.60 2600.0
|
||||
-3000.0 92.30 2500.0
|
||||
-3000.0 93.30 2600.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 91.60 2600.0
|
||||
-3000.0 92.60 2700.0
|
||||
-3000.0 93.30 2600.0
|
||||
-3000.0 94.30 2700.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 92.60 2700.0
|
||||
-3000.0 93.60 2800.0
|
||||
-3000.0 94.30 2700.0
|
||||
-3000.0 95.30 2800.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 93.60 2800.0
|
||||
-3000.0 94.60 2900.0
|
||||
-3000.0 95.30 2800.0
|
||||
-3000.0 96.30 2900.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 94.60 2900.0
|
||||
-3000.0 95.60 3000.0
|
||||
-3000.0 96.30 2900.0
|
||||
-3000.0 97.30 3000.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 95.60 3000.0
|
||||
-3000.0 96.60 3100.0
|
||||
-3000.0 97.30 3000.0
|
||||
-3000.0 98.30 3100.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 96.60 3100.0
|
||||
-3000.0 97.60 3200.0
|
||||
-3000.0 98.30 3100.0
|
||||
-3000.0 99.30 3200.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 97.60 3200.0
|
||||
-3000.0 98.60 3300.0
|
||||
-3000.0 99.30 3200.0
|
||||
-3000.0 100.30 3300.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 98.60 3300.0
|
||||
-3000.0 99.60 3400.0
|
||||
-3000.0 100.30 3300.0
|
||||
-3000.0 101.30 3400.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 99.60 3400.0
|
||||
-3000.0 100.60 3500.0
|
||||
-3000.0 101.30 3400.0
|
||||
-3000.0 102.30 3500.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 100.60 3500.0
|
||||
-3000.0 101.60 3600.0
|
||||
-3000.0 102.30 3500.0
|
||||
-3000.0 103.30 3600.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 101.60 3600.0
|
||||
-3000.0 102.60 3700.0
|
||||
-3000.0 103.30 3600.0
|
||||
-3000.0 104.30 3700.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 102.60 3700.0
|
||||
-3000.0 103.60 3800.0
|
||||
-3000.0 104.30 3700.0
|
||||
-3000.0 105.30 3800.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 103.60 3800.0
|
||||
-3000.0 104.60 3900.0
|
||||
-3000.0 105.30 3800.0
|
||||
-3000.0 106.30 3900.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 104.60 3900.0
|
||||
-3000.0 105.60 4000.0
|
||||
-3000.0 106.30 3900.0
|
||||
-3000.0 107.30 4000.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 105.60 4000.0
|
||||
-3000.0 106.60 4100.0
|
||||
-3000.0 107.30 4000.0
|
||||
-3000.0 108.30 4100.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 106.60 4100.0
|
||||
-3000.0 107.60 4200.0
|
||||
-3000.0 108.30 4100.0
|
||||
-3000.0 109.30 4200.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 107.60 4200.0
|
||||
-3000.0 108.60 4300.0
|
||||
-3000.0 109.30 4200.0
|
||||
-3000.0 110.30 4300.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 108.60 4300.0
|
||||
-3000.0 109.60 4400.0
|
||||
-3000.0 110.30 4300.0
|
||||
-3000.0 111.30 4400.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 109.60 4400.0
|
||||
-3000.0 110.60 4500.0
|
||||
-3000.0 111.30 4400.0
|
||||
-3000.0 112.30 4500.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 110.60 4500.0
|
||||
-3000.0 111.60 4600.0
|
||||
-3000.0 112.30 4500.0
|
||||
-3000.0 113.30 4600.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 111.60 4600.0
|
||||
-3000.0 112.60 4700.0
|
||||
-3000.0 113.30 4600.0
|
||||
-3000.0 114.30 4700.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 112.60 4700.0
|
||||
-3000.0 113.60 4800.0
|
||||
-3000.0 114.30 4700.0
|
||||
-3000.0 115.30 4800.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 113.60 4800.0
|
||||
-3000.0 114.60 4900.0
|
||||
-3000.0 115.30 4800.0
|
||||
-3000.0 116.30 4900.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 114.60 4900.0
|
||||
-3000.0 115.60 5000.0
|
||||
-3000.0 116.30 4900.0
|
||||
-3000.0 117.30 5000.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 115.60 5000.0
|
||||
-3000.0 116.60 5100.0
|
||||
-3000.0 117.30 5000.0
|
||||
-3000.0 118.30 5100.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 116.60 5100.0
|
||||
-3000.0 117.60 5200.0
|
||||
-3000.0 118.30 5100.0
|
||||
-3000.0 119.30 5200.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 117.60 5200.0
|
||||
-3000.0 118.60 5300.0
|
||||
-3000.0 119.30 5200.0
|
||||
-3000.0 120.30 5300.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 118.60 5300.0
|
||||
-3000.0 119.60 5400.0
|
||||
-3000.0 120.30 5300.0
|
||||
-3000.0 121.30 5400.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction ul_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 119.60 5400.0
|
||||
-3000.0 120.60 5500.0
|
||||
-3000.0 121.30 5400.0
|
||||
-3000.0 122.30 5500.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
// the W4 of the stations of the timetable
|
||||
include ip/pkp/w4n.inc gora#1 -2997.3 60.00 -90.0 180 0 0 -10 202 end
|
||||
// a signal at stop: what the AI reads of one, a memory cell with SetVelocity 0 0 and the event that reads it
|
||||
node -1 0 ul_sem_mem memcell -2997.3 121.00 5300.0 SetVelocity 0.0 0.0 none endmemcell
|
||||
event ul_sem_info getvalues 5.0 ul_sem_mem endevent
|
||||
|
||||
trainset {{timetable}} ul_05 0.0 0.1
|
||||
{{consist}}
|
||||
endtrainset
|
||||
@@ -0,0 +1,492 @@
|
||||
// added by tests/scenarios/run.py to td.scn, whose own trainsets were removed.
|
||||
// a line of its own, away from the tracks of td.scn: 600 m level, then 2500 m up a gradient of 10 per mille,
|
||||
// under an overhead wire. the train starts on the level with its head 10 m before the W4 of Gora and runs on the
|
||||
// timetable {{timetable}} (no stop; a freight train leaves Gora at once) up to the signal hu_sem1 1000 m up the gradient, at stop until 10:42,
|
||||
// where it stops with the whole train on the gradient, then on to the signal hu_sem2 at stop 2300 m up the
|
||||
// gradient. the line goes on 200 m past it
|
||||
node -1 0 hu_00 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -600.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_01 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -500.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_02 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_03 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_04 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 -100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_05 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 -100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 60.00 0.0 0.0
|
||||
0
|
||||
event2 gora#1_stopinfo
|
||||
endtrack
|
||||
node -1 0 hu_06 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 60.00 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 61.00 100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_07 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 61.00 100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 62.00 200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_08 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 62.00 200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 63.00 300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_09 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 63.00 300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 64.00 400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_10 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 64.00 400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 65.00 500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_11 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 65.00 500.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 66.00 600.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_12 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 66.00 600.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 67.00 700.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_13 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 67.00 700.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 68.00 800.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_14 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 68.00 800.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 69.00 900.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_15 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 69.00 900.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 70.00 1000.0 0.0
|
||||
0
|
||||
event2 hu_sem1_info
|
||||
endtrack
|
||||
node -1 0 hu_16 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 70.00 1000.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 71.00 1100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_17 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 71.00 1100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 72.00 1200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_18 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 72.00 1200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 73.00 1300.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_19 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 73.00 1300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 74.00 1400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_20 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 74.00 1400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 75.00 1500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_21 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 75.00 1500.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 76.00 1600.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_22 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 76.00 1600.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 77.00 1700.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_23 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 77.00 1700.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 78.00 1800.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_24 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 78.00 1800.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 79.00 1900.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_25 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 79.00 1900.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 80.00 2000.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_26 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 80.00 2000.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 81.00 2100.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_27 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 81.00 2100.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 82.00 2200.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_28 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 82.00 2200.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 83.00 2300.0 0.0
|
||||
0
|
||||
event2 hu_sem2_info
|
||||
endtrack
|
||||
node -1 0 hu_29 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 83.00 2300.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 84.00 2400.0 0.0
|
||||
0
|
||||
endtrack
|
||||
node -1 0 hu_30 track normal 100.0 1.435 0.15 25.0 20 0 flat vis
|
||||
rail_screw_used1 6 1435mm/tpbps-new2 0.2 0.5 1.1
|
||||
-3000.0 84.00 2400.0 0.0
|
||||
0.0 0.0 0.0
|
||||
0.0 0.0 0.0
|
||||
-3000.0 85.00 2500.0 0.0
|
||||
0
|
||||
endtrack
|
||||
// the overhead wire along the whole line, as td.scn has it: 5.6 m above the rail, the carrier 1.7 m higher, fed by
|
||||
// a substation of its own
|
||||
node -1 0 hu_pwr tractionpowersource -3000.0 60.00 0.0 3400 0 0.01 2000 1.0 3 60.0 end
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -600.0
|
||||
-3000.0 65.60 -500.0
|
||||
-3000.0 67.30 -600.0
|
||||
-3000.0 67.30 -500.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -500.0
|
||||
-3000.0 65.60 -400.0
|
||||
-3000.0 67.30 -500.0
|
||||
-3000.0 67.30 -400.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -400.0
|
||||
-3000.0 65.60 -300.0
|
||||
-3000.0 67.30 -400.0
|
||||
-3000.0 67.30 -300.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -300.0
|
||||
-3000.0 65.60 -200.0
|
||||
-3000.0 67.30 -300.0
|
||||
-3000.0 67.30 -200.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -200.0
|
||||
-3000.0 65.60 -100.0
|
||||
-3000.0 67.30 -200.0
|
||||
-3000.0 67.30 -100.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 -100.0
|
||||
-3000.0 65.60 0.0
|
||||
-3000.0 67.30 -100.0
|
||||
-3000.0 67.30 0.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 65.60 0.0
|
||||
-3000.0 66.60 100.0
|
||||
-3000.0 67.30 0.0
|
||||
-3000.0 68.30 100.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 66.60 100.0
|
||||
-3000.0 67.60 200.0
|
||||
-3000.0 68.30 100.0
|
||||
-3000.0 69.30 200.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 67.60 200.0
|
||||
-3000.0 68.60 300.0
|
||||
-3000.0 69.30 200.0
|
||||
-3000.0 70.30 300.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 68.60 300.0
|
||||
-3000.0 69.60 400.0
|
||||
-3000.0 70.30 300.0
|
||||
-3000.0 71.30 400.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 69.60 400.0
|
||||
-3000.0 70.60 500.0
|
||||
-3000.0 71.30 400.0
|
||||
-3000.0 72.30 500.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 70.60 500.0
|
||||
-3000.0 71.60 600.0
|
||||
-3000.0 72.30 500.0
|
||||
-3000.0 73.30 600.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 71.60 600.0
|
||||
-3000.0 72.60 700.0
|
||||
-3000.0 73.30 600.0
|
||||
-3000.0 74.30 700.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 72.60 700.0
|
||||
-3000.0 73.60 800.0
|
||||
-3000.0 74.30 700.0
|
||||
-3000.0 75.30 800.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 73.60 800.0
|
||||
-3000.0 74.60 900.0
|
||||
-3000.0 75.30 800.0
|
||||
-3000.0 76.30 900.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 74.60 900.0
|
||||
-3000.0 75.60 1000.0
|
||||
-3000.0 76.30 900.0
|
||||
-3000.0 77.30 1000.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 75.60 1000.0
|
||||
-3000.0 76.60 1100.0
|
||||
-3000.0 77.30 1000.0
|
||||
-3000.0 78.30 1100.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 76.60 1100.0
|
||||
-3000.0 77.60 1200.0
|
||||
-3000.0 78.30 1100.0
|
||||
-3000.0 79.30 1200.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 77.60 1200.0
|
||||
-3000.0 78.60 1300.0
|
||||
-3000.0 79.30 1200.0
|
||||
-3000.0 80.30 1300.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 78.60 1300.0
|
||||
-3000.0 79.60 1400.0
|
||||
-3000.0 80.30 1300.0
|
||||
-3000.0 81.30 1400.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 79.60 1400.0
|
||||
-3000.0 80.60 1500.0
|
||||
-3000.0 81.30 1400.0
|
||||
-3000.0 82.30 1500.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 80.60 1500.0
|
||||
-3000.0 81.60 1600.0
|
||||
-3000.0 82.30 1500.0
|
||||
-3000.0 83.30 1600.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 81.60 1600.0
|
||||
-3000.0 82.60 1700.0
|
||||
-3000.0 83.30 1600.0
|
||||
-3000.0 84.30 1700.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 82.60 1700.0
|
||||
-3000.0 83.60 1800.0
|
||||
-3000.0 84.30 1700.0
|
||||
-3000.0 85.30 1800.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 83.60 1800.0
|
||||
-3000.0 84.60 1900.0
|
||||
-3000.0 85.30 1800.0
|
||||
-3000.0 86.30 1900.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 84.60 1900.0
|
||||
-3000.0 85.60 2000.0
|
||||
-3000.0 86.30 1900.0
|
||||
-3000.0 87.30 2000.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 85.60 2000.0
|
||||
-3000.0 86.60 2100.0
|
||||
-3000.0 87.30 2000.0
|
||||
-3000.0 88.30 2100.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 86.60 2100.0
|
||||
-3000.0 87.60 2200.0
|
||||
-3000.0 88.30 2100.0
|
||||
-3000.0 89.30 2200.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 87.60 2200.0
|
||||
-3000.0 88.60 2300.0
|
||||
-3000.0 89.30 2200.0
|
||||
-3000.0 90.30 2300.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 88.60 2300.0
|
||||
-3000.0 89.60 2400.0
|
||||
-3000.0 90.30 2300.0
|
||||
-3000.0 91.30 2400.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
node -1 0 none traction hu_pwr 3500 4500 0.01 cu 3.0 1
|
||||
-3000.0 89.60 2400.0
|
||||
-3000.0 90.60 2500.0
|
||||
-3000.0 91.30 2400.0
|
||||
-3000.0 92.30 2500.0
|
||||
0.4 4.0 3 0.04 vis
|
||||
endtraction
|
||||
// the W4 of the stations of the timetable
|
||||
include ip/pkp/w4n.inc gora#1 -2997.3 60.00 -90.0 180 0 0 -10 202 end
|
||||
// a signal at stop: what the AI reads of one, a memory cell with SetVelocity 0 0 and the event that reads it
|
||||
node -1 0 hu_sem1_mem memcell -2997.3 78.00 1000.0 SetVelocity 0.0 0.0 none endmemcell
|
||||
event hu_sem1_info getvalues 5.0 hu_sem1_mem endevent
|
||||
// cleared at 10:42: the memory cell lets the train go at the line speed
|
||||
event hu_sem1_go updatevalues 0.0 hu_sem1_mem SetVelocity 100 100 endevent
|
||||
node -1 0 hu_sem1_launcher eventlauncher 0 0 0 -1 none 1042 hu_sem1_go end
|
||||
// a signal at stop: what the AI reads of one, a memory cell with SetVelocity 0 0 and the event that reads it
|
||||
node -1 0 hu_sem2_mem memcell -2997.3 91.00 2300.0 SetVelocity 0.0 0.0 none endmemcell
|
||||
event hu_sem2_info getvalues 5.0 hu_sem2_mem endevent
|
||||
|
||||
trainset {{timetable}} hu_05 0.0 0.1
|
||||
{{consist}}
|
||||
endtrainset
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"description": "Test mode, no signal passed at danger for a train set past a signal: EU07 on td.scn standing with its head 1 m past the exit signal stacja1_j at stop (no route). Its driver finds the signal behind the head at its first look ahead, about 13 s in; a standing train passes nothing, so it isn't a signal passed at danger, and the case runs into its timeout.",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_past_red_signal.scn",
|
||||
"vars": {
|
||||
"offset": "52.0",
|
||||
"consist": "node -1 0 {{vehicle}} dynamic pkp\\4e_v1 4e-004 4e 0 headdriver 0 0 enddynamic"
|
||||
},
|
||||
"duration": 60,
|
||||
"timeout": 600,
|
||||
"checks": [
|
||||
{ "type": "max_speed", "limit": 1 },
|
||||
{ "type": "distance", "max": 1 }
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"description": "Test mode, no signal passed at danger for a train set past a signal: EU07 on td.scn standing with its head 4 m past the exit signal stacja1_j at stop (no route). Its driver finds the signal behind the head at its first look ahead, about 13 s in; a standing train passes nothing, so it isn't a signal passed at danger, and the case runs into its timeout.",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_past_red_signal.scn",
|
||||
"vars": {
|
||||
"offset": "55.0",
|
||||
"consist": "node -1 0 {{vehicle}} dynamic pkp\\4e_v1 4e-004 4e 0 headdriver 0 0 enddynamic"
|
||||
},
|
||||
"duration": 60,
|
||||
"timeout": 600,
|
||||
"checks": [
|
||||
{ "type": "max_speed", "limit": 1 },
|
||||
{ "type": "distance", "max": 1 }
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"description": "As eu07_td_crew_add, with a Traxx (E186, p160dc) standing ready to depart (trainset velocity 0.1) with nobody in it: its brake handle, one with a time chamber (MHZ_6P), in the holding position and the brake pipe and the control reservoir at running pressure. The AI driver put in cab A 20 s after the start gets the locomotive ready, puts the handle to running and leaves through the exit signal.",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_crew.scn",
|
||||
"vars": {
|
||||
"trainsets": [
|
||||
"trainset none tdo_n1734 0.0 0.1",
|
||||
"node -1 0 {{vehicle}} dynamic pkp/e186_v2 146_226-6 p160dc 0 nobody 0 0 enddynamic",
|
||||
"endtrainset"
|
||||
],
|
||||
"crew": [
|
||||
"event autotest_crew_put putvalues 0 none 0 0 0 Crew:{{vehicle}} 1 0 endevent",
|
||||
"event autotest_crew_on multiple 20 none autotest_crew_put autotest_crew_waits endevent",
|
||||
"node -1 0 autotest_crew_on_launcher eventlauncher 0 0 0 -1 none 1034 autotest_crew_on end"
|
||||
]
|
||||
},
|
||||
"track_events": {
|
||||
"tdo_n1734": "event0 autotest_wake"
|
||||
},
|
||||
"duration": 300,
|
||||
"timeout": 600,
|
||||
"checks": [
|
||||
{ "type": "log_contains", "pattern": "Crew: \\[autotest_traxx_td_crew_add\\] an AI driver takes cab A" },
|
||||
{ "type": "driver_changes", "vehicle": "{{vehicle}}", "to": "ai", "after": 15, "before": 30 },
|
||||
{ "type": "starts", "min_speed": 20, "within": 240 },
|
||||
{ "type": "moves", "vehicle": "{{vehicle}}", "direction": "front", "min_speed": 20 },
|
||||
{ "type": "log_lacks", "pattern": "derailed" },
|
||||
{ "type": "log_lacks", "pattern": "collided" }
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"description": "Traxx (E186, p160dc) on td.scn, AI driver on the td/rozklad timetable: a driver's brake handle with a time chamber (MHZ_6P), for which the AI getting the locomotive ready has a rule of its own for releasing the train brake (5775493b2, #444). Starts from Stacja1, keeps to the speed limit, brakes to a stop at Przystanek.",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_timetable.scn",
|
||||
"vars": {
|
||||
"consist": "node -1 0 {{vehicle}} dynamic pkp/e186_v2 146_226-6 p160dc 0 headdriver 0 0 enddynamic"
|
||||
},
|
||||
"duration": 240,
|
||||
"timeout": 600,
|
||||
"checks": [
|
||||
{ "type": "starts", "min_speed": 20, "within": 150 },
|
||||
{ "type": "max_speed", "limit": 90, "tolerance": 3 },
|
||||
{ "type": "brakes", "min_pressure": 0.5 },
|
||||
{ "type": "stops", "moving_speed": 20, "stop_speed": 1.0, "hold": 0, "min_distance": 1380, "max_distance": 1420 }
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"description": "As traxx_td_timetable, from a cold start: the trainset stands with velocity 0, so the locomotive starts braked, its brake handle (MHZ_6P, with a time chamber) in the holding position and the brake pipe below running pressure. The driver gets the order to run as a train, starts the locomotive, puts the handle to running, charges the brake pipe and leaves on time.",
|
||||
"base_scenery": "td.scn",
|
||||
"time": "10:34",
|
||||
"fragment": "td_cold_timetable.scn",
|
||||
"vars": {
|
||||
"consist": "node -1 0 {{vehicle}} dynamic pkp/e186_v2 146_226-6 p160dc 0 headdriver 0 0 enddynamic"
|
||||
},
|
||||
"track_events": {
|
||||
"tdo_n1734": "event0 autotest_wake"
|
||||
},
|
||||
"duration": 300,
|
||||
"timeout": 600,
|
||||
"checks": [
|
||||
{ "type": "starts", "min_speed": 20, "within": 150 },
|
||||
{ "type": "max_speed", "limit": 90, "tolerance": 3 },
|
||||
{ "type": "brakes", "min_pressure": 0.5 },
|
||||
{ "type": "stops", "moving_speed": 20, "stop_speed": 1.0, "hold": 0, "min_distance": 1380, "max_distance": 1420 }
|
||||
]
|
||||
}
|
||||
+199
-22
@@ -49,7 +49,9 @@ OUT_DIR = HERE / "out"
|
||||
# Velocity is in km/h and pressures in bar, despite the header saying m/s and MPa.
|
||||
COL_TIME = 0
|
||||
COL_VELOCITY = 1 # wheel speed: stays at 0 while the wheels are locked in a skid
|
||||
COL_TRACTION_FORCE = 5 # N, despite the header saying kN
|
||||
COL_BRAKE_PRESS = 8
|
||||
COL_MASTER_CONTROLLER = 11 # the position of the master controller
|
||||
COL_COMMAND = 16 # text, read as None
|
||||
COL_WHEELSLIP = 20
|
||||
COL_VEHICLE_VELOCITY = 25 # signed vehicle speed, km/h; only in builds which log it
|
||||
@@ -155,6 +157,46 @@ def timetable_path(game_dir: Path, case_name: str) -> Path:
|
||||
return game_dir / "scenery" / f"{timetable_name(case_name)}.txt"
|
||||
|
||||
|
||||
def variant_name(case_name: str, name: str) -> str:
|
||||
"""A vehicle variant of the case as a trainset names it: {{variant_<name>}} in the fragment."""
|
||||
return f"autotest_{case_name}_{name}"
|
||||
|
||||
|
||||
def variant_paths(game_dir: Path, case_name: str, variant: dict) -> list[Path]:
|
||||
"""The .fiz and .mmd of a vehicle variant of the case, beside those of the vehicle it is made from."""
|
||||
folder = (game_dir / "dynamic" / variant["from"]).parent
|
||||
return [folder / f"{variant_name(case_name, variant['name'])}{suffix}" for suffix in (".fiz", ".mmd")]
|
||||
|
||||
|
||||
def write_vehicle_variants(case: dict, game_dir: Path, case_name: str) -> None:
|
||||
"""Writes the case's vehicle variants into the game's dynamic/ dir: a copy of a vehicle's .fiz with the
|
||||
case's replacements, e.g. a .fiz key the shipped data doesn't have yet, and a copy of its .mmd. The
|
||||
simulator hands the .mmd its type name as (p2), which some pass on to the include that names the
|
||||
model (et42_v2: `include 112e-a.mmd.inc (p2) end`, `models: (p1).t3d`), so the copy has the name of
|
||||
the vehicle it is made from in place of (p2) and looks and loads as that one does."""
|
||||
files = {}
|
||||
for variant in case.get("vehicle_variants", []):
|
||||
source = game_dir / "dynamic" / variant["from"]
|
||||
# .fiz files are cp1250 like the sceneries; latin-1 round-trips every byte
|
||||
fiz = source.with_name(source.name + ".fiz").read_bytes().decode("latin-1")
|
||||
for old, new in variant.get("replace", []):
|
||||
if old not in fiz:
|
||||
sys.exit(f"vehicle_variants: {variant['from']}.fiz has no {old!r}")
|
||||
fiz = fiz.replace(old, new)
|
||||
mmd = source.with_name(source.name + ".mmd").read_bytes().decode("latin-1").replace("(p2)", source.name)
|
||||
fiz_path, mmd_path = variant_paths(game_dir, case_name, variant)
|
||||
files[fiz_path], files[mmd_path] = fiz, mmd
|
||||
# written once every variant is made, so a case with a wrong replacement leaves nothing in the game dir
|
||||
for path, text in files.items():
|
||||
path.write_bytes(text.encode("latin-1"))
|
||||
|
||||
|
||||
def remove_vehicle_variants(case: dict, game_dir: Path, case_name: str) -> None:
|
||||
for variant in case.get("vehicle_variants", []):
|
||||
for path in variant_paths(game_dir, case_name, variant):
|
||||
path.unlink(missing_ok=True)
|
||||
|
||||
|
||||
def build_scenery(case: dict, game_dir: Path, case_name: str, vehicle: str) -> str:
|
||||
"""Writes the case scenery into the game's scenery dir and returns its file name."""
|
||||
scenery_dir = game_dir / "scenery"
|
||||
@@ -175,8 +217,9 @@ def build_scenery(case: dict, game_dir: Path, case_name: str, vehicle: str) -> s
|
||||
# a case on a mission of the base scenery may have nothing to add but its test_config
|
||||
fragment = (CASES_DIR / case["fragment"]).read_bytes().decode("latin-1") if "fragment" in case else ""
|
||||
# vars first: {{vehicle}} and {{timetable}} inside a var's value get filled in the second pass
|
||||
fragment = fill_vars(fragment, case.get("vars", {}), keep={"vehicle", "timetable"})
|
||||
fragment = fill_vars(fragment, {"vehicle": vehicle, "timetable": timetable_name(case_name)})
|
||||
variants = {f"variant_{v['name']}": variant_name(case_name, v["name"]) for v in case.get("vehicle_variants", [])}
|
||||
fragment = fill_vars(fragment, case.get("vars", {}), keep={"vehicle", "timetable", *variants})
|
||||
fragment = fill_vars(fragment, {"vehicle": vehicle, "timetable": timetable_name(case_name), **variants})
|
||||
# FirstInit binds event launchers to their events and links the tracks. so launchers and
|
||||
# events of the case go in before it (read after it they never fire), trainsets after it
|
||||
# (placed before it they stand on unlinked track and derail at once)
|
||||
@@ -192,6 +235,8 @@ def build_scenery(case: dict, game_dir: Path, case_name: str, vehicle: str) -> s
|
||||
else:
|
||||
text += header + before + "\n"
|
||||
text += header + trainsets + "\n"
|
||||
# vehicles of the case's own, made from those of the game
|
||||
write_vehicle_variants(case, game_dir, case_name)
|
||||
name = f"autotest_{case_name}.scn"
|
||||
(scenery_dir / name).write_bytes(text.encode("latin-1"))
|
||||
# a timetable of the case's own, for a train whose timetable the sceneries of the game have none like
|
||||
@@ -442,11 +487,14 @@ def run_simulator(exe: Path, game_dir: Path, scenery: str, ini: Path, physicslog
|
||||
# ---------------------------------------------------------------- checks
|
||||
|
||||
|
||||
def check_starts(rows, min_speed, within):
|
||||
def check_starts(rows, min_speed, within, after=None):
|
||||
for r in rows:
|
||||
if r[COL_TIME] > within:
|
||||
break
|
||||
if r[COL_VELOCITY] >= min_speed:
|
||||
# a case can also say the train mustn't leave before something it waits for (a converter starting)
|
||||
if after is not None and r[COL_TIME] < after:
|
||||
return False, f"reached {min_speed} km/h at t={r[COL_TIME]:.1f}s, before {after}s"
|
||||
return True, f"reached {min_speed} km/h at t={r[COL_TIME]:.1f}s"
|
||||
top = max((r[COL_VELOCITY] for r in rows if r[COL_TIME] <= within), default=0.0)
|
||||
return False, f"top speed in the first {within}s was {top:.1f} km/h, wanted {min_speed}"
|
||||
@@ -482,25 +530,42 @@ def check_brakes(rows, min_pressure, moving_speed=20):
|
||||
return False, f"brake cylinder pressure never reached {min_pressure} bar after moving off"
|
||||
|
||||
|
||||
def check_stops(rows, moving_speed, stop_speed, hold, min_distance=None, max_distance=None):
|
||||
def check_stops(rows, moving_speed, stop_speed, hold, min_distance=None, max_distance=None, max_time=None, nth=1):
|
||||
"""The nth stop of `hold` seconds after moving off at `moving_speed` (each stop after the first counts once the
|
||||
train is moving at `moving_speed` again)."""
|
||||
start = _first_moving(rows, moving_speed)
|
||||
if start is None:
|
||||
return False, f"never reached {moving_speed} km/h"
|
||||
dist = _distances(rows)
|
||||
stopped_at = None
|
||||
held = 0
|
||||
moving = True
|
||||
for i in range(start, len(rows)):
|
||||
r = rows[i]
|
||||
if not moving:
|
||||
moving = r[COL_VELOCITY] >= moving_speed
|
||||
continue
|
||||
if r[COL_VELOCITY] <= stop_speed:
|
||||
if stopped_at is None:
|
||||
stopped_at = i
|
||||
if r[COL_TIME] - rows[stopped_at][COL_TIME] >= hold:
|
||||
held += 1
|
||||
if held < nth:
|
||||
stopped_at = None
|
||||
moving = False
|
||||
continue
|
||||
where = dist[stopped_at]
|
||||
detail = f"came to a stop at t={rows[stopped_at][COL_TIME]:.1f}s after {where:.0f} m"
|
||||
when = rows[stopped_at][COL_TIME]
|
||||
detail = f"came to a stop at t={when:.1f}s after {where:.0f} m"
|
||||
if (min_distance is not None and where < min_distance) or (max_distance is not None and where > max_distance):
|
||||
return False, f"{detail}, wanted between {min_distance} and {max_distance} m"
|
||||
if max_time is not None and when > max_time:
|
||||
return False, f"{detail}, wanted by t={max_time}s"
|
||||
return True, detail
|
||||
else:
|
||||
stopped_at = None
|
||||
if held:
|
||||
return False, f"stopped {held} times for {hold}s after moving off, wanted stop {nth}"
|
||||
return False, f"did not stay below {stop_speed} km/h for {hold}s after moving off"
|
||||
|
||||
|
||||
@@ -567,6 +632,58 @@ def check_ends_moving(rows, min_speed):
|
||||
return ok, f"last row t={last[COL_TIME]:.1f}s, v={last[COL_VELOCITY]:.1f} km/h (wanted >= {min_speed})"
|
||||
|
||||
|
||||
def check_keeps_moving(rows, moving_speed, min_speed, until_distance, from_distance=0.0):
|
||||
"""(*vehicle speed*) Once at moving_speed, the speed stays at or above min_speed between the two distances (metres
|
||||
travelled, from the vehicle speed), e.g. a train doesn't come to a stand on a gradient before a restriction or in
|
||||
it. The vehicle speed, as wheels slipping at the start would count as moving off."""
|
||||
if not rows or len(rows[0]) <= COL_VEHICLE_VELOCITY or rows[0][COL_VEHICLE_VELOCITY] is None:
|
||||
return False, "the physicslog has no vehicle speed column, the build is too old"
|
||||
speed = [abs(r[COL_VEHICLE_VELOCITY]) for r in rows]
|
||||
start = next((i for i, v in enumerate(speed) if v >= moving_speed), None)
|
||||
if start is None:
|
||||
return False, f"never reached {moving_speed} km/h"
|
||||
dist, d = [0.0], 0.0
|
||||
for i in range(1, len(rows)):
|
||||
d += (speed[i - 1] + speed[i]) / 2 / 3.6 * (rows[i][COL_TIME] - rows[i - 1][COL_TIME])
|
||||
dist.append(d)
|
||||
span = [i for i in range(start, len(rows)) if from_distance <= dist[i] <= until_distance]
|
||||
if not span or dist[-1] < until_distance:
|
||||
return False, f"travelled {dist[-1]:.0f} m only, wanted {until_distance} m"
|
||||
low = min(span, key=lambda i: speed[i])
|
||||
r = rows[low]
|
||||
detail = (f"lowest speed {speed[low]:.1f} km/h at t={r[COL_TIME]:.1f}s after {dist[low]:.0f} m "
|
||||
f"(brake cylinder {r[COL_BRAKE_PRESS]:.2f} bar), wanted >= {min_speed} between {from_distance:.0f} and {until_distance} m")
|
||||
return speed[low] >= min_speed, detail
|
||||
|
||||
|
||||
def check_starts_again(rows, after, min_speed, within, max_rollback=None):
|
||||
"""Standing at the time `after` (e.g. at a signal that clears then), the vehicle reaches min_speed within `within`
|
||||
seconds; with max_rollback (*vehicle speed*), it rolls back no more than that many metres meanwhile."""
|
||||
first = next((i for i, r in enumerate(rows) if r[COL_TIME] >= after), None)
|
||||
if first is None:
|
||||
return False, f"the physicslog ends before t={after}s"
|
||||
if rows[first][COL_VELOCITY] > 1.0:
|
||||
return False, f"moving at {rows[first][COL_VELOCITY]:.1f} km/h at t={after}s, wanted standing"
|
||||
moved = next((r[COL_TIME] for r in rows[first:] if r[COL_VELOCITY] > 1.0), None)
|
||||
reached = next((r[COL_TIME] for r in rows[first:] if r[COL_VELOCITY] >= min_speed), None)
|
||||
rollback, back = 0.0, 0.0
|
||||
if max_rollback is not None:
|
||||
if len(rows[0]) <= COL_VEHICLE_VELOCITY or rows[0][COL_VEHICLE_VELOCITY] is None:
|
||||
return False, "the physicslog has no vehicle speed column, the build is too old"
|
||||
end = reached if reached is not None else after + within
|
||||
for a, b in zip(rows[first:], rows[first + 1:]):
|
||||
if b[COL_TIME] > end:
|
||||
break
|
||||
back += (a[COL_VEHICLE_VELOCITY] + b[COL_VEHICLE_VELOCITY]) / 2 / 3.6 * (b[COL_TIME] - a[COL_TIME])
|
||||
rollback = max(rollback, -back)
|
||||
detail = (f"moved off (1 km/h) {moved - after:.1f}s after t={after}s" if moved is not None else f"didn't move off after t={after}s")
|
||||
detail += f", {min_speed} km/h after {reached - after:.1f}s" if reached is not None else f", never reached {min_speed} km/h"
|
||||
if max_rollback is not None:
|
||||
detail += f", rolled back {rollback:.2f} m (wanted <= {max_rollback})"
|
||||
ok = reached is not None and reached - after <= within and (max_rollback is None or rollback <= max_rollback)
|
||||
return ok, detail + f" (wanted {min_speed} km/h within {within}s)"
|
||||
|
||||
|
||||
def check_slip_clears(rows, moving_speed, stop_speed, within):
|
||||
"""Once the vehicle has stopped after moving off, its wheels stop slipping within `within` seconds
|
||||
(a vehicle left skidding on locked wheels keeps its brakes capped by the sliding adhesion)."""
|
||||
@@ -585,7 +702,51 @@ def check_slip_clears(rows, moving_speed, stop_speed, within):
|
||||
return True, f"stopped at t={rows[stop][COL_TIME]:.1f}s, no slipping after t={deadline:.1f}s"
|
||||
|
||||
|
||||
def check_traction(rows, from_distance, to_distance, reaches=None, at_most=None, at_least=None):
|
||||
"""The traction force of the vehicle in kN (the physicslog has it in N, whatever its header says) while it
|
||||
runs between two points of its way, in metres travelled as in `distance`: the highest there `reaches` a
|
||||
force, e.g. the power taken again behind a section without voltage; it stays `at_most` a force, e.g. none
|
||||
taken where there is no voltage; it stays `at_least` a force, e.g. no power lost under an insulator."""
|
||||
dist = _distances(rows)
|
||||
window = [(d, r) for d, r in zip(dist, rows) if from_distance <= d <= to_distance]
|
||||
if not window:
|
||||
return False, f"never got between {from_distance} and {to_distance} m (travelled {dist[-1] if dist else 0:.0f} m)"
|
||||
|
||||
def describe(item):
|
||||
d, r = item
|
||||
return f"{r[COL_TRACTION_FORCE] / 1000:.1f} kN at {d:.0f} m, t={r[COL_TIME]:.1f}s, v={r[COL_VELOCITY]:.1f} km/h"
|
||||
|
||||
top = max(window, key=lambda item: item[1][COL_TRACTION_FORCE])
|
||||
low = min(window, key=lambda item: item[1][COL_TRACTION_FORCE])
|
||||
detail = (f"between {from_distance} and {to_distance} m (t={window[0][1][COL_TIME]:.1f}-{window[-1][1][COL_TIME]:.1f}s) "
|
||||
f"the traction force was {describe(low)} at its lowest, {describe(top)} at its highest")
|
||||
if reaches is not None and top[1][COL_TRACTION_FORCE] / 1000 < reaches:
|
||||
return False, f"{detail}; wanted it to reach {reaches} kN"
|
||||
if at_most is not None and top[1][COL_TRACTION_FORCE] / 1000 > at_most:
|
||||
return False, f"{detail}; wanted at most {at_most} kN"
|
||||
if at_least is not None and low[1][COL_TRACTION_FORCE] / 1000 < at_least:
|
||||
return False, f"{detail}; wanted at least {at_least} kN"
|
||||
return True, detail
|
||||
|
||||
|
||||
def check_master_controller(rows, from_distance, to_distance, at_most):
|
||||
"""The master controller of the vehicle stays at or below a position while it runs between two points of its
|
||||
way (metres travelled, as in `distance`), e.g. at 0 where the scenery tells the driver to coast."""
|
||||
dist = _distances(rows)
|
||||
window = [(d, r) for d, r in zip(dist, rows) if from_distance <= d <= to_distance]
|
||||
if not window:
|
||||
return False, f"never got between {from_distance} and {to_distance} m (travelled {dist[-1] if dist else 0:.0f} m)"
|
||||
d, top = max(window, key=lambda item: item[1][COL_MASTER_CONTROLLER])
|
||||
detail = (f"between {from_distance} and {to_distance} m (t={window[0][1][COL_TIME]:.1f}-{window[-1][1][COL_TIME]:.1f}s) "
|
||||
f"the master controller was at {top[COL_MASTER_CONTROLLER]:.0f} at most, at {d:.0f} m, t={top[COL_TIME]:.1f}s")
|
||||
if top[COL_MASTER_CONTROLLER] > at_most:
|
||||
return False, f"{detail}; wanted at most {at_most}"
|
||||
return True, detail
|
||||
|
||||
|
||||
CHECKS = {
|
||||
"master_controller": check_master_controller,
|
||||
"traction": check_traction,
|
||||
"slips": check_slips,
|
||||
"slip_clears": check_slip_clears,
|
||||
"holds_still": check_holds_still,
|
||||
@@ -596,6 +757,8 @@ CHECKS = {
|
||||
"stays_stopped": check_stays_stopped,
|
||||
"distance": check_distance,
|
||||
"ends_moving": check_ends_moving,
|
||||
"keeps_moving": check_keeps_moving,
|
||||
"starts_again": check_starts_again,
|
||||
}
|
||||
|
||||
|
||||
@@ -705,9 +868,11 @@ def check_driver_changes(box, vehicle, to, after=0.0, before=None):
|
||||
return True, f"{vehicle} has driver {to} from t={change.time:.1f}s to the end (t={box.end_time:.1f}s)"
|
||||
|
||||
|
||||
def check_stops_driverless(box, vehicle, min_speed, within, stop_speed=0.5, max_creep=1.0, hold=60.0):
|
||||
def check_stops_driverless(box, vehicle, min_speed, within, stop_speed=0.5, max_creep=1.0, hold=60.0,
|
||||
min_deceleration=None, max_deceleration=None):
|
||||
"""The vehicle loses its driver at `min_speed` or faster, stands `within` seconds later and stays where it
|
||||
stopped, to the end of the recording or until it gets a driver again."""
|
||||
stopped, to the end of the recording or until it gets a driver again. With the decelerations, the mean one of
|
||||
that stop (from the speed and the way to the stop, m/s²) has to be within them: how well the train brakes."""
|
||||
states, why = _vehicle_states(box, vehicle)
|
||||
if states is None:
|
||||
return False, why
|
||||
@@ -734,8 +899,15 @@ def check_stops_driverless(box, vehicle, min_speed, within, stop_speed=0.5, max_
|
||||
if fastest > stop_speed or creep > max_creep:
|
||||
return False, f"{vehicle} stood at t={stop.time:.1f}s, then moved {creep:.1f} m at up to {fastest:.1f} km/h with no driver"
|
||||
way = sum(math.dist(a.position, b.position) for a, b in zip(after, after[1:]) if b.time <= stop.time)
|
||||
return True, (f"{vehicle} lost its driver at t={left.time:.1f}s at {abs(left.speed):.1f} km/h, stood {stop.time - left.time:.0f}s "
|
||||
f"and {way:.0f} m later, moved {creep:.2f} m in the {until - stop.time:.0f}s {alone}")
|
||||
stopped = (f"{vehicle} lost its driver at t={left.time:.1f}s at {abs(left.speed):.1f} km/h, stood {stop.time - left.time:.0f}s "
|
||||
f"and {way:.0f} m later")
|
||||
# v² / 2s: the black box lists a vehicle once a second, so the way is closer to the truth than the time
|
||||
deceleration = (abs(left.speed) / 3.6) ** 2 / (2 * way) if way > 0 else math.inf
|
||||
if ((min_deceleration is not None and deceleration < min_deceleration)
|
||||
or (max_deceleration is not None and deceleration > max_deceleration)):
|
||||
bounds = f"{min_deceleration if min_deceleration is not None else 0:g}..{max_deceleration if max_deceleration is not None else 'any'}"
|
||||
return False, f"{stopped}: a mean deceleration of {deceleration:.2f} m/s², outside {bounds}"
|
||||
return True, f"{stopped} ({deceleration:.2f} m/s²), moved {creep:.2f} m in the {until - stop.time:.0f}s {alone}"
|
||||
|
||||
|
||||
def check_moves(box, vehicle, min_speed, direction="front"):
|
||||
@@ -830,15 +1002,6 @@ def _run_case(name: str, case: dict, exe: Path, game_dir: Path, timespeed: float
|
||||
if not with_physicslog and (watch or needs_physicslog):
|
||||
sys.exit(f"{name}: with physicslog off a case can have log checks only ({', '.join(LOG_CHECKS)}), "
|
||||
"and can't run with --watch")
|
||||
scenery = build_scenery(case, game_dir, name, vehicle)
|
||||
ini = out / "autotest.ini"
|
||||
# the case's own settings go last, over the common ones; then the seed of this run of the suite, if any
|
||||
settings = [*case.get("ini", []), *([f"randomseed {seed}"] if seed else [])]
|
||||
ini.write_text(TEST_INI.format(timespeed=timespeed, physicslog="yes" if with_physicslog else "no")
|
||||
+ "".join(line + "\n" for line in settings), encoding="ascii")
|
||||
physicslog = game_dir / "physicslog" / f"{vehicle}.dat"
|
||||
started = time.time() - 1
|
||||
|
||||
duration = float(case["duration"]) if "duration" in case else None
|
||||
# a case that only records `duration` seconds ends on the test timeout; one that says
|
||||
# how the test ends (a pass event, a signal passed at danger...) expects that result
|
||||
@@ -847,10 +1010,24 @@ def _run_case(name: str, case: dict, exe: Path, game_dir: Path, timespeed: float
|
||||
sys.exit(f"{name}: expect must be one of {', '.join(RESULTS)}")
|
||||
if watch and duration is None:
|
||||
sys.exit(f"{name}: --watch needs a case with duration")
|
||||
result = run_simulator(exe, game_dir, scenery, ini, physicslog,
|
||||
duration, float(case.get("timeout", 600)), watch, say,
|
||||
expect_rows=with_physicslog and not own_vehicle)
|
||||
timetable_path(game_dir, name).unlink(missing_ok=True)
|
||||
|
||||
ini = out / "autotest.ini"
|
||||
# the case's own settings go last, over the common ones; then the seed of this run of the suite, if any
|
||||
settings = [*case.get("ini", []), *([f"randomseed {seed}"] if seed else [])]
|
||||
ini.write_text(TEST_INI.format(timespeed=timespeed, physicslog="yes" if with_physicslog else "no")
|
||||
+ "".join(line + "\n" for line in settings), encoding="ascii")
|
||||
physicslog = game_dir / "physicslog" / f"{vehicle}.dat"
|
||||
started = time.time() - 1
|
||||
# from here on the case has files of its own in the game dir (the vehicle variants, the timetable)
|
||||
try:
|
||||
scenery = build_scenery(case, game_dir, name, vehicle)
|
||||
result = run_simulator(exe, game_dir, scenery, ini, physicslog,
|
||||
duration, float(case.get("timeout", 600)), watch, say,
|
||||
expect_rows=with_physicslog and not own_vehicle)
|
||||
finally:
|
||||
# the case's own files go from the game dir also when the run is broken off (ctrl+c)
|
||||
timetable_path(game_dir, name).unlink(missing_ok=True)
|
||||
remove_vehicle_variants(case, game_dir, name)
|
||||
# a case that asked for no geometry cache (file.binary.terrain no) leaves none of an earlier run behind
|
||||
if any(line.split()[:2] == ["file.binary.terrain", "no"] for line in case.get("ini", [])):
|
||||
scenery_cache(game_dir, name).unlink(missing_ok=True)
|
||||
|
||||
@@ -35,6 +35,8 @@ add_executable(${UNIT_TESTS_NAME}
|
||||
# and the http client the editor fetches its aids with
|
||||
"${CMAKE_SOURCE_DIR}/editor/editorHttp.cpp"
|
||||
"${CMAKE_SOURCE_DIR}/editor/editorScatter.cpp"
|
||||
# the camera, for the order of its rotations (test_camera.cpp)
|
||||
"${CMAKE_SOURCE_DIR}/vehicle/Camera.cpp"
|
||||
${UNIT_TEST_CASES})
|
||||
|
||||
# the core library brings the game's build settings along
|
||||
|
||||
@@ -124,6 +124,8 @@ Notes to the table:
|
||||
- The small headers with the logic of a single part are all run in full: `vehicle/doorwings.h`, `gaugeduplicates.h`, `gaugepositions.h`, `holdcoillever.h`, `lightsprogrammer.h`, `mainctrlact.h`, `mirrors.h`, `scripting/scriptscreendrawing.h`, `scriptscreenkernels.h`, `scriptscreenprogram.h`, `scriptscreens.h`, `utilities/dictionary.h` and `vehicle/blackbox.h`.
|
||||
- `vehicle/brakesetting.cpp` and `vehicle/odometer.cpp` (the brake setting of the wagons, the odometer store) joined the library on master after that run. In the run of `bac9954a` their tests (`test_brake_setting.cpp`, `test_odometer.cpp`) run 94.1% (144 of 153) and 87.9% (189 of 215) of their lines, and all 14 and 26 of 28 of their functions.
|
||||
- The script hosts (`scriptscreens.cpp`, `luaprogram.cpp`, `wasmprogram.cpp`) aren't in the library. The test binary compiles them itself, with the real runtimes.
|
||||
- `vehicle/Camera.cpp` isn't in the library either. The test binary compiles it for the order of the camera's rotations (`test_camera.cpp`, #414), with stubs for the command queue and the clock that `TCamera::Update()` reaches for.
|
||||
- The colour of the smoke of a cold diesel (#413) isn't tested: the fix is in `smoke_source::update()` (`rendering/particles.cpp`), which needs the world environment (sky, sun, precipitation, sounds) and a whole `TDynamicObject` to link.
|
||||
- `scene/scenelayers.h`, `scene/scenenode.h` and `scene/scenenodegroups.h` are in the report with a few lines each: the parser reports the files it includes to the scenery, which the tests replace with stubs (`engine_stubs.cpp`).
|
||||
|
||||
### The parser, the helpers and the PLC
|
||||
|
||||
@@ -0,0 +1,105 @@
|
||||
#include "stdafx.h"
|
||||
#include "doctest.h"
|
||||
|
||||
#include "vehicle/aipower.h"
|
||||
|
||||
// the AI driver of an electric vehicle standing with its pantographs up and no voltage at them: what it makes of
|
||||
// it, and when it tells of it in the log (eu07/maszyna#421)
|
||||
|
||||
namespace {
|
||||
|
||||
using ai_power::stall;
|
||||
|
||||
// standing with the pantographs up, past the end of the overhead wire
|
||||
ai_power::state past_the_wire() {
|
||||
ai_power::state state;
|
||||
state.collector = true;
|
||||
state.power = false;
|
||||
state.standing = true;
|
||||
state.pantographs_up = true;
|
||||
state.wire = false;
|
||||
return state;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
TEST_CASE("ai power: standing with the pantographs up and no wire above them is a stall") {
|
||||
CHECK(ai_power::check(past_the_wire()) == stall::no_wire);
|
||||
}
|
||||
|
||||
TEST_CASE("ai power: a wire above the raised pantographs which carries no voltage is told apart") {
|
||||
auto state{past_the_wire()};
|
||||
state.wire = true;
|
||||
|
||||
CHECK(ai_power::check(state) == stall::no_voltage);
|
||||
}
|
||||
|
||||
TEST_CASE("ai power: with the voltage there, or without a pantograph to take it, there is nothing to tell") {
|
||||
auto powered{past_the_wire()};
|
||||
powered.power = true; // at the pantographs, or from the rest of the train through its high voltage cable
|
||||
auto diesel{past_the_wire()};
|
||||
diesel.collector = false;
|
||||
|
||||
CHECK(ai_power::check(powered) == stall::not_stalled);
|
||||
CHECK(ai_power::check(diesel) == stall::not_stalled);
|
||||
}
|
||||
|
||||
TEST_CASE("ai power: moving, or the pantographs not up yet, it only waits") {
|
||||
auto moving{past_the_wire()};
|
||||
moving.standing = false; // coasting through a gap of the wire, say
|
||||
auto rising{past_the_wire()};
|
||||
rising.pantographs_up = false; // the air for the pantographs still being pumped up
|
||||
|
||||
CHECK(ai_power::check(moving) == stall::waiting);
|
||||
CHECK(ai_power::check(rising) == stall::waiting);
|
||||
}
|
||||
|
||||
TEST_CASE("ai power: a stall is reported once it lasted report_delay, and only once") {
|
||||
ai_power::reporter reporter;
|
||||
|
||||
CHECK_FALSE(reporter.update(stall::no_wire, 100.0).has_value());
|
||||
CHECK_FALSE(reporter.update(stall::no_wire, 100.0 + ai_power::report_delay - 0.5).has_value());
|
||||
auto const report{reporter.update(stall::no_wire, 100.0 + ai_power::report_delay)};
|
||||
REQUIRE(report.has_value());
|
||||
CHECK(*report == stall::no_wire);
|
||||
// the driver keeps trying to prepare the vehicle, without telling of it again
|
||||
CHECK_FALSE(reporter.update(stall::no_wire, 100.0 + ai_power::report_delay + 1.0).has_value());
|
||||
CHECK_FALSE(reporter.update(stall::no_wire, 1000.0).has_value());
|
||||
}
|
||||
|
||||
TEST_CASE("ai power: the voltage coming back ends the stall, the next one is reported again") {
|
||||
ai_power::reporter reporter;
|
||||
reporter.update(stall::no_wire, 0.0);
|
||||
REQUIRE(reporter.update(stall::no_wire, ai_power::report_delay).has_value());
|
||||
|
||||
// towed back under the wire: the vehicle gets prepared
|
||||
CHECK_FALSE(reporter.update(stall::not_stalled, 100.0).has_value());
|
||||
// and later stands without voltage again, under a wire switched off this time
|
||||
CHECK_FALSE(reporter.update(stall::no_voltage, 200.0).has_value());
|
||||
auto const report{reporter.update(stall::no_voltage, 200.0 + ai_power::report_delay)};
|
||||
REQUIRE(report.has_value());
|
||||
CHECK(*report == stall::no_voltage);
|
||||
}
|
||||
|
||||
TEST_CASE("ai power: moving or lowering the pantographs restarts the count but doesn't end a reported stall") {
|
||||
ai_power::reporter reporter;
|
||||
reporter.update(stall::no_wire, 0.0);
|
||||
// the vehicle moves before the stall is reported: the count starts again once it stands
|
||||
CHECK_FALSE(reporter.update(stall::waiting, 20.0).has_value());
|
||||
CHECK_FALSE(reporter.update(stall::no_wire, 25.0).has_value());
|
||||
CHECK_FALSE(reporter.update(stall::no_wire, 25.0 + ai_power::report_delay - 1.0).has_value());
|
||||
REQUIRE(reporter.update(stall::no_wire, 25.0 + ai_power::report_delay).has_value());
|
||||
// still with no voltage, the vehicle moved (pushed a bit) and stands again: no second report
|
||||
CHECK_FALSE(reporter.update(stall::waiting, 100.0).has_value());
|
||||
CHECK_FALSE(reporter.update(stall::no_wire, 110.0).has_value());
|
||||
CHECK_FALSE(reporter.update(stall::no_wire, 110.0 + 2.0 * ai_power::report_delay).has_value());
|
||||
}
|
||||
|
||||
TEST_CASE("ai power: the report names the vehicle, where it stands and why") {
|
||||
auto const nowire{ai_power::message(stall::no_wire, "et21-367", {1817.4, 0.38, 4785.94})};
|
||||
auto const novoltage{ai_power::message(stall::no_voltage, "et21-367", {1817.4, 0.38, 4785.94})};
|
||||
|
||||
CHECK(nowire == "AI [et21-367]: can't start, no overhead wire above its raised pantographs (at 1817.40, 0.38, 4785.94); it waits for the voltage");
|
||||
CHECK(novoltage.find("no voltage in the overhead wire") != std::string::npos);
|
||||
CHECK(novoltage.find("et21-367") != std::string::npos);
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user