Samplei .foc .fod

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
ghost
Posts: 54
Joined: Tue Aug 19, 2014 10:30 am

Samplei .foc .fod

Post by ghost »

aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Samplei .foc .fod

Post by aluigi »

ghost
Posts: 54
Joined: Tue Aug 19, 2014 10:30 am

Re: Samplei .foc .fod

Post by ghost »

aluigi wrote:http://aluigi.org/bms/fancy3d.bms


:lol: TKS aluigi.

There is an error in the PC version

PC sample:https://mega.nz/#!y0FGmAKS!zp6DrlGi4c3smbS_ijjod4lWUmy3LCf1srs6ZHzQ16s
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Samplei .foc .fod

Post by aluigi »

Script 0.1.1

That file used lzma instead of zlib and one of the files had an invalid size reported in it.
ghost
Posts: 54
Joined: Tue Aug 19, 2014 10:30 am

Re: Samplei .foc .fod

Post by ghost »

aluigi wrote:Script 0.1.1

That file used lzma instead of zlib and one of the files had an invalid size reported in it.


Unpack the data out of the error
This is a complete FOD files
54MB
https://mega.nz/#!yksGFYSb!fpzAzNZkM2su8iyReBVYhNhwVvACSK2TM99Y0LPrnXg
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Samplei .foc .fod

Post by aluigi »

The script works from the pure extraction part.
As written in a comment in line 65 of the script, there are some archives that have scrambled files where there are 4 bytes ok and 4 bytes obfuscated or encrypted. Currently these archives are not supported and the files are extracted "as-is".
If someone wants to provide the decryption code then I will implement it.

I have updated the script to 0.1.1a only for removing the initial bytes from these files, nothing else (so no need to redownload it).