GHS:SCPC

GHS:SCPC is a native Windows PC port of Gregory Horror Show: Soul Collector for PlayStation 2, featuring graphical enhancements and rebindable controls.

README

GHS:SCPC

An unofficial native Windows PC port of the PlayStation 2 horror adventure GHS: Soul Collector (European release, serial SLES-51933, v1.00), built by static recompilation: the game's own PS2 program is translated into C++ and compiled into a Windows program, then run on a runtime that stands in for the PS2's hardware.

This repository contains no game files. No disc image, no game program, no graphics, sound or text from the game, and no code generated from it. You need your own copy of the game (a disc image you dumped yourself). The launcher reads your disc image, and the build turns it into the playable port on your own computer.

Made mainly by AI. Nearly all of this port's code, reverse engineering, tooling and documentation was written by an AI model (Anthropic's Claude, working through Claude Code), directed, play-tested and reviewed by the repository's owner. Expect the rough edges of an AI-built hobby project; bug reports are welcome.

Not affiliated with or endorsed by the game's publisher or rights holders. All trademarks belong to their owners.


Contents


What you need

SystemWindows 10 or 11, 64-bit. A DirectX 11 graphics card (any from the last decade). Linux works too, see Linux.
The gameYour own dump of the European disc, SLES-51933 (v1.00), as a plain .iso file. Other formats (.bin/.cue, .chd, .cso) and other releases (US, Japan) are not supported as the main game. The launcher checks the version.
Githttps://git-scm.com/download/win (default options are fine).
C++ Build ToolsThe free Visual Studio C++ Build Tools with "Desktop development with C++" ticked: https://visualstudio.microsoft.com/visual-cpp-build-tools/ (a full Visual Studio with that workload works too; built and tested with Visual Studio 2026). The launcher checks for Git and these; when one is missing, its button installs them with winget (Windows' package manager) after showing the exact commands, or opens the download pages where winget isn't available.
InternetThe build downloads the recompiler (PS2Recomp) and libraries (raylib, Dear ImGui, FFmpeg).
Disk spaceAbout 15 GB free: the unpacked game (3 GB), the recompiler and its build (7 GB), the generated code (0.3 GB), plus room for logs and saves. Visual Studio itself is not counted.
TimeThe one-time build takes 30 to 60 minutes, depending on your CPU.
Optional: Python 3For the cheat menu's item names, and with numpy (py -m pip install -r requirements.txt) for Japanese voices. https://www.python.org/downloads/

