Inochi no Spare 生命のスペア (.ks)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
vntool
Posts: 8
Joined: Mon Jul 09, 2018 5:24 pm

Inochi no Spare 生命のスペア (.ks)

Post by vntool »

I have used a tool to extract data.bin from a visual novel before and in the folder scenario it was a bunch of .ks files.
The only problem is that it seems that they are encrypted or something because they contain nonsense characters, script file 8 22 33 34_02 35_07 41 42 43

Here is files
https://mega.nz/#!Y5FBxaaJ!RkAdlisaeem7sCIr8QNZg3SQIsKI8SdJr2Hjs2jXPpI
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Inochi no Spare 生命のスペア (.ks)

Post by aluigi »

Open that file with a hex editor and at its beginning put the following bytes in INSERT mode:
0xff 0xfe

Now you can open the file with a text editor.
vntool
Posts: 8
Joined: Mon Jul 09, 2018 5:24 pm

Re: Inochi no Spare 生命のスペア (.ks)

Post by vntool »

Thank you so much! Worked like a charm. So it's just encode? How stupid I am
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Inochi no Spare 生命のスペア (.ks)

Post by aluigi »

It's simply an UTF16 text file (2 bytes for each character) without the initial tag, so the text editors read it as a normal UTF8 (default) and you see garbage text.
vntool
Posts: 8
Joined: Mon Jul 09, 2018 5:24 pm

Re: Inochi no Spare 生命のスペア (.ks)

Post by vntool »

the script cant be opened since *most likely* its encrypted (.tjs file). Can you help me with this Aluigi?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Inochi no Spare 生命のスペア (.ks)

Post by aluigi »

It's not encrypted. It's a binary file containing unicode text strings (magic "TJS2100").
The format is not clear, maybe someone else will take a look at that.
MerzZly
Posts: 6
Joined: Mon Dec 16, 2019 12:52 pm

Re: Inochi no Spare 生命のスペア (.ks)

Post by MerzZly »