Help, please, unpack graphic files from the browser game "Mesolithic".
Wolf walk animation
Important information: this site is currently scheduled to go offline indefinitely by end of the year.
Browser game "Mesolithic" .sau
- SoldierTODD
- beginner
- Posts: 35
- Joined: Fri Oct 24, 2014 10:15 pm
- Has thanked: 7 times
Browser game "Mesolithic" .sau
You do not have the required permissions to view the files attached to this post.
-
- VIP member
- Posts: 1330
- Joined: Wed Nov 05, 2008 12:16 pm
- Has thanked: 2710 times
- Been thanked: 884 times
Re: Browser game "Mesolithic" .sau
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.
this bms script will extract the data as is:
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
sprite sheet with another zlib compressed section and table at the end of the file.
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
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
Last edited by Acewell on Wed Feb 06, 2019 4:07 am, edited 1 time in total.
- SoldierTODD
- beginner
- Posts: 35
- Joined: Fri Oct 24, 2014 10:15 pm
- Has thanked: 7 times
Re: Browser game "Mesolithic" .sau
This code does not work for me:
Only the second code works.
Sorry, is it possible to unpack in .png format with a transparent background?
For example, like this:
P.S. Sorry for my English, I use a translator.
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
Sorry, is it possible to unpack in .png format with a transparent background?
For example, like this:
P.S. Sorry for my English, I use a translator.
-
- VIP member
- Posts: 1330
- Joined: Wed Nov 05, 2008 12:16 pm
- Has thanked: 2710 times
- Been thanked: 884 times
Re: Browser game "Mesolithic" .sau
sorry, fixed!SoldierTODD wrote:This code does not work for me...
like i already mentioned there is recursive compression in the file,Sorry, is it possible to unpack in .png format with a transparent background?
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.
- SoldierTODD
- beginner
- Posts: 35
- Joined: Fri Oct 24, 2014 10:15 pm
- Has thanked: 7 times
Re: Browser game "Mesolithic" .sau
Acewell, help, please, disassemble.
viewtopic.php?p=136422#p136422
viewtopic.php?p=136422#p136422
- SoldierTODD
- beginner
- Posts: 35
- Joined: Fri Oct 24, 2014 10:15 pm
- Has thanked: 7 times
Re: Browser game "Mesolithic" .sau
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?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.
Without these coordinates it will be very difficult to cut the sprite sheet.
-
- VIP member
- Posts: 1330
- Joined: Wed Nov 05, 2008 12:16 pm
- Has thanked: 2710 times
- Been thanked: 884 times
Re: Browser game "Mesolithic" .sau
the first bms script unpacks the whole sau file, there is no text file only a binary table at the end.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.
i don't know, looks compressed to me.SoldierTODD wrote:Acewell, help, please, disassemble.
viewtopic.php?p=136422#p136422
- SoldierTODD
- beginner
- Posts: 35
- Joined: Fri Oct 24, 2014 10:15 pm
- Has thanked: 7 times
Re: Browser game "Mesolithic" .sau
The first bms script unpacks everything in ".dat" format.Acewell wrote:the first bms script unpacks the whole sau file, there is no text file only a binary table at the end.
-
- VIP member
- Posts: 1330
- Joined: Wed Nov 05, 2008 12:16 pm
- Has thanked: 2710 times
- Been thanked: 884 times
Re: Browser game "Mesolithic" .sau
yes, it was a single compressed container.SoldierTODD wrote:The first bms script unpacks everything...
dat is just a meaningless extension, or would you rather windows see it as "file"..... in ".dat" format.
i have nothing more to add here, maybe someone else can do better.
- SoldierTODD
- beginner
- Posts: 35
- Joined: Fri Oct 24, 2014 10:15 pm
- Has thanked: 7 times
Re: Browser game "Mesolithic" .sau
Thank. I just clarified, because the first time I did not understand you much.Acewell wrote:yes, it was a single compressed container.
dat is just a meaningless extension, or would you rather windows see it as "file".
i have nothing more to add here, maybe someone else can do better.
Acewell, I'm sorry, I have another request for you. Please try to unpack this file (.atf) from the Forge of Empires game.
You do not have the required permissions to view the files attached to this post.
-
- VIP member
- Posts: 1330
- Joined: Wed Nov 05, 2008 12:16 pm
- Has thanked: 2710 times
- Been thanked: 884 times
Re: Browser game "Mesolithic" .sau
1024x1024 dxt5SoldierTODD wrote:Please try to unpack this file (.atf) from the Forge of Empires game.
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?)
i need more samples to make a script.
- SoldierTODD
- beginner
- Posts: 35
- Joined: Fri Oct 24, 2014 10:15 pm
- Has thanked: 7 times
-
- VIP member
- Posts: 1330
- Joined: Wed Nov 05, 2008 12:16 pm
- Has thanked: 2710 times
- Been thanked: 884 times
- SoldierTODD
- beginner
- Posts: 35
- Joined: Fri Oct 24, 2014 10:15 pm
- Has thanked: 7 times
Re: Browser game "Mesolithic" .sau
Acewell wrote:what bin file are you asking about?
You do not have the required permissions to view the files attached to this post.
-
- VIP member
- Posts: 1330
- Joined: Wed Nov 05, 2008 12:16 pm
- Has thanked: 2710 times
- Been thanked: 884 times