don't click here

Yet another problem

Discussion in 'Engineering & Reverse Engineering' started by Irixion, Jun 15, 2008.

Thread Status:
Not open for further replies.
  1. Alright so, trying to extend EHZ act 2 I ran upon a problem towards moving the boss. Thanks to hitaxas I found

    Code (Text):
    1.     move.b  #$56,(a1); load obj56 (EHZ boss) EHZ Boss Deformation
    2.     move.b  #$81,subtype(a1)
    3.     move.w  #$3C3E,x_pos(a1); x position
    4.     move.w  #$426,y_pos(a1); y position
    Labeled and edited it to where I want the screen to lock. I also edited the level array to the same coordinates.

    However, the boss still loads at the default area. Can someone tell me what I'm missing or doing wrong? Help is greatly appreciated =P
     
  2. Rika Chou

    Rika Chou

    Tech Member
    5,276
    170
    43
    Code (ASM):
    1. loc_2EF36:              ; EHZ boss code
    2.         move.l  #MapUnc_2FAF8,4(a0)
    3.         move.w  #$23A0,2(a0)
    4.         ori.b   #4,1(a0)
    5.         move.b  #-$7F,$28(a0)
    6.         move.w  #$29D0,8(a0)    ; EDIT ME
    7.         move.w  #$426,$C(a0)    ; EDIT ME
    8.         move.b  #$20,$19(a0)
    9.  
    10.         ...
     
  3. I edited that to the new coordinates as well...still nothing :)
     
  4. Well, after investigating and figuring things out... I managed to move the boss...Sorta....This is what happens...pretty self explanatory.

    http://www.youtube.com/watch?v=sNVyiAfCF3I

    Edit: The video starts where the original boss is, and then I run all the way to where the new boss is supposed to be...and well...THAT happens o.o

    Help? D: I can't figure it out, I've moved everything I could find in the boss code (from the old coordinates to the new) ....

    Note: Screen lock has a bug, I'll fix it later, also don't mind Tails' palette :P The music is also in beta so don't bitch about it, as well as the art.

    Edit 2: Removed message...
     
  5. Peruant

    Peruant

    Just dropping in through gaps Member
    I don't know much of ASM , but if it's my guess something is off in the one of the codes and probably it's the reason why Robotnik falls through the ground (lol) Nothin like a edit and check would help
     
  6. Umm...Doi???? The car isn't there, I didn't think it was a separate object, but I checked EVERYTHING. EHZ routines, level array, and coordinates, I cannot find a problem. SOMEONE give me a helping hand :(
     
  7. FraGag

    FraGag

    Tech Member
    In the boss code (Obj56), you can see that many objects are created (like the car and the wheels, I guess). They are marked with a comment:
    Code (ASM):
    1. ; load obj56
    If you search for x_pos(a1) and y_pos(a1), you'll see that some take their coordinates from the first Obj56 object, while some use hardcoded values, like this:
    Code (ASM):
    1.     move.w  #$2AF0,x_pos(a1)
    I looked quickly, but it seems that all objects that have an hardcoded value are set to $2AF0. The Y position seems to always be taken from the main object.

    EDIT: Also, I noticed some comparisons in the code. You will probably need to change them too, or the boss will go away and never come back, as it will turn around at the wrong locations.
     
Thread Status:
Not open for further replies.