Tobal 2 Recompiled

Tobal 2 Recompiled is a native PC port of Tobal 2 for PlayStation that supports English or Japanese language and unlocking all characters.

README

Tobal 2 Recompiled

A native PC port of Tobal 2 (PlayStation, Square / DreamFactory, 1997), made by static recompilation: the game's original MIPS code is translated to C and compiled into a real Windows / Linux / macOS program. It is not an emulator. Built on PSXRecomp and recomp-ui.

No game data is included. You need your own copy of the original Japanese disc. The game code is generated and compiled on your own computer from that disc; this repository contains only tools, configuration and the language data.

Status: playable

  • Boots, plays the intro FMV, title screen, Tournament / VS / Training fights and Quest mode, all running as native code.
  • Language: English (default) or Japanese (original), picked on the launcher's home screen. Switching does not require rebuilding.
  • The English title menu box is widened so every option fits.
  • Characters: Original or All unlocked, picked on the launcher's home screen (default Original). All unlocked makes every fighter selectable from the start, secret ones included; saves are not changed. On Windows it can also be switched while playing, from the game window's title-bar menu (click the icon at the top left): it applies the next time the character select screen opens.
  • High internal resolution (4x by default, OpenGL renderer).

Not yet verified end to end: the whole Quest mode, every ending, memory-card saves in every mode. Reports are welcome in Issues.

Supported disc

GameSerialRegionFormat
Tobal 2SLPM-86033Japan (NTSC-J)BIN/CUE, 1 track

The game ships in Japanese only, so do not use a pre-translated image: the English text is applied by this project on top of the original disc.

Dump the disc as BIN/CUE (for example with ImgBurn, redumper or DiscImageCreator), not as a 2048-byte .iso. The disc is recognized by its contents, so the file names do not matter, as long as the .cue names the .bin next to it.

Playing

  1. Get the setup package for your system from Releases (or install through the Retro Launcher once the title is in its catalog).
  2. Extract it and run Tobal_2_Recompiled.
  3. Pick your .cue, click Generate & rebuild and wait a few minutes. The launcher downloads the tools it needs (internet needed once), converts the game code and builds it on your computer. Nothing else to install on Windows; on macOS, Apple's Command Line Tools are needed for the compiler.
  4. Choose the language on the home screen and press PLAY.

The home screen shows the game's cover. No artwork ships with this project: the first build on your computer downloads the original cover once from the libretro-thumbnails archive (the one RetroArch uses) into artwork/SLPM-86033/ next to Tobal_2_Recompiled. To use your own, put an image there instead (with "front" in the name); to skip the download, configure with -DTOBAL2_NO_COVER_DOWNLOAD=ON.

Building from source

Requirements: Git, Python 3, and either the cmake-clang-v1 toolchain pack or CMake + Ninja + a C/C++ compiler.

git clone --recurse-submodules https://github.com/MatheusLeffa/Tobal2Recomp.git
cd Tobal2Recomp
bash tools/apply_patches.sh          # our changes to psxrecomp / recomp-ui
python psxrecomp/psxrecomp_cli.py generate --config game.toml --project-root . --disc "path/to/Tobal 2 (Japan).cue"
python psxrecomp/psxrecomp_cli.py rebuild  --config game.toml --project-root . --build-dir build-release --no-pgo

The executable is build-release/Tobal_2_Recompiled (.exe on Windows). Never commit the disc, the extracted disc/ files or generated/: they are ignored by .gitignore on purpose.

Repository layout

PathWhat it is
game.toml, CMakeLists.txt, codegen_setup.*, seeds/, symbols.tomlTitle configuration for PSXRecomp
mods/preloaded/packages/tobal2.language/Language package: only the bytes the English text changes, each guarded by the SHA-256 of the original disc data
mods/preloaded/packages/tobal2.unlock/, src/mods/unlock_characters.cCharacters setting: a plugin swaps five guarded instructions in the character select code, also while the game runs
mods/lang_extra/en.tomlLayout fixes applied with English (wider title menu box)
patches/Our changes to the psxrecomp and recomp-ui submodules
tools/Test automation and analysis tools (nav.py, vram_dump.py, disc_diff.py, make_lang_mod.py, apply_patches.sh)
psxrecomp/, recomp-ui/Framework and launcher submodules

Legal

Tobal 2 is a trademark of Square Enix. This is a non-commercial fan project, not affiliated with or endorsed by Square Enix or Sony. The repository and its releases contain no disc image, no BIOS and no code generated from the game. Use your own legally obtained disc.

License

PolyForm Noncommercial 1.0.0, the same license as PSXRecomp, from which parts of this repository derive. recomp-ui is MIT licensed. Release packages include OpenBIOS (MIT) from PCSX-Redux.