Skip to content

check_no_game_data: catch PSIN/PAMH/MHIU/SPS1/SGD5/RDS5/AWC/YSC containers - #6311

Open
Koro4e wants to merge 2 commits into
ItsNotRexed:mainfrom
Koro4e:check-nogamedata-magics
Open

Koro4e wants to merge 2 commits into
ItsNotRexed:mainfrom
Koro4e:check-nogamedata-magics

Conversation

@Koro4e

@Koro4e Koro4e commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as this finding, from DeepSeek9's report.

What and why

scripts/check_no_game_data.py's magic list caught RPF9/TTPF/RSC8/DDS/FSSM/XBCH/SPIR-V/XVD and the ADAT/TADA AWC banks, but seven more container formats the repo's own decoders read passed under a harmless name: PSIN (a metadata container), PAMH/MHIU (heightmaps), SPS1 (shader-preset tables), SGD5 (effects database), RDS5 (texture container), AWC (raw AWC bank) and YSC (compiled script). The seven magics are added, named after what the docs call them.

Two commits: the script, then the tests.

Tested

  • python -m pytest tests/test_check_no_game_data.py -q: 8 passed, 58 subtests passed (the caught-formats table grew by one entry per magic, each with a different harmless name).
  • Negative control: with main's script the 8 new subtests fail; with this branch all pass.
  • Nothing in the PASSED lists regressed (README mentions of the magics inside text still pass, since matching is start-of-file only).

Windows 11, Python 3.12.10, CPU only. No game files. AI-assisted.

Checklist

  • No game data, keys or decryption (CONTRIBUTING.md) - this change only widens what the no-game-data check itself detects.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (No translator changes.)

…less name (finding by DeepSeek9)

The magic list caught RPF9/TTPF/RSC8/DDS/FSSM/XBCH/SPIR-V/XVD and the ADAT/TADA AWC banks, but a PSIN container, a PAMH or MHIU heightmap, an SPS1 shader-preset table, an SGD5 effects database, an RDS5 texture container, an AWC\x00 bank or a YSC\x00 compiled script saved as .dat/.bin passed the check. tools/gamedata_index.py, gamedata_maps.py, gamedata_sps1.py, sgd5_effects.py, ttpf_mips.py and restofworld_index.py read exactly those magics.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant