Sonic 2 options menu to sonic 1

Discussion in 'Discussion and Q&A Archive' started by Animemaster, Mar 30, 2009.

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

    Animemaster Lets get to work! Member

    Joined:
    Mar 20, 2009
    Messages:
    1,229
    Location:
    UK
    Hello, I have a small problem. I am trying to port the sonic 2 options menu to sonic 1 then i will customize it to my hack. The Problem i am having is that it fades when you press the start button at the titlescreen, and that is it.... it won't load the options menu... If you want the code let me know.
     
    Last edited by a moderator: Apr 3, 2009
  2. Selbi

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,429
    Location:
    Northern Germany
    A code wouldn't be bad. Post please. :)
     
  3. Animemaster

    Animemaster Lets get to work! Member

    Joined:
    Mar 20, 2009
    Messages:
    1,229
    Location:
    UK
    Code Removed.
     
    Last edited by a moderator: Apr 4, 2009
  4. Hanoch

    Hanoch Well-Known Member Member

    Joined:
    Aug 3, 2008
    Messages:
    312
    Location:
    Israel
    Well, copying all of the code might not do anything. Try putting only MenuScreen_Options. Also, some ram addresses are incorect since sonic 2 and sonic 1 has a small diffrences between them. Try looking at sonic 1's and sonic 2's ram addresses and if their not the same, try using a clean ram addess.
     
  5. Animemaster

    Animemaster Lets get to work! Member

    Joined:
    Mar 20, 2009
    Messages:
    1,229
    Location:
    UK
    well i tried menuscreen_optiions on its own, but it just freezes the titlescreen. But i'll have a look at the ram address, and look to see if there is anythng not needed later.
     
  6. Animemaster

    Animemaster Lets get to work! Member

    Joined:
    Mar 20, 2009
    Messages:
    1,229
    Location:
    UK
    Never mind i fixed the problem.
     
  7. Dark Lips

    Dark Lips Well-Known Member Member

    Joined:
    Nov 14, 2008
    Messages:
    293
    Location:
    Wolverhampton UK
    Hi there, just a quick question on how you did this...? I have added the sonic 2 level select and this would work nicely along side it - where did you get the data files for the options screen? I have had a quick look in the sonic 2 dissasembely but could only find selction box with shadow file.
     
  8. Hitaxas

    Hitaxas Retro 80's themed Paladins Twich streamer Member

    Joined:
    Aug 13, 2007
    Messages:
    167
    MenuScreen_Options



    Main part of the options code.



    loc_909A



    That's the second main part of the options code, handles things like pressing start over one of the options.



    loc_91F8



    Third main part, handles what part of where the called text goes on the screen.



    off_92BA



    That calls the text on the options menu.



    byte_97CA



    That is the first line of text on the options menu (* PLAYER SELECT *)


    ---


    Happy porting. =P


    Edit: slight fix in locations.
     
    Last edited by a moderator: Apr 4, 2009
  9. Dark Lips

    Dark Lips Well-Known Member Member

    Joined:
    Nov 14, 2008
    Messages:
    293
    Location:
    Wolverhampton UK
    Sorry if i didnt explain myself very well... what I mean is where do I find this file?


    incbin misc\Options.bin ?


    what s2 dissasmebely has this file? Becasue I am using the sonic retro SVN version and I cant find that file.
     
  10. Hitaxas

    Hitaxas Retro 80's themed Paladins Twich streamer Member

    Joined:
    Aug 13, 2007
    Messages:
    167
    MapEng_Options: BINCLUDE "mappings/misc/Options Screen.bin"
     
  11. Animemaster

    Animemaster Lets get to work! Member

    Joined:
    Mar 20, 2009
    Messages:
    1,229
    Location:
    UK
    Thanks for helping the guy out hitaxes :p
     
    Last edited by a moderator: Apr 2, 2009
  12. Dark Lips

    Dark Lips Well-Known Member Member

    Joined:
    Nov 14, 2008
    Messages:
    293
    Location:
    Wolverhampton UK
    Thanks for the help so far.... I am having a few problems, I have pasted the options screen code and changed the lables to the sonic 1 equivilent like i did with the s2 level select but I get a list of un recgonised opcodes when I try and build - I have tried changing the bra's to jsr and jmp but with no succsess - any ideas?
     
  13. Alriightyman

    Alriightyman I'm back! Member

    Joined:
    Oct 3, 2007
    Messages:
    156
    Location:
    USA
    It would help if you post your build errors. :p
     
  14. Hanoch

    Hanoch Well-Known Member Member

    Joined:
    Aug 3, 2008
    Messages:
    312
    Location:
    Israel
    I had that problem too, the commands are stuck at the left side of the file am I correct? Just add a little space between the start of the text file to the commands so it will work.
     
  15. Animemaster

    Animemaster Lets get to work! Member

    Joined:
    Mar 20, 2009
    Messages:
    1,229
    Location:
    UK
    if you have anymore problems, let me know =P.
     
  16. Animemaster

    Animemaster Lets get to work! Member

    Joined:
    Mar 20, 2009
    Messages:
    1,229
    Location:
    UK
    I have a question of my own, is there anyway to get the box around the text in the options menu, mappings in sonmaped? I want to edit them, but hex is screwing it up.
     
    Last edited by a moderator: Apr 3, 2009
  17. Animemaster

    Animemaster Lets get to work! Member

    Joined:
    Mar 20, 2009
    Messages:
    1,229
    Location:
    UK
    Well seems that i have a question related to the options menu problem previoulsy, i thought it would be a waste to start a new topic for this question that i have.


    Is there anyway of using the player_options, and player_mode flag without using object codes for each character?. These are used to set sonic and tails's object code in sonic 2. (Load which object to that character)because at the moment all the character names that i select still load sonic's art for all of them. As i tried compares so it would load the art to the right name. (sonic,shadow,silver ect)


    Or if there is any other way of doing this, could someone help me? thanks!
     
  18. Hanoch

    Hanoch Well-Known Member Member

    Joined:
    Aug 3, 2008
    Messages:
    312
    Location:
    Israel
    I think I know how, it didn't work for me and I am using object codes but I think I know, change player_option to a clean Ram address and somewhere in level_mainloop (or in playlevel) move that value to the character flag. Also did you do the character guide at all?
     
  19. Animemaster

    Animemaster Lets get to work! Member

    Joined:
    Mar 20, 2009
    Messages:
    1,229
    Location:
    UK
    Yes i did,but as you know it sets the flag when you press b, where as i want to set the flag when you highlight a character to load that sprite to that character. Like the orignial one in sonic2, just not with object codes.
     
    Last edited by a moderator: Apr 6, 2009
  20. Hanoch

    Hanoch Well-Known Member Member

    Joined:
    Aug 3, 2008
    Messages:
    312
    Location:
    Israel
    Oh, you do a compare and branch to the character flag in LoadSonicdynPLc to load different PLC's and art. In obj01_main for different height and mappings and somewhere nearby Level_LoadPal to load different palette.
     
Thread Status:
Not open for further replies.