twelvesky 2 new_sobject

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
raykingnihong
Posts: 71
Joined: Fri Oct 24, 2014 3:13 pm

twelvesky 2 new_sobject

Post by raykingnihong »

Hi guys,
A very old game, but recently updated sObject file, the old script has not work, here is a sample of the old and the new file https://onedrive.live.com/redir?resid=6 ... =file%2c7z

Here is fatduck old script

dword numResource
struct RES
{
<compressed model data>
<compressed Texture data>
}


Code:

# Game: TwelveSky & TwelveSky 2 (PC)
# by fatduck Jul2011
# script for QuickBMS http://aluigi.org/papers.htm#quickbms

get PRENAME basename
get NUMRES long
savepos OFS_RES
for i = 1 to NUMRES
goto OFS_RES
get FLAG1 long
get USIZE long
if FLAG1 != 1
math FLAG1 -= USIZE
math FLAG1 *= -1
else
math FLAG1 -= 1
endif
get CSIZE long
savepos OFS_RES
set RESNAME PRENAME
string RESNAME += _
if i < 10
string RESNAME += "0"
endif
string RESNAME += i
string RESNAME += .mdl
if USIZE > 0
clog RESNAME OFS_RES CSIZE USIZE
endif
math OFS_RES += CSIZE
math OFS_RES += FLAG1

goto OFS_RES
get FLAG1 long
get USIZE long
if FLAG1 != 1
math FLAG1 -= USIZE
math FLAG1 *= -1
else
math FLAG1 -= 1
endif
get CSIZE long
savepos OFS_RES
set RESNAME PRENAME
string RESNAME += _
if i < 10
string RESNAME += "0"
endif
string RESNAME += i
string RESNAME += .dds
if USIZE > 0
clog RESNAME OFS_RES CSIZE USIZE
endif
math OFS_RES += CSIZE
math OFS_RES += FLAG1
next i
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: twelvesky 2 new_sobject

Post by aluigi »

The new files you provided have just one resource in them so it's impossible to understand the meaning of some bytes.
In my opinion the easiest way to dump their content is using just offzip because some files are dds (recognized by offzip) and the others are models.
raykingnihong
Posts: 71
Joined: Fri Oct 24, 2014 3:13 pm

Re: twelvesky 2 new_sobject

Post by raykingnihong »

Hi aluigi , My friend, thank you very much for your help, here is the link to download the game http://12sky2.hungames.net/Download/Index
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: twelvesky 2 new_sobject

Post by aluigi »

I prefer the single files intead of downloading a whole game :)

But why don't you like the offzip idea?
offzip -a INPUT_FILE OUTPUT_FOLDER 0
raykingnihong
Posts: 71
Joined: Fri Oct 24, 2014 3:13 pm

Re: twelvesky 2 new_sobject

Post by raykingnihong »

Hi aluigi , My friends, thank you very much for your help, I very like the offzip method, I give the game connect, to make more friends to download this game, thanks for your great work