Placements: archetype kind (asset type and MapEntityType) per entity #409

Manually merged
github merged 4 commits from github-bot/gh-409 into gh-pr/409/base 2026-11-27 02:09:56 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-26 20:45 UTC · original
holdmysocks:claude/archetype-kind → master · +70 −3 · 3 files · 4 commits · merged 2026-11-27 02:00 UTC

Stacked on #404.

  • sixng lod-links now records each archetype's assetType (+0x84) and MapEntityType (+0xB0) in archetype_lod.jsonl. Both offsets hold for plain and time archetypes: the time archetype struct derives from the base archetype struct.
  • sixng placements adds archetype_kind {asset_type, asset_type_value, entity_type, entity_type_value} to every entity whose archetype is known.
  • The value names come from the executable's enum tables (#400). The +0xB0 member's own name is not known.
  • Older archetype_lod.jsonl files load without the new fields, and the entity then gets no archetype_kind.
  • Master is merged in (README conflict with the time-archetype text).

Tested: cargo test -p sixng-core --lib lodlinks:: (new test archetype_kind_names). Not re-run on the full levels archive.

**@⁠holdmysocks** on GitHub · 2026-11-26 20:45 UTC · [original](https://github.com/holdmysocks/SixNG/pull/409) `holdmysocks:claude/archetype-kind` → `master` · +70 −3 · 3 files · 4 commits · merged 2026-11-27 02:00 UTC Stacked on #404. - `sixng lod-links` now records each archetype's `assetType` (+0x84) and MapEntityType (+0xB0) in `archetype_lod.jsonl`. Both offsets hold for plain and time archetypes: the time archetype struct derives from the base archetype struct. - `sixng placements` adds `archetype_kind {asset_type, asset_type_value, entity_type, entity_type_value}` to every entity whose archetype is known. - The value names come from the executable's enum tables (#400). The +0xB0 member's own name is not known. - Older `archetype_lod.jsonl` files load without the new fields, and the entity then gets no `archetype_kind`. - Master is merged in (README conflict with the time-archetype text). Tested: `cargo test -p sixng-core --lib lodlinks::` (new test `archetype_kind_names`). Not re-run on the full levels archive.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:45:44 +00:00
Author
Owner

@⁠holdmysocks on GitHub · 2026-11-26 21:13 UTC · original

Checked on the full levels archive (lod-links 9 min, then placements 5 min, both with -j 4, in a scratch work dir):

  • 278,179 archetypes. Every line of archetype_lod.jsonl now has asset_type and entity_type.
  • 2,250,634 of the 2,250,722 placed entities get archetype_kind. The other 88 have no archetype definition in the archive.

Per archetype (entity type × asset type):

FRAGMENT DRAWABLE DRAWABLEDICTIONARY
BUILDING 9 143,156 103,123
DUMMY_OBJECT 13,801 15,105 36
ANIMATED_BUILDING 0 837 59
PROP_BATCH 1,409 283 0
GRASS_BATCH 0 361 0

Per placed entity:

Entity type Entities Notes
DUMMY_OBJECT 1,447,726
BUILDING 564,952 Every LOD and SLOD1–4 entity apart from about 600
PROP_BATCH 237,079 Archetypes that batches also use, placed as ordinary HD entities
ANIMATED_BUILDING 868
GRASS_BATCH 9
  • Asset types per entity: FRAGMENT 1,573,312, DRAWABLE 562,757, DRAWABLEDICTIONARY 114,565.
  • No archetype is COMPOSITE_ENTITY or INTERIOR_INSTANCE.

Also: every entity's priority is REQUIRED (0). The older placements output that showed -1 came from an earlier decoder.

**@⁠holdmysocks** on GitHub · 2026-11-26 21:13 UTC · [original](https://github.com/holdmysocks/SixNG/pull/409#issuecomment-7203511604) Checked on the full levels archive (`lod-links` 9 min, then `placements` 5 min, both with -j 4, in a scratch work dir): - 278,179 archetypes. Every line of `archetype_lod.jsonl` now has `asset_type` and `entity_type`. - 2,250,634 of the 2,250,722 placed entities get `archetype_kind`. The other 88 have no archetype definition in the archive. Per archetype (entity type × asset type): | | FRAGMENT | DRAWABLE | DRAWABLEDICTIONARY | |---|---:|---:|---:| | BUILDING | 9 | 143,156 | 103,123 | | DUMMY_OBJECT | 13,801 | 15,105 | 36 | | ANIMATED_BUILDING | 0 | 837 | 59 | | PROP_BATCH | 1,409 | 283 | 0 | | GRASS_BATCH | 0 | 361 | 0 | Per placed entity: | Entity type | Entities | Notes | |---|---:|---| | DUMMY_OBJECT | 1,447,726 | | | BUILDING | 564,952 | Every LOD and SLOD1–4 entity apart from about 600 | | PROP_BATCH | 237,079 | Archetypes that batches also use, placed as ordinary HD entities | | ANIMATED_BUILDING | 868 | | | GRASS_BATCH | 9 | | - Asset types per entity: FRAGMENT 1,573,312, DRAWABLE 562,757, DRAWABLEDICTIONARY 114,565. - No archetype is COMPOSITE_ENTITY or INTERIOR_INSTANCE. Also: every entity's priority is REQUIRED (0). The older placements output that showed -1 came from an earlier decoder.
github-bot changed target branch from claude/entity-priority-names to gh-pr/409/base 2026-11-27 02:09:55 +00:00
github manually merged commit cae7af5624 into gh-pr/409/base 2026-11-27 02:09:56 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.