don't click here

SCD savestates

Discussion in 'Engineering & Reverse Engineering' started by Hayate, Aug 20, 2004.

Thread Status:
Not open for further replies.
  1. Hayate

    Hayate

    Tech Member
    Ok, I made a savestate in SCD and loaded it into S2 with SonED. Now all the 8x8s are there, but the 16s and 128s are messed up. Why is this? Does SCD use 256x256s like S1? I also thought of loading up SCD in SonED, but it says it cannot identify the ROM. Any ideas? :huh:
     
  2. I'll just try to explain what happens on SCD...

    As you know, 8x8 tiles are in the same old 0000 address from VRAM for all Sonic games (I.e. 1-2b-2-CD-3K). Now here comes the funny thing: SCD still uses the 256x256 blocks from S1, but 16x16 and 256x256 mappings had their places changed.
    In a Gens Savestate, 16x16 mappings are in 4478-5477. Level layout is in C878-CC77 (same as S1), but 256x256 are nowhere to be found in the RAM! For all levels, they start at 0x010000 and end God knows where. "All levels" means all R*.MMD files. For instace, R11A__.MMD is Palmtree Panic 1 - Present (you guess the rest).

    Both 8x8 and 16x16 are compressed in Nemesis format in MMD files. The 256x256 aren't for obvious reasons.

    I have a hacking guide that covers CD Sonic (Beta 510). I even made a CDStoS1 conversor, but it's all in Portuguese!
    http://geocities.yahoo.com.br/erikjs_br/cdsonichack/
    http://geocities.yahoo.com.br/erikjs_br/cd...ack/cdsc100.zip

    I hope that helped! :)
     
  3. Rika Chou

    Rika Chou

    Tech Member
    5,276
    169
    43
    Wow, you know your stuff.
     
  4. Qjimbo

    Qjimbo

    Your friendly neighbourhood lemming. Oldbie
    :shocked:
    Flippin heck, this could end up being the first time a trial member ever been promoted straight to tech member with that kind of knowledge :)

    Welcome to the board!
     
  5. voice

    voice

    Make any joke you want, you know I look good. Banned
    3,725
    0
    0
    45mins west of Chicago
    RSN2.0, PHP:IRC (A attempt at CGI:IRC in PHP)
    Holy shit this guy is good! just.........wow ^_^ Hopefully the hack guide could help with other problems that Gens is having playing music correctly after leaving special stage
     
  6. LOst

    LOst

    Tech Member
    4,891
    8
    18
    Ahhhh! A trial member from nowhere knowing so much!

    Anyway, the 256x256 block would be at $FF0000.w in RAM in Sonic 1. Now, in Sonic CD they are probably put into other M68k RAM space that the Sega CD has.

    If the Debug Gens can dump RAM, maybe it can dump the RAM from the Sega CD's M68k RAM space too, and by that you can fake a savestate and get the info into SonED?
     
  7. Syren

    Syren

    Member
    4,330
    0
    0
    Teesside, UK
    Reintergration
    Refreshing, a Trial dude that knows his stuff.

    It makes me wonder why I am a member.
     
  8. JoseTB

    JoseTB

    Tech Member
    716
    59
    28
    Teorically it should be 41983 bytes ($0000 - $A3FF in sonic 1) At least I think that it is the max to s1.However,MapXXX.bin in scd from pc is 65536 (Is the content of $10000 in mmd files).

    By the way,I saw that you have missing some info about the collisions(in the guides),needed to port correctly zones,so here it comes:

    (This is ONLY for sonic cd beta 510 mmd files):

    $3870C-$3880B : Curve and resistance data
    $3880C-$3980B : Collision array 1
    $3980C-$3A80B : Collision array 2
    $3A80C-(undetermined,I guess that it changes the size for each zone) : Collision Data
     
  9. Hivebrain

    Hivebrain

    Administrator
    3,047
    154
    43
    53.4N, 1.5W
    Github
    SCD uses a much greater number of 256x256 tiles per level. This can be a problem when porting SCD->S1 levels.
     
  10. Hayate

    Hayate

    Tech Member
    Um. Let me clarify, I don't have the PC version, I have the SegaCD version. Does that make a difference? Are the MMD files you talk about inside the ISO file (WinRAR says it's an archive, not a ROM)?
     
  11. Quickman

    Quickman

    be attitude for gains Tech Member
    5,595
    18
    18
    :x
    omg porjcet
    ISO != ROM

    WinRAR can open ISOs since it knows they're CD images and treats them as such.
     
  12. WinRAR handling ISO's... I never noticed it before! I use Daemon Tools, which is some kind of CD emulator that loads images into a virtual drive.
    http://www.daemon-tools.cc/

    JoseTheBest: thanks for the info. I'll add it to the guide sooner or later... later...
     
  13. Hayate

    Hayate

    Tech Member
    Um, was that even relavent? :\
     
Thread Status:
Not open for further replies.