No description
- Python 97.9%
- C++ 1.7%
- C 0.4%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| tools | ||
| .gitignore | ||
| AGENTS.MD | ||
| BIN-RE.md | ||
| bnk-format.md | ||
| crypto.md | ||
| devmenu.md | ||
| dlc-format.md | ||
| fps-patch.md | ||
| ghost-format.md | ||
| LICENSE | ||
| physics.md | ||
| pob-format.md | ||
| profile-format.md | ||
| README.md | ||
| ship-format.md | ||
| track-format-data.txt | ||
| track-format.md | ||
| vexx-format.md | ||
| vfpu-reference.md | ||
| wad-format.md | ||
WipEout Pure reverse engineering
threw all my savedata and dumped umds at deepseek and kimi
hopefully this is useful to others
love to thp (thp.io) for high-level info on wads and the vexx format, and pspdev and ppsspp for surrounding psp details
my goals:
- verify if ghost rendering actually slows your input (i swear the ghost ruins my records)
- dump every file
- decompile and understand every line
- related, diff eu/us/jp: is there a region advantage?
- dead code may contain interesting stuff...
- cleanup docs cause theyre still ass (also refs to external sources)
Contents
The recovered file formats, the ship physics model and the ghost-replay telemetry format are documented; the Python tools are stdlib-only and read, convert and repack the game data. Bring your own ISO.
Documentation map
- WADs
- crypto
- ghosts
- save profile
- leftover dev menu files
- re on the game bin itself
- tool docs
- fps-patch (might delet)
Quick start
eventually these will be rewritten but theyre good enough for reference
list / extract / create WADs
# (PSP_GAME/USRDIR/Data.wad on the UMD; paths below are relative to it)
python3 tools/wadtool.py Data.wad ls -p 'ships/'
python3 tools/wadtool.py Data.wad extract out
python3 tools/wadtool.py x create out Data.new.wad
texture/model info and extraction
python3 tools/tex.py extract out/fe/images/logo.mip -o logo.png
python3 tools/vexmesh.py out/ships/feisar/ship.vex
python3 tools/objects.py out/ships/feisar/ship.vex -o ship.obj --mtl ship.mtl
python3 tools/objects.py out/ships/feisar/ship.vex -o ship.obj --textures tex --fbx
python3 tools/tex.py info out/tex/circle.mip
# AI racing lines, cameras and scenery animation
python3 tools/track.py --only ai,cameras,animations
# AI: 01_vineta_k/01_vineta_k_aipath_blender.py in the output directory
# animations: 01_vineta_k/01_vineta_k_animations_blender.py
# cameras: 01_vineta_k/01_vineta_k_cameras.py (written by the mesh phase)
python3 tools/track.py --check
python3 tools/anim372.py selftest # decode all 277 Anim Transform nodes
ghost info and exports
# ghost replay / path export (encrypted saves are decrypted on the fly;
# save folders relative to the PSP/SAVEDATA directory)
python3 tools/ghost.py replay UCUS98612G943c5a8e/SAVE.GHO \
--csv lap.csv --json lap.json --svg lap.svg
python3 tools/ghost.py path UCUS98612G2ddcf11e/SAVE.GHO --obj --points
python3 tools/ghost.py anim UCUS98612G896c70cb/SAVE.GHO \
--hull assegai_phantom.obj -o vineta.py
python3 tools/ghost.py verify UCUS98612G2ddcf11e/SAVE.GHO \
--track-obj vineta_k.obj \
--ai-path 01_vineta_k/01_vineta_k_aipath.obj --permute
python3 tools/ghost.py verify <savedata dir> --ai-dir <aipath dir> # whole corpus
slopped scripts while dumping bins
# executable analysis
python3 tools/binre/analyze.py boot.bin --out re
python3 tools/binre/decomp.py boot.bin --addr 0x10d894
python3 tools/binre/decomp.py boot.bin --string SAVE.GHO
python3 tools/binre/census.py boot.bin
Open Questions
- Track animation semantics for the degenerate
Anim Transformchannels: Exostra Run'sorangelight*, Sol 2'sredlight*, Sebenco'sLights*and Vineta's cloud quads all carry a full-range single-axis translation sweep (500..21 000 units) under aFixedFrames=1.0attribute, and Exostra'sMonoTrainhas just two translation keys inside a 900-frame loop (5 s of straight-line motion, then a 10 s hold). The byte layout decodes cleanly and the exported scripts replay it faithfully. The existing GE captures partly settle this: every non-identity world matrix in four captured frames is a track-chunk or ship placement, the animated Vineta spin props (polySurfaceShape1636/1637) submit their per-frame matrices (pivot hit in 183/183 frames, basis rotating ~180 deg between captures), and no translation anywhere approaches the 500..21 000-unit sweeps — the degenerate channels are never submitted to the GE. Still needs a livegedump --durationwhile racing past the props to see their per-frame matrices (the existing captures are 1..2 frames of a paused sim; the MonoTrain and the start-line flash quads never enter view). - 11 unnamed WAD entries plus two Assegai ship variants: 13 of the 24 were recovered by the TOC-hash grind (
wad-format.md); the rest need the runtime CRC-hash hook or a pre-patch WAD to diff. - The 774 registry records with no class name read (Node class registry),
particularly the remaining opaque
MeshBlockwords and the0x372payload reader. - The integrator that folds the solver's per-frame output (the object
accumulators
obj+0x140..0x170, Force accumulation and tail) into the object's world matrix — not found statically; needstools/wip/dbg/memwatch.pyon the accumulator quad of a live ship. Two smallerShip::Updateitems are inphysics.md's The VFPU in the solver (VFPU lane windows, the0x27c…0x294ramp consumers). Resolved along the way:0x11f1d0is not a velocity integrator (its frame is scratch; it drives the airbrake ramps and the ±200 status-gated impulses), and the complete writer set of the hover-probe contact scalarship+0x268is five sites (two resets, two +0.25/+0.5 probe increments, one spawn reset) — physics.md's Probe contact and input ramps/Force accumulation and tail. .bnkper-sound layout (SBlk entry table) for individual sound swaps.
TODO
- get all binary locations
- refactor or completely rewrite generated tooling
- track animations are still a little busted
TODO: re these more, make doc
Textures
.mip (177 files):
u16 w; u16 h; u8 bpp(4|8); u8 f1; u8 f2; u32 pad x2 (16-byte header)
u8[2^bpp][4] RGBA palette @0x10 (8 bpp: 1024 B, 4 bpp: 64 B)
pixels: w*h bytes (8 bpp) or w*h/2 (4 bpp, low nibble first), then mip tail
.tga (144 files) are uncompressed type-2; .png also occurs. tools/tex.py
converts all three formats to and from PNG with a pixel-exact roundtrip.