Installation and first start

  1. Get the repository: clone it (git clone https://github.com/Linkyoshi90/GHS-SCPC.git; the launcher then finds updates by itself) or download it as a ZIP and extract it. Use a path without special characters, for example C:\Games\GHS-SCPC.
  2. Start GHS-SCPC.exe (the launcher) in that folder. Windows SmartScreen may warn about an unknown program: More info → Run anyway (or build the launcher yourself, see For developers).
  3. Follow the three steps the launcher shows:
    1. Unpack your disc: press Choose disc image... and pick your .iso. The launcher reads it directly (no mounting), checks that it is the right release and copies the game files into the game folder. Your disc image is not changed.
    2. Build the game: starts by itself after unpacking. The log shows what happens: the recompiler is downloaded and patched, your game's program is recompiled to C++, and the port is compiled. 30 to 60 minutes, one time.
    3. Play: press Play.
  4. New areas: the build already translates the game's known graphics programs (VU1 microcode). Should the game use one it doesn't know yet, that one runs on a slower interpreter; it is saved while you play, and the next time you press Play, the launcher translates it once (a few minutes).

The launcher can play background music from the game once the disc is unpacked (Music button, Next track).

Linux

The launcher is Windows-only; on Linux two shell scripts do its work, and the build uses gcc (or clang) with CMake instead of Visual Studio.

  1. Install the build tools and libraries (Debian/Ubuntu names; other distributions have the same packages):
    sudo apt install git cmake ninja-build g++ pkg-config libarchive-tools libavcodec-dev libavformat-dev libavutil-dev libswresample-dev libswscale-dev libx11-dev libxrandr-dev libxinerama-dev libxcursor-dev libxi-dev libgl1-mesa-dev
    
    cmake and ninja can come from pip instead, together with numpy for the Japanese voices; the compiler, git and the -dev libraries can't. Distributions keep pip out of the system Python, so use a venv:
    python3 -m venv ~/.venvs/ghs && ~/.venvs/ghs/bin/pip install -r requirements.txt && export PATH=~/.venvs/ghs/bin:$PATH
    
    For graphics on the GPU also install the Vulkan SDK (the build needs its dxc, with VULKAN_SDK set); without it the graphics run on the CPU, which needs a fast CPU.
  2. Unpack the disc and build (30 to 60 minutes, one time): tools/setup.sh /path/to/disc.iso. Later runs (after a git pull) need no argument and rebuild only what changed.
  3. Play: tools/launch.sh (--cpu for CPU graphics, --scale N, --online host:7790 --room name; see the top of the script). Saves go to recomp/memcards as on Windows.
  4. New graphics programs the game saved while you played are translated by tools/add_vu1_images.sh.

The build goes to PS2Recomp/out/linux, so a checkout shared with Windows keeps both builds apart. Needs an x86-64 CPU with AVX2 (2013 or later), as on Windows.

Playing

Default keys (change them in F2 → Controls, or press F4). XInput controllers (Xbox and compatible) work out of the box, including vibration.

ActionKeys
Run / walkWASD (hold C to walk, Left Ctrl to walk slowly)
D-pad (slow walk, menus)Arrow keys
Cross / Circle / Square / TriangleX or Space / C or Esc / Z / V
L1 / R1, L2 / R2Q / E, Left Shift / Right Shift
Start / SelectEnter / Tab
SettingsF2 (resolution, widescreen, smoothing, controls, Japanese voices)
Key bindingsF4
CheatsF5
Snapshot (RAM + screenshot, for bug reports)F6
Frame counterF3
Full screenF11
Fast-forwardBackspace (hold)

Saves go to the virtual memory card in recomp\memcards (save at the frog in the game, as usual).

Features

Besides playing the game natively:

  • Graphics: the PS2's graphics chip runs on your GPU (Direct3D 11), with render scale 1x to 4x, 16:9 widescreen, smooth (interpolated) character animation, smoother shadows at higher scales, sharper scaled icons.
  • Speed: the original game speed in both of the game's display modes (50 Hz, and 60 Hz, where the port corrects the parts that would otherwise run 1.2x too fast); Backspace fast-forwards.
  • Controls: rebindable keys, controllers with vibration, mouse look in first-person view and when peeping through keyholes.
  • Cheats (F5): infinite mental gauge, infinite items, invulnerability, no detection (guests don't see, hear or notice you, and peeping through keyholes makes no noise; equipping a story item that a guest has to react to, such as the screwdriver, switches it off), permanent Speed Up and how fast it makes you, no conditions, in-game clock speed or the clock locked to the PC's time, Roulette spin results, give/remove items, a guest radar overlay, a pinned memo (a guest's schedule tonight, chosen from a list, on the right side; with Show guest location it says which room the guest is really in), and warp to any room. The game has no room names (its room numbers aren't the ones on the doors): name rooms in game\ghs_rooms.txt, one number;name line each (for example 1;hallway 1F), with the number F5 → Warp shows for the room you're in.
  • Item randomizer (F5): shuffles where items lie, optionally moves them to completely new spots in other rooms, and can shuffle which rooms the guests visit each night (their own rooms stay, so every soul can still be taken). Saving at the frog keeps the shuffle.
  • Japanese voices (optional, see below) with the English game.
  • Online Hell's Roulette for two players (optional, see below).

Optional: Japanese voices

If you also own the Japanese release (SLPM-65324), you can hear its voice recordings with the English text:

  1. Install Python 3 and numpy (py -m pip install -r requirements.txt in a command prompt, in the repository folder).
  2. In the launcher (after unpacking the European disc), press Japanese voices... and pick the Japanese .iso. It copies the Japanese voice data next to your game files and matches each English line to its Japanese recording (a few minutes).
  3. In the game: F2 → Japanese voices.

Lines the Japanese release shows without a voice (Death's talk in your dreams, Judgment Boy's final quiz) stay silent instead of English. After an update that improves the matching, press Japanese voices ✔ again.

Optional: online Hell's Roulette

Two players can play the roulette board game over the network. One player runs the small room server (python tools\roulette_server.py, TCP port 7790, open it in the firewall), both start the game with powershell -ExecutionPolicy Bypass -File tools\launch.ps1 -Online <server>:7790 -Room <name> and pick Hell's Roulette for two players on the title screen. The first player in a room plays blue, the second red.

Mods

Mods go into the mods folder, each as a folder or a .zip. In the game, F2 → Mods lists them: switch them on or off, then press Restart (enabled when something changed, also when a mod's files changed): the game closes, builds the mods in and starts again (needs Python 3; progress since your last save is lost). Without the game: py tools\ghsmod.py builds game\FILE.STM from the original (kept as game\FILE.STM.orig) and every mod that is on, in name order (a later mod wins); without mods it puts the original back. Inside a mod:

FileWhat it does
FILE.STM\<entry>.tex<N>.pngReplaces texture N of an entry. py tools\ghsmod.py export <entry> <mod> writes an entry's textures there to paint over (keep the size); colours are fitted to the texture's 16 or 256 colours when you build.
*.txtText replacements, as in mods\pc_text\pc_english.txt. New text may be shorter than the old, not longer.
FILE.STM\<entry>Replaces a whole entry (names as py tools\ghsarc.py unpack writes them into unpacked\).
  • Included: mods\pc_text, English text without PS2 memory card and console wording.
  • The player's textures: 044.slid.bin (boy) and 046.slid.bin (girl). For the boy: tex0 shirt and trousers, tex1 face skin, tex2 the flat colours of hair, eyes and more (the hair is the brown swatch at x 24-31, y 28-31), tex3 sleeves.
  • Guests: 170\<2k>.slid.bin holds the textures and 170\<2k+1>.slid the model of the guest in actor slot k+1 (Gregory 000/001, James 034/035). A model's meshes (000\*.bin) can be reshaped with tools\ghsmesh.py as long as each keeps its batches and vertex counts; the skeleton and animations stay. Example: py tools\mod_james_creeper.py writes mods\james the creeper (James as a creeper). Guests posed as part of a room (such as Jack Ketch chained in the dungeon) are the room's own models and keep their shape.
  • The text font: py tools\ghsfont.py export writes the game's font (000\000.slid.bin and 001.slid.bin, two sizes) as PNG sheets; py tools\ghsfont.py text out.png "Some text" draws text with it, spaced as in the game; py tools\ghsfont.py ttf makes unpacked\font\GHS Dialogue.ttf from it (needs py -m pip install fonttools; pixel exact at 22 px; like the game, & draws #, + and ` the curly quotes, $ ^ _ { } | the symbols).
  • Items and props: ghsmesh.build writes a whole new rigid mesh (any shape, one texture). Example: py tools\mod_miku_doll.py writes mods\miku doll, the Doll item (for Lost Doll) as a chibi Hatsune Miku: its model in the hotel (041\020.slid), on the shop's shelf (093.slid 095.bin/096) and in the item model set 005 (007.bin, float vertices: ghsmesh.build(..., floats=True); 017.slid.bin), plus its picture in the inventory and the HUD (006\134.slid.bin, item 134 of the item pictures; the same set is again in 236, 256 and 276), rendered from the new model.
  • Lost Doll's crush (behaviour, after the manga GHS: Another World): mods\lost doll crush (switch it on and press Restart). The first time Lost Doll spots you, or catches you while she mulls in front of room 205, she doesn't catch you. She stares, glances away, stares again, whispers "It must be love..." and runs back to her room. Her mutterings, which you hear when you peep at her, become love lines (lost_doll_love.txt). Until you take her soul she otherwise keeps her usual routine, which her soul quest needs. After that she follows you from room to room, except to her own rooms. Until she's angry she's too shy to catch you: when she spots or touches you in the room you're in (your guest room too), she flees instead. Leaving a room she's in with you counts as rejecting her, and a minute together forgives one rejection. After three she gets angry and hunts you until she catches you. If she catches you with the Doll equipped, her horror show starts by asking "Did you bring that doll for me?". Then she hugs you and takes the Doll, and you're back in the hotel without damage. The code is overrides\zz_ghs_doll_crush.cpp. The following is off while the guest shuffle is on. The first-sight scene and her mood reset when the game starts.

Where things are

PathWhat
GHS-SCPC.exeThe launcher (source: tools\launcher.cs).
Play GHS-SCPC.cmdStarts the built game directly, without the launcher (runs tools\launch.ps1).
game\Your unpacked game files (made by the launcher; never share them).
PS2Recomp\The recompiler and runtime, cloned and patched by the build; the port itself is PS2Recomp\out\build\ps2xRuntime\Release\ps2EntryRunner.exe.
recomp\memcards\Your saves.
mods\Mods (Mods); only mods\pc_text belongs to the repository. mods\disabled.txt: the ones switched off.
recomp\mods.logThe last mod build started from the game's Mods tab.
recomp\live.log, recomp\live.err.logThe last session's logs (the one before is kept as live.prev.*).
recomp\recomp.log, recomp\runner-build.logBuild logs.
overrides\The port's own game fixes and features (C++), compiled into the game.
patches\ps2recomp-local.patchAll changes to the PS2Recomp runtime, applied to a pinned upstream commit.
recomp\ghs.toml, recomp\ghs_functions_code.csvRecompiler settings and the game's function list (addresses and names only).
tools\Build, launch and helper scripts.

Updating

If you cloned the repository, the launcher checks for a new version each time it starts. When there is one, the log lists what changed and an Update button appears: it downloads the new version, rebuilds only what changed (usually a few minutes) and restarts the launcher if needed. Your saves in recomp\memcards are kept. If you changed the port's files yourself, it leaves them alone and asks you to update with git.

By hand: git pull (or extract a new ZIP over the old folder, keeping game\ and recomp\), then run powershell -ExecutionPolicy Bypass -File tools\setup.ps1. It rebuilds only what changed. Deleting the PS2Recomp folder makes the next build start from scratch (30-60 minutes).

Troubleshooting

ProblemWhat to do
"This disc boots ..., not the European release"Only the European v1.00 disc (SLES-51933) works. Check your dump against redump.org.
"Not a DVD image with an ISO 9660 file system"Use a plain .iso dump, not .bin/.cue, .chd or .cso.
"Git is missing" / "Visual Studio ... is missing"Install them (see What you need), then press the button again.
The build stops with an errorRead the last lines of the launcher's log and recomp\runner-build.log. Pressing the button again continues where it stopped.
The game is slow in one areaPress Play in the launcher next time: see step 4 of Installation.
The game does not startLook at recomp\live.err.log.
Something looks or behaves wrongPress F6 at that moment (saves a snapshot to game\snapshots) and open an issue with a description and recomp\live.err.log. Don't attach files from game\.

Linux: build and play natively with tools/setup.sh and tools/launch.sh (see Linux).

How it works

  1. Recompiler inputs (in this repo): the game's function list (recomp\ghs_functions_code.csv, addresses and names found with Ghidra), the recompiler settings (recomp\ghs.toml) and where the VU1 programs lie in the game's program (recomp\vu1_recipes.txt, offsets only). No game code is stored here.
  2. PS2Recomp (ran-j/PS2Recomp) is cloned at a pinned commit and patches\ps2recomp-local.patch is applied: the runtime changes this port needs (graphics on the GPU, the VU1 translator, audio, memory cards, controllers, the settings and cheat windows, and many fixes).
  3. The recompiler reads your game\SLES_519.33 and writes about 35,000 C++ files (in recomp\output, then copied into PS2Recomp), together with the files from overrides\: the port's game-specific fixes and features.
  4. Everything is compiled into ps2EntryRunner.exe, which runs the recompiled game and reads the rest of the game data (FILE.STM, sound, movies) from game\ at run time.
  5. VU1 microcode is game code too, so it can't ship either: after the first build, the runner puts the known programs together from your game\SLES_519.33 (recomp\vu1_recipes.txt, checked against each program's hash) and translates them to C++; any program not listed there is translated the first time the game uses it (tools\add_vu1_images.ps1, run by the launcher).

For developers

  • Launcher: build it with the C# compiler that comes with Windows (from the repository folder): C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe /nologo /target:winexe /win32icon:ghs.ico /out:GHS-SCPC.exe tools\launcher.cs
  • Overrides: edit overrides\*.cpp, then tools\install_overrides.ps1 and rebuild (only the changed files compile).
  • Runtime changes in PS2Recomp\: afterwards run tools\save_ps2recomp_patch.ps1 so patches\ps2recomp-local.patch contains them (the generated game code is excluded automatically).
  • Debug options of tools\launch.ps1: -Cpu (graphics on the CPU), -Scale N, -Pcm (record sound), -TexCheck, -Record (GS recording with tools\gs_record_now.ps1), -Capture (record VU1 prog