Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://reshax.com/topic/1829-atelier-yumia/
- https://reshax.com/topic/303-fatesamurai-remnant-fdata/#comment-970
- https://github.com/LittleBigBug/QuickBMS/releases
- ---------
- Comtype ZLIB
- Get FILETOTALSIZE asize
- if FILETOTALSIZE > 128
- Set IDRKOFFSET long 0x10
- Do
- Goto IDRKOFFSET
- Print "%IDRKOFFSET%"
- Getdstring MAGICVERSION 8
- Get ENTRYSIZE longlong
- Get COMPSIZE longlong
- Get DECOMPSIZE longlong
- Get ENTRYTYPE long
- Get FILEKTID long
- Get TYPEINFOKTID long
- Set SKIP long ENTRYSIZE
- Math SKIP - COMPSIZE
- Math SKIP - 0x2C
- Goto SKIP 0 SEEK_CUR
- Savepos TEMP
- Print "%TEMP%"
- String FNAME p "0x%08x." FILEKTID
- String FEXT p "%08x" TYPEINFOKTID
- If TYPEINFOKTID == 0x563bdef1
- Set FULLNAME string "g1m/"
- String FNAME + "g1m"
- String FULLNAME + FNAME
- Elif TYPEINFOKTID == 0x6fa91671
- Set FULLNAME string "g1a/"
- String FNAME + "g1a"
- String FULLNAME + FNAME
- Elif TYPEINFOKTID == 0xafbec60c
- Set FULLNAME string "g1t/"
- String FNAME + "g1t"
- String FULLNAME + FNAME
- Elif TYPEINFOKTID == 0x20a6a0bb
- Set FULLNAME string "kidsobjdb/"
- String FNAME + "kidsobjdb"
- String FULLNAME + FNAME
- Elif TYPEINFOKTID == 0x5153729b || TYPEINFOKTID == 0xb340861a
- Set FULLNAME string "mtl/"
- String FNAME + "mtl"
- String FULLNAME + FNAME
- Elif TYPEINFOKTID == 0x8e39aa37 || TYPEINFOKTID == 0xbe144b78
- Set FULLNAME string "ktid/"
- String FNAME + "ktid"
- String FULLNAME + FNAME
- Elif TYPEINFOKTID == 0x56efe45c || TYPEINFOKTID == 0xbbf9b49d
- Set FULLNAME string "grp/"
- String FNAME + "grp"
- String FULLNAME + FNAME
- Elif TYPEINFOKTID == 0xbbd39f2d
- Set FULLNAME string "srsa/"
- String FNAME + "srsa"
- String FULLNAME + FNAME
- Elif TYPEINFOKTID == 0x0d34474d
- Set FULLNAME string "srst/"
- String FNAME + "srst"
- String FULLNAME + FNAME
- Else
- Set FULLNAME string FEXT
- String FULLNAME + "/"
- String FNAME + FEXT
- String FULLNAME + FNAME
- Endif
- Savepos OFFSET
- If COMPSIZE == DECOMPSIZE
- Get MAGIC long 0 OFFSET
- If MAGIC == 1194412127
- Set FULLNAME string "g1h/"
- String FNAME p "0x%08x." FILEKTID
- String FNAME + "g1h"
- String FULLNAME + FNAME
- Endif
- Log FULLNAME OFFSET DECOMPSIZE
- Else
- Set MEMORY_FILE binary ""
- Append
- Do
- Get ZSIZE short
- Get Junk longlong
- Savepos OFFSET
- If DECOMPSIZE > 16384
- Clog MEMORY_FILE OFFSET ZSIZE 16384
- Math DECOMPSIZE - 16384
- Else
- Clog MEMORY_FILE OFFSET ZSIZE DECOMPSIZE
- Math DECOMPSIZE - DECOMPSIZE
- Endif
- Math OFFSET + ZSIZE
- Goto OFFSET
- While DECOMPSIZE > 0
- Append
- Get LSIZE asize MEMORY_FILE
- GetVarChr MAGIC MEMORY_FILE 0 long
- Print "%MAGIC%"
- If MAGIC == 1194412127
- Set FULLNAME string "g1h/"
- String FNAME p "0x%08x." FILEKTID
- String FNAME + "g1h"
- String FULLNAME + FNAME
- Endif
- Log FULLNAME 0 LSIZE MEMORY_FILE
- Endif
- Math ENTRYSIZE x 0x10
- Math IDRKOFFSET + ENTRYSIZE
- While IDRKOFFSET < FILETOTALSIZE
- Endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement