Sonic and Sega Retro Message Board: Sonic 3K Save Editor 0.6 - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
  • 2 Pages +
  • 1
  • 2
    Locked
    Locked Forum

Sonic 3K Save Editor 0.6 Last update: 25/September/2010

#1 User is offline Xeeynamo 

Posted 25 August 2010 - 10:05 AM

  • Posts: 16
  • Joined: 08-February 09
  • Gender:Male
  • Location:Italy
  • Project:XeEngine
Sonic and Knuckles Collection Save Editor. Nothing to say, just download and enjoy v.png

Download location of savegame editor and SaveGameS3k lib source code:
http://digitalwork.altervista.org/digitalw....php?page=s3kse

QUOTE
Changelog 0.6:
- Correct Sonic's ending icon on S3 when you have all emeralds
- Fix emerald counter on Sonic 3 savegame



Old video from 0.3 version

This post has been edited by Xeeynamo: 25 September 2010 - 05:09 AM

#2 User is offline Selbi 

Posted 25 August 2010 - 12:59 PM

  • Impaled with Extreme Prejudice
  • Posts: 1479
  • Joined: 12-May 08
  • Gender:Male
  • Location:Northern Germany
  • Project:Sonic ERaZor
  • Wiki edits:320
You can even select Blue Knuckles? Now this makes the whole thing a lot more interesting. I'm honestly looking forward to this. =)

#3 User is offline Namo 

Posted 25 August 2010 - 02:35 PM

  • take a screenshot of your heart
  • Posts: 2915
  • Joined: 02-August 09
  • Gender:Not Telling
Lookin' pretty spiff, there, Xeey. I haven't installed my Sonic and Knuckles PC copy in ages.

#4 User is offline Endri 

Posted 25 August 2010 - 10:09 PM

  • Officer I don't have my drivers license with me. Can I give you something else?
  • Posts: 1871
  • Joined: 18-November 08
  • Gender:Male
  • Location:São Paulo, Brazil
  • Wiki edits:7

wat?!

I've never seem that Flying Battery Zone icon. Also note that it shows when editing Sonic 3, and is remarked as ZONE 5. It is further evidence that Flying Baterry was indeed supposed to come after Carnival Night Zone and before Ice Cap Zone (and that the wicket at the end of Flying Battery Zone ACT 2 is what Sonic uses as a snowboard ).

#5 User is offline DigitalDuck 

Posted 25 August 2010 - 10:37 PM

  • Arriving four years late.
  • Posts: 4190
  • Joined: 23-June 08
  • Gender:Male
  • Location:Lincs, UK
  • Project:TurBoa, S1RL
QUOTE (Endri @ Aug 26 2010, 04:09 AM)

wat?!

I've never seem that Flying Battery Zone icon. Also note that it shows when editing Sonic 3, and is remarked as ZONE 5. It is further evidence that Flying Baterry was indeed supposed to come after Carnival Night Zone and before Ice Cap Zone (and that the wicket at the end of Flying Battery Zone ACT 2 is what Sonic uses as a snowboard ).


This has been known for a while. I still wish they'd done it that way, though. I think we've also had theories to suggest that Flying Battery Zone originally had a dark palette in Act 1, to comply with time progression. (I.e. MGZ is late afternoon, sun sets towards the end, CNZ is night, FBZ would be early morning, ICZ is morning with sun rising in Act 2, etc.)

#6 User is offline Xeeynamo 

Posted 31 August 2010 - 05:37 PM

  • Posts: 16
  • Joined: 08-February 09
  • Gender:Male
  • Location:Italy
  • Project:XeEngine
I've released a beta http://digitalwork.altervista.org/digitalwork/?page=s3kse
It miss sram support of Genesis version and Time Attack editor

#7 User is offline The Shad 

Posted 01 September 2010 - 03:30 AM

  • ↑ & ↓ & ↻
  • Posts: 3053
  • Joined: 04-September 06
  • Gender:Male
  • Wiki edits:83
QUOTE (DigitalDuck @ Aug 25 2010, 10:37 PM)
This has been known for a while. I still wish they'd done it that way, though. I think we've also had theories to suggest that Flying Battery Zone originally had a dark palette in Act 1, to comply with time progression. (I.e. MGZ is late afternoon, sun sets towards the end, CNZ is night, FBZ would be early morning, ICZ is morning with sun rising in Act 2, etc.)

This makes me wish someone would get a hack of Sonic 3 going to put Flying Battery back in like that.

#8 User is offline dsrb 

Posted 01 September 2010 - 04:16 AM

  • Posts: 3150
  • Joined: 10-June 09
  • Gender:Male
  • Wiki edits:196
I seem to recall Tiddles (Sonic 3 Complete) and/or Hayate (Sonic 3 Customizable) floating that possibility, at least at one point.

#9 User is offline Tiddles 

Posted 01 September 2010 - 02:25 PM

  • Diamond Dust
  • Posts: 466
  • Joined: 25-December 09
  • Gender:Male
  • Location:Leicester, England
  • Project:Get in an accident and wake up in 1973
  • Wiki edits:31
They both have the icon back in place already, but it's still for Zone 8. smile.png
This is definitely a planned feature for Customizable. I don't have any plans to put it in Complete yet, but I haven't ruled it out.

I had a go with the beta editor. It looks quite nice, but I had an issue - using a completed file I'd created with another editor in the past, the zone was presented as CLEAR but with a blank icon, and no apparent effect if I moved left or right on it. I couldn't edit the S3K emeralds either - I guess this isn't implemented yet? Editing the S3 ones worked fine and it's quite easy to fill up by pressing left, but editing a semi-complete game to have all the emeralds could take quite a bit of pressing left or right from the incomplete state! Maybe there could be a shortcut to completely empty/fill the emerald slots?

I don't know if there could be an option for a double-size window, too - it's quite hard for me to read in its original size. smile.png

I'll probably be able to provide more feedback once you finish Mega Drive SRAM editing functionality, because it could actually be quite useful for me for testing purposes - I don't use S&KC much so I only had a quick play around to get an idea. Keep up the good work!

#10 User is offline Xeeynamo 

Posted 01 September 2010 - 05:48 PM

  • Posts: 16
  • Joined: 08-February 09
  • Gender:Male
  • Location:Italy
  • Project:XeEngine
QUOTE (Tiddles @ Sep 1 2010, 09:25 PM)
I had a go with the beta editor. It looks quite nice, but I had an issue - using a completed file I'd created with another editor in the past, the zone was presented as CLEAR but with a blank icon, and no apparent effect if I moved left or right on it. I couldn't edit the S3K emeralds either - I guess this isn't implemented yet? Editing the S3 ones worked fine and it's quite easy to fill up by pressing left, but editing a semi-complete game to have all the emeralds could take quite a bit of pressing left or right from the incomplete state! Maybe there could be a shortcut to completely empty/fill the emerald slots?

I don't know if there could be an option for a double-size window, too - it's quite hard for me to read in its original size. smile.png

I'll probably be able to provide more feedback once you finish Mega Drive SRAM editing functionality, because it could actually be quite useful for me for testing purposes - I don't use S&KC much so I only had a quick play around to get an idea. Keep up the good work!


Thanks for the feedback Tiddles smile.png. Can you post here or upload the savegame created with the other editor?
Yes, S3K Emeralds editor isn't impemented yet because it have a stupid algorithm -.- it save the emeralds in 2 bytes with this binary structure: X1X2X3X4X5X6X7X8 (Eight emerald? Surely it's only a dummy). Initially the 2 bytes are 0 and when you collect for example the 2nd emerald, the X1X 2 X3X4X5X6X7X8 will be 1. When all 7 chaos emeralds will be obtained the binary structure will become 0101010101010100 (Last 8th emerald :P). Now if you enter in super giant ring, after the Hidden Palace's sequence all the emerald's data will be switched to left becoming 1010101010101000. Now when the player will gain the 2nd emerald the binary data will be 101 1 101010101000 obtaining the 2nd Super Emerald. I'm a bit lazy ( emot-ssh.gif ) and I'm dropped this feature in this beta. The only thing that I've implemented is the switching of data for enable Super Emerald's states pressing Shift.
I know, the emeralds editor in Sonic 3 it's a bit annoying and the only fast way to fill the 7 emeralds it's to press left when you don't have any Chaos Emerald. I think that a fast way to edit emeralds is to use Q W E R A S and D to enable/disable every of 8 emeralds but some nations use different keyboard's layout (I'm using QWERTY). After I'll optimize the current bad way to edit emeralds of course.
The double-size feature it's a good idea and it's the most easy thing that I can do xD. It's a good idea and I was stupid to not think this.
MegaDrive SRAM support it's a bit hard to implement because it use a checksum to see if the savegame was corrupted by something. I've try everthing :\ sum, sub, mul, div, and, or, not using byte or word sizes. The savegame is long 512 bytes and the word-size values are reversed (the strange nature of 68K O.o).

#11 User is offline GerbilSoft 

Posted 01 September 2010 - 06:01 PM

  • RickRotate'd.
  • Posts: 2668
  • Joined: 11-January 03
  • Gender:Male
  • Location:USA
  • Project:Gens/GS
  • Wiki edits:5,000 + one spin
Regarding MD SRAM: Sonic 3's SRAM chip is only 8 bits wide, and is mapped to odd bytes. All the even bytes should be 0xFF (or 0x00 on some emulators). Gens (and Gens/GS) saves the SRAM in its native form. Kega and Regen have byteswapped SRAM, in which case the data is stored on even bytes instead of odd bytes.

For chaos emeralds / super emeralds, it shouldn't be too hard to use bit-shifting. Here's some macros you can use. (flags is the 16-bit emerald flags variable; emerald is a number from 0-7, where 0 is the first emerald and 7 is the eighth emerald.) [I may have ordering backwards, in which case you'll simply need to subtract the actual emerald number from 7 before using these macros.]

CODE
#define CLEAR_EMERALDS(flags, emerald) \
do { \
    flags &= ~(1 << (emerald * 2 + 1)); \
    flags &= ~(1 << (emerald * 2)); \
} while (0)

#define SET_CHAOS_EMERALD(flags, emerald) \
do { \
    flags &= ~(1 << (emerald * 2 + 1)); \
    flags |=  (1 << (emerald * 2)); \
} while (0)

#define SET_TRANSFORMED_EMERALD(flags, emerald) \
do { \
    flags |=  (1 << (emerald * 2 + 1)); \
    flags &= ~(1 << (emerald * 2)); \
} while (0)

#define SET_SUPER_EMERALD(flags, emerald) \
do { \
    flags |=  (1 << (emerald * 2 + 1)); \
    flags |=  (1 << (emerald * 2)); \
} while (0)

This post has been edited by GerbilSoft: 01 September 2010 - 06:06 PM

#12 User is online Dark Sonic 

Posted 01 September 2010 - 09:55 PM

  • Posts: 9757
  • Joined: 21-April 06
  • Gender:Male
  • Project:Sonic Lost World: Nonexistent Six/Fixed Edition; Sonic Genesis Adventure (Let's see how long this lasts :V)
  • Wiki edits:10
QUOTE (DigitalDuck @ Aug 25 2010, 08:37 PM)
QUOTE (Endri @ Aug 26 2010, 04:09 AM)

wat?!

I've never seem that Flying Battery Zone icon. Also note that it shows when editing Sonic 3, and is remarked as ZONE 5. It is further evidence that Flying Baterry was indeed supposed to come after Carnival Night Zone and before Ice Cap Zone (and that the wicket at the end of Flying Battery Zone ACT 2 is what Sonic uses as a snowboard ).


This has been known for a while. I still wish they'd done it that way, though. I think we've also had theories to suggest that Flying Battery Zone originally had a dark palette in Act 1, to comply with time progression. (I.e. MGZ is late afternoon, sun sets towards the end, CNZ is night, FBZ would be early morning, ICZ is morning with sun rising in Act 2, etc.)

Also further support of this lies in the colors of the special stages. The 5th special stages uses a flying battery color theme, while the 4th uses a Carnival Night theme and the 6th uses and Ice Cap theme

#13 User is offline Tiberious 

Posted 02 September 2010 - 01:56 AM

  • Yeah, I'm furry. Got a problem?
  • Posts: 597
  • Joined: 18-August 03
  • Wiki edits:1
I remember an old save editor I had that also allowed selecting Flying Battery in Sonic 3.

What's funny is after beating the (fully-functional[!]) stage, it continued right on into Sandopolis, still using the Sonic 3 titlecard and music. Eventually, you played through the entire Sonic 3 & Knuckles game like it was always intended.

#14 User is offline Tiddles 

Posted 02 September 2010 - 02:05 PM

  • Diamond Dust
  • Posts: 466
  • Joined: 25-December 09
  • Gender:Male
  • Location:Leicester, England
  • Project:Get in an accident and wake up in 1973
  • Wiki edits:31
QUOTE (Xeeynamo)
Can you post here or upload the savegame created with the other editor?
Certainly. FWIW, the S3K slots in this work fine in game, but the S3 ones don't properly recognise that all the emeralds have been collected - giant rings still lead to special stages for some reason. If your editor can sort that out correctly it would be a bonus - I haven't tried actually playing a game edited with it yet so I don't know.

QUOTE (Xeeynamo)
Yes, S3K Emeralds editor isn't impemented yet because it have a stupid algorithm -.- it save the emeralds in 2 bytes with this binary structure: X1X2X3X4X5X6X7X8 (Eight emerald? Surely it's only a dummy). Initially the 2 bytes are 0 and when you collect for example the 2nd emerald, the X1X 2 X3X4X5X6X7X8 will be 1. When all 7 chaos emeralds will be obtained the binary structure will become 0101010101010100 (Last 8th emerald :P). Now if you enter in super giant ring, after the Hidden Palace's sequence all the emerald's data will be switched to left becoming 1010101010101000. Now when the player will gain the 2nd emerald the binary data will be 101 1 101010101000 obtaining the 2nd Super Emerald. I'm a bit lazy ( emot-ssh.gif ) and I'm dropped this feature in this beta. The only thing that I've implemented is the switching of data for enable Super Emerald's states pressing Shift.
I know, the emeralds editor in Sonic 3 it's a bit annoying and the only fast way to fill the 7 emeralds it's to press left when you don't have any Chaos Emerald. I think that a fast way to edit emeralds is to use Q W E R A S and D to enable/disable every of 8 emeralds but some nations use different keyboard's layout (I'm using QWERTY). After I'll optimize the current bad way to edit emeralds of course.
The double-size feature it's a good idea and it's the most easy thing that I can do xD. It's a good idea and I was stupid to not think this.
MegaDrive SRAM support it's a bit hard to implement because it use a checksum to see if the savegame was corrupted by something. I've try everthing :\ sum, sub, mul, div, and, or, not using byte or word sizes. The savegame is long 512 bytes and the word-size values are reversed (the strange nature of 68K O.o).
I feel your pain there. This is exactly why an editor would be helpful. smile.png
I've taken to picking at savestates and forcing it to resave to SRAM when I need to edit something. I don't know if that might be a useful way to go about figuring out the checksum routine.

QUOTE (Tiberious)
What's funny is after beating the (fully-functional[!]) stage, it continued right on into Sandopolis, still using the Sonic 3 titlecard and music. Eventually, you played through the entire Sonic 3 & Knuckles game like it was always intended.
This is because S&KC Sonic 3 is a "hack" of sorts built on top of its version of S3&K. The leftover Flying Battery entry from the save screen will happily take you into the final Flying Battery because it's still present in the master game (and always retained its intended Sonic 3 zone ID even though it never ended up being played in that order), you just never get there in S3 mode. And because you should never get into the S&K half of the game, there's no special code to stop you going further once you do break in. The same principle applies to hacked saves using Knuckles in S&KC S3 - Knuckles works fine, but he'll still be visiting the Sonic 3 versions of the level layouts, which are mostly uncompletable along his routes.

It's just as possible to create an FBZ save in regular Sonic 3, in which case you'll get a title card for it and nothing more, since it's fairly comprehensively removed from the final game. Likewise a Knuckles game will mostly send you around as Sonic with some signpost and results screen references to Knuckles.


#15 User is offline Volpino 

Posted 03 September 2010 - 10:38 AM

  • Things are looking up!
  • Posts: 1207
  • Joined: 19-April 10
  • Gender:Female
  • Project:A secret. >:3
  • Wiki edits:16
Sorry if I'm asking a stupid question but why does Knuckles turn blue? Can we also edit character pallets or something?

  • 2 Pages +
  • 1
  • 2
    Locked
    Locked Forum

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users