Preserve empty rows and ordering in typed GXT tables #60

Manually merged
github merged 1 commit from gh-pr/60/head into gh-pr/60/base 2026-11-27 02:33:26 +00:00
Owner

@⁠kaoru-maki on GitHub · 2026-11-24 21:46 UTC · original
kaoru-maki:fix/gxt-empty-rows → main · +111 −0 · 1 files · 1 commits · merged 2026-11-25 09:46 UTC

Summary

Follow-up to #56. Typed GXT resources have an explicit string reference for each row. Decode those rows in table order, including empty values, repeated references, short strings and significant whitespace. Check row and pool boundaries before reading, and keep the existing heuristic for resources without the typed descriptor.

This change only affects decoding. Discovery of GXT resources in large archives is a separate change.

Validation

  • cargo test --offline --locked --release on macOS arm64: 133 passed, 5 ignored.
  • Four synthetic decoder tests cover blanks, all-empty tables, repeated references, whitespace, malformed references and fallback behavior.
  • Local Xbox 1.0.2.1 Story check matched all 3,299,503 ordered rows across 15,951 tables against an independent reader, including 55,816 empty values.

AI-assisted. The tests construct their inputs in Rust.

**@⁠kaoru-maki** on GitHub · 2026-11-24 21:46 UTC · [original](https://github.com/rpatty-dev/PercyStar/pull/60) `kaoru-maki:fix/gxt-empty-rows` → `main` · +111 −0 · 1 files · 1 commits · merged 2026-11-25 09:46 UTC ### Summary Follow-up to #56. Typed GXT resources have an explicit string reference for each row. Decode those rows in table order, including empty values, repeated references, short strings and significant whitespace. Check row and pool boundaries before reading, and keep the existing heuristic for resources without the typed descriptor. This change only affects decoding. Discovery of GXT resources in large archives is a separate change. ### Validation - `cargo test --offline --locked --release` on macOS arm64: 133 passed, 5 ignored. - Four synthetic decoder tests cover blanks, all-empty tables, repeated references, whitespace, malformed references and fallback behavior. - Local Xbox 1.0.2.1 Story check matched all 3,299,503 ordered rows across 15,951 tables against an independent reader, including 55,816 empty values. AI-assisted. The tests construct their inputs in Rust.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 02:33:25 +00:00
github manually merged commit 00dc57decc into gh-pr/60/base 2026-11-27 02:33:26 +00:00
Author
Owner

@⁠rpatty-dev on GitHub · 2026-11-25 09:45 UTC · original

Thanks for this, really clean change. Keeping the empty rows and order makes the tables match what the game actually has. Merged.

**@⁠rpatty-dev** on GitHub · 2026-11-25 09:45 UTC · [original](https://github.com/rpatty-dev/PercyStar/pull/60#issuecomment-7158770472) Thanks for this, really clean change. Keeping the empty rows and order makes the tables match what the game actually has. Merged.
This discussion has been locked. Commenting is limited to contributors.
No description provided.