Sonic and Sega Retro Message Board: Sonic Adventure 2 hash help - Sonic and Sega Retro Message Board

Jump to content

Hey there, Guest!  (Log In · Register) Help
Page 1 of 1
    Locked
    Locked Forum

Sonic Adventure 2 hash help

#1 User is offline Emerald Lance 

Posted 22 December 2012 - 08:41 PM

  • Posts: 13
  • Joined: 22-January 10
  • Gender:Male
  • Location:Austin, TX
  • Project:Chao Editor Reduxe
I'm developing a tool that will allow users to modify the 360/PC version of SA2's Chao save. However, I'm having troubles coding a fix for the hash that the game uses. MainMemory was a big help by providing some nice code on the method used. But I'm still having issues figuring it out (I'm no good at coding for random numbers). With MainMemory's help, I was able to find and confirm the hash location and length, but I'm still not familiar with the algorithm type or the area covered (all of my attempts to incorporate the code MainMemory provided into my source have failed).

I have never fixed anything like this before. I've worked with basic unencrypted checksums and size hashes, but I don't have any experience with this sort of thing. Any help I can get would be great. If I am able to finish my tool (which revolves entirely around making a fix for this hash) I fully intend to make a page detailing the structure and layout of the SA1 and SA2 Chao save files for both 360 and PC.

Here are two example files: SA2 save.zip The hash is located at 0x0000FAA4 and is 8 bytes (64bit).

These files are extracted from the 360 file container; to test them, inject them into a SA2 Chao save with Horizon's package editor (from here) and again with Horizon's device manager inject the entire package into a 360 formatted USB drive. For PC users, I hear that the files I provided are interchangeable with the PC version, but I don't own that version and so I can't test/confirm it. These are not compatible with the PC game, and must be injected into a 360 package in order to use.
This post has been edited by Emerald Lance: 23 December 2012 - 01:19 AM

#2 User is offline MainMemory 

Posted 22 December 2012 - 08:58 PM

  • Every day's the same old thing... Same place, different day...
  • Posts: 3369
  • Joined: 14-August 09
  • Gender:Not Telling
  • Project:SonLVL
  • Wiki edits:1,339
As far as I'm aware, they are not interchangeable, as Xbox 360 is big endian, while PC is little endian.

#3 User is offline Emerald Lance 

Posted 22 December 2012 - 09:15 PM

  • Posts: 13
  • Joined: 22-January 10
  • Gender:Male
  • Location:Austin, TX
  • Project:Chao Editor Reduxe
Ah, that does seem to be the case. Thanks for clearing that up for me.

Page 1 of 1
    Locked
    Locked Forum

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