Loading the 7th emerald to the ending sequence

Discussion in 'Discussion and Q&A Archive' started by Professor Neo, Feb 1, 2009.

Thread Status:
Not open for further replies.
  1. Professor Neo

    Professor Neo Well-Known Member Member

    Joined:
    Nov 16, 2008
    Messages:
    103
    Location:
    United States
    I was told how to make it work for the good ending, but the emerald didn't load.



    Obj88_MainLoop:
    move.b #$88,(a1); load chaos emerald object


    addq.b #2,$24(a1)


    move.l #Map_obj88,4(a1)


    move.w #$3C5,2(a1)


    move.b #4,1(a1)


    move.b #1,$18(a1)


    move.w 8(a0),$38(a1)


    move.w $C(a0),$3A(a1)


    move.b d2,$1C(a1)


    move.b d2,$1A(a1)


    addq.b #1,d2


    move.b d3,$26(a1)


    addi.b #$25,d3


    lea $40(a1),a1


    dbf d1,Obj88_MainLoop; repeat 6 more times



    I was told that this code makes room for the 7th emerald in the good ending



    addi.b #$25,d3



    But to ensure everything, I tested the bad ending and nothing worked.


    [​IMG]
     
    Last edited by a moderator: Feb 2, 2009
  2. nineko

    nineko I am the Holy Cat Member

    Joined:
    Mar 24, 2008
    Messages:
    1,902
    Location:
    italy
    Wrong. That line I suggested you to edit is for when Sonic launches the 6 (now 7) emeralds in the mini GHZ ending scene. It simply ensures the spacing between them is uniform by changing the angle added between them. Basically with that line the emeralds are no longer placed as an hexagon but as an heptagon.


    And to say it all, that's not the only line you have to edit to fix the good ending, btw. You also have to tell the game to load one more emerald. Change:



    moveq #5,d1


    (which is literally one line above Obj88_MainLoop:) to
    Code:
    		moveq	#6,d1
    
    Just FYI, this change will increment d1, which is used in the following instruction to run something like a FOR cycle (if you know Basic or C):
    Code:
    		dbf	d1,Obj88_MainLoop; repeat 5 more times
    
    Basically this line decrements d1 until it reaches 0. So it runs the code 5 6 more times ;)

    edit: to fix also the "try again screen", you have to edit some more lines.


    In Obj8B_Main:



    cmpi.b #6,($FFFFFE57).w; do you have all 6 emeralds?


    Add one and make it
    Code:
    		cmpi.b	#7,($FFFFFE57).w; do you have all 6 emeralds?
    
    .
    In loc_5A6A:



    moveq #5,d1


    Add one
    Code:
    		moveq	#6,d1
    

    In Obj8C_Main:



    moveq #5,d1


    Add one
    Code:
    		moveq	#6,d1
    

    I forgot if there is something else involved with that, though, as a lot of time passed. Try, I guess...
     
    Last edited by a moderator: Feb 2, 2009
  3. Professor Neo

    Professor Neo Well-Known Member Member

    Joined:
    Nov 16, 2008
    Messages:
    103
    Location:
    United States
    It worked for the "Try Again" screen. But for the good ending, the game crashed before I made it to the ending screen after defeating the final boss. I even double-checked and put in the right codes. I tried to test it in debug mode since it takes less time.


    I got this result for the bad ending:


    [​IMG]


    The emerald's pinkish, but now I want it light blue. And how can I do that without screwing up other palettes that may be affected?
     
    Last edited by a moderator: Feb 2, 2009
  4. Selbi

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,429
    Location:
    Northern Germany
    You need dynamic palletes (or what that was...), because it uses the palletes of the other pallete files (Sonic, GHZ...). I don't really know, where and how the pallete got loaded, so check this out, to get some basic informations, on how to add dynamic palletes!


    (BG)
     
    Last edited by a moderator: Feb 3, 2009
  5. RamiroR

    RamiroR Newcomer Member

    Joined:
    Jan 21, 2009
    Messages:
    15
    Nineko, I already changed the loop

    And you, what are you talking about? xD
     
    Last edited by a moderator: Feb 3, 2009
  6. Selbi

    Selbi The Euphonic Mess Member

    Joined:
    Jul 20, 2008
    Messages:
    2,429
    Location:
    Northern Germany
    Well, I said: Create a seperate file for the Chaos Emerald Palette! (as you can see, there is a BG at the end)
     
  7. nineko

    nineko I am the Holy Cat Member

    Joined:
    Mar 24, 2008
    Messages:
    1,902
    Location:
    italy
    willj168, I'd like to help you with your good ending problem, but apparently your team mate knows more than me, so I can only wish you the best of luck!


    On an unrelated topic, I like the pink emerald, I'd keep it.
     
  8. RamiroR

    RamiroR Newcomer Member

    Joined:
    Jan 21, 2009
    Messages:
    15
    Nineko!, what are you talking about, I don't know more than you, but Will DOES need help.. he's kind of lost sometimes..., our problem is very hard, because, we have to put new colors for the emerald, but the thing is that there's no way to put colors without ruin other art.. i tried to tell will about this.. but i dunno..
     
  9. Professor Neo

    Professor Neo Well-Known Member Member

    Joined:
    Nov 16, 2008
    Messages:
    103
    Location:
    United States
    I was wanting to tell you that the game crashed on the good ending when I tried to check if the 7th emerald is there. It worked for the bad ending, though. The ending did not load. With all emeralds, after I beat the final boss, the game crashed just before the ending appeared.

    I want the emerald light blue. The 7th emerald has to be that color. The pink one was replaced by it, according the the history of Chaos Emeralds.
     
    Last edited by a moderator: Feb 3, 2009
Thread Status:
Not open for further replies.