exeschema: meta struct schemas from the executable's parser table #394
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!394
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/394/head"
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 18:49 UTC · original
holdmysocks:claude/exe-schema→master· +439 −0 · 1 files · 2 commits · merged 2026-11-26 20:20 UTCAdds a research example,
exeschema, that reads the parser struct table out of the game executable.For every meta struct the game can load it gives the name hash, size, flags, base struct and members (name hash, offset, type and sub type). For struct members, and for the elements of arrays and maps, it also gives the struct they refer to. Output is JSON. Struct hashes given on the command line are also printed as flattened layouts, with base members first.
The format is documented at the top of the file. Nothing in it is hard-coded to one build: the constructor and base-link functions are picked as the most common call targets.
Results on the current executable:
Not covered: enum value tables, and names. Hashes are named through the existing names dictionary, so most still print as hex.
Tested by running it on the executable and comparing with the file schemas. It is an example only, so nothing else changes.