feat(audio): parse audio.rpf DAT metadata catalog and auto-name AWC entries #18
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/rpatty-dev--PercyStar!18
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/18/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?
@GamingChelsea on GitHub · 2026-11-21 18:53 UTC · original
GamingChelsea:feat/audio-rpf-catalog-naming→main· +664 −36 · 3 files · 5 commits · merged 2026-11-22 02:23 UTCSummary
audio.rpf(>512 MB) previously skipped the zlib metadata pass, leaving its 18 embedded audio config/DAT containers unindexed and all 7,159.awcbanks named generically (sound_XXXX_Nst.awc).This PR parses the 19.5 MB metadata prefix of
audio.rpfautomatically, extracts theBankSizestable (audioconfigDAT26) along withWaveSlotandDAT166/DAT581references, applies exact bank byte sizes, and improves theDATinspector — while keeping raw names searchable and toggleable in the UI.Changes
src/dat.rs:probe_datto recognize additional RAGE 9 audio metadata versions (18,20,86,166,581).parse_audio_rpf_catalogto extract the 18 zlib-stitched metadata containers (waveslots2,audioconfig,sounds_common,music_common,game_common,speech2_common,audio_radiostations_and_packs.txt, etc.) from the beginning ofaudio.rpf.BankSizestable inaudioconfig(DAT26), resolved JOAAT pack hashes +WaveSlot/DAT166/DAT581bank-hash sound labels (e.g.Animals_Wildlife__ALLIGATOR_GROWL_STREAMING,PoliceScanner,Weapons,Speech_Ped,Resident_Vehicles), and aligned them by size/order viaresolve_awc_names_from_catalog(including exactsz1byte sizes).parse_datto resolveObject Index TableJOAAT hashes to clear-text names and extract up to 500 unique identifiers across the full DAT payload.parses_real_audio_rpf_catalog_if_present(alongsideprobes_and_parses_synthetic_dat26).src/main.rs:enrich_audio_rpf_entriesduringaudio.rpfscans and automatic cache upgrades on startup, applying exactBankSizesbyte sizes.Audio Names: ON/Audio Names: OFF (Raw)toggle button in the Audio category (audio_named, enabled by default).sound_XXXX_Nst.awcname inself.hayso searching by either works in both modes.[Made with AI]
@rpatty-dev on GitHub · 2026-11-22 02:23 UTC · original
Merged onto main (verified 52/52 tests + release build). Really solid work on the audio.rpf DAT catalog and AWC auto-naming!