don't click here

Disabling Tails for certain levels...

Discussion in 'Engineering & Reverse Engineering' started by Kampfer, May 1, 2004.

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

    Kampfer

    Member
    1,609
    5
    18
    I'd like Tails to be disabled for MTZ 1&2 and OOZ 1&2. I'm thinking is can be done since Tails is also disabled in SCZ, WFZ, and DEZ.
     
  2. Quickman

    Quickman

    be attitude for gains Tech Member
    5,595
    18
    18
    :x
    omg porjcet
    You'll need to find the code which defines which levels Tails is or is not loaded in and modify it.
     
  3. Fiz

    Fiz

    FACKIN' BIG PENIS Oldbie
    1,985
    0
    16
    PENIS
    4E 75

    :E
     
  4. Quickman

    Quickman

    be attitude for gains Tech Member
    5,595
    18
    18
    :x
    omg porjcet
    Not quite, Fiz. It's slightly more subtle than that. It'll be something like this:

    Code (Text):
    1. if(level == SkyChase)
    2. {
    3.  ? ?/* do not load Tails */
    4. }
    5. else
    6. if(level == WingFortress)
    7. {
    8.  ? ?/* do not load Tails */
    9. }
    10. else
    11. if(level != DeathEgg)
    12. {
    13.  ? ?/* load Tails */
    14. }
    You'll be looking, broadly speaking, for something like this:

    CMPI.B LevelNumber,RAMAddressOfLevel
    BEQ CommandToRemoveTails
    CMPI.B LevelNumber,RAMAddressOfLevel
    BEQ CommandToRemoveTails
    CMPI.B LevelNumber,RAMAddressOfLevel
    BNE CommandToAddTails
     
  5. drx

    drx

    mfw Researcher
    2,254
    350
    63
    :rolleyes:
    Before Tails' code, add code that 4e75s if level is XX XX
     
  6. Quickman

    Quickman

    be attitude for gains Tech Member
    5,595
    18
    18
    :x
    omg porjcet
    I've already said it won't be as simple as putting in a bunch of RTS commands. There'll be a system already in place to decide if Tails is or is not loaded.
     
  7. Fiz

    Fiz

    FACKIN' BIG PENIS Oldbie
    1,985
    0
    16
    PENIS
    QuickMan: I was kidding. e_e
     
  8. Quickman

    Quickman

    be attitude for gains Tech Member
    5,595
    18
    18
    :x
    omg porjcet
    And I was following Gerbil's prerequisite. :(
     
  9. Rika Chou

    Rika Chou

    Tech Member
    5,276
    169
    43
    Actually, it's easy. I had it documented at the Freedom Shack, but I lost my notes when it went down. I will try and figure it out again.
     
  10. Sonic Hachelle-Bee

    Sonic Hachelle-Bee

    Taking a Sand Shower Tech Member
    812
    204
    43
    Lyon, France
    Sonic 2 Long Version
    In Sonic 2 rom:
    Go to $4480, you will see this:
    0C 38 00 06 FE 10 67 34 (WFZ)
    0C 38 00 0E FE 10 67 2C (DEZ)
    0C 38 00 10 FE 10 67 24 (SCZ)
    Delocate this data somewhere under your rom with 4E F9 XX XX XX XX thing and add your level to the list. Don't forget at the end of your data, there will have two 4E F9 XX XX XX XX thing:
    One for adress $4498 and one for adress $44BC.
    Example, this is your new data, XX is your level:
    0C 38 00 XX FE 10 67 20
    0C 38 00 06 FE 10 67 18
    0C 38 00 0E FE 10 67 10
    0C 38 00 10 FE 10 67 08
    4E F9 00 00 44 98 4E 75
    4E F9 00 00 44 BC 4E 75
    I hope this will fully answer your question.
     
Thread Status:
Not open for further replies.