Page 1 of 1

Browser game "Mesolithic" .sau

Posted: Mon Feb 04, 2019 1:48 pm
by SoldierTODD
Help, please, unpack graphic files from the browser game "Mesolithic".

Wolf walk animation
walk.rar

Re: Browser game "Mesolithic" .sau

Posted: Tue Feb 05, 2019 5:26 am
by Acewell
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: Select all

# 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: Select all

# 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

Re: Browser game "Mesolithic" .sau

Posted: Tue Feb 05, 2019 12:46 pm
by SoldierTODD
This code does not work for me:

Code: Select all

# 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.

Re: Browser game "Mesolithic" .sau

Posted: Wed Feb 06, 2019 4:14 am
by Acewell
SoldierTODD wrote:This code does not work for me...
sorry, fixed! :D
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. :]

Re: Browser game "Mesolithic" .sau

Posted: Wed Feb 06, 2019 9:48 pm
by SoldierTODD
Acewell, help, please, disassemble. [roll]
viewtopic.php?p=136422#p136422

Re: Browser game "Mesolithic" .sau

Posted: Thu Feb 07, 2019 1:00 pm
by SoldierTODD
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.

Re: Browser game "Mesolithic" .sau

Posted: Thu Feb 07, 2019 8:25 pm
by Acewell
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.

Re: Browser game "Mesolithic" .sau

Posted: Thu Feb 07, 2019 9:22 pm
by SoldierTODD
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

Re: Browser game "Mesolithic" .sau

Posted: Fri Feb 08, 2019 12:39 am
by Acewell
SoldierTODD wrote:The first bms script unpacks everything...
yes, it was a single compressed container. :]
.... 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. (:

Re: Browser game "Mesolithic" .sau

Posted: Fri Feb 08, 2019 12:58 pm
by SoldierTODD
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.
O_SS_ArcticFuture_Hub1_0[1].rar

Re: Browser game "Mesolithic" .sau

Posted: Fri Feb 08, 2019 9:29 pm
by Acewell
SoldierTODD wrote:Please try to unpack this file (.atf) from the Forge of Empires game.
O_SS_ArcticFuture_Hub1_0[1].rar
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.

Re: Browser game "Mesolithic" .sau

Posted: Sun Feb 10, 2019 11:29 pm
by SoldierTODD
Acewell, sorry again. Can I unzip the ".bin" file?

Re: Browser game "Mesolithic" .sau

Posted: Mon Feb 11, 2019 12:05 am
by Acewell
what bin file are you asking about? :D

Re: Browser game "Mesolithic" .sau

Posted: Mon Feb 11, 2019 11:39 am
by SoldierTODD
Acewell wrote:what bin file are you asking about? :D
data.rar

Re: Browser game "Mesolithic" .sau

Posted: Mon Feb 11, 2019 10:09 pm
by Acewell
i don't see anything in it. :]