mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-11-20 17:25:00 +01:00
fix(physicslog): what no file name may have on Windows is replaced in the name of a log, on every system
A spawned vehicle is named <spawn>:<number>, and its log went to physicslog/<spawn>:<number>.dat. On NTFS that isn't even an error: it is the stream <number>.dat of the file <spawn>, which nothing lists, so the log was written and no one could find it. On Linux the file was there, under a name Windows can't open. The name of the file of a log has < > : " / \ | ? * and the control characters replaced by _, on every system, so the logs are named alike everywhere (spawn_ezt:12 is spawn_ezt_12.dat), and a _ before a name Windows keeps for a device (con, nul, com1..., with an extension too). The bytes of 1250 stay. The black box tells the log it begins by the same name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -16,7 +16,10 @@ recording started at), next to the `.dat` logs of the vehicles when those are on
|
||||
|
||||
With the physics logs off it still gives the `.dat` log of each vehicle the user was in, as it goes:
|
||||
`physicslog/<vehicle>.dat`, the same file name, the same columns and the same line every 0.05 s as
|
||||
`physicslog yes` would write. A log is the driver's, named after the vehicle that driver began in: it
|
||||
`physicslog yes` would write. In the name of a file, of these logs and of those of `physicslog yes`, the
|
||||
characters no file name may have on Windows, `< > : " / \ | ? *` and the control characters, are `_`, on
|
||||
every system: a spawned vehicle, named `<spawn>:<number>`, has its log as `<spawn>_<number>.dat`. A name
|
||||
Windows keeps for a device (`con`, `nul`, `com1` and the like) gets a `_` before it. A log is the driver's, named after the vehicle that driver began in: it
|
||||
begins the first time the user is with that driver, and goes on while the user looks around outside, or
|
||||
moves to another cab of the unit or another vehicle of the same train. Taking a vehicle of another driver
|
||||
goes on in that driver's log, begun then if it is the first time. Back with a driver, the log goes on after
|
||||
|
||||
Reference in New Issue
Block a user