Name the map-format structs and nine more fields #17

Manually merged
github merged 1 commit from gh-pr/17/head into gh-pr/17/base 2026-11-26 20:03:23 +00:00
Owner

@⁠tarekmania on GitHub · 2026-11-22 21:15 UTC · original
tarekmania:struct-names → master · +55 −6 · 3 files · 1 commits · merged 2026-11-22 21:41 UTC

The struct names are in the format notes since TrinitronClient/GTA6-Asset-Info#39, but meta dumps still print them as hex. This adds them here.

meta7a::struct_name() maps the 16 map-format struct hashes to their names. They're the case-sensitive joaat of the GTA V type names, with :: written as __. Meta::object() puts _struct_name next to _struct when it knows the name, and Meta::schema() adds a name to those structs. _struct is still hex, so anything that reads it keeps working. vehicles.rs drops _struct_name in the same place it drops _struct.

I also added nine field names to DERIVED_EXACT: timeFlags, lightType, handling, slots, options, probability, ParentName, HandlingData and StateName.

Each new hash has a test, and one more checks that ParentName resolves through lookup without a dictionary file. cargo test -p sixng-core --lib: 63 passed, 1 ignored.

I used Claude to write this and went through the diff myself

**@⁠tarekmania** on GitHub · 2026-11-22 21:15 UTC · [original](https://github.com/holdmysocks/SixNG/pull/17) `tarekmania:struct-names` → `master` · +55 −6 · 3 files · 1 commits · merged 2026-11-22 21:41 UTC The struct names are in the format notes since TrinitronClient/GTA6-Asset-Info#39, but meta dumps still print them as hex. This adds them here. `meta7a::struct_name()` maps the 16 map-format struct hashes to their names. They're the case-sensitive joaat of the GTA V type names, with `::` written as `__`. `Meta::object()` puts `_struct_name` next to `_struct` when it knows the name, and `Meta::schema()` adds a `name` to those structs. `_struct` is still hex, so anything that reads it keeps working. `vehicles.rs` drops `_struct_name` in the same place it drops `_struct`. I also added nine field names to `DERIVED_EXACT`: `timeFlags`, `lightType`, `handling`, `slots`, `options`, `probability`, `ParentName`, `HandlingData` and `StateName`. Each new hash has a test, and one more checks that `ParentName` resolves through `lookup` without a dictionary file. `cargo test -p sixng-core --lib`: 63 passed, 1 ignored. I used Claude to write this and went through the diff myself
Struct hashes of the map formats are the case-sensitive joaat of the GTA V
type names. Meta dumps now carry _struct_name and the schema a name for
the 16 that resolve. Nine field names join DERIVED_EXACT.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:03:22 +00:00
github manually merged commit c9625fb2cd into gh-pr/17/base 2026-11-26 20:03:23 +00:00
Author
Owner

@⁠holdmysocks on GitHub · 2026-11-22 21:41 UTC · original

Thanks! Squash-merged into master.

**@⁠holdmysocks** on GitHub · 2026-11-22 21:41 UTC · [original](https://github.com/holdmysocks/SixNG/pull/17#issuecomment-7086235526) Thanks! Squash-merged into master.
This discussion has been locked. Commenting is limited to contributors.
No description provided.