Placements: archetype kind (asset type and MapEntityType) per entity #409
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/holdmysocks--SixNG!409
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-409"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 UTCStacked on #404.
sixng lod-linksnow records each archetype'sassetType(+0x84) and MapEntityType (+0xB0) inarchetype_lod.jsonl. Both offsets hold for plain and time archetypes: the time archetype struct derives from the base archetype struct.sixng placementsaddsarchetype_kind {asset_type, asset_type_value, entity_type, entity_type_value}to every entity whose archetype is known.archetype_lod.jsonlfiles load without the new fields, and the entity then gets noarchetype_kind.Tested:
cargo test -p sixng-core --lib lodlinks::(new testarchetype_kind_names). Not re-run on the full levels archive.@holdmysocks on GitHub · 2026-11-26 21:13 UTC · original
Checked on the full levels archive (
lod-links9 min, thenplacements5 min, both with -j 4, in a scratch work dir):archetype_lod.jsonlnow hasasset_typeandentity_type.archetype_kind. The other 88 have no archetype definition in the archive.Per archetype (entity type × asset type):
Per placed entity:
Also: every entity's priority is REQUIRED (0). The older placements output that showed -1 came from an earlier decoder.