Commit Graph

24 Commits

Author SHA1 Message Date
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
2b0ae9ebf8 Docs: CProceduralInfo tag table and its empty object/plant lists
The one CProceduralInfo document in common.rpf has a 255-slot procedural tag
table (107 names; one placeholder name fills 149 untagged slots) whose 66
procObj and 69 plant tags point into procObjInfos and plantInfos lists that
are both empty. No names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 11:25:41 +00:00
ace75cfb58 docs/world.md: building the whole city with instancing and LOD sets
Measured on levels.rpf: 1,549,343 HD/ORPHAN_HD placements in 2,940 chunks
(21 min) and all 1,669,771 placements in 12,340 tiered chunks (33 min), every
chunk checked structurally and samples parsed by three r160's GLTFLoader; the
LOD-tier medians and bands; what the viewer loads with and without bands; the
pin vs #8/#10 model coverage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 10:02:54 +00:00
15966bb361 Docs: location, interior, river and road name lookup
Counts over the one GameShape__Data__LocationNameLoopkup document in
common.rpf: 2,318 locations, 1,358 interiors with 2,280 positions (all
inside the PAMH / region tint rectangle), 66 rivers, 409 roads; keys are
their own namespace. No names or keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 09:15:04 +00:00
0163c1b5e4 Merge pull request #1222 from Lucy 2026-11-22 03:37:54 -05:00
807ee182d1 Merge pull request #1216 from Lucy
# Conflicts:
#	docs/world.md
2026-11-22 03:37:53 -05:00
8ca846b297 Merge pull request #1210 from Lucy 2026-11-22 03:37:51 -05:00
c62525e20c Docs: RegionTintMap covers exactly the PAMH heightmap rectangle
The one RegionTintMap document in common.rpf streams a 36 x 41 grid of
512-unit tiles that covers its world box with no partial tile, and that box
equals the PAMH max/min heightmap bounds in x and y. No names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:31:35 +00:00
d466f784fd Docs: train configs and groups (CTrainConfigs), and the stale trainConfigIndex
Counts over the one CTrainConfigs document in common.rpf: 46 configs, 314
carriages, 5 groups with 36 references. 11 of the 36 trainConfigIndex values
are one less than the named config's position, cleanly split at positions
23/26, so groups must be resolved by name. Carriage models cross-checked
against the .yft catalog. No names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:28:39 +00:00
29257a0cf5 Docs: deformable snow and mud tracks (CSnowTrackData)
Counts over the one CSnowTrackData document in common.rpf: 16 deep-surface
parameter sets with physics-material lists, 9 track types, mud/puddle,
global and trail-map blocks. Cross-checks: 13 of 24 material names occur in
the surviving part of MaterialDataList; the 9 texture names are not in the
local catalog. No values or names.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:21:02 +00:00
1c56460bfb world_build: place models at their map placements (--placements)
world_build placed every model at its own coordinates or in rows; it never read the CEntityDef records.

- world_index.py --entities-out writes one JSON line per complete entity: archetype hash and 64-bit key,
  position, stored rotation, scales and LOD fields.
- world_build.py --placements matches each selected entity to an exported model the way world_names.py does
  (lower-cased joaat of the manifest name, confirmed by the Murmur3-64 key when the row has one). It then
  scales by (scaleXY, scaleXY, scaleZ), rotates by the conjugate of the stored quaternion, translates and
  converts to glTF Y-up. Normals use the inverse-transpose; a mirroring scale flips the winding.
  --lod-levels (default 0,5) and --region select the entities. world.json reports the count of each outcome
  in stats.placements.
- tests/test_world_place.py: 15 synthetic tests.
- docs/world.md: "Building a placed world", with measurements on a 700 m downtown box.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 08:01:15 +00:00
ffab01d843 Merge pull request #1106 from cxchhh 2026-11-22 02:09:10 -05:00
b1388b6992 Docs: reconcile the census map count with SixNG's 30,785, map by map
SixNG's 7,257 extra resources have CEntityDef objects but no CMapData struct:
961 interior archetype resources (CMloArchetypeDef, 540,665 entities in interior
space) and 6,296 35abc248 entity groups (39,622 entities in group-local space).
The census has 7 maps (1,239 entities) that SixNG misses, whose entity data is in
a continuation page. Net 7,250 maps / 579,048 entities, the whole published gap.
The 23,528 maps both count agree on every entity count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 06:57:51 +00:00
7e990164a6 Docs: name two more grass-list members (slodID, SLODArchetypeList)
Found by joaat over common engine words; the member table gives offsets 0xB0
and 0x158.

