Sonic 2 Lost Badniks Porting Help!

Discussion in 'Discussion and Q&A Archive' started by sonic, May 20, 2008.

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

    sonic Well-Known Member Member

    Joined:
    Mar 27, 2008
    Messages:
    62
    Location:
    Michigan
    I want to port the Dino Bot and the Bat Bot from the beta version of Sonic 2 to the final, so I can get them to appear in Hidden Palace after I restore it. I'm going to use ESE II to restore Hidden Palace. How do I go about doing this with ASM? I have the disassembly of Sonic 2 final. There isn't a disassembly of the beta version, but I have one of the early prototype. Basically, I want to port those two lost badniks to the final game using the early prototype disassembly and the final disassembly. I don't know where to start, though. Can anyone help?
     
  2. Sephiroth

    Sephiroth WHY SO CURIOUS?!? Member

    Joined:
    Aug 11, 2007
    Messages:
    507
    Location:
    Qatar, M.E.
    You cannot, and I repeat, cannot use ESE I or II with ASM, as ESE requires the moving of a shitload of data required when you disassemble the rom. There is, however, an alternative to using ESE II to port the level, and it includes the lost badniks, I think. RHS wrote a guide way back when, which should be floating around, somewhere. I would get you the link, but I have to go to school, so, meh.
     
  3. redhotsonic

    redhotsonic Also known as RHS Member

    Joined:
    Aug 10, 2007
    Messages:
    2,969
    Location:
    England
    My guide for putting the lost badniks in is found on the main site here under Lost Level Guide (redhotsonic's guide). It tells you how to do it by hex. If you know ASM well, it's not hard to read from my guide and do it by hex.
     
  4. Spanner

    Spanner The Tool Member

    Joined:
    Aug 9, 2007
    Messages:
    2,570
  5. sonic

    sonic Well-Known Member Member

    Joined:
    Mar 27, 2008
    Messages:
    62
    Location:
    Michigan
    Thanks. I have 2 questions, though. When I try to paste with a hex editor, it doesn't overwrite. It inserts. How do I get it to overwrite? Also, how do I use the .kos files in the download?


    Edit: Never mind. I found a hex editor that overwrites when I paste, so I should be able to restore the lost badniks using the guide. But I still haven't figured out the kos files. Also, In the part of the guide about changing the VRAM so the sprites load right, what do I do there?
     
    Last edited by a moderator: May 21, 2008
  6. redhotsonic

    redhotsonic Also known as RHS Member

    Joined:
    Aug 10, 2007
    Messages:
    2,969
    Location:
    England
    The VRAM bit has been explained. Simply go to the address for each badnik and follow the instructions carefully. Read the first badnik a few times. If you downloaded them packages, you only need to change the bytes highlighted in blue.


    And, what's kos files, or am I being stupid here?
     
  7. Spanner

    Spanner The Tool Member

    Joined:
    Aug 9, 2007
    Messages:
    2,570
    Kos files are in Esrael's hpz data pack.


    It basically stands for Kosinski.


    You can rename it to a .bin file if you want, it won't interfere.
     
  8. sonic

    sonic Well-Known Member Member

    Joined:
    Mar 27, 2008
    Messages:
    62
    Location:
    Michigan
    Sorry to bother everyone, but I know exactly what to do except I don't get where to paste the program and the sprite data. I tried it and it froze the game when I started any level. I attempted just the bat bot. I pasted the bat bot program at $1EE68 and changed what was in blue in the guide. Then, I pasted the sprite data at $7A6A2. The pointer in the sprite table was changed to 00 01 EE 68. I think I pasted it at the wrong spot. I don't understand what to do with the data.
     
    Last edited by a moderator: May 22, 2008
  9. redhotsonic

    redhotsonic Also known as RHS Member

    Joined:
    Aug 10, 2007
    Messages:
    2,969
    Location:
    England
    I'm not reading that with lines through the text.
     
  10. sonic

    sonic Well-Known Member Member

    Joined:
    Mar 27, 2008
    Messages:
    62
    Location:
    Michigan
    I changed the post and got rid of the lines.
     
  11. Sephiroth

    Sephiroth WHY SO CURIOUS?!? Member

    Joined:
    Aug 11, 2007
    Messages:
    507
    Location:
    Qatar, M.E.
    Mind my off-topicness, but what's a Trialist?
     
  12. Tweaker

    Tweaker OI! MIRON! Member

    Joined:
    Aug 10, 2007
    Messages:
    324
    Appears to be a ripoff of the Trial Member system at Retro. =P
     
  13. redhotsonic

    redhotsonic Also known as RHS Member

    Joined:
    Aug 10, 2007
    Messages:
    2,969
    Location:
    England
    Well, you ripped things of from SSRG too... apparently.

    That's better, I can read your post now. Anyway, did you actually use ESE editor at all for your hack? Because like said, it shifts a lot of data to different places. Because of this, the guide will no longer work because you'll most likely be putting new data over the shifted data.


    Try doing the batbot to a clean Sonic 2 Rom and see if you get any results.
     
  14. sonic

    sonic Well-Known Member Member

    Joined:
    Mar 27, 2008
    Messages:
    62
    Location:
    Michigan
    It did the same thing. Probably because I pasted the Batbot code over vital information in the ROM. I let the two player demo for Emerald Hill play and after a little while, Tails disappeared and the game froze. It also froze when I started to play Emerald Hill. I noticed that the file for the Batbot code is a byte shorter than what it said in the lost levels guide. I pasted it at $1EE68 and it ended at $1F2ED instead of $1F2EE. I think I'll locate the code in the beta ROM myself and change all of the pointers that should be changed. What if I pasted the Batbot code at the end of the ROM and told the game to point to there in the sprite table? Also, would converting MD8123.smd to a bin file with ESE II affect the Batbot code/sprite data?
     
    Last edited by a moderator: May 23, 2008
  15. Tweaker

    Tweaker OI! MIRON! Member

    Joined:
    Aug 10, 2007
    Messages:
    324
    lol, what?
     
  16. redhotsonic

    redhotsonic Also known as RHS Member

    Joined:
    Aug 10, 2007
    Messages:
    2,969
    Location:
    England
    You mean you've been editing a *.smd file and not a *.bin file? If so, that explains it all.

    Ask Ordos. He did tell me but I forgotten. Something to do with limbo?
     
  17. sonic

    sonic Well-Known Member Member

    Joined:
    Mar 27, 2008
    Messages:
    62
    Location:
    Michigan
    No, I've been editing a .bin file of Sonic the Hedgehog 2. The beta version I have has the .smd file extension.
     
  18. Tweaker

    Tweaker OI! MIRON! Member

    Joined:
    Aug 10, 2007
    Messages:
    324
    That's kind of funny... does he think he invented the concept of member validation or something? It's been in effect at places like SClassic before it was here, and even then, it's an extremely common forum practice and has been for years.


    On the other hand, Trial Membership is definitely something original. I've not seen anything like it before Simon came up with it.
     
  19. sonic

    sonic Well-Known Member Member

    Joined:
    Mar 27, 2008
    Messages:
    62
    Location:
    Michigan
    I know exactly what to do! I just need the address of Hidden Palace's pattern load cues. What is the address?
     
Thread Status:
Not open for further replies.