Commit Graph

9 Commits

Author SHA1 Message Date
a8fc8a50b3 docs/world_census: which streams are rejected, incomplete or invalid (review on old upstream PR 7698)
- The rejection handler catches zlib.error, struct.error and IndexError
  (scan_shard), not only a zlib error.
- Only a stream whose inflated bytes 0x10..0x15 are 0DRPz is a 0x7a
  candidate (inflate); a stream without that prefix is accepted as
  payload. A 0DRPz stream that is truncated, does not parse or is still
  short of a page is incomplete (assemble's "complete"); invalid is a
  second parse check behind it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:38:38 -05:00
08e2c36fd9 docs/world_census: rejected count, what a rejected candidate is, census_exact, --jobs default (ASSET-379)
- Coverage said "906 rejected candidates"; the Result table above it says
  840, the count ef54dfbf9 re-measured after the warm-up fix and left in
  the table only.
- A rejected candidate is a 16-byte-aligned zlib header that does not
  inflate to a stream ending inside the archive (scan_shard, assemble);
  an inflated stream that is not a complete or valid 0x7a resource is
  counted as incomplete or invalid, not rejected.
- census_exact (_summarize) tests maps_exact == maps, which implies
  entities_exact == entities; it does not test the latter on its own.
- The default --jobs is half the logical CPUs, capped at 12.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-24 08:38:15 -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
9874e9d2ba world_census: invalidate pre-fix warm-up shard totals 2026-11-22 15:48:38 +10:00
ef54dfbf94 docs/world_census.md: totals from a census that counts each stream once
Re-ran world_census.py on levels.rpf (36 shards, a 1.0.2.1 copy) with the warm-up fix. Map rows,
entities and coverage are unchanged; the stream and byte totals lose the 35 shard boundaries' double
count:

- zlib streams 1,122,614 -> 1,117,857
- stored bytes 75,165,813,806 -> 74,877,281,159, now exactly the accepted stream payload in Coverage
  (an independent, interval-based measure)
- inflated bytes 175,587,890,693 -> 174,941,755,029
- rejected candidates 906 -> 840
- the "adopted continuation streams" row is gone: it counted the double count, not joins

The metadata-streams row now reads 164,914, the census's own meta total and the sum of the
CMapData-only (138,839) and other (26,075) metadata rows further down; it said 165,880.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 5b1f5c5b6e124b0fa28a6e768ef5fabd8e5fc2aa)
2026-11-22 00:33:52 -05:00
e876dd2dba Bind world census shards to their source archive 2026-11-21 18:22:43 -07:00
edbef47811 Docs: census other world archives for placement maps 2026-11-21 22:16:20 +00:00
ded3576dad Tools: separate placement maps from CMapData-only metadata in the census 2026-11-21 21:32:11 +00:00
c5aeb1526c Tools: census every map resource in levels.rpf 2026-11-21 21:06:18 +00:00