ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Mon Jan 22, 2018 10:32 am

All times are UTC




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: Mon Jan 08, 2018 6:03 am 
User avatar

Joined: Fri Aug 08, 2014 1:06 am
Posts: 397
made a bms script for fun to try mimic the Gmad extractor program. :D
the script will decompress and extract the files from gma on the fly, only tested on a couple so far. :)
Code:
# script for QuickBMS http://aluigi.altervista.org/quickbms.htm

//Decompression
comtype lzma_dynamic
get ZSIZE asize
get FOLDER basename
clog memory_file 0 ZSIZE ZSIZE

//Extraction
idstring "GMAD" -1
get FORMAT_VER byte -1
get STEAMID longlong -1
get TIMESTAMP longlong -1
get ZERO byte -1
getct ARC_NAME string 0x00 -1
getct DESCRIPTION string 0x00 -1
getct AUTHOR string 0x00 -1
get ADDON_VER long -1
for i
   get IDX long -1
   if IDX == 0
      break
   endif
   get NAME string -1
   get SIZE long -1
   get ZERO long -1
   get CRC_ long -1
   putarray 1 i NAME
   putarray 2 i SIZE
next i
savepos OFFSET -1
math FILES = i
for j = 0 < FILES
   getarray NAME 1 j
   getarray SIZE 2 j
   string NAME p "%s\%s" FOLDER NAME
   log NAME OFFSET SIZE -1
   math OFFSET + SIZE
   goto OFFSET -1
next j

_________________
Quickbms.com link thread
Search bms scripts


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 1 post ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited