ANM File Format - Just scroll down a lil
SGS.DAT Compression - Near the bottom
MAP Editing - Nearer the bottom
just to let you guys know
I've been working on the ANM file format since the last stone age (since 2 days ago)
also been trying to hack the DecSognaANM.GHP plugin, its just like a DLL file
to skip the "not supported" messge, and go ahead and uncompress a broken ANM file.
This is what i've found out about the ANM file so far
There is a color palette at the beginning , starting at offset 001E
thats shared across all the images stored within the ANM file
it goes Black,White, Blue(alpha), than darkest color to the brightest color
(http://viperrsr-project.com/sitefiles/1000/ANM-ColorPalette.jpg)
then right after that, is the Frame Count
if the image has an offset it will be listed right before the image pixel size
and right after that seems to be the image data, and is compressed
the header seems to be different for static images, and smaller offset images
The header of the data image is ALWAYS [OffsetX&Y, PixelSizeX&Y, ImageData]
UPDATED!!
(http://viperrsr-project.com/sitefiles/1000/ANM2.jpg)
you cant change the frame count, image pixel size, and any of the compressed stuff, it will give you an error and just crashes the SGS
you can only edit the the Color Palette and Offset
Here's a simple replacing of some of the colors
(http://viperrsr-project.com/sitefiles/1000/screenshot.jpg)
just need to figure out the Compression Algorithm,
to uncompress them, so we can edit the images(frames) and compress them back
::SGS Archive Compression::
Right now I'm working on the Sogna's Compression algorithm, which seems easy enough
it's doesn't seem that complex, it seems it uses sorta of a dictionary compression, not RLE
it stores a pattern and repeats it, what ever part of it is needed(starting from the beginning of the pattern) it seems
it can also start from the middle of the stored pattern
If you look at this test SGS archive, It only contains 1 file, a renamed BW.ANM (which is a two frame animation, Black and White)
(http://img220.imageshack.us/img220/5273/sgscompressionmethodamy0.th.gif) (http://img220.imageshack.us/img220/5273/sgscompressionmethodamy0.gif)
been mapping out some of the patterns I've seen within this archive
Rundown of the color meanings:
Darkblue: SGS Archive Header
Green: Must be filled by a 00
Yellow: Acutal data
LightBlue: F0, F1, F2..etc pattern, not sure
Red: FF Marker, not sure, but it seems to repeat every 11h bytes or 17 bytes
when extracted these were the results (from the above SGS archive)
(http://img228.imageshack.us/img228/7137/results001xc7.th.gif) (http://img228.imageshack.us/img228/7137/results001xc7.gif)
(http://img217.imageshack.us/img217/7977/results002wl3.th.gif) (http://img217.imageshack.us/img217/7977/results002wl3.gif)
Disclaimer: These notes may be wrong,
UPDATE:
These notes were abit off, so look on page 2 of this thread, you'll see an updated version