Commit Graph

5 Commits

Author SHA1 Message Date
167feec512 mission_tables: refuse a single named file that is not a PSIN container (#6926)
Squash-merged after diff review of PR #6926 - mission_tables: refuse a single named file that is not a PSIN container
2026-11-23 09:42:37 -06:00
8741e0ae94 docs: point mission_logic at the mission_tables reader 2026-11-22 15:29:41 +00:00
629999c275 docs: say the mission text stream has no embedded mission id 2026-11-22 14:29:51 +00:00
ee52216244 docs: bind COM_KBOS_NEIGHB to its mission tables by character link hash
The mission table id is not joined by name hash. The Pipework text names Mandy and Bert; the common schedule and SixNG name dictionary resolve them to link hashes, and five of 2,309 story000_script PSINs carry those hashes in 28 pool elements. Records the method, the three per-state archetypes for each character, and what the binding does not prove.
2026-11-22 14:27:42 +00:00
2e39817ea2 docs: measure the story-archive compressor and the mission state tables
Two new format pages, both measured over the user's own copy with no payload stored.

docs/coder.md - the 51.5 MB compressed mass in story000_script.rpf. Two interleaved
populations (105 zlib blocks, 767 unidentified). Entry framing is
u16 tag + 6 header bytes, zero pad, payload at align16(entry+8) - confirmed 10/10 on
pad length and %16 alignment, which is why earlier scans that assumed the entry start
found nothing. A 32-value tag alphabet that correlates with nothing. The payload is
deflate-shaped but proprietary (popcount correlation +0.632 against zlib-9's +0.676,
plane bias +0.0083 vs +0.0138; lzma -0.065 and bz2 -0.432 are excluded, and AES is
excluded by the ~40 sigma plane bias). Codes are variable-length and LSB-first: 7 and 8
bit lengths measured from the bit spacing of single-symbol runs. No table is stored, so
the symbol->length array is static in the executable; the Kraft constraint narrows it to
a 129-140 byte vector of 7s and 8s, most likely n7=116 + n8=24.

docs/mission_logic.md - the mission containers are state machines, not instruction
streams: 32-byte records keyed by joaat, 40,804 of them across 2,309 containers. Records
the details that cost a false start (the band field is a counter, not zero; offsets are
file-absolute for most records), the 64-byte pool element carrying world transforms, the
case-folding behaviour of joaat (340/340 folding vs 91/340 case-sensitive, so lookups must
fold), and the flow shapes. 113 identical-state-set clusters cover 82.4% of the files, so
naming one cluster names dozens of files.

docs/README.md gets both rows.
2026-11-22 13:17:34 +05:30