To help people:
1) download the programs:
offzip,
quickbms,
zlibc
2) use the scripts in the ms-dos or make a bat file:
decompress:
offzip.exe bot.vromfs.bin bot.vromfs.bin.dec 0x10
unpack:
quickbms script.bms bot.vromfs.bin.dec bot.vromfs
pack:
quickbms -w -r script.bms bot.vromfs.bin.dec bot.vromfs
compress:
zlibc -k bot.vromfs.bin.dec bot.vromfs.bin.cmp
3) save the code below into a file called "script.bms" and put in the same folder of quickbms
Code: Select all
goto 0x8
get BASE_OFF long
get FILES long
for i = 0 < FILES
get NAMEOFF long
savepos OFF
goto NAMEOFF
get NAME string
goto BASE_OFF
get OFFSET long
get SIZE long
savepos BASE_OFF
log NAME OFFSET SIZE
goto OFF
next i
4) Use the attached file to make the header with command line:
header:
bot_header bot.vromfs.bin.cmp
Or with a hex editor you have to copy the signature of the binary file and the size back to bot.vromfs.bin.cmp:
a) save the file size of the bot.vromfs.bin.cmp in hex
b) opens the file bot.vromfs.bin and copy the first 16 bytes
c) insert these bytes in the file bot.vromfs.bin.cmp and override the size that you saved at position 0xC:
size of bot.vromfs.bin.cmp 1970886 -> in hex 1E12C6 -> write back C6121E00
5) rename bot.vromfs.bin.cmp -> bot.vromfs.bin and replace it in the game folder
Note: For bat file:
a_unpack.bat
Code: Select all
offzip.exe bot.vromfs.bin bot.vromfs.bin.dec 0x10
quickbms script.bms bot.vromfs.bin.dec bot.vromfs
b_pack.bat
Code: Select all
quickbms -w -r script.bms bot.vromfs.bin.dec bot.vromfs
zlibc -k bot.vromfs.bin.dec bot.vromfs.bin.cmp
bot_header bot.vromfs.bin.cmp
You do not have the required permissions to view the files attached to this post.