Placements: priority names; archetype field doc from the executable's parser table #404

Manually merged
github merged 18 commits from github-bot/gh-404 into gh-pr/404/base 2026-11-27 00:40:25 +00:00 AGit
Owner

@⁠holdmysocks on GitHub · 2026-11-26 19:48 UTC · original
holdmysocks:claude/entity-priority-names → master · +6071 −130 · 25 files · 18 commits · merged 2026-11-27 00:26 UTC

  • Each placement's lod now has priority_name next to the numeric priority: REQUIRED, OPTIONAL_HIGH, OPTIONAL_MEDIUM or OPTIONAL_LOW (values 0–3). The names come from the executable's enum table for the entity's priorityLevel field. entity_lod's doc also lists the LOD-type values from the same source. They agree with the existing level names.
  • The archetype def doc is corrected from the executable's parser table (the exeschema tool in #394 / #400). Its offsets match the meta files' own schema member for member.
    • +0x78 is name and +0x7C is clipDictionary. The doc called them the texture and drawable dictionary. 0x7C holds 0 in the archetypes checked, and no code reads it as a dictionary.
    • +0x74 holds the hash entities reference, as before; its field name is unknown.
    • The doc now also lists the asset type and MapEntityType enums: UNINITIALIZED, BUILDING, ANIMATED_BUILDING, DUMMY_OBJECT, COMPOSITE_ENTITY, INTERIOR_INSTANCE, GRASS_BATCH, PROP_BATCH = 0–7.
  • README: the placement LOD field list includes priority_name.

Tested: cargo test -p sixng-core --lib meta7a:: passes, including a new test for the level and priority names. I checked on map files that the raw priority and level values decode as 0–3 and 0–6. The full sixng placements export was not re-run.

**@⁠holdmysocks** on GitHub · 2026-11-26 19:48 UTC · [original](https://github.com/holdmysocks/SixNG/pull/404) `holdmysocks:claude/entity-priority-names` → `master` · +6071 −130 · 25 files · 18 commits · merged 2026-11-27 00:26 UTC - Each placement's `lod` now has `priority_name` next to the numeric `priority`: REQUIRED, OPTIONAL_HIGH, OPTIONAL_MEDIUM or OPTIONAL_LOW (values 0–3). The names come from the executable's enum table for the entity's priorityLevel field. `entity_lod`'s doc also lists the LOD-type values from the same source. They agree with the existing level names. - The archetype def doc is corrected from the executable's parser table (the `exeschema` tool in #394 / #400). Its offsets match the meta files' own schema member for member. - +0x78 is `name` and +0x7C is `clipDictionary`. The doc called them the texture and drawable dictionary. 0x7C holds 0 in the archetypes checked, and no code reads it as a dictionary. - +0x74 holds the hash entities reference, as before; its field name is unknown. - The doc now also lists the asset type and MapEntityType enums: UNINITIALIZED, BUILDING, ANIMATED_BUILDING, DUMMY_OBJECT, COMPOSITE_ENTITY, INTERIOR_INSTANCE, GRASS_BATCH, PROP_BATCH = 0–7. - README: the placement LOD field list includes `priority_name`. Tested: `cargo test -p sixng-core --lib meta7a::` passes, including a new test for the level and priority names. I checked on map files that the raw priority and level values decode as 0–3 and 0–6. The full `sixng placements` export was not re-run.
lod.priority_name names the entity's priority level (REQUIRED,
OPTIONAL_HIGH, OPTIONAL_MEDIUM, OPTIONAL_LOW) from the executable's enum
table. The archetype def doc now uses the parser table's field names:
+0x78 is name and +0x7C clipDictionary (not texture / drawable
dictionary), and it lists the asset type and MapEntityType enums.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:33:30 +00:00
# Conflicts:
#	README.md
github-bot changed target branch from master to gh-pr/404/base 2026-11-27 00:40:24 +00:00
github manually merged commit c119fc54c7 into gh-pr/404/base 2026-11-27 00:40:25 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.