No description
  • Python 97.9%
  • C++ 1.7%
  • C 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-13 13:31:19 -05:00
tools minor cleanups 2026-11-13 13:11:26 -05:00
.gitignore weh 2026-11-08 18:59:33 -05:00
AGENTS.MD soundbanks reversed 2026-11-13 12:09:07 -05:00
BIN-RE.md soundbanks reversed 2026-11-13 12:09:07 -05:00
bnk-format.md soundbanks reversed 2026-11-13 12:09:07 -05:00
crypto.md soundbanks reversed 2026-11-13 12:09:07 -05:00
devmenu.md soundbanks reversed 2026-11-13 12:09:07 -05:00
dlc-format.md soundbanks reversed 2026-11-13 12:09:07 -05:00
fps-patch.md soundbanks reversed 2026-11-13 12:09:07 -05:00
ghost-format.md soundbanks reversed 2026-11-13 12:09:07 -05:00
LICENSE add license 2026-11-10 16:29:04 -05:00
physics.md soundbanks reversed 2026-11-13 12:09:07 -05:00
pob-format.md soundbanks reversed 2026-11-13 12:09:07 -05:00
profile-format.md soundbanks reversed 2026-11-13 12:09:07 -05:00
README.md soundbanks reversed 2026-11-13 12:09:07 -05:00
ship-format.md soundbanks reversed 2026-11-13 12:09:07 -05:00
track-format-data.txt agents.md 2026-11-10 23:08:59 -05:00
track-format.md minor cleanups 2026-11-13 13:11:26 -05:00
vexx-format.md smol tidy 2026-11-13 13:31:19 -05:00
vfpu-reference.md fix toc 2026-11-10 16:44:37 -05:00
wad-format.md soundbanks reversed 2026-11-13 12:09:07 -05:00

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

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 Transform channels: Exostra Run's orangelight*, Sol 2's redlight*, Sebenco's Lights* and Vineta's cloud quads all carry a full-range single-axis translation sweep (500..21 000 units) under a FixedFrames=1.0 attribute, and Exostra's MonoTrain has 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 live gedump --duration while 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 MeshBlock words and the 0x372 payload 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; needs tools/wip/dbg/memwatch.py on the accumulator quad of a live ship. Two smaller Ship::Update items are in physics.md's The VFPU in the solver (VFPU lane windows, the 0x27c…0x294 ramp consumers). Resolved along the way: 0x11f1d0 is 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 scalar ship+0x268 is 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.
  • .bnk per-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.