Fatal Frame II (PS2) - IMG_BD.BIN

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Fatal Frame II (PS2) - IMG_BD.BIN

Post by BloodRaynare »

The sample files:
https://drive.google.com/file/d/14280MT ... zy4Oc/view

The SLPS file is the game's exe, and I believe the archive TOC was stored there, but in a very confusing way.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Fatal Frame II (PS2) - IMG_BD.BIN

Post by aluigi »

One of the files seems to start from offset 0x967800 but neither 0x967800 or 0x12cf (number / 0x800) are available in the executable.
The toc has to be in another file or at the end of the archive (you provided only the beginning part)
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: Fatal Frame II (PS2) - IMG_BD.BIN

Post by BloodRaynare »

I don't think the IMG_BD.BIN contain any offset information. But here's the last part of the archive anyway.

https://drive.google.com/open?id=1GJ0oj ... nvo-VFjQ_r
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Fatal Frame II (PS2) - IMG_BD.BIN

Post by aluigi »

Yeah you are right.
ViT
Posts: 3
Joined: Thu Mar 26, 2020 8:37 am

Re: Fatal Frame II (PS2) - IMG_BD.BIN

Post by ViT »

If anyone is still interested (PAL version for example):

TOC is in "SLES_523.84" file, start offset is 0x1FB7F8, 4491 files.

For each file:
4 byte - LBA
4 byte - unpack file size
4 byte - file size in archive

Calculation of real LBA:
real LBA = (LBA bitwise shift right 2) * 0x800

Value of right 2 bits of LBA is:
0 - no file
2 - file not compressed
3 - file compressed

For decompress use "DeLESS.exe" utils (ask internet for it). Game work great without compression, so: rebuild game archive (IMG_BD.BIN), update TOC, have fun.
ViT
Posts: 3
Joined: Thu Mar 26, 2020 8:37 am

Re: Fatal Frame II (PS2) - IMG_BD.BIN

Post by ViT »

aluigi, was this script already exist, or did you just make it? I haven’t seen him before.
I also have an algorithm for unpacking the Fatal Frame 3. I can explain, if interested.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Fatal Frame II (PS2) - IMG_BD.BIN

Post by aluigi »

I just created them :)

Yes sure, tell me about FF3, maybe I can write a script for it too.
Cloudstrifeff7
Posts: 4
Joined: Fri Feb 12, 2021 2:38 pm

Re: Fatal Frame II (PS2) - IMG_BD.BIN

Post by Cloudstrifeff7 »

aluigi wrote:http://aluigi.org/bms/project_zero.bms
http://aluigi.org/bms/deless.bms

With Project zero 1 I can't use it. Is it possible add a version for the first game?