Yep I'm screwed

Discussion in 'Discussion and Q&A Archive' started by shadowbeasts, Dec 14, 2009.

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

    shadowbeasts I'm Legend Member

    Joined:
    Jan 5, 2009
    Messages:
    286
    Location:
    Good 'ol USA.
    I give up adding a character to sonic 2 is much harder then I thought I'm trying to add Knuckles to Sonic 2 and I've been working for a few hours with no luck here is what I have so far



    Player_mode = ramaddr( $FFFFFF70 ) ; 0 = Sonic and Tails, 1 = Sonic, 2 = Tails, 3 = Knuckles
    Player_option = ramaddr( $FFFFFF72 ) ; 0 = Sonic and Tails, 1 = Sonic, 2 = Tails, 3 = Knuckles



    Some lines down



    InitPlayers_TailsAlone:
    subq.w #1,d0


    bne.s InitPlayers_KnuxAlone


    move.b #2,(MainCharacter).w; load Obj02 Tails object at $FFFFB000


    move.b #8,(Tails_Dust).w; load Obj08 Tails' spindash dust/splash object at $FFFFD100


    addi.w #4,(MainCharacter+y_pos).w


    rts


    InitPlayers_KnuxAlone:


    move.b #$4D,($FFFFB000).w


    move.b #8,($FFFFD100).w


    rts


    ; End of function InitPla



    and lastly



    byte_KTEA: dc.b $E,"KNUCKLES ALONE "



    That's all I have I need to know what else to add to the ASM. (I don't have a location of where the knuckles object is either) I have no idea what the hell I'm doing, please help me. I'm going nuts. If you need the ASM here it is.s2_ASM.rar
     

    Attached Files:

    Last edited by a moderator: Dec 14, 2009
  2. Spanner

    Spanner The Tool Member

    Joined:
    Aug 9, 2007
    Messages:
    2,570
    $4D is the Knuckles object. *facepalm*


    Replace that with the object you're using for your character.
     
  3. shadowbeasts

    shadowbeasts I'm Legend Member

    Joined:
    Jan 5, 2009
    Messages:
    286
    Location:
    Good 'ol USA.
    So basically I have to copy the entire Knuckles code from the Sonic 2 & knuckles disassembly and change all the object 01 Knuckles to Object 4D Knuckles or I'm I totally confused. ASM is one thing I really don't understand.
     
  4. Spanner

    Spanner The Tool Member

    Joined:
    Aug 9, 2007
    Messages:
    2,570
    No.


    You don't *have* to use Knuckles, you can use something else. You won't have to change much if you are porting. I'm not gonna help you with any further things about it. If you're gonna do stuff with your hack do it yourself.
     
  5. Irixion

    Irixion Well-Known Member Member

    Joined:
    Aug 11, 2007
    Messages:
    670
    Location:
    Ontario, Canada
    You know, you can help him without doing it for him, sheesh soti.


    Basically, what you wanna do is find a blank object slot (look onto your object table). Slop in the knuckles object from S2k's disassembly, and fix some flags. There's really nothing more to it than that. Of course there's the mappings and art and shit, but again, nothing too difficult.
     
Thread Status:
Not open for further replies.