Powerful QuickBMS
My friend ask me to make a tool to convert a web3D models back to obj.
All the informations had been given. They are base64 + zlib compression.
Actually you can use a lot of tools to decode base64(IE) and decompress(offzip) them.
But a tool to convert it one the fly will be handy.
Thanks to QuickBMS, it support both base64 and zlib.
And I only spend ten, fifteen minutes to finished it.
# Idolmaster 3D site
# by Fatduck Dec 2016
# script for QuickBMS http://quickbms.aluigi.org
idstring "/* DON'T LOOK AT THIS */"
get NAME basename
string NAME += .obj
do
get STBYTE byte
while STBYTE != 0x22
savepos OFS
goto -5
do
savepos SIZE
get STBYTE byte
while STBYTE != 0x22
math SIZE -= OFS
comtype base64
clog MEMORY_FILE OFS SIZE SIZE
get SIZE asize MEMORY_FILE
comtype UNZIP_DYNAMIC
clog NAME 0 SIZE SIZE MEMORY_FILE