Closed JustASpeedrunner closed 2 months ago
It is mostly functional but it does not extract textures or the music/sfx. You can use it by creating a new folder inside scripts/extract called discs and placing both game discs in that folder calling them disc1.bin and disc2.bin. Make sure that you have installed all dev dependencies and that ffmpeg and imagemagick are installed. Then run node run extract.mjs
, which will extract the files to the correct folders in src/static. To get some of the textures, you will need to use jpsxdec to extract them from the main executable. To get the rest of the textures you will need to extract them from bin.bin which you can do using laintools from jpsxdec (a bit of a pain to use since you have to manually compile). The music you can get online in the form of a psf (or music format of your choosing), there are a few sites which have it. The sound effects can be extracted using PSound (http://snailrush.online.fr/) on snd.bin but the pitch is incorrect (still haven't properly worked out a way to get that right).
I think that should be everything, let me know if you have any other questions.
hello! as it stands the current script is missing a lot of stuff, though it should serve as a decent starting point for your own work. i've been busy with other projects/work so i've not been able to pay much attention to laintsx but i am currently in the process of rewriting the entire thing, including the extraction scripts (making it actually work fully and properly). no idea how long it'll take but it will be completed eventually so perhaps look for that in the future.
Sorry for such a late reply, I've been quite busy with my first semester of college, but thank you both! Especially looking forward to the rewrite of this project.
I know the readme says it's not possible to build locally
Actually it IS possible to build it locally. I built the current version on site using this docker image:
wget https://laingame.net/files/laintsx_builder.tar.xz
sudo docker load -i laintsx_builder.tar.xz
git clone --recursive https://github.com/laingame-net/LainTSX.git
cd LainTSX
sudo docker run -it --rm -v .:/src -w /src localhost:5000/laintsx_builder /bin/sh -c "find /opt/extract/ -name *.tar.gz -exec tar xf {} \; && npm ci && npm run build --verbose && cp -r src/static/media/webvtt/ build/"
It is not intended to build this new rewrited version, only my forked legacy version https://github.com/laingame-net/LainTSX.git In /opt/extract/ directory you can find two archives with every static files you need.
Title I'm tempted to work on a PC native recreation of the game and I have no experience extracting assets from PS1 games, so knowing how functional it is would be nice. If it is functional then could someone tell me how to run it. I know the readme says it's not possible to build locally and the script is WIP, but I'm hopeful it's at least functional enough as is for my needs.
Thanks in advance.