exeschema: enum value tables and more struct references #400
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!400
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-400"
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 19:14 UTC · original
holdmysocks:claude/exe-schema-enums→master· +129 −10 · 1 files · 4 commits · merged 2026-11-26 22:43 UTCBuilds on #394. This PR includes #394's commit until that one lands; the new change is the second commit.
{"structs": [...], "enums": [...]}. Each enum member gives its enum's hash, and flattened layouts print each enum's values. The current executable has 2,469 enums with 34,123 values.mov rcx, rax; ...; mov [x], rcx) raises the struct references from 8,292 to 10,059. The map extensions array, for example, now resolves to its base struct.--work <dir>: names hashes from that work folder's name dictionary as well as the built-in lists.Tested by running it on the executable. The entity def's priority level and LOD level enums and the archetype asset type come out with 4, 7 and 5 values, matching the known GTA V enums (their names are in #399).
Enum and bitset members point at an enum object with the enum's name hash and a table of {value name hash, value} entries; the output now lists every enum with its values and names each member's enum. A second store form in the getters (mov rcx, rax; ...; mov [x], rcx) adds about 1,800 struct references. --work names hashes from a work folder's dictionary.@holdmysocks on GitHub · 2026-11-26 22:07 UTC · original
Added: names for member types 0x22–0x24. Also merged master, which now has #394.
Schema check against every meta resource in every indexed archive (about 250 K resources):
id64: 8 bytes, file type 0x08. It is theidof entity and archetype definitions and is used forEntityreferences.vec2_8: two floats at 4-byte offsets, file type 0x30.quatv: 16 bytes, file type 0x34, alwaysRotation.