XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Sat Feb 16, 2019 12:49 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: Browser game "Mesolithic" .sau
PostPosted: Mon Feb 04, 2019 1:48 pm 
Offline
beginner
User avatar

Joined: Fri Oct 24, 2014 10:15 pm
Posts: 31
Has thanked: 6 times
Have thanks: 0 time
Help, please, unpack graphic files from the browser game "Mesolithic".

Wolf walk animation


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: Browser game "Mesolithic" .sau
PostPosted: Tue Feb 05, 2019 5:26 am 
Offline
VIP member
VIP member
User avatar

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 1181
Has thanked: 2335 times
Have thanks: 686 times
there is zlib compressed data in there, extracted there is 708x708 jpg image
sprite sheet with another zlib compressed section and table at the end of the file. :D
this bms script will extract the data as is:
Code:
# script for QuickBMS http://aluigi.altervista.org/quickbms.htm

comtype zlib_noerror
get ZSIZE asize
math ZSIZE - 8
get NAME basename
string NAME + .dat
clog NAME 0x8 ZSIZE ZSIZE

the other zlib compressed section when decompressed contains the 708x708 8bit alpha mask for the jpg image.

and this bms script will get you just the jpeg image
Code:
# script for QuickBMS http://aluigi.altervista.org/quickbms.htm

comtype zlib_noerror
get ZSIZE asize
math ZSIZE - 8
get NAME basename
string NAME + .jpg
clog memory_file 0x8 ZSIZE ZSIZE
goto 0x20 -1
get SIZE long -1
savepos OFFSET -1
log NAME OFFSET SIZE -1

_________________
Noesis
Hex2obj
QuickBMS
Asset Studio
TextureFinder


Last edited by Acewell on Wed Feb 06, 2019 4:07 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Browser game "Mesolithic" .sau
PostPosted: Tue Feb 05, 2019 12:46 pm 
Offline
beginner
User avatar

Joined: Fri Oct 24, 2014 10:15 pm
Posts: 31
Has thanked: 6 times
Have thanks: 0 time
This code does not work for me:
Code:
# script for QuickBMS http://aluigi.altervista.org/quickbms.htm

get SIZE asize
math SIZE - 8
get NAME basename
string NAME + .dat
clog NAME 0x8 SIZE

Only the second code works.
Image

Sorry, is it possible to unpack in .png format with a transparent background?
For example, like this:
Image

P.S. Sorry for my English, I use a translator.


Top
 Profile  
 
 Post subject: Re: Browser game "Mesolithic" .sau
PostPosted: Wed Feb 06, 2019 4:14 am 
Offline
VIP member
VIP member
User avatar

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 1181
Has thanked: 2335 times
Have thanks: 686 times
SoldierTODD wrote:
This code does not work for me...

sorry, fixed! :D

Quote:
Sorry, is it possible to unpack in .png format with a transparent background?

like i already mentioned there is recursive compression in the file,
after you decompress the sau there is another compressed section in the
decompressed sau, this compressed section is the 8bit alpha mask you seek.
when you extract that it has no header, and it has to be combined with color
image by hand unless someone gets crafty with a new script. :]

_________________
Noesis
Hex2obj
QuickBMS
Asset Studio
TextureFinder


Top
 Profile  
 
 Post subject: Re: Browser game "Mesolithic" .sau
PostPosted: Wed Feb 06, 2019 9:48 pm 
Offline
beginner
User avatar

Joined: Fri Oct 24, 2014 10:15 pm
Posts: 31
Has thanked: 6 times
Have thanks: 0 time
Acewell, help, please, disassemble. [roll]
viewtopic.php?p=136422#p136422


Top
 Profile  
 
 Post subject: Re: Browser game "Mesolithic" .sau
PostPosted: Thu Feb 07, 2019 1:00 pm 
Offline
beginner
User avatar

Joined: Fri Oct 24, 2014 10:15 pm
Posts: 31
Has thanked: 6 times
Have thanks: 0 time
Acewell wrote:
like i already mentioned there is recursive compression in the file,
after you decompress the sau there is another compressed section in the
decompressed sau, this compressed section is the 8bit alpha mask you seek.
when you extract that it has no header, and it has to be combined with color
image by hand unless someone gets crafty with a new script. :]

Acewell, sorry for bothering you. The ".sau" file must contain another file (in text form), which is responsible for the coordinates of the sprites. This file can be found and unpacked?
Without these coordinates it will be very difficult to cut the sprite sheet.


Top
 Profile  
 
 Post subject: Re: Browser game "Mesolithic" .sau
PostPosted: Thu Feb 07, 2019 8:25 pm 
Offline
VIP member
VIP member
User avatar

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 1181
Has thanked: 2335 times
Have thanks: 686 times
SoldierTODD wrote:
The ".sau" file must contain another file (in text form), which is responsible for the coordinates of the sprites. This file can be found and unpacked?
Without these coordinates it will be very difficult to cut the sprite sheet.

