GF64's Custom SEGA screen modes

Discussion in 'Tutorials Archive' started by Gardeguey, Aug 21, 2010.

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

    Gardeguey Well-Known Member Member

    Joined:
    Aug 6, 2010
    Messages:
    82
    Location:
    México
    [​IMG][​IMG]


    This should be compatible with both Sonic 1 and Sonic 2

    • Add these variables at the start of your asm file...





    Snd_Special_FadeOut equ $E0


    Snd_Special_SEGA equ $E1


    Snd_Special_StopSng equ $E4


    RAM_SpriteAddr equ $FFFFD000 ;(Only used in SegaScreen) Change: $FFFFD000 for s1 or $FFFFB000 for s2


    Game_Mode equ $FFFFF600 ;Delete this variable if you are using the S2 AS disasm


    ModeID_Title equ $4


    ;Don't add these variables if you used the 6 button guide


    RAM_Control_1_Press equ $FFFFF605


    JoyStart equ $80



    • Make a folder named "Modes"
    • Download one of these custom SEGA screens:
      Classic
      Streets Of Rage
    • Extract the "SegaScreen" folder in "Modes"
    • Go to THE ORIGINAL "SegaScreen" label and delete everything until "TitleScreen:" (Sonic 1)


    It should be like this:



    ; ---------------------------------------------------------------------------
    ; Sega screen


    ; ---------------------------------------------------------------------------


    ;SegaScreen: ; XREF: GameModeArray


    include "Modes/SegaScreen/code.asm"


    even



    And that's all, simple


    If you used the 6 button guide, in code.asm, replace:



    cmp.b #JoyStart,(RAM_Control_1_Press).w



    with



    cmp.w #JoyStart,(RAM_Control_1_Press).w



    By the way, don't forget to credit me.


    EDIT 2: DON'T DELETE THE "GF64" WATERMARK (at the end of "code.asm") PLEASE.
     
    Last edited by a moderator: Sep 17, 2010
  2. theocas

    theocas #! Member

    Joined:
    Apr 10, 2010
    Messages:
    375
    I've already said this on IRC, but this is simply awesome. Do you mind if I put it up on Retro, with credits of course?


    Hehe, I gots special stuff on mine :D


    EDIT: I've put the SOR one into my hack yesterday already ^_^
     
    Last edited by a moderator: Aug 21, 2010
  3. M.N.K.

    M.N.K. In the River of Darkness... Member

    Joined:
    Feb 22, 2009
    Messages:
    506
    Location:
    Earth...
    (for those who are using SNASM68k)


    just something that I did when I was putting this in, you should change this...



    include "Modes/SegaScreen/code.asm"
    even



    to this...



    include 'code.asm'
    even



    and also these three within code.asm...



    ArtUnc_SegaLogoClassic:
    incbin "Modes/SegaScreen/GFX.bin'


    even


    Pal_SegaLogoClassic:


    incbin "Modes/SegaScreen/PAL.bin'


    even


    PalCyc_SegaLogoClassic:


    incbin "Modes/SegaScreen/ANIPAL.bin'


    even



    to this...



    ArtUnc_SegaLogoClassic:
    incbin 'GFX.bin'


    even


    Pal_SegaLogoClassic:


    incbin 'PAL.bin'


    even


    PalCyc_SegaLogoClassic:


    incbin 'ANIPAL.bin'


    even



    that's how I got it working on my hack when I did this. other than that, looks awesome in the actual game itself. nice work ^_^
     
    Last edited by a moderator: Jan 23, 2011
  4. amphobius

    amphobius spreader of the pink text Member

    Joined:
    Feb 24, 2008
    Messages:
    970
    Location:
    United Kingdom
    Got this working in Thrash (The SOR one, that is ^_^) - it's working great after a couple of fixes to make it work with AS. You should also consider removing the Game_Mode macro for the guide - the Xenowhirl dissasembly has this macro already.
     
Thread Status:
Not open for further replies.