Mobile Game Archive Extraction Request

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
offering7866
Posts: 52
Joined: Sat Feb 25, 2017 4:13 am

Mobile Game Archive Extraction Request

Post by offering7866 »

Greetings everyone, I need some help in acquiring assets (images, voice clips, visual effects) from this particular mobile game I own, but I have no clue how to read the files after converting the whole data into a .tar file and decompressed it. If possible, could someone please analyze them for me and provide some tips on how to extract the assets within them? Here's a small portion of the files I was talking about: https://www.mediafire.com/?0y7y9t3gkrw7w3q
wolftatoo
Posts: 49
Joined: Mon Nov 07, 2016 5:49 am

Re: Mobile Game Archive Extraction Request

Post by wolftatoo »

Just give the game's real name, ans screen shot the assets
godskin
Posts: 192
Joined: Sun Oct 04, 2015 2:27 am

Re: Mobile Game Archive Extraction Request

Post by godskin »

stupid help
no games name
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Mobile Game Archive Extraction Request

Post by Acewell »

zlib compressed blocks, you can use offzip :D

Code: Select all

offzip -a -1 yourfilename c:\offzip\extracted
offering7866
Posts: 52
Joined: Sat Feb 25, 2017 4:13 am

Re: Mobile Game Archive Extraction Request

Post by offering7866 »

Acewell wrote:zlib compressed blocks, you can use offzip :D

Code: Select all

offzip -a -1 yourfilename c:\offzip\extracted

Thank you very much, Acewell! You've been a great help, but now I have a different problem: some of the files I decompressed with Offzip are in GT1 format. GT1 is a common format for Koei-made titles, though this particular type came from a mobile game. I tried using Chrrox's script to convert them into DDS, but no luck so far. What program or method would you recommend to change GT1 files into something viewable?
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Mobile Game Archive Extraction Request

Post by Acewell »

yeah i can modify an existing python script to open those texture archives, but i need to give it a name,
so what is the name of the game these samples came from? :)

also i noticed some files had truncated data so the offzip command needs to be adjusted for the smaller compressed blocks

Code: Select all

offzip -a -1 -m 8 yourfilename C:\offzip\extracted


i think a bms script here would be better though, i've been looking at the structure a little better and will probably try making one.
offering7866
Posts: 52
Joined: Sat Feb 25, 2017 4:13 am

Re: Mobile Game Archive Extraction Request

Post by offering7866 »

The game is called Shin Sangoku Musou Blast, a defunct mobile spin-off title of the Dynasty Warriors series. I kept the data after the game's service had ended years ago just so I can take a look at the assets. Once again, I thank you for your valuable assistance. If you need more files to examine, please let me know so I can upload them for you.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Mobile Game Archive Extraction Request

Post by Acewell »

here is first draft of modified script :D
tex_ShinSangokuMusouBlast_g1t.zip

give it a try and let me know how it goes, i tested only a few files.
it will likely need to be modified even more. :)

it looks like only the files where the name begins with "c" are compressed.
a lot of the ones with "n" that i saw are uncompressed ogg files.
offering7866
Posts: 52
Joined: Sat Feb 25, 2017 4:13 am

Re: Mobile Game Archive Extraction Request

Post by offering7866 »

I tested your script in Noesis and it's actually working! Mind you, I'm still trying to figure out how to convert multiple files with Offzip, so it may take a while for me to see if the script has some limitations. I'll be sure to let you know if I come across any problems.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Mobile Game Archive Extraction Request

Post by Acewell »

ok try this bms script on the files beginning with "c" :)

Code: Select all

#Script for Quickbms http://aluigi.altervista.org/quickbms.htm

comtype zlib_noerror
get NAME basename
string NAME + .g1t
get FILES long
get TOTAL_SIZE long
xmath HEADER_SIZE "(FILES * 4) + 8"
goto HEADER_SIZE
for i = 0 < FILES
   do
      get CHECK byte
   while CHECK == 0
   goto -1 0 SEEK_CUR
   get ZSIZE long
   savepos OFFSET
   append
   clog NAME OFFSET ZSIZE ZSIZE
   append
   math OFFSET + ZSIZE
   goto OFFSET
next i
Last edited by Acewell on Wed Jul 19, 2017 4:45 pm, edited 1 time in total.
offering7866
Posts: 52
Joined: Sat Feb 25, 2017 4:13 am

Re: Mobile Game Archive Extraction Request

Post by offering7866 »

Thank you for the script, Acewell! It's made converting the files much less of a chore. I don't know how I can thank you for doing all this...

If it's not too much to ask, could you also examine this file type I took from another mobile game? I know I'm probably relying on you too much, but I just can't help myself since no one else has responded.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Mobile Game Archive Extraction Request

Post by Acewell »

i've looked at those before and the results were inconclusive, i look at most every texture or model sample and
more recently some archive samples, i just don't post unless i have something to contribute to the thread. :)
those samples might be compressed/encrypted or in a mobile format with custom header, don't know.