eu07_td_off_track_buckle_fast checked that the overturned train comes to
rest folded by 8 deg at least. With the pull of the couplings no longer
across between the buffer faces, they hold the bodies more in line: with
the fixed seed the bends are 1 to 4 deg (3 to 8 before), with the seeds
1 to 6 the largest bend is 7 to 73 deg (21 to 78 before); the same with a
local build of staging and with the CI one. The check takes 3 deg, the
description gives the numbers.
behaviour-changes.md: the coupling off the track pulls hook to hook.
Every way a vehicle leaves the rails records what derailed it and its speed in the mover
(DerailedBy, DerailVelocity), by any physics.derailment model and the collisions. After all
vehicles moved, TDynamicObject::new_derailment() notices each derailment once, and
state_manager::report_derailment() tells:
- the log: "derailment: <vehicle> derailed (<cause>) on track <track> at <speed> km/h";
- a scenery that asked for it: its memory cell __simulation.derailment gets
"<vehicle> <cause> <track>", the speed and the code of the cause, then its events
__simulation.derailment and <vehicle>:derailed run with the vehicle as activator. Nothing
is made at the start, so a scenery without them runs as before (no draw of the random
numbers for a new node);
- the black box: a derailment record with the new phase 2, for any model, and every
derailment record gets the finer cause and the track at its end;
- the test mode: test.fail_on_derailment yes (default no) ends the run of a tested train
that derailed with the new result derailment, exit code 15; otherwise the verdict line
ends with " [derailed: ...]".
run.py knows exit code 15 and shows the derailment of the train under test in the summary.
New cases eu07_td_buckle_derails_ends_test and eu07_td_off_track_end_scenery_told; the other
83 end as before and their physics logs are byte-identical to staging.
* docs: behaviour changes accepted in review, for release notes and triage
* docs: the physics log entries after the revert of #408#443 reverted #408 on staging and brought master's #385. physicslog yes
logs road vehicles again, the closing waits for every log, and the
2 s thread, the illegal characters, physicslog.trains and blackbox come
from #385. The test.* keys show in the settings dump of log.txt, not in
an editor save.