the first bms script unpacks the whole sau file, there is no text file only a binary table at the end.

SoldierTODD wrote:
Acewell, help, please, disassemble. [roll]
viewtopic.php?p=136422#p136422

i don't know, looks compressed to me.

_________________
Noesis
Hex2obj
QuickBMS
Asset Studio
TextureFinder


Top
 Profile  
 
 Post subject: Re: Browser game "Mesolithic" .sau
PostPosted: Thu Feb 07, 2019 9:22 pm 
Offline
beginner
User avatar

Joined: Fri Oct 24, 2014 10:15 pm
Posts: 31
Has thanked: 6 times
Have thanks: 0 time
Acewell wrote:
the first bms script unpacks the whole sau file, there is no text file only a binary table at the end.

The first bms script unpacks everything in ".dat" format.
Image


Top
 Profile  
 
 Post subject: Re: Browser game "Mesolithic" .sau
PostPosted: Fri Feb 08, 2019 12:39 am 
Offline
VIP member
VIP member
User avatar

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 1181
Has thanked: 2335 times
Have thanks: 686 times
SoldierTODD wrote:
The first bms script unpacks everything...

yes, it was a single compressed container. :]

Quote:
.... in ".dat" format.

dat is just a meaningless extension, or would you rather windows see it as "file". :D

i have nothing more to add here, maybe someone else can do better. (:

_________________
Noesis
Hex2obj
QuickBMS
Asset Studio
TextureFinder


Top
 Profile  
 
 Post subject: Re: Browser game "Mesolithic" .sau
PostPosted: Fri Feb 08, 2019 12:58 pm 
Offline
beginner
User avatar

Joined: Fri Oct 24, 2014 10:15 pm
Posts: 31
Has thanked: 6 times
Have thanks: 0 time
Acewell wrote:
yes, it was a single compressed container. :]

dat is just a meaningless extension, or would you rather windows see it as "file". :D

i have nothing more to add here, maybe someone else can do better. (:

Thank. I just clarified, because the first time I did not understand you much.


Acewell, I'm sorry, I have another request for you. Please try to unpack this file (.atf) from the Forge of Empires game.


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: Browser game "Mesolithic" .sau
PostPosted: Fri Feb 08, 2019 9:29 pm 
Offline
VIP member
VIP member
User avatar

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 1181
Has thanked: 2335 times
Have thanks: 686 times
SoldierTODD wrote:
Please try to unpack this file (.atf) from the Forge of Empires game.

1024x1024 dxt5

big-endian header
0x0 - 4 bytes - magic (ATF\x00)
0x4 - 2 bytes - unk
0x6 - 2 bytes - unk
0x8 - 4 bytes - file size minus 0xc
0xc - 1 byte - format(?) (0x5 = dxt5)
0xd - 1 byte - width (2 to the power of 0xa = 1024)
0xe - 1 byte - height (2 to the power of 0xa = 1024)
0xf - 1 byte - unk
0x10 - 4 bytes - image data size
0x14 - image data starts
0x100014 - 128 bytes - footer (padding?)
:D

i need more samples to make a script.

_________________
Noesis
Hex2obj
QuickBMS
Asset Studio
TextureFinder


Top
 Profile  
 
 Post subject: Re: Browser game "Mesolithic" .sau
PostPosted: Sun Feb 10, 2019 11:29 pm 
Offline
beginner
User avatar

Joined: Fri Oct 24, 2014 10:15 pm
Posts: 31
Has thanked: 6 times
Have thanks: 0 time
Acewell, sorry again. Can I unzip the ".bin" file?


Top
 Profile  
 
 Post subject: Re: Browser game "Mesolithic" .sau
PostPosted: Mon Feb 11, 2019 12:05 am 
Offline
VIP member
VIP member
User avatar

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 1181
Has thanked: 2335 times
Have thanks: 686 times
what bin file are you asking about? :D

_________________
Noesis
Hex2obj
QuickBMS
Asset Studio
TextureFinder


Top
 Profile  
 
 Post subject: Re: Browser game "Mesolithic" .sau
PostPosted: Mon Feb 11, 2019 11:39 am 
Offline
beginner
User avatar

Joined: Fri Oct 24, 2014 10:15 pm
Posts: 31
Has thanked: 6 times
Have thanks: 0 time
Acewell wrote:
what bin file are you asking about? :D



Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: Browser game "Mesolithic" .sau
PostPosted: Mon Feb 11, 2019 10:09 pm 
Offline
VIP member
VIP member
User avatar

Joined: Wed Nov 05, 2008 12:16 pm
Posts: 1181
Has thanked: 2335 times
Have thanks: 686 times
i don't see anything in it. :]

_________________
Noesis
Hex2obj
QuickBMS
Asset Studio
TextureFinder


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


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:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group