Commit Graph

5 Commits

Author SHA1 Message Date
0cbc40239b world_lights_paths: read pool references through world_index.split_pointer
Meta.ref took the block number from bits 0..11 and refused any value with
bits 12-19 set as a pool reference, so a pointer to block 4,096 or above
fell through to the system-pointer path. Those bits are the high bits of the
20-bit block number. The guard did not screen system pointers either: with
fewer than 4,096 blocks, a value with bits 12-19 set has a 20-bit block number
above the block count, so it still reaches the system-pointer path.

Over levels.rpf (188,449 0x7a resources, 8,576 with lights) the summary is
byte-identical with the old and the new decoder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 07:49:18 -05:00
07f1d7e8d8 world_lights_paths: compare duplicate light definitions by value (#6887)
Squash-merged after diff review of PR #6887 - world_lights_paths: compare duplicate light definitions by value
2026-11-23 09:46:27 -06:00
0399bb3d3c docs: describe the --limit resource-start boundary 2026-11-22 21:33:01 +05:30
fc4b7992e0 docs: note the --limit range for the world lights tool 2026-11-22 21:07:55 +05:30
840a6e3e32 world_lights_paths: map lights and the vehicle lane graph in levels.rpf (ASSET-102)
New stdlib tool on top of world_census.assemble and the world_index header
readers. Every field is read by member hash from each 0x7a resource's own
schema.

Lights: every CExtensionDefLightEffect reachable from the extensions list
of an archetype, interior archetype or entity, and its CLightAttrDef
lists. Counts per type, owner and resource kind, value ranges and checks.
With --entities (world_index.py --entities-out rows) archetype lights are
placed in world space through each map entity's transform, the same one
world_build.py --placements uses; --lights-out writes them (local only).

Lane graph: path nodes, links (lanes, flags, length) and junctions
(entrances, turns, traffic-light phases), with connectivity measured.

Full levels.rpf: 280,105 lights (450,195 placed through map entities),
63,808 nodes, 145,518 links, 1,546 junctions (369 signalised). The lane
graph equals SixNG's on every count; all 5,285 lights SixNG lacks come
from pool references at offsets 0x500..0x6ff that it reads as pointers.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:52:58 +00:00