don't click here

How to remove bubbles from S1 special stages

Discussion in 'Engineering & Reverse Engineering' started by Hayate, Apr 21, 2008.

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

    Hayate

    Tech Member
    Find:

    Code (ASM):
    1.  
    2. PalCycle_SS:
    3.         tst.w   ($FFFFF63A).w
    4.         bne.s   locret_49E6
    5.         subq.w  #1,($FFFFF79C).w
    6.         bpl.s   locret_49E6
    7.         lea ($C00004).l,a6
    8.         move.w  ($FFFFF79A).w,d0
    9.         addq.w  #1,($FFFFF79A).w
    10.         andi.w  #$1F,d0
    11.         lsl.w   #2,d0
    12.         lea (byte_4A3C).l,a0
    13.         adda.w  d0,a0
    14.         move.b  (a0)+,d0
    15.         bpl.s   loc_4992
    16.         move.w  #$1FF,d0
    17.  
    Replace with:

    Code (ASM):
    1.  
    2. PalCycle_SS:
    3.         tst.w   ($FFFFF63A).w
    4.         bne.w   locret_49E6
    5.         subq.w  #1,($FFFFF79C).w
    6.         bpl.w   locret_49E6
    7.         lea ($C00004).l,a6
    8.         move.w  ($FFFFF79A).w,d0
    9.         cmpi.w  #$C,($FFFFF79A).w
    10.         beq.b   PalCycle_SS_NoIncrement
    11.         addq.w  #1,($FFFFF79A).w
    12.  
    13. PalCycle_SS_NoIncrement:
    14.         lsl.w   #2,d0
    15.         lea (byte_4A3C).l,a0
    16.         andi.w  #$3F,d0
    17.         adda.w  d0,a0
    18.         move.b  (a0)+,d0
    19.         bpl.s   loc_4992
    20.         move.w  #$1FF,d0
    21.  
    Find:

    Code (ASM):
    1.  
    2. byte_4A3C:  dc.b 3, 0, 7, $92, 3, 0, 7, $90, 3, 0, 7, $8E, 3, 0, 7, $8C
    3.         dc.b 3, 0, 7, $8B, 3, 0, 7, $80, 3, 0, 7, $82, 3, 0, 7, $84
    4.         dc.b 3, 0, 7, $86, 3, 0, 7, $88, 7, 8, 7, 0, 7, $A, 7, $C
    5.         dc.b $FF, $C, 7, $18, $FF, $C, 7, $18, 7, $A, 7, $C, 7, 8, 7, 0
    6.         dc.b 3, 0, 6, $88, 3, 0, 6, $86, 3, 0, 6, $84, 3, 0, 6, $82
    7.         dc.b 3, 0, 6, $81, 3, 0, 6, $8A, 3, 0, 6, $8C, 3, 0, 6, $8E
    8.         dc.b 3, 0, 6, $90, 3, 0, 6, $92, 7, 2, 6, $24, 7, 4, 6, $30
    9.         dc.b $FF, 6, 6, $3C, $FF, 6, 6, $3C, 7, 4, 6, $30, 7, 2, 6, $24
    10.         even
    11. byte_4ABC:  dc.b $10, 1, $18, 0, $18, 1, $20, 0, $20, 1, $28, 0, $28, 1
    12.         even
    13.  
    Replace with:

    Code (ASM):
    1.  
    2. byte_4A3C:  dc.b 3, 0, 7, $92, 3, 0, 7, $90, 3, 0, 7, $8E, 3, 0, 7, $8C
    3.         dc.b 3, 0, 7, $8B, 3, 0, 7, $80, 3, 0, 7, $82, 3, 0, 7, $84
    4.         dc.b 3, 0, 7, $86, 3, 0, 7, $88, 7, 8, 7, 0, 7, $A, 7, $C
    5.         dc.b $FF, $C, 7, $18, $FF, $C, 7, $18, 7, $A, 7, $C, 7, 8, 7, 0
    6.         even
    7. byte_4ABC:  dc.b $10, 1, $18, 0, $18, 1, $20, 0, $20, 1, $28, 0, $28, 1
    8.         even
    9.  
    Yeah, I know this looks exactly like a phpbb mod readme, but I seriously have no clue how I did this, so it's just the difference between original S1 code and SATSEE. Obviously I did this before I started commenting my code. =P Anyway, this is mainly in response to STSTTTM (or whatever it's called), but I posted a new topic in case anyone else would want it. Removing the bubbles from the SS allows you to put the HUD in without having to screw around with VRAM, if you weren't aware of that.
     
  2. redhotsonic

    redhotsonic

    Also known as RHS Tech Member
    1,587
    10
    18
    United Kingdom
    YouTuber
    There were bubbles in the special stages? =/
     
  3. Overlord

    Overlord

    Now playable in Smash Bros Ultimate Moderator
    19,234
    969
    93
    Long-term happiness
    I was just thinking that, actually....
     
  4. Armada

    Armada

    Sometimes I do things Member
    338
    0
    0
    Bubbles? Are we talking about anything round in the special stage? Does it disable those invisible peppermints (I have no better word to descride them)?
     
  5. ICEknight

    ICEknight

    Researcher Researcher
    [​IMG]

    :o
     
  6. Endgame

    Endgame

    Formerly The Growler Member
    You mean use something like this as the background?

    [​IMG]
     
  7. Eduardo Knuckles

    Eduardo Knuckles

    Not a loved one, but the most hated person. Banned
    414
    10
    18
    Someplace somewhere
    Project S.A.M.G.
    I used it, Hayate. This was useful for the adaptation of the brick BG I've made to the "non-rotating" special stage from my hack.
    Thank you! :thumbsup:
     
  8. saxman

    saxman

    Oldbie Tech Member
    IDEA: Someone should make the special stage underwater. That'd be challenging!
     
  9. FraGag

    FraGag

    Tech Member
    You have 30 seconds to get the emerald. No air bubbles! :lol:
     
  10. nineko

    nineko

    I am the Holy Cat Tech Member
    6,308
    486
    63
    italy
    I actually thought about that, but I ended up adding water to Doomsday Zone thanks to Robjoe's help...
     
  11. Water? ....In Space? 0_o Would it be the water object itself? Or just edit the physics and the palette =P


    Edit: You could make the emerald run around the stage =P Make it challenging, and get rid of all exits, and yeah use the 30 second time limit :P
     
  12. Ambil

    Ambil

    I want that heinous hedgehog hammered! Member
    <!--quoteo(post=196591:date=May 23 2008, 09:46 AM:name=Irixion)--><div class='quotetop'>QUOTE (Irixion @ May 23 2008, 09:46 AM) [​IMG]
     
  13. WillJ

    WillJ

    Banned
    I did almost everything right, even the HUD was correctly put in the special stage. But the clouds disappeared when that happened. I only have a bird background. But if I put the clouds back in, the HUD graphics screw up. Can you tell me how to successfully insert the HUD in the special stage without screwing up the original graphics? I already know to get rid of the bubble BG first. And is there a way to edit the HUD mappings so that only rings and lives display? I want to learn this ASM technique for my future Sonic 1 hack, Sonic Adventures EX. I am a novice hacker.

    View attachment 2408
     
  14. STHX

    STHX

    SEGAAAAAAAAA?!? Member
    1,809
    3
    18
    The world of Trophies
    Sonic In Mushroom Kingdom
    I may be wrong because I'm still new to this kind of things, but I guess that it is unavoidable to remove the clouds.

    If you take a look at the background of the SS, you'll notice that when it changes the fishes become birds, and the bubbles become clouds. You can notice this while observing the scrolling speed of the fishes/birds and of the bubbles/cloud (which should be the same).
    If we want to say this in a different way, the bubbles are on the same layer of the clouds, so if you remove that layer (so that you can put the HUD, which in the normal leves uses that exact layer), then it is unavoidable to remove the bubbles and the clouds, unfortunately.

    As I said I may be wrong, because I still haven't looked carefully at the SS code, so maybe wait for someone else to confirm my teory.
     
Thread Status:
Not open for further replies.