AI-assisted (Claude).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 06:34:12 +00:00
3d62823f63 Docs: instanced props and grass in map resources (full corpus)
Follow-up to #936 (merged as b0f891c): documents the four instance-list
structs with their schema-named members, the InstanceList array format, and
the full run of tools/instance_lists.py over levels.rpf, story000.rpf and
shared_minigame000.rpf (237,318 map resources, 26.5 million prop and 225.5
million grass instances). Counts only.

AI-assisted (Claude). Measured on my own copy (1.0.2.1); docs only.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 06:22:58 +00:00
8fa6b89f4c World names: whole-archive coverage, --archetypes-out and --rpf9-names
docs/world.md and docs/world_names.md said ~96% of archetypeName hashes stay
unresolved. That was a name-source limit of the two sampled windows: the
names are in levels.rpf, and rpf9_names.py already lists them. With its
name.#dr/name.#ft list as the dictionary, 99.85% of the 1,670,435 placement
entities resolve (99.94% with --max-inflate 256 MiB), every match verified by
the entity's 64-bit key.

- world_index.py --archetypes-out writes the aggregate archetype file that
  world_names.py resolve --archetypes reads (entity count and 64-bit key per
  hash); nothing in the repo produced it before. Entities of a resource that
  needs a continuation stream are counted once.
- world_names.py build --rpf9-names reads rpf9_names.py index JSON.
- docs: whole-archive coverage table, the four commands that reproduce it,
  and the corrected statements in world.md and docs/README.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 00:10:01 -05:00
050ea3dcfa Docs: re-count the model-bearing archives at rpf9-explorer 917e9b9 (ASSET-49)
Fresh scan/recover at the new pin, no cache, across every model-bearing archive. The new pin recovers 350,248 models (159,483 drawable-dictionary children) against 190,792 at c3708fb.

Per archive: levels.rpf 314,000 (130,225 children), story000 7,460 (4,156), packs 24,034 (23,720), data 2,581 (268), shared_minigame000 1,288 (317), core_restofworld 885 (797). The standalone total is 190,765, 27 below the c3708fb recovery (duplicates merged). levels.rpf is the sum of ten parallel recovery shards over 206,981 candidates; the last shard rejects 1,009 incomplete/duplicate tail pages. Triangle totals and the C# TTPF texture counts were not re-run.
2026-11-22 02:30:07 +00:00
8cd141e5a3 Merge pull request #305 from Kam471 2026-11-21 17:38:20 -05:00
5bc48f20b7 world_names: resolve placement/archetype hashes with 32-bit joaat and Murmur3-64
Measured on Xbox 1.0.2.1:
- archetypeName, map name and parent are lower-cased joaat.
- per-archetype +0x20 and map +0x10 keys are MurmurHash3 x64 128 low 64 (seed 0).
- +0x08 is a per-entity id, not a per-archetype hash.

A 79,738-name local dictionary resolves 5,107/24,105 distinct
archetype hashes (8,263/203,799 entities) in two bounded windows,
all confirmed by the 64-bit key; one 32-bit-only candidate is
rejected. Map names resolve 5/23,535 and parents 1/2,089.

Adds tools/world_names.py, synthetic tests, world_names.md, and
map_name64 to world_index output.
2026-11-21 22:36:32 +00:00
edbef47811 Docs: census other world archives for placement maps 2026-11-21 22:16:20 +00:00
c5aeb1526c Tools: census every map resource in levels.rpf 2026-11-21 21:06:18 +00:00
a9da38faa3 docs: clarify levels sampling fraction 2026-11-21 20:02:00 +00:00
43459b99df docs: extend levels map inventory with second bounded pass 2026-11-21 19:59:23 +00:00
f1dd3c61c5 docs: measure world placement and streaming composition 2026-11-21 19:27:46 +00:00