New Sonic The Hedgehog 2 Hack

Discussion in 'Showroom Archive' started by JoenickROS, Feb 23, 2013.

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

    JoenickROS ROS (bug fixing in progress) Member

    Joined:
    Feb 5, 2012
    Messages:
    929
    Nope I was on vacation for the week so I was busy and read my first post in this thread I updated it with some plans I have for new moves.
     
  2. JoenickROS

    JoenickROS ROS (bug fixing in progress) Member

    Joined:
    Feb 5, 2012
    Messages:
    929
    (Sorrry for double post)

    I am trying to port Wood Zone into my hack. I editied the asm file to load the level art and stuff but when I load wood Zone in my hack the level freezes after loading the tile cards as shown in this video.



    Edit: Works perfectly and the setup file loads correctly for Wood Zone in Soned2
     
    Last edited by a moderator: Mar 5, 2013
  3. JoenickROS

    JoenickROS ROS (bug fixing in progress) Member

    Joined:
    Feb 5, 2012
    Messages:
    929
    Kega fusion doesnt like to play ball with the sprites I change but when using gens none of the sprites I changed are fucked up. Why would the sprites work right in Gens but not Kega?
     
    Last edited by a moderator: Mar 5, 2013
  4. Cinossu

    Cinossu A blend of secret herbs and spices Member

    Joined:
    Aug 14, 2007
    Messages:
    282
    Location:
    London, UK

    Kega fusion doesnt like to play ball with the sprites I change but when using gens none of the sprites I changed are fucked up. Why would the sprites work right in Gens but not Kega?

    Because Gens isn't as finnicky with specifics as Kega Fusion is; similarly, if I remember correctly, Regen is even more finnicky than Kega Fusion. Gens isn't as hardware-accurate as Kega Fusion, so I'd assume what you've done is broken rather than Kega Fusion getting it wrong.

    I used to use Gens KMod, a lovely Gens edit with useful realtime debugging features. However, I ended up testing in Kega Fusion later and finding glaring problems (this was actually a reason for a number of S1EE start-overs). I tend to stick with Regen (which has lovely debugging features of its own) and Kega Fusion exclusively now (until Gens/GS II is out, but that's another story altogether).

    When in doubt, assume you're wrong and get it working in both.
     
  5. JoenickROS

    JoenickROS ROS (bug fixing in progress) Member

    Joined:
    Feb 5, 2012
    Messages:
    929

    Kega fusion doesnt like to play ball with the sprites I change but when using gens none of the sprites I changed are fucked up. Why would the sprites work right in Gens but not Kega?
    Because Gens isn't as finnicky with specifics as Kega Fusion is; similarly, if I remember correctly, Regen is even more finnicky than Kega Fusion. Gens isn't as hardware-accurate as Kega Fusion, so I'd assume what you've done is broken rather than Kega Fusion getting it wrong.

    I used to use Gens KMod, a lovely Gens edit with useful realtime debugging features. However, I ended up testing in Kega Fusion later and finding glaring problems (this was actually a reason for a number of S1EE start-overs). I tend to stick with Regen (which has lovely debugging features of its own) and Kega Fusion exclusively now (until Gens/GS II is out, but that's another story altogether).


    When in doubt, assume you're wrong and get it working in both.


    Yeah I hate using Gens because the full screen resolution doesn't work right. When I go to the full screen option all it does is load a little square for the picture and then black all around it. Is it a Direct x issue? I would be fine with using Gens if the full screen resolution worked right but a lot of people I hear don't like using Gens.
     
  6. ThomasThePencil

    ThomasThePencil resident psycho Member

    Joined:
    Jan 29, 2013
    Messages:
    910
    Location:
    the united states. where else?
    From what I hear, Gens sucks. 'Nuff said.
     
  7. nineko

    nineko I am the Holy Cat Member

    Joined:
    Mar 24, 2008
    Messages:
    1,902
    Location:
    italy
    While Fusion is generally much more accurate than Gens, it is always good to test your hacks in various emulators because, to say it with Upthorn's words, "Fusion can't deal with word data access at odd addresses, Gens can't deal with word instruction access at odd addresses". Surprisingly enough, even I had an issue with Gens once.


    Something not working in any emulator is always worth checking. Yes, even Gens.


    Of course checking on the real hardware is always the superior choice, but not everyone has that chance.
     
  8. Cinossu

    Cinossu A blend of secret herbs and spices Member

    Joined:
    Aug 14, 2007
    Messages:
    282
    Location:
    London, UK
    Where does Regen fall under those tests, out of curiosity? As I've taken to using it moreso exclusively for debugging and testing recently.
     
  9. nineko

    nineko I am the Holy Cat Member

    Joined:
    Mar 24, 2008
    Messages:
    1,902
    Location:
    italy
    Nemesis wrote a test ROM once, but it focuses only on the sprites, and not on anything else. I wonder if other test ROMs exist, I know there are many for the SMS/GG emulators.
     
  10. ThomasThePencil

    ThomasThePencil resident psycho Member

    Joined:
    Jan 29, 2013
    Messages:
    910
    Location:
    the united states. where else?
    Joenick69, maybe you should port the S3K Priority Manager to your hack. It'll definitely help with quite a bit of lag you may come across (Casino Park and Arctic Cliffs, specifically) if you have a lot of sprites on screen. I did it once, and although you'll need to have some time on your hands, since it can take a while, it will speed up your hack greatly. That is my protip for you.
     
  11. JoenickROS

    JoenickROS ROS (bug fixing in progress) Member

    Joined:
    Feb 5, 2012
    Messages:
    929
    Good because that's the only problem Kega Is having problems with the sprites. So looking at the test rom will help me figure out why the sprites are screwing up in Kega? Thomas I did that a couple months ago but when I was done following the guide I still ran into some problems I even looked through the guide again and couldn't find anything that I could of missed. The problems were as follows
    1. Going into a Special Stage would freeze the game


    2. Some of the priorities were still wrong


    There may have been more but those are the only two I could remember.


    There something else I have been working on for the last two days and that is restoring HPZ and WZ so far I have done the following things


    1. I have all the blocks chunks and tiles loading correctly in SonEd2 for editing HPZ and WZ.


    2. For HPZ I have the Dinobot and Batbot loading their art correct also the Orb, Bridge and Bridge stakes art loading correctly, but the orbs in the background are still showing glitched animated graphics.


    3. I've also tried my hand at getting a boss to load at the end of act two but when the boss loads it shows glitchy boss graphics. I copied the MCZ level events and changed the labels to HPZ I'm guessing this probably isn't just a copy and paste job since the bosses graphics are glitched.


    4. For WZ I got the rhinobots movement but I can't get the rhinobots art too load. I made sure the WZ levels objects were loading the rhinobot art but still no sprites are showing up. Oh and I also realized that at the start of WZ loading, Sonics sprites don't show until you start walking, jumping whatever.


    5. Copied EHZ level events for WZ, same problem occurs with the boss art but the wheels of Robotniks machine don't load any graphics at all and when Robotnik lands on the ground he disappears. It's weird though bc when I changed into a ring in debug mode and go to the boss the art doesn't load glitchy graphics but Robotnik still disappears when landing on the ground.


    If anyone could help me find out what's causing the issues I'm having it would be greatly appreciated.
     
    Last edited by a moderator: Mar 6, 2013
  12. nineko

    nineko I am the Holy Cat Member

    Joined:
    Mar 24, 2008
    Messages:
    1,902
    Location:
    italy
    No, that test ROM is only useful to emulator coders, to see what their emulators are doing wrong. Emulator users like us can only read the results and know why we should use more than one emulator to be safe.
     
  13. JoenickROS

    JoenickROS ROS (bug fixing in progress) Member

    Joined:
    Feb 5, 2012
    Messages:
    929
    Oh oops my bad so how would I go about getting the sprites to work right in Kega.
     
  14. nineko

    nineko I am the Holy Cat Member

    Joined:
    Mar 24, 2008
    Messages:
    1,902
    Location:
    italy
    If I still remember something about hacking, make sure there's an "even" everywhere before you include any art file, like

    Code:
    even
    incbin "art.bin"
    even
    incbin "more art.bin"
     
  15. JoenickROS

    JoenickROS ROS (bug fixing in progress) Member

    Joined:
    Feb 5, 2012
    Messages:
    929
    Ok ill go back and check, what would be causing the boss art not to load correctly for HPZ and WZ?
     
    Last edited by a moderator: Mar 6, 2013
  16. SpirituInsanum

    SpirituInsanum Well-Known Member Member

    Joined:
    Feb 11, 2010
    Messages:
    642
    Actually for character art you should even use align $20000 to avoid glitches in some sprites (iirc it happens to Sonic's rolling sprite in your hack, though it might have moved since then).
     
  17. JoenickROS

    JoenickROS ROS (bug fixing in progress) Member

    Joined:
    Feb 5, 2012
    Messages:
    929
    Yep, It's the rolling sprite for Sonic and some of the jumping sprites for Shadow. So I put align $20000 by the spot where those bincluded Character art files are?
     
  18. SpirituInsanum

    SpirituInsanum Well-Known Member Member

    Joined:
    Feb 11, 2010
    Messages:
    642
    Yes, align first, then art.

    You have to do it for every character art file, of course.
     
  19. JoenickROS

    JoenickROS ROS (bug fixing in progress) Member

    Joined:
    Feb 5, 2012
    Messages:
    929
    Alright thanks ill do that when I have the time. If this works I won't have to use Gens thank god lol

    EDIT: Works like a charm thanks SpirituInsanum!
     
    Last edited by a moderator: Mar 6, 2013
  20. Cinossu

    Cinossu A blend of secret herbs and spices Member

    Joined:
    Aug 14, 2007
    Messages:
    282
    Location:
    London, UK
    Wrong way around, dear.

    Code:
    incbin "art.bin"
    even
    incbin "more art.bin"
    even
    
     
Thread Status:
Not open for further replies.