Meta dump: fixed-capacity arrays (type 0x53) list every element #373

Manually merged
github merged 1 commit from gh-pr/373/head into gh-pr/373/base 2026-11-26 20:31:27 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-26 15:58 UTC · original
holdmysocks:meta-array-dump → master · +13 −0 · 1 files · 1 commits · merged 2026-11-26 16:16 UTC

The meta dump now prints every value of fixed-capacity arrays (member type 0x53). Before, it printed them as a 16-byte hex blob, which showed only the first four floats.

What the type is

  • extra gives the capacity, reference names the element member, and a u32 count follows the elements.
  • In the exe, the vehicle-global record (70082353) has 14 of these. Each holds six f32 (levels 0..5) and a count at +0x18. After loading, the game pads the unused levels with 1.0 or 0.

Change

  • meta7a.rs: type 0x53 decodes up to min(count, capacity) elements of the element member. This is the same element handling as the inline arrays (0x50).

Check

  • Re-dumped the vehicle-global record. All 14 arrays now list six values each, for example alphaThresholdMin 0.82, 0.65, 0.51, 0.38, 0.23, 0.03. Before, they showed four values as hex.
  • Nothing in the code read the old hex output for this type.
**@⁠holdmysocks** on GitHub · 2026-11-26 15:58 UTC · [original](https://github.com/holdmysocks/SixNG/pull/373) `holdmysocks:meta-array-dump` → `master` · +13 −0 · 1 files · 1 commits · merged 2026-11-26 16:16 UTC The meta dump now prints every value of fixed-capacity arrays (member type 0x53). Before, it printed them as a 16-byte hex blob, which showed only the first four floats. ## What the type is - `extra` gives the capacity, `reference` names the element member, and a u32 count follows the elements. - In the exe, the vehicle-global record (`70082353`) has 14 of these. Each holds six f32 (levels 0..5) and a count at +0x18. After loading, the game pads the unused levels with 1.0 or 0. ## Change - `meta7a.rs`: type 0x53 decodes up to `min(count, capacity)` elements of the element member. This is the same element handling as the inline arrays (0x50). ## Check - Re-dumped the vehicle-global record. All 14 arrays now list six values each, for example `alphaThresholdMin` 0.82, 0.65, 0.51, 0.38, 0.23, 0.03. Before, they showed four values as hex. - Nothing in the code read the old `hex` output for this type.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:31:25 +00:00
github manually merged commit 1581d0fd47 into gh-pr/373/base 2026-11-26 20:31:27 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.