Names: 4,114 meta field, struct and enum names from the executable's parser table #399
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!399
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/399/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 19:11 UTC · original
holdmysocks:claude/exe-field-names→master· +4161 −1 · 2 files · 3 commits · merged 2026-11-26 20:27 UTCAdds
names_exe.txt, a built-in list of 4,114 case-sensitive meta field, struct and enum names. They are loaded with the other derived names, so every tool that prints meta fields shows them.Each name is the joaat of the name as written, matched against the member and struct hashes of the executable's parser table (the
exeschemaexample from #394). Hashes that the install's own name dictionary already names were left out.How the names were found and checked:
241 well-known GTA V meta names (map, archetype, MLO, extension and light fields and their classes). Examples: priorityLevel, tintValue, CMloRoomDef, CMloTimeCycleModifier.
1,005 single words, with and without type prefixes (f, b, i, u, m_). A prefix must fit the member's type. A run against random target hashes gave 6 chance hits, compared with 1,034 real ones.
2,472 two-word names, kept only where the member type fits the name ("…Name" a string, "…Scale" a float, "is…" a bool, plurals an array or map). Names with no type clue were left out. That filter keeps 1 in 6 random-type control names, so the expected chance hits among these are about 1%.
102 struct names: single words, or two-word names that share a word with the struct's own members or with members that refer to it. Control: 1 hit, compared with 100 real ones.
401 enum names and values (UPPER_SNAKE) from the enum tables (the enum output builds on #394 and comes in a follow-up PR). The known GTA V names come first (the LOD types, priority levels and asset types, plus their three enum names), then one- and two-word names. A value is kept only where another value of the same enum shares its prefix, and only in enums of up to 256 values. Control: 1 hit, compared with 401 real ones.
About 1% of the list is expected to be chance matches. The file header says so.
Tested:
cargo test -p sixng-core --lib names::passes (11 tests, including a new one that parses the list).