RBF binary XML to XML: sixng rbf command and viewer preview #152
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!152
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/152/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-24 13:15 UTC · original
holdmysocks:claude/rbf-xml→master· +529 −1 · 5 files · 1 commits · merged 2026-11-24 13:28 UTCDecodes RBF (
RBF0) binary XML files to XML text (Linear SIX-97).Format (worked out from the files)
RBF0, then an optional version tokenFFFB u16(version 1 = 8-byte integers and floats; without it, 4-byte).FFFFcloses the open element,FFFD u32 len bytesis text content (len includes a final NUL), anything else is an element whose low 12 bits are a name id and top 4 bits a type.u16 len, bytes), so every tag and attribute name is real text.u32always 0,u16attribute count, attributes). Types 1 int, 2 false, 3 true, 4 float, 5 three-f32 vector, 6 string are self-closing value elements; attributes use the same type codes.content="vec2v_array"hold binary text: 16 bytes per point (f32 x, f32 y, 8 zero bytes). They are written as onex, yline per point.Changes
sixng-core::rbf: decoder with per-file stats and typed errors (reason + offset), plus unit tests.sixng rbf [archive] --out <dir>: writes<out>/rbf/<archive>/<offset>.xmlandindex.jsonl(stats, or the reason a file did not decode), and prints failure counts by reason.Results
data.rpf: 1,263 of 1,263 decode, 0 errors. All outputs parse as well-formed XML.common.rpf: has no RBF files.levels.rpf, 1 inanim.rpf, 1 inpacks.rpf.