Serial Experiments Lain Decompilation
Source code reconstructed from the original game's compiled binary, so the game can be understood, rebuilt and ported.
Based on Serial Experiments Lain
Original game imageAbout
A decompilation of Serial Experiments Lain (PlayStation, Pioneer LDC, 1998) in C, plus a native client for Windows, macOS and Linux built from it. The README says all 321 game functions compile with the original PsyQ toolchain to a byte-identical executable, and the client runs the same code on a reimplementation of the PlayStation SDK, with no emulator. It says the client plays the whole game, including both sites, all voice sessions and movies, disc swap and all four endings.
How it differs from the original
The client adds resolution scaling, fullscreen, optional 60 fps motion interpolation, subtitle and dub packs, and mods (replacement pictures, text, voices, movies, HD texture packs, Lua scripts and native plugins). A launcher tab also shows content on the discs that the game never uses.
Getting started
The repository and releases contain no game data, so you dump both original discs in Redump format (cue and bin). Download the client for your system from the releases page, add both discs in the launcher, choose options and press Play. F1 opens the in-game menu, and saves are standard 128 KiB memory card images.
Known issues & limitations
- The builds are not signed.
What you need to run it
Features
- Display options include resolution scaling, fullscreen, and optional 60 fps motion interpolation at the original game speed.
- Subtitle and dub packs can use `.srt`, `.ass`, and `.ogg` files; the launcher can download English fan subtitles, which are not bundled.
- Save files use standard 128 KiB memory card images that are usable with emulators.
- Mods can replace game assets and data, add HD texture packs, Lua scripts, and native plugins.
- The client plays both sites, all voice sessions and movies, disc swaps, and all four endings.
How to install
- Dump both discs in Redump format as `.cue` and `.bin` files.
- Download the client package for your system from Releases.
- In the launcher, add both discs using the file picker or drag and drop; the client verifies and copies them into its data folder.
- Choose a window size, subtitles, and options in the launcher, then press Play.
Controls
- Arrow keys move the cursor and select a node.
- Press V to confirm or open a node.
- Press Return to continue or skip.
- F1 opens the in-game menu for display, volume, languages, key bindings, cheats, and mods.
- Gamepads work as controller 1.
Summarised from the project's README.
Licensing & legal
- The code is stated to be MIT licensed; the README says the project is not affiliated with or endorsed by the game's rights holders.
Additional notes
- Subtitles
- The launcher can download English fan subtitles from their source; none are bundled.
FAQ
- What is Serial Experiments Lain Decompilation?
- Serial Experiments Lain Decompilation is an open-source decompilation of Serial Experiments Lain. Source code reconstructed from the original game's compiled binary, so the game can be understood, rebuilt and ported. The original game ran on PlayStation.
- Do I need the original game files to run Serial Experiments Lain Decompilation?
- Yes. The project does not include the original game's assets, so you need your own copy.
- How is Serial Experiments Lain Decompilation licensed?
- Y0oshi: MIT License (code in this repository); project: their own licenses (third-party components). The repository itself is the authoritative source.
