- The pool goes through pool_workers.process_workers (61 at most on Windows) and the window count
follows it, so --jobs above the cap no longer fails at pool creation or re-reads extra overlaps.
- A key whose placements carry no position is counted (keys_without_a_placement_position) instead
of ending the run in min() over nothing; inner-item Pos values that are not three finite numbers
(empty, false, too short, past float range) are dropped and counted (malformed_positions).
- The interior-box distance uses the same 1e-6 m face tolerance as the room test (EPS), so a point
on a rotated interior face counts as inside in both measures.
- A names file that is not an InteriorNames table, --start outside the data area (checked before
any worker starts), a negative --start and --limit below 1 each give one line and exit 2.
Full levels.rpf v1.0.2.1 (--jobs 15): summary identical before and after, both new counters 0,
docs/world.md counts unchanged. tests/test_world_interior_names.py: 27 OK (was 20); the 8 new
tests all fail on d90c1ac.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The five MaterialDataList fragments are contiguous pieces of one stream
without its head. All 14 isDeformableTerrain items are in the first one;
the later fragments hold no flag and no surface-material name.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Measured on a 1.0.2.1 package: 11 defined surfaces and 5 empty slots, their
classes and physics-material counts, the isDeformableTerrain cross-check
against the retained MaterialDataList block, DeformationWorldSpaceWidth 96 m
and ParallaxWorldSpaceWidth 48 m, and the track-type split. The texel
resolution is not in the data files and stays open.
AI-assisted (Claude), on behalf of dev-ewann.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Address review on #3813:
- scale interior and room boxes by each placement's scaleXY/scaleZ before
measuring (negative scales reorder the bounds); 6 of 2,590 placements are
scaled, which moves two room hits per convention and no distances
- refuse an --out that names the archive, the --names file or a path in the
carved folder (exit 2, one line, nothing written)
- count placed interiors only among known definitions; report placed names
with no definition, duplicate interior definitions and repeated JSON keys
(repeated keys keep all their items)
- emit the limbo first-room and a261e0a9 room-key counts the docs quote
- take the median from the already sorted list
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Carry the DXGI transfer function through alpha-weighted preview resizing. Keep RGBA8 quantization stable on dark ties and cover the PNG bytes for tagged and untagged textures (BUILD-1087).
Add tools/world_interior_names.py: reads CMloArchetypeDef, CMloRoomDef and
CMloInstanceDef from levels.rpf and joins them with the InteriorNames section
of GameShape__Data__LocationNameLoopkup. 1,357 of 1,358 keys are interior
archetype names, all confirmed by the 64-bit key; docs/world.md records the
placement and position measurements.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Use the map root reference array to retain entity ordinals across mixed classes and select the ordinary terrain parent map. Keep physical row order and optional metadata for incomplete inputs.
Refs: #3047, #3087
breadbbbb/rpf9-explorer#8 (null optional header pointers, range-checked
16-bit fields) and #10 are both ancestors of Leonida's pin e2939175, so the
pinned explorer accepts the fragment headers the sentence said it rejects.
Say that, keep the 41.3% as the figure at the earlier pin 917e9b9, and note
that the 99.96% was measured on 917e9b9 with #8/#10 applied, not recounted
at e2939175.
Re-measured against the local package: the RPF9 stream boundary that ends a system prefix (and the negative on the 8 MiB rule), the PRD0 member type codes, and the navmesh polygon +4 packing. The navmesh road/pavement bit labels did not reproduce and are recorded as such. 6stars is cited as independent corroboration; no code was copied and the repository has no licence.
tools/world_archetypes.py reads the archetype structs of CMapTypes resources
(CBaseArchetypeDef, CMloArchetypeDef, CTimeArchetypeDef) by member hash, the
way world_index.py reads CEntityDef: name, assetName, assetType, bbMin/bbMax,
bsCentre/bsRadius, lodDist, flags. It imports world_index and world_census and
changes neither, so it does not touch the lines #1981 changes.
--check-extents rebuilds each fully-defined map's entitiesExtents from the
transformed archetype boxes. In levels.rpf 8-9 GiB the conjugated quaternion
reproduces 616 of 827 rotated maps (median error 0.16 mm), the stored one 236
(0.63 m), and the extents are computed without the entity scale.
docs/world.md: the member table, assetType measured against rpf9_names.py
(1 = fragment, 2 = drawable, 3 = drawable-like, no crossover), and the two
extents checks. Synthetic tests only, no game data.
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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.
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.