Mar Heaven - Arm Fight Dream (PS2) - _DATA.YFS

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

Mar Heaven - Arm Fight Dream (PS2) - _DATA.YFS

Post by BloodRaynare »

https://drive.google.com/file/d/1od5Qbj ... =drive_web

The original weights around 400 MB, so I used filecutter to upload it here.
Script for this please and if possible, leave the directory structures intact
Anexenaumoon
Posts: 119
Joined: Sun Dec 27, 2015 10:22 pm

Re: Mar Heaven - Arm Fight Dream (PS2) - _DATA.YFS

Post by Anexenaumoon »

This should extract the files with directories retained:

Code: Select all

# Mar Heaven - Arm Fight Dream *.YFS
# Written By Eric Van Hoven
# Script for QuickBMS http://quickbms.aluigi.org

idstring "YFS\x00"
get DIRCNT short
get ENTRYCNT short
savepos DIROFF
set TABLEOFF long 0
xmath TABLEOFF "(DIRCNT * 0x40) + DIROFF"


for i = 0 < DIRCNT
   goto DIROFF
   getdstring DIRNAME 0x3C
   get COUNT short
   get STARTIND short
   savepos DIROFF
   goto TABLEOFF


 
   for j = 0 < COUNT
      getdstring FNAME 0x18
      get SIZE long
      get OFFSET long
      get NULL long
      set NAME string DIRNAME
      string NAME += FNAME
      log NAME OFFSET SIZE
   next j
   savepos TABLEOFF
next i


Can't be certain, as I'm not certain if that's the correct offset and size values, but I think it is
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: Mar Heaven - Arm Fight Dream (PS2) - _DATA.YFS

Post by BloodRaynare »

Seems it extracted all the files correctly :)
Thanks!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Mar Heaven - Arm Fight Dream (PS2) - _DATA.YFS

Post by aluigi »

I leave my script just for reference:
http://aluigi.org/bms/mar_heaven_yfs.bms