Files
TMB_Recomp/scripts/bots.sh
Thomas MartinandClaude Opus 5.5 b76e054d2b The USA release (SCUS-97101, NTSC) alongside the European one, USA by default; native fixes
USA by default (TMB_REGION=us), PAL with TMB_REGION=pal: each region has its disc folder, recompiler config, generated code and build, and everything hand-written is shared.
- runtime/ marks the PAL addresses it uses (TMB_ADDR, TMB_GP); tools/tmb_region_map.py maps them to the region's executable by symbol (unnamed statics through the code using them) into tmb_region.h, with the generated function names and the override's registration (the override was only registered for SCES_503.60).
- recomp/tmb_manual.toml: the hand-written stubs by symbol name (tools/tmb_manual_toml.py); recomp/tmb_scus97101.toml generated.
- The disc image is the .iso that boots the executable; build_runtime.sh stages the DLLs on Windows; the scripts follow TMB_REGION.
- Native path: NTSC's 640 x 224 field (the microcode's half height is 112.0 there).
Native fixes, PAL and USA: the rigid strips' z / w scaled by VU 4.z as the microcode does (glows and smoke were cut by the scenery), VIF1's own STMASK/STROW/STCOL/STMOD seed the VU memory copy (the ribbons' inputs now match VU1 on 200 runs), the lens flares read the native frame's depth (TMB_NATIVE_FLARE_DEPTH=0 to compare), DIRECT packets that only draw can be drawn natively (none in a match), diagnostics.
Runs: USA boots, menus, story intro and a match at 57.4 fps on the PS2 path, 54.1 native; PAL unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-29 00:00:35 +01:00

12 lines
687 B
Bash
Executable File

#!/usr/bin/env bash
# scripts/bots.sh <name> [secs]: menus into the first match, the player idle at the start, every vehicle's position
# traced to build/pos_<name>.txt, then tools/falls.py counts the vehicles falling under the arena. Extra env (e.g.
# TMB_SUBSTEPS=1) passes through.
source "$(dirname "$0")/common.sh"
name=$1; secs=${2:-600}
cd "$GAME_DIR" || exit 1
S="25:CROSS/300"; for t in $(seq 60 6 140); do S="$S,$t:CROSS/250"; done
PS2X_PAD_SCRIPT="$S" TMB_TRACE_POS="$ROOT/build/pos_$name.txt" timeout "$secs" "$GAME_BUILD/PS2Recomp/ps2xRuntime/ps2EntryRunner" \
"$ELF" > "$ROOT/build/run_$name.log" 2>&1 || true
python3 "$ROOT/tools/falls.py" "$ROOT/build/pos_$name.txt"