• Do not use Works in Progress as a way of avoiding the releases system! Works in Progress can be used for sharing early betas and for getting suggestions for improvement. Releases of finished content are not allowed in this forum! If you would like to submit a finished addon, click here for instructions on how to do so.

Savegame File Structure

Status
Not open for further replies.

hotdog003

Member
I've taken the liberty of getting out my hex editor, Hexplorer, and hacking the save game files for SRB2. This is how far I've gotten.
NOTE: All numbers are in HEXADECIMAL.
Code:
_/_/_/ SRB2 SAVE GAME FILE STRUCTURE _/_/_/

Bytes 0-17:	Player Name

Byte 2a: 	Map Number

Byte 34:	Chaos Emeralds (This works by the bit.
00000001 would be 1 emerald,
00000011 (03) would be 2,
00000111 (07) would be 3, and so on. The table continues like this:
00001111 (0F) 4
00011111 (1F) 5
00111111 (3F) 6
01111111 (7F) all 7
11111111 (FF) 8, if you want them.

Bytes 45e-45f:	Number Of Lives

Byte 456:	Color

Byte 457:	Character (0=Sonic, 1=Tails, 2=Knuckles)

Bytes 458-45b:	Score (In Hex, ex 98 53=21400)

Byte 462:	Number Of Continues
EDIT: Oops! 34, not 32.
 
Heh heh. Since FISHBAKE is taken out of 1.09, you can cheat this way!

Courtesy of FISHBAKE, and the old DOS COMP program.
 
We're really just trying to sqeak every last ounce of replay value out of 1.08, because 1.09 is looking to be quite far off.
 
Heh... SSNTails' Emerald trick worked, then? Cool. I didn't think it would, being that the first savegame hack I made had all 8 emeralds and a yellow Sonic. I wonder how long it'll be until you guys figure out how to get the PSO items from an SPMoves save. :wink:
 
How did the emerald thing work, anyway? From what I can tell, it goes like a curve something like this, but I'm not sure:

.....................| - 7 emeralds
.....................| - 6 emeralds
....................|. - 5 emeralds
................../... - 4 emeralds
.............../...... - 3 emeralds
.........../.......... - 2 emrealds
....../............... - 1 emeralds
/..................... - Nothing

01 - - - - - - - 7F
 
!
THanks!!!!!!!
GRRRRRR!!!!!
HOW COME I DIDN"T SEE THAT?????
I'll fix it rightaway.
I suppose 8 would be FF, right?
 
Yep. That's also how they do the badges in Pokemon games. Why do you think there's always 8? :wink:
 
Well, there's a lot of other non-related games that use the number "8" for non-sequencial collectables. I just don't play video games much unless I need inspiration.
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top