diff --git a/docs/world-format-eu07.md b/docs/world-format-eu07.md index 902d9b493..0104a4226 100644 --- a/docs/world-format-eu07.md +++ b/docs/world-format-eu07.md @@ -466,9 +466,13 @@ tag. zstd compression, in frames of about 64 KB, so that a large block can be unpacked in parallel. The library is already in the project (the heightmap). -**The logic layer** is records by object type (track, traction, event, memcell…), by region of level 10, read when the region loads -(section 5). Each record has its size first, so an older reader skips the fields it doesn't know. Names are ids from the name table. -The coarse track network is a block of its own, read when the package loads. +**The logic layer** holds, by region of level 10, the definitions of the logic nodes (tracks, traction, events, memcells, launchers, +models with a state) as the compiler met them: their tokens with the includes expanded, the parameters of templates put in and the +`origin` / `rotate` / `scale` in force at that point. The game reads it through the same parsers as `.scn`, so the logic it builds is +the same bit for bit by construction (D1 (a) on the plane), and the 1.2 million include directives of today's loading are gone. It is +read when its region loads (section 5). It is a cache, tied to the engine hash, so its layout can change with any version; records of +fields per object type are a later layout of it, once the source format exists (section 10, E2) and the cache is built from the +source rather than from `.scn`. The coarse track network is a block of its own, read when the package loads. **Versioning.** The source only ever gains fields, which an old reader skips. A minor version of the cache adds tags and fields, and an old reader skips them. A major version, a different engine hash or a different source hash means the cache is rebuilt from the