- The scenario index made a string of the name of every file in the folder, which throws on Windows for a name the ANSI code
page can't hold (the class of GE#560). It looks at the extension first and leaves out a .scn the game couldn't open by its
name either; the messages of the project file show paths as UTF-8.
- The includes are read with the FileCased() fallback of the game (scenery_text::file_text), so on Linux an include written in
another case no longer drops the scenario from the index, skips the migration of its file or marks its tracks as changed by
hand.
- save() closes the file before looking at it: a failed last flush no longer renames a truncated .new over the project.
- "next node 0" is refused instead of wrapping to 0xffffffff.
- open_project() writes no .eu07proj when there were no //$ lines to migrate, and asks exists() without throwing.
The last part of E3 (editor-tracks-domain.md §0 pkt 7, §3 "Indeks scenariuszy"): a change of the map mustn't take away what a
scenario relies on. Read only, from the text of the files as the simulator reads it; nothing of the editor asks it yet (E4, E7).
- The scenarios are the *.scn files of the scenery folder. A quick look at the include words of the files, each file once for all
of them, tells which may reach the file of the map; those are read whole (sceneryText), their includes followed with the
parameters of the templates, the terrain passed over where the scenario has its binary terrain. A scenario uses the map where the
file of the map is among its files.
- What the map defines: the tracks, the events and the memory cells of the statements of its files. What a scenario names in it: of
the statements outside the files of the map, the tracks the trainsets start on (anywhere, a scenario being its own map too) and
the vehicles standing on their own; the events called by multiple events, by event launchers and by the tracks of the scenario;
the cells and tracks acted on by the events (updatevalues, getvalues, copyvalues and its source, whois, logvalues; switch,
trackvel, trackbuckle), checked by their conditions (memcompare, trackoccupied, trackfree) and by the launchers; the tracks of the
scenario's cells and isolated circuits; the events named after a track of the map, <track>:event1..., which the track calls. Each
with what names it, the file and the line. The names as the parser makes them, A to Z small.
- Not seen: the names the simulator makes (the tracks of the roads, the turntables), the scripts, the timetables, the commands the
cells give the drivers, the random includes.
Tests: U: data/project/index, a map of tracks, events and memory cells, some from a template included with parameters at an origin,
and three scenarios: two using it (one through a file of its own) with their trainsets, vehicles, events, launchers, cells and
isolated circuits, listed in full; the trainset on a track of the scenario, the names in comments, an event of none_ and a name of
nothing left out; the scenario of another map with tracks of the same names not among them. The include tree read with the
parameters and the placements; the words split as the parser splits them.