18
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-12-03 13:35:26 +01:00
Commit Graph

1 Commits

Author SHA1 Message Date
maj00r 5bb9157c10 feat(world): a repeated name goes to the item of the later statement, whatever order the statements load in (D4)
The first rule of D4 (docs/world-format-eu07.md, section 13). basic_table keeps the order of each item: while the
statements of a scenery load out of the order of the file (EU07_WORLD_REPLAY_ORDER), the place of its statement
in the file (table_statement_order(), set by the loader for each statement it replays), otherwise one after the
item before. A repeated name goes to the item of the later order, which with the statements loading in the
order of the file is the item inserted later, as it always was; nothing changes for a load in that order.

Events keep their own rule (the first one keeps the name): they are statements of the whole package, which
load in the order of the file among themselves whatever order the regions take.

Checked in the game (--test 120 s, seed 1, world.binary 1) on drawinowo.scn, with 35 repeated track names:
replayed with the regions first and the whole package after them, the 13 physics logs are the same bit for bit
as from the files, and so are the 1064 lines of the error log, the 35 repeated names among them. In the order
of the file by moves on the tape too. Tests: the later item takes the name, the item of the later statement
takes it while statements load out of order, an item added after the load is the newest.
2026-12-03 02:13:29 +01:00