PS1 - Serial Experiments Lain - BIN, "NAPK", "LAPK"

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
JillCrungus
Posts: 2
Joined: Thu Sep 19, 2019 7:37 am

PS1 - Serial Experiments Lain - BIN, "NAPK", "LAPK"

Post by JillCrungus »

I'm currently trying to see if it's possible to pull files out of the Serial Experiments Lain game for PS1.

The game is on 2 discs (Site A and Site B) with each disc containing 5 files with the extension "BIN":

    BIN.BIN
    LAPKS.BIN
    SITEA.BIN/SITEB.BIN
    SND.BIN
    VOICE.BIN

BIN is of course a very generic extension so no help there.

A quick check of these BIN files reveals that they appear that they appear to store multiple files of different types. They're heavily padded. The files that can be identified by magic numbers are:

    NAPK -Found in BIN.BIN and SITEA.BIN/SITEB.BIN. The most common type of file, possibly another archive format?
    LAPK - Found in LAPKS.BIN, may be related to NAPK files or a similar type of file with differences

SND.BIN and VOICE.BIN may contain PS1 XA audio files.

I've taken a poke at the NAPK files but haven't really been able to get anywhere and haven't even been able to identify anything that could indicate proper filesize or anything. I'm not sure if any of these file types are comrpessed or not. I'm pretty bad at this stuff right now.

I've uploaded the files to Google Drive (the forums weren't letting me attach anything, even when I cut the file with filecutter).

https://drive.google.com/open?id=1OyzB1kejgosmxGvx79WQB-GTWyrsGkfM

Thanks!
JillCrungus
Posts: 2
Joined: Thu Sep 19, 2019 7:37 am

Re: PS1 - Serial Experiments Lain - BIN, "NAPK", "LAPK"

Post by JillCrungus »

There is some Java code here to handle extraction of some of these files, namely the SITEx.BIN files, LAPKS.BIN and the BIN.BIN file. However it seems that only image data is extracted and additionally there's no support for extracting SND.BIN or VOICE.BIN

https://github.com/m35/jpsxdec/tree/rea ... /laintools