Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Finds and tunes a PS2 game's float physics constants (speed, gravity, grip, jump, fps) in ELF, printing PCSX2 pnach and PS2Recomp patches.
36% 91%+55 ptsof test cases passed
Passed 20 of 22 test cases with the skill, and 8 of 22 without it.
3 of 3 safety checks passed
Not used yet
The Physics Tuner finds the constants behind how a game feels and changes
them. PS2 games do their physics in single-precision floats (the EE's FPU has
no doubles), so a top speed, a gravity or a jump impulse is a 32-bit float
somewhere: in the ELF's data, or built straight into the code by two
instructions. The tool finds the candidates; PCSX2 tells you which one is the
real one; /console-mod builds the winner into the port.
Honest limits: a value the game computes while it runs (from a car's stats file, a level script, a menu setting) is not in the ELF. Then you find it in RAM while playing and change the code or the file that sets it. Units are rarely obvious: 9.8 may be stored as 980, 0.163 (per frame) or 588 (per second squared at 60 fps). And frame-rate unlocks are often more than one number.
${CLAUDE_SKILL_DIR} below is this skill's folder (where this SKILL.md lives).
python3 "${CLAUDE_SKILL_DIR}/tune.py" scan SLUS_203.12 --value 9.8 # data floats + lui/ori/mtc1 constants
python3 "${CLAUDE_SKILL_DIR}/tune.py" scan SLUS_203.12 --value 9.8 --tol 0.05 # a wider net
python3 "${CLAUDE_SKILL_DIR}/tune.py" fps SLUS_203.12 # 1/60, 1/30, 60, 30, PAL 50/25
python3 "${CLAUDE_SKILL_DIR}/tune.py" patch SLUS_203.12 --addr 0x0034A2C0 --float 12.5
Flags: --json on all three, --limit N, --place 0|1|2 (pnach place; the
default is 0 for data, 1 for code), --exact (refuse rather than round when a
lone lui cannot hold the new value).
| file | what |
|---|---|
| the game's main ELF | read only: data words, code, sections, $gp |
| stdout | hits, the instructions around them, pnach lines, TOML blocks, the override write |
| nothing else | the user (or /console-mod) puts the lines where they belong |
| form | looks like | scan reports | patch prints |
Next to this one in the catalogue, plus more from the same author.