Skip to content

Releases

Toluca v0.1.0-alpha

Toluca v0.1.0-alpha Pre-release
Pre-release

Choose a tag to compare

@Pobega Pobega released this 26 Nov 00:20

First public alpha release of Toluca — a clean-room, MIT-licensed Rust + Cranelift static recompiler and native Linux / OpenGL ES 3.0 runtime for the PC version of Silent Hill 2 (vanilla North American v1.0), targeting 1 GB RAM ARM64 PortMaster handhelds and Linux x86-64 desktops.

Clean-Room Notice: No copyrighted Konami executables, DLLs, videos, or game assets are included. You must supply your own legal, unprotected vanilla North American v1.0 sh2pc.exe and data/ directory.

Downloads

  • toluca-v0.1.0-alpha-portmaster.zip — PortMaster ARM64 bundle (glibc 2.31+ baseline). Includes Toluca.sh, on-device patchscript, stripped AArch64 toluca-recomp / toluca-runtime, and minimal Bink-only LGPLv2.1 FFmpeg 7.1.1 shared libraries.
  • toluca-v0.1.0-alpha-linux-x86_64.zip — Linux x86-64 desktop bundle (glibc 2.35+ baseline). Includes ./toluca.sh, stripped x86-64 toluca-recomp / toluca-runtime, and minimal Bink-only LGPLv2.1 FFmpeg 7.1.1 shared libraries.
  • SHA256SUMS.txt — SHA-256 checksums for both release archives.

Highlights in v0.1.0-alpha

  • 100% On-Device Static Recompilation: Translates all 6,622 / 6,622 functions in vanilla NA v1.0 sh2pc.exe directly to native AArch64 or x86-64 machine code (cache/toluca_code.bin) using Rust + Cranelift — no PC build step, GCC, or Python needed on handhelds (~1–3 minutes on an Allwinner H700 under 100 MiB peak RAM; ~8 seconds on desktop).
  • Native OpenGL ES 3.0 Renderer: Clean-room Direct3D 8 → GLSL ES 3.00 pipeline with persistent shader caching (toluca-progs.bin), crisp 4:3 / 16:9 / stretch display fitting, and software S3TC/DXT texture decoding for Mali/PowerVR GPUs.
  • Native Audio & Bink FMV Playback: 48 kHz DirectSound software mixer with CRI-Ware ADX support and bundled minimal LGPLv2.1 FFmpeg 7.1.1 Bink video/audio decoding with dynamic A/V rate control.
  • Handheld Performance: Verified at ~29.8–30 FPS on an Anbernic RGSP (Allwinner H700, 4× Cortex-A53, Mali-G31 MP2, 973 MB RAM) across Bink FMVs, menus, 3D cutscenes, and early gameplay.
  • PS2-Style Native Gamepad Layout: Direct SDL2-to-DirectInput controller mapping out of the box (with stickless clamshell / Nintendo face-button defaults on PortMaster and toluca.conf overrides).

Quick Start

PortMaster Handhelds (ARM64)

  1. Extract toluca-v0.1.0-alpha-portmaster.zip into your PortMaster ports/ directory (places Toluca.sh and toluca/).
  2. Copy your legal, unprotected vanilla North American v1.0 sh2pc.exe and data/ folder into ports/toluca/gamedata/ (or ports/toluca/gamedata/Silent Hill 2/).
  3. Launch Toluca from PortMaster. On first boot, patchscript verifies sh2pc.exe and compiles cache/toluca_code.bin automatically (~1–3 minutes). Subsequent launches boot straight into the game.

Default Handheld Controls (Nintendo face-button labels, clamshell-friendly):

  • D-Pad / Left Stick: Move / Navigate menus
  • B (South): Action / Confirm / Attack (PS2 Cross)
  • A (East): Cancel in menus + Flashlight toggle in gameplay (PS2 Circle)
  • Y (West): Run (PS2 Square)
  • X (North): Map (PS2 Triangle)
  • L1 / R1: Search View (center/pan camera), Ready Weapon (hold R1 + X to Reload)
  • L2 / R2: Step Left / Right (L2 + R2 for 180° Quick Turn)
  • Select / Start: Inventory, Pause Menu
  • Home + Start / Select + Start: Exit to PortMaster / NextUI

(See toluca/README.md inside the zip for toluca.conf options including --nintendo-buttons, --swap-shoulders, display aspect modes, and the optional toluca.gptk fallback.)

Linux x86-64 Desktop

Requires system SDL2 (libSDL2-2.0.so.0) and OpenGL ES 3.0 / EGL (libEGL.so.1, libGLESv2.so.2).

unzip toluca-v0.1.0-alpha-linux-x86_64.zip
cd toluca

# Either copy sh2pc.exe and data/ into gamedata/ and run:
./toluca.sh

# Or point directly at an existing installation (with optional flags):
./toluca.sh "/path/to/Silent Hill 2/sh2pc.exe" --fullscreen --aspect 4:3

Known Alpha Caveats

  • Early Alpha Testing: Verified end-to-end through intro FMVs, menus, saving/loading, Observation Deck, Graveyard, and the Angela cutscene. Later areas (Apartments, Hospital, Historical Society, Hotel, bosses, and endings) have not yet had a full playthrough — please open an issue with your log.txt if you hit a crash, graphical glitch, or soft-lock!
  • Supported Game Version: Only the unprotected vanilla North American v1.0 PC executable is supported at this time. SafeDisc-encrypted retail executables are rejected during verification, and Enhanced Edition / Director's Cut packs are untested.
  • Original open.bik Audio Offset: The vanilla 2002 PC open.bik intro file has ~0.55 s of audio offset baked into its opening monologue; other FMVs play tightly in sync.

Special Thanks