jerrrrycho
02e29f6971
feat(simulation): test mode, --test runs a scenery unattended and exits with the result ( eu07/maszyna#541 )
...
eu07 --test -s <scenery> [--test-timeout <s>] runs the scenery in ghostview with
the null renderer (models loaded, no textures), a hidden window, no sound,
network or python, and in fixed steps of 0.03 s of simulation time per frame
(three 10 ms physics steps) as fast as it can. Without -seed it uses a fixed
seed, so two runs give byte-identical physicslogs.
The scenery reports its result to the __test.result memory cell, which the
simulator always creates: value 1 passes once every vehicle has stood still for
1 s, value 0 fails at once. The run ends with exit code
0 pass, 1 fail,
2 a train passed a signal at stop (SetVelocity 0 0, as seen in its driver's
speed table; SetVelocity 0 x on automatic block doesn't count),
3 timeout (test.timeout, default 3600 s of simulation time),
4 standstill (every vehicle still for test.standstill s, default 300, with no
result; a pass with test.pass_on_standstill yes),
5 error (no -s, the scenery didn't load or has no vehicles, an exception).
The test.* keys go in the scenery's config block; test.fail_if_stop_overran no
only logs a signal passed at danger. Outside the test mode a signal passed at
danger is logged.
The null renderer gets a ui backend which draws nothing, hands out the null
texture and material instead of throwing, and ends the ui frame. A GL context
is still made for the hidden window, without asking for a version, as parts
of the ui create textures with gl calls of their own. No crash dialog or
message box in test mode; the window code no longer needs a monitor.
2026-11-07 16:20:42 +01:00
e661b9f1c7
feat(editor): -generate-nodebank-previews mode: png previews of the node bank models, or of the entries given with -entries, drawn offscreen and without a window by the full renderer: square, -resolution 1024 by default, the model in perspective from the front, side and above, fitted to the image less -margin pixels (64 by default) on white background, lit, with materials and with self shadows unless -no-shadows; saved in textures/previews/nodebank under the path of the model with the skin; software rendering of mesa when the graphics driver gives no gl 3.3 or with -software
2026-10-08 18:52:51 +02:00
2e631dcbd6
feat(terrain): binary terrain files (.btf) made out of text terrain files (.txtf) named by terrain directives, checked against length and checksum of the text and loaded section by section when needed; -btf command line conversion; SBT files no longer generated, only loaded
2026-10-06 01:55:38 +02:00
0715437108
Fix include directives
2026-03-14 20:51:11 +01:00
copilot-swe-agent[bot]
7e49aa8740
Rewrite #includes to use explicit subdirectory paths
...
Co-authored-by: Hirek193 <23196899+Hirek193@users.noreply.github.com >
2026-03-14 19:16:48 +00:00
11e79f52ae
Conversion to cpp 20
2026-01-18 21:21:15 +01:00
d70c379efc
Thread closing improvements
2026-01-16 15:11:20 +01:00
5421741296
Change subsystem from console to windows
2025-11-07 10:30:22 +01:00
d988567fc5
More detailed crash dumps
2025-09-07 12:49:44 +02:00
f3476be306
Remove double include for windows.h
2025-08-21 20:20:34 +02:00
f5c7092551
Move crash handling logic for windows only blocks
2025-08-21 20:19:12 +02:00
c98227a2e3
Add log timer
2025-07-23 14:48:17 +02:00
1fba26c6cc
Console errors highlight
2025-07-23 14:24:56 +02:00
a1510eb4fc
Change crashdump name logic
2025-06-11 12:42:09 +02:00
ac2c5ab4cf
Add auto dmp file genration
2025-06-02 22:41:39 +02:00
milek7
8fcd17351c
flush fixes for e3d exporter
2022-03-06 22:10:38 +01:00
milek7
ce6d530aa8
changes for standalone e3d export
2022-03-06 18:18:07 +01:00
milek7
936effa9db
openvr WIP
2020-09-29 22:27:13 +02:00
milek7
aae73106f4
Merge branch 'gfx-work' into sim
2019-04-15 13:10:40 +02:00
milek7
3c28416912
Merge branch 'milek-dev' into gfx-work
2019-04-05 19:36:50 +02:00
milek7
4344ec192a
network changes
2019-04-03 01:28:46 +02:00
milek
810ea151e2
fix compiling on MacOS
2019-03-25 20:23:32 +00:00
milek
33a4bb2b14
fix compiling on MacOS
2019-03-25 20:17:27 +00:00
milek7
0453e10534
revert to frequent log flushing, fix for fiz parsing on linux, unify brake_speed interpretation as full rotations per second
2018-08-11 20:13:45 +02:00
milek7
f0b4f42128
throw bad alloc on opengl oom
2018-08-03 22:38:23 +02:00
milek7
08cf801c4e
Merge branch 'tmj-dev' into milek-dev
2018-07-17 16:47:25 +02:00
tmj-fstate
ed1e0d8a10
refactoring: basic application code wrapper
2018-07-14 23:44:56 +02:00
tmj-fstate
12d70fe320
virtual slider mouse input mode, minor refactoring, minor bug fixes
2018-07-11 17:45:50 +02:00
tmj-fstate
219e8badc5
position and rotation adjustment value snap mode in scenery editor, position adjustment for memory cells in scenery editor
2018-07-10 01:09:20 +02:00
tmj-fstate
ff1a85fe5d
build 180708. model instance position and rotation adjustment in scenery editor, support for event launcher activation with mouse click, minor refactoring
2018-07-08 23:18:27 +02:00
milek7
c248b5bdf4
Merge branch 'tmj-dev' into milek-dev
2018-04-19 23:08:39 +02:00
tmj-fstate
bb87a63eed
varying scale cab control animation types, basic shunt mode power slider cab control, minor ai logic tweaks, minor bug fixes
2018-04-18 15:04:04 +02:00
milek7
a914065dd0
Merge branch 'tmj-dev' into milek-dev
2018-04-06 22:33:08 +02:00
tmj-fstate
87f078925c
build 180404. optional scenario clock sync with current local time, keyboard input for the ui layer
2018-04-06 01:12:15 +02:00
milek7
473681a12e
Merge branch 'tmj-dev' into milek-dev
2018-03-30 00:32:53 +02:00
tmj-fstate
6ffced1d90
file access cross-platform compatibility fixes
2018-03-29 03:48:21 +02:00
milek7
bf3b4bc30e
file path fixes (again..), don't capture mouse during loading
2018-03-28 21:49:15 +02:00
milek7
bc2184966f
backslash/slash fixes, again
2018-03-26 21:22:20 +02:00
milek7
6f62297e31
version info changes
2018-03-22 17:29:43 +01:00
milek7
dbaf72807a
merge and fixes
2018-03-16 19:13:22 +01:00
milek7
84d610dc4d
Merge branch 'tmj-dev'
2018-03-06 19:09:52 +01:00
tmj-fstate
710f7e3fbc
master branch unification: cross-platform python interpreter
2018-03-01 16:07:52 +01:00
milek7
a2881dfa9c
Merge branch 'tmj-dev'
2018-02-24 16:05:35 +01:00
milek7
61836eb2e4
Merge branch 'tmj-dev'
2018-02-16 15:33:11 +01:00
tmj-fstate
0c880f3d4e
serial port input device configuration, additional control commands and minor control logic tweaks
2018-02-10 19:53:21 +01:00
tmj-fstate
8b74939460
serial port input devices communication module replacement
2018-02-06 03:03:19 +01:00
tmj-fstate
e8bb25454e
pre-merge syncs
2018-02-03 17:37:46 +01:00
milek7
03b1f16d10
version
2018-01-31 23:59:29 +01:00
tmj-fstate
23761dc665
build 180131. support for nested material attribute definitions, minor bug fixes, refactoring and master branch unifications
2018-01-31 16:07:50 +01:00
milek7
1c43c24be3
properly load tga with top-left origin
2018-01-29 22:14:36 +01:00