-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Pokédex
Portal
Technical Documentation
Pages
Tutorials
Forums
Events
Downloads
Gallery
Blogs
Posts posted by ThatTrueStruggle
-
-
Hey guys, I'm ThatTrueStruggle. You might know me from VG-Resource, but enough of that. I've come in searching of knowledge for finishing a script. Right now, I have a script written to extract CGFX files from those BIN files. However what's giving me grief is a format called the BGRS format. I'm assuming it's a type of subfile for BCH files. Also since BCH files don't have a set file size, I can't use the same method on the CGFX files. But yeah any knowledge you guys have, It'd be amazing. Here's my current script for use with QuickBMS.
idstring "FARC" get Size asize callfunction CGFXExtract goto 0 callfunction BCHExtract startfunction CGFXExtract for i = 0 get PATH basename SavePos Position if Position == SIZE break endif FindLoc Offset string "CGFX" 0 "noCGFX" if Offset == "noCGFX" break endif goto Offset idstring "CGFX" get Endianness short get Length short get Revision long get FileLength long goto Offset goto FileLength 0 SEEK_CUR string PATH += i string PATH += ".cgfx" log PATH Offset fileLength next i endfunction startfunction BCHExtract endfunction
Pokemon Super Mystery Dungeon And PMD:GTI Research And Utilities
in ROM - 3DS Research and Development
Posted
I had actually written a program that reads a *SIR0 table and extracts the files from it: https://www.dropbox.com/s/0q67hp1um2w4nn5/FARCReader.exe?dl=0
*: It works only on a few SIR0 tables. It only works on the ones that have file names and then the offsets afterwards. This is the code I followed from gdkchan :