About 2,300 GXT text tables fail to decode (small tables and pooled strings) #55

Closed
opened 2026-11-27 02:33:03 +00:00 by github-bot · 1 comment
Owner

@⁠Snorps37 on GitHub · 2026-11-24 00:12 UTC · original

In data.rpf, 2,300 of 15,922 GXT text tables fail decode_0drpz_text and show as hex in the preview. I'm working on a fix.

I found two causes in the tables whose header field at 0x20 is 2:

  1. Too few strings. Small tables hold one or two strings, below the decoder's three-string minimum.
  2. Text past the scan range. In many small tables the strings sit after the offset from the header's 0x08 pointer, where the scan stops.

These tables reach their text through {u32, u32 len, u64 ptr} records. Each record points to a null-terminated UTF-8 pool that holds one or more strings. Following those records decodes about 1,240 more tables.

The other ~1,050 failures have 1 at 0x20 and contain no readable text. They look like a different resource that gets classed as GXT. I haven't looked into those.

**@⁠Snorps37** on GitHub · 2026-11-24 00:12 UTC · [original](https://github.com/rpatty-dev/PercyStar/issues/55) In `data.rpf`, 2,300 of 15,922 GXT text tables fail `decode_0drpz_text` and show as hex in the preview. I'm working on a fix. I found two causes in the tables whose header field at `0x20` is `2`: 1. **Too few strings.** Small tables hold one or two strings, below the decoder's three-string minimum. 2. **Text past the scan range.** In many small tables the strings sit after the offset from the header's `0x08` pointer, where the scan stops. These tables reach their text through `{u32, u32 len, u64 ptr}` records. Each record points to a null-terminated UTF-8 pool that holds one or more strings. Following those records decodes about 1,240 more tables. The other ~1,050 failures have `1` at `0x20` and contain no readable text. They look like a different resource that gets classed as GXT. I haven't looked into those.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 02:33:03 +00:00
Author
Owner

@⁠rpatty-dev on GitHub · 2026-11-24 11:15 UTC · original

fixed by 56 thanks for the report

**@⁠rpatty-dev** on GitHub · 2026-11-24 11:15 UTC · [original](https://github.com/rpatty-dev/PercyStar/issues/55#issuecomment-7129860189) fixed by 56 thanks for the report
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/rpatty-dev--PercyStar#55
No description provided.