Author Topic: ANM Files, SGS.DAT Compression, and MAP Editing  (Read 43438 times)

黒い灯影

  • Mr. Monkey in the moon
  • Forum Administrator
  • Ambassador of VIPER Knowledge
  • *******
  • Posts: 626
  • Karma: +42/-1
  • Unleashing the monkey inside!!
    • Favorite Sogna Game:
      ・VIPER-RSR
    • Now Playing:
      ・Viper RSR
Re: ANM Files, SGS.DAT Compression, and MAP Editing
« Reply #20 on: December 05, 2007, 11:35:08 pm »
oh yeah, your right about the ANM files containing no timing or image sequence data, since all the timing and sequence and layering is done by the WIN scripts, yup, oh well, but your right it would cut down on alot of time

converting the blue to transparent should be an option thou,
since there are some times when blue is used for scripting,
if you look at the first frame from MENUD.ANM, those colors are meant for the scripting,
the same way the colors on the MAP**M.ANM files are meant for executing certain parts of the script
but it should default to make blue transparent
BlackShadow

JG

  • Karin-chan Fan
  • Website Administrator
  • Hardcore VIPER Otaku
  • ********
  • Posts: 3,497
  • Karma: +85/-4
  • 3000 posts of rediculousness and counting
    • Favorite Sogna Game:
      ・Gokuraku VIPER Paradice
    • Now Playing:
      ・Mario & Luigi: Brothership
    • Sogna Digital Museum
Re: ANM Files, SGS.DAT Compression, and MAP Editing
« Reply #21 on: December 08, 2007, 01:39:09 pm »
As promised...

Sogna ANM Editor 1.0.0 (28KB)

All the little bugs are fixed.  Successfully tested on over 2500 ANM files.

The following 5 files fail due to frames with widths not divisible by 4: V16 Imagine's Y39; CTR's ASB0; and F50's F501, F512, and F589
Going to need to do some more research on how the decoder should react in this case.

Please let me know if you run into errors  on other files (screenshots would be most beneficial to diagnosis)


I'll take the option of making transparent to non-blue under advisement.  Depends on how many people run into a problem using it the way it is.
« Last Edit: January 20, 2008, 07:59:26 pm by JG00 »

MMX

  • Hardcore VIPER Otaku
  • *****
  • Posts: 1,311
  • Karma: +25/-9
  • Bang the doll slowly.
Re: ANM Files, SGS.DAT Compression, and MAP Editing
« Reply #22 on: December 09, 2007, 03:01:49 pm »
I'm totally sweating JG's coding skillz right now.  What do you use again, C#?

JG

  • Karin-chan Fan
  • Website Administrator
  • Hardcore VIPER Otaku
  • ********
  • Posts: 3,497
  • Karma: +85/-4
  • 3000 posts of rediculousness and counting
    • Favorite Sogna Game:
      ・Gokuraku VIPER Paradice
    • Now Playing:
      ・Mario & Luigi: Brothership
    • Sogna Digital Museum
Re: ANM Files, SGS.DAT Compression, and MAP Editing
« Reply #23 on: December 09, 2007, 08:46:53 pm »
What do you use again, C#?

VB.Net.  Practically the same thing.

Echelon

  • Serious VIPER Fanatic
  • ***
  • Posts: 308
  • Karma: +7/-0
    • Favorite Sogna Game:
      ・VIPER-RSR
Re: ANM Files, SGS.DAT Compression, and MAP Editing
« Reply #24 on: December 11, 2007, 09:09:49 am »
So, anyone messed with this yet?

JG

  • Karin-chan Fan
  • Website Administrator
  • Hardcore VIPER Otaku
  • ********
  • Posts: 3,497
  • Karma: +85/-4
  • 3000 posts of rediculousness and counting
    • Favorite Sogna Game:
      ・Gokuraku VIPER Paradice
    • Now Playing:
      ・Mario & Luigi: Brothership
    • Sogna Digital Museum
Re: ANM Files, SGS.DAT Compression, and MAP Editing
« Reply #25 on: December 11, 2007, 10:31:27 pm »
Apparently just 黒い灯影 and me.

I'm waiting for someone to drop another "where can i find animated gifs for fill-in-the-blank-VIPER-game?" post so I can direct them here.

bfg00

  • Fleet Admiral
  • Hardcore VIPER Otaku
  • *****
  • Posts: 1,280
  • Karma: +27/-0
Re: ANM Files, SGS.DAT Compression, and MAP Editing
« Reply #26 on: December 12, 2007, 10:58:21 pm »
Looks like it.  My hat's off to the two of you for throwing it together, nice job.

Echelon

  • Serious VIPER Fanatic
  • ***
  • Posts: 308
  • Karma: +7/-0
    • Favorite Sogna Game:
      ・VIPER-RSR
Re: ANM Files, SGS.DAT Compression, and MAP Editing
« Reply #27 on: February 02, 2008, 05:31:56 am »
Any progress on this or anything?

JG

  • Karin-chan Fan
  • Website Administrator
  • Hardcore VIPER Otaku
  • ********
  • Posts: 3,497
  • Karma: +85/-4
  • 3000 posts of rediculousness and counting
    • Favorite Sogna Game:
      ・Gokuraku VIPER Paradice
    • Now Playing:
      ・Mario & Luigi: Brothership
    • Sogna Digital Museum
Re: ANM Files, SGS.DAT Compression, and MAP Editing
« Reply #28 on: February 02, 2008, 11:21:51 am »
I looked into the compression format on SGS.DAT, so I could try to make my app support compressed ANM files, too.  Since VIPER games have been around since Windows 3.1, I thought perhaps Sogna used something simple to implement, like the Microsoft Deflate algorithm since its built into the Windows API.*  Alas, they did not, so the compression format and decoding algorithm remains unknown.




* It's long since been known SGS does not use a Lempel-Ziv derivitive like gzip.

黒い灯影

  • Mr. Monkey in the moon
  • Forum Administrator
  • Ambassador of VIPER Knowledge
  • *******
  • Posts: 626
  • Karma: +42/-1
  • Unleashing the monkey inside!!
    • Favorite Sogna Game:
      ・VIPER-RSR
    • Now Playing:
      ・Viper RSR
Re: ANM Files, SGS.DAT Compression, and MAP Editing
« Reply #29 on: February 02, 2008, 12:33:20 pm »
I dont think it's a standard compression
Did you see my post above, concerning the Sogna's compression algorithm?
it uses a sort of callback, or repeat-n-of-lines-ago+length
http://img220.imageshack.us/img220/1776/sgscompressionmethodom1.gif
ANM Files, SGS.DAT Compression, and MAP Editing


if you dont understand it, i'll try to re-write the explanation again

also, i think those incompatible ANMs, i think it uses the last image (usually the background) as a base
one of CTR's incompatible ANMs was like that,
« Last Edit: February 02, 2008, 12:38:01 pm by 黒い灯影 »
BlackShadow

黒い灯影

  • Mr. Monkey in the moon
  • Forum Administrator
  • Ambassador of VIPER Knowledge
  • *******
  • Posts: 626
  • Karma: +42/-1
  • Unleashing the monkey inside!!
    • Favorite Sogna Game:
      ・VIPER-RSR
    • Now Playing:
      ・Viper RSR
Re: ANM Files, SGS.DAT Compression, and MAP Editing
« Reply #30 on: June 03, 2008, 11:31:11 pm »
Finally decided to change the menus into english..

http://img148.imageshack.us/img148/5587/startgameui3.jpg
ANM Files, SGS.DAT Compression, and MAP Editing


next thing i'll tackle are the fight menus
BlackShadow