Users browsing this thread: 1 Guest(s)
Extracting .brres from .bin?
#4
(06-03-2015, 05:46 PM)TGE Wrote:
Code:
#Extract (uncompressed) BRRES files from (uncompressed) files
#Made by TGE
endian big
GoTo 0 0 ;
SavePos found 0 ;
Get QT ASIZE 0 ;


For T = 0 < QT ;
GoTo found 0 ;
findloc OFFSET string "\x62\x72\x65\x73" 0 0 ;
If OFFSET = 0 ;
    Math t = QT ;
EndIF ;
If OFFSET != 0 ;
    GoTo OFFSET 0 ;
    Math FILE = OFFSET ;
    GoTo FILE 0 ;
    Get FileEndian Long 0 ;
    If FileEndian == string "\xFF\xFE\x00\x00" ;
        endian change
    EndIF ;
    Get null Long 0 ;
    Get size Long 0 ;
    If size > QT ;
        cleanexit
    EndIF ;
    SavePos found 0 ;
    Get name FILENAME 0 ;
    string name += _ ;
    string name += T ;
    string name += .brres ;
    Log name FILE size 0 ;
EndIF ;
Next T ;
You can use this QuickBMS script to dump the BRRES files
Thanks! I'll give it a try later.
Reply
Thanked by:


Messages In This Thread
Extracting .brres from .bin? - by Pokechao - 06-01-2015, 12:58 PM
RE: Extracting .brres from .bin? - by Cube X - 06-02-2015, 12:19 PM
RE: Extracting .brres from .bin? - by TGE - 06-03-2015, 05:46 PM
RE: Extracting .brres from .bin? - by Pokechao - 06-05-2015, 03:56 PM
RE: Extracting .brres from .bin? - by Farlavor - 06-14-2015, 01:34 AM

Forum Jump: