FF8 (*.fi, *.fl, *.fs)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
sigroon365
Posts: 330
Joined: Fri Nov 21, 2014 4:03 am

FF8 (*.fi, *.fl, *.fs)

Post by sigroon365 »

Can someone edit my bms script? There's two problems.
1) End of File reads problem.
2) Reading file name from *.fl.

Here is sample files. https://drive.google.com/file/d/0B8JGJb-FRy_beWhwczhvSDZmem8/view?usp=sharing

Code: Select all

comtype unzip_dynamic

open FDDE fi 0
open FDDE fs 1
open FDDE fl 2 #*.fl contains file name but I'm not sure how to read and store it.

Do
get SIZE long 0
get OFFSET long 0
get ZIP long 0
savepos tmp 0

if ZIP == 1
goto OFFSET 1
get ZSIZE long 1
clog "" OFFSET ZSIZE SIZE 1
xmath tmp "OFFSET + ZSIZE"

else
log "" OFFSET SIZE 1
xmath tmp "OFFSET + SIZE"
endif

if tmp == SEEK_END 1
break
endif

While tmp < SEEK_END 1
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FF8 (*.fi, *.fl, *.fs)

Post by aluigi »

I wrote it from scratch but you were very close :)
http://aluigi.org/bms/ff8.bms
sigroon365
Posts: 330
Joined: Fri Nov 21, 2014 4:03 am

Re: FF8 (*.fi, *.fl, *.fs)

Post by sigroon365 »

aluigi wrote:I wrote it from scratch but you were very close :)
http://aluigi.org/bms/ff8.bms


Thank you! :) However, I got a problem.
Image
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FF8 (*.fi, *.fl, *.fs)

Post by aluigi »

Maybe it's a new version of the same file (like an update due to a patch), use 'r' for the moment and then check both the files to see if it was an update or not.
sigroon365
Posts: 330
Joined: Fri Nov 21, 2014 4:03 am

Re: FF8 (*.fi, *.fl, *.fs)

Post by sigroon365 »

aluigi wrote:Maybe it's a new version of the same file (like an update due to a patch), use 'r' for the moment and then check both the files to see if it was an update or not.


It seems that exactly same files.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: FF8 (*.fi, *.fl, *.fs)

Post by aluigi »

Yeah perfectly identical.
Mah developers... :D