The VG Resource
Simplistic Extraction Script? - Printable Version

+- The VG Resource (https://www.vg-resource.com)
+-- Forum: The Resources (https://www.vg-resource.com/forum-109.html)
+--- Forum: The Models Resource (https://www.vg-resource.com/forum-111.html)
+---- Forum: Ripping Help (https://www.vg-resource.com/forum-115.html)
+---- Thread: Simplistic Extraction Script? (/thread-26980.html)



Simplistic Extraction Script? - Carpaccio - 04-10-2015

Here's a little problem. There's 3DS-types clearly visible in a hex scanning of the attached file. I was wondering if there was a simple way to just have something run through and spit out the contained files so they can be easily readable? The contained files are not compressed even, just archived in these bigger ones.

Dropbox Link


RE: Simplistic Extraction Script? - TGE - 04-10-2015

QuickBMS script
Code:
endian little
GoTo 0 0 ;
SavePos found 0 ;
Get QT ASIZE 0 ;


For T = 0 < QT ;
GoTo found 0 ;
findloc OFFSET string "\x43\x47\x46\x58" 0 0 ;
If OFFSET = 0 ;
Math t = QT ;
Math twotest = 1 ;
Math twotesttwo = 1 ;
EndIF ;
If OFFSET != 0 ;
GoTo OFFSET 0 ;
Math FILE = OFFSET ;
GoTo FILE 0 ;
Get null Long 0 ;
Get null Long 0 ;
Get null Long 0 ;
Get size Long 0 ;
SavePos found 0 ;
Get name FILENAME 0 ;
string name += . ;
string name += T ;
string name += .cgfx ;
Log name FILE size 0 ;
EndIF ;
Next T ;