Astonia 3 (PC)
Astonia 3 (PC)
Hello. Can anyone work on the following?
Astonia 3
http://www.astonia.com/
Free 30-day trial, no CC info needed
File with info attached as astonia.zip
Astonia 3
http://www.astonia.com/
Free 30-day trial, no CC info needed
File with info attached as astonia.zip
You do not have the required permissions to view the files attached to this post.
- Mr.Mouse
- Site Admin
- Posts: 4051
- Joined: Wed Jan 15, 2003 6:45 pm
- Location: Dungeons of Doom
- Has thanked: 421 times
- Been thanked: 575 times
- Contact:
Nope, they are not. The files are indeed Zlib compressed and you can decompress them.
Use this MexScript :
The problem is that there is no "uncompressed size" variable saved in the pak file. There is some kind of counter that starts at 10000, this may also refer to the 0010000.pak . Anyway, I gave a max decompression size of 1000000. There are no file names in there, but the files will be extracted as fileXXXXX.dec.
You can copy the script to a text file and then run that as MexScript on a PAK file of your choice. Or, get the attached txt file.
Use this MexScript :
Code: Select all
# Astonia *.PAK file MexScript
# By Mr.Mouse
# Files are ZLib compressed
# But no UCSize is saved in here!
# So, I set the max UCSize to 100000
ComType ZLib1 ;
Get Date Long 0 ;
Get FileNum Long 0 ;
For T = 1 To FileNum ;
Get Offset Long 0 ;
Get CSize Long 0 ;
Get UCSize Long 0 ;
Get CType Long 0;
Math Offset += 8 ;
Set FN String ".dec" ;
Set FP String "file" ;
String FP += UCSize ;
String FP += FN ;
Set UCSize Long 1000000 ;
CLog FP Offset CSize 0 0 UCSize 0 ;
Next T ;
You can copy the script to a text file and then run that as MexScript on a PAK file of your choice. Or, get the attached txt file.
You do not have the required permissions to view the files attached to this post.
-
WaynesWorld
- ultra-n00b
- Posts: 3
- Joined: Mon Nov 03, 2008 3:34 pm
Re: Astonia 3 (PC)
Okay - I'm trying to get to the graphics in Astonia 3 - I've got the MexScript below detecting and extacting individual files from the original .pak files, however, the resulting files are worthless. The files themselves when you look at them in a hex editor are not anything useful that I can determine.
So - my questions are:
1) What am I doing wrong that is creating files that are not .bmp files (this game shows everything as a .bmp file in version 2 so I'm assuming that true on version 3 as it appears to be built the same way by the same solo programmer...) The files don't open in any graphical editor (photoshop, paint, gimp, etc).
2) Did the script file have it wrong?
Waynesworld
So - my questions are:
1) What am I doing wrong that is creating files that are not .bmp files (this game shows everything as a .bmp file in version 2 so I'm assuming that true on version 3 as it appears to be built the same way by the same solo programmer...) The files don't open in any graphical editor (photoshop, paint, gimp, etc).
2) Did the script file have it wrong?
Waynesworld
-
WaynesWorld
- ultra-n00b
- Posts: 3
- Joined: Mon Nov 03, 2008 3:34 pm
Re: Astonia 3 (PC)
You can download the source and the MexScript from here:
Source File: http://66.28.242.115/00216000.pak
MexScript: http://66.28.242.115/pak.txt
BTW: Hexediting revealed on the main game executable that the graphics are .png - not .bmp after all.
Thx!
Source File: http://66.28.242.115/00216000.pak
MexScript: http://66.28.242.115/pak.txt
BTW: Hexediting revealed on the main game executable that the graphics are .png - not .bmp after all.
Thx!
- asmxtx
- veteran
- Posts: 127
- Joined: Sun Jun 08, 2008 10:32 pm
- Location: Developers Country
- Has thanked: 1 time
- Been thanked: 30 times
Re: Astonia 3 (PC)
That's not correct. There are gaps between the compressed ZLIB-blocks. The decompressed size is located there.Mr.Mouse wrote:The problem is that there is no "uncompressed size" variable saved in the pak file.
- Mr.Mouse
- Site Admin
- Posts: 4051
- Joined: Wed Jan 15, 2003 6:45 pm
- Location: Dungeons of Doom
- Has thanked: 421 times
- Been thanked: 575 times
- Contact:
Re: Astonia 3 (PC)
Code: Select all
# Astonia *.PAK file MexScript
# By Mr.Mouse
# Files are ZLib compressed
ComType ZLib1 ;
Get Date Long 0 ;
Get FileNum Long 0 ;
For T = 1 To FileNum ;
Get Offset Long 0 ;
Get CSize Long 0 ;
Get UCSize Long 0 ;
Get CType Long 0;
SavePos CP 0 ;
GoTo Offset 0 ;
Get CSize Long 0 ;
Get UCSize Long 0 ;
SavePos Offset 0 ;
Set FN String ".dec" ;
Set FP String "file" ;
String FP += UCSize ;
String FP += T ;
String FP += FN ;
CLog FP Offset CSize 0 0 UCSize 0 ;
GoTo CP 0 ;
Next T ;
See below for examples.
You do not have the required permissions to view the files attached to this post.
-
WaynesWorld
- ultra-n00b
- Posts: 3
- Joined: Mon Nov 03, 2008 3:34 pm


