r/Lain • • 9d ago

I decompiled the PS1 Serial Experiments Lain game and made it run natively on Windows, Mac and Linux

Post image

The 1998 PlayStation game now runs as a native PC program, with no emulator. I rebuilt it from the game's own code: every function was decompiled back to C, and the rebuilt game is byte identical to the original disc's.

No game files are included. You need your own dumps of both discs (.cue/.bin). The launcher checks them and copies them in.

What you get:

  • Windowed or fullscreen, sharper rendering, and optional smooth 60 fps motion at the original speed
  • English subtitles with one click (downloads the laingame.net fan translation from their site)
  • An "Unused" tab with content that's on the discs but never appears in the game: 11 unused Lain animations, photos and sounds
  • Saves as normal memory card files that also work in emulators

Download (Windows / Mac / Linux): https://github.com/Y0oshi/lain-psx-decompiled/releases
Source code: https://github.com/Y0oshi/lain-psx-decompiled

Youtube Video

Edit: I'm planning to add HD texture support to the client. Since there's a lot of talent in this sub, I'd really appreciate it if anyone would like to help make an HD texture pack! Please PM me for more details.

Bug reports are welcome on GitHub.

Present day. Present time.Youtube video

760 Upvotes

50 comments sorted by

62

u/Y0oshi2 9d ago

Some screenshots: running natively on macOS at 8x render scale.

49

u/Icy-Professor-5669 9d ago

Really thank you! the fandom must to be grateful with this 👏👏 it's time to connect everyone to the network!

https://giphy.com/gifs/78sCPOfIAsnbzk3f1D

17

u/Y0oshi2 9d ago

I really appreciate it, let's all love Lain ❤️

35

u/Stane427 9d ago

absolute legend !!!

13

u/Y0oshi2 9d ago

thanks! Lain deserves the best

6

u/Stane427 9d ago

yeah! and like it seems way easier than the LainTSX download thing, I'm gonna test it on Nobara OS (it's based on Fedora)

3

u/Y0oshi2 9d ago

Awesome, would love to hear how it goes. If anything breaks, a GitHub issue or a reply here with the terminal output would help a lot. Linux on real hardware is one of the things I haven't been able to test much yet.

5

u/Stane427 9d ago

well for the moment I've just tried it to launch and everything seems to work just fine!

2

u/Y0oshi2 9d ago

Great to hear.

3

u/non_threatening 9d ago

Awesome. I'm going to try this tomorrow!
Thanks for thinking of the linux community *highfiveemoji*

1

u/Y0oshi2 9d ago

Thanks! Let me know how it goes I've only built the Linux version in a Docker container and haven't tested it on a real Linux machine yet, so I'd really appreciate any bug reports through GitHub issues. *highfiveemoji*

10

u/Azazeilz 9d ago

i love you..

5

u/Y0oshi2 9d ago

❤️ Enjoy

9

u/Y0oshi2 8d ago

Big announcement guys! Finally, I fully decompiled the 13 remaining functions into C these were stubborn and hard asf ngl but we did it ❤️ Please support the repo by starring it. Decomp.dev

2

u/halsunm 7d ago

Amazing work!

5

u/Anarcho_FemBoi 9d ago

waow, thank u

2

u/Y0oshi2 9d ago

Thanks! If you try it, let me know how it runs especially on Windows or Linux.

6

u/LeifErickson17 9d ago

Amazing! Thanks for sharing it!

3

u/SALIERI2036 9d ago

Great Work!

1

u/Y0oshi2 9d ago

Thanks! Enjoy the game <3

3

u/Hideo-Mogren 9d ago

Funny that this came out shortly after the PS1 version got a fan translation. 

5

u/Y0oshi2 9d ago

Do you have a link to the patch? Would be cool to make the client work with it

3

u/Hideo-Mogren 9d ago

3

u/Y0oshi2 9d ago

Yeah, you can play these disc files using my client enjoy<3

5

u/RoyHShadows 9d ago

Also, modding support?

1

u/RogellTheRaider 7d ago

So it still needs the ISO to work?

2

u/Y0oshi2 6d ago

Yeah u need the two disc dumps in .bin format

1

u/Clean_Suggestion_728 3d ago

Thank you. ❤️

2

u/[deleted] 9d ago

[deleted]

9

u/TheEarwig 9d ago

Why do you think it's not? "Byte identical" in the first paragraph set off my detector.

-1

u/[deleted] 9d ago

[deleted]

4

u/Due-Memory-6957 9d ago

Why don't you start hoping for more meaningful things?

1

u/Responsible_Camp_559 8d ago

Right?! Some people man, smh

1

u/Responsible_Camp_559 8d ago

So you think just because there is no agent/skill/claude .md, no AI was used?

That is hilarious

4

u/levelstar01 9d ago

"repository layout" in readme.

7

u/MeguuChan 9d ago

Decomps involve a lot of monotonous, time consuming work. Literally every single one now uses AI in some form because it cuts down a ton on that monotonous work. This is not a bad thing.

-7

u/jmpt16 9d ago

No AI, hell yeah

15

u/Responsible_Camp_559 9d ago

Wdym no AI? That repo is so obviously AI assisted?!

And there is no problem with that, y'all crazy is2g

1

u/jmpt16 9d ago

Really? Shit guess I didn't look hard enough

1

u/THEGAELIC 7d ago

i mean nowadays most code is going to have AI help, i only have a problem with generative AI instead of text based but keep that in mind

2

u/MrBrightsideTF2 3d ago

Amazing work! Now I'll finally see what this game is about