Sonic 1 Dynamic Palettes not working

Discussion in 'Discussion and Q&A Archive' started by DrZakywaky, Apr 9, 2015.

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

    DrZakywaky Newcomer Trialist

    Joined:
    Jul 21, 2012
    Messages:
    4
    Hello.

    I'm relatively to sonic hacking so I followed this guide to help me implement dynamic palettes into sonic 1. However when I build it I get these errors:


    Code:
    SN 68k version 2.53
    
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTERSONIC.ASM(1797) : Error : Op-code not recognised
    move.b $fffffe11,d1
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTERSONIC.ASM(1798) : Error : Op-code not recognised
    lea (palpointers).l,a1
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTERSONIC.ASM(1799) : Error : Op-code not recognised
    cmp.b #0,d1
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTERSONIC.ASM(1800) : Error : Op-code not recognised
    beq.w palload#_continue
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTERSONIC.ASM(1801) : Error : Op-code not recognised
    lea (palpointers2).l,a1
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTERSONIC.ASM(1802) : Error : Op-code not recognised
    cmp.b #1,d1
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTERSONIC.ASM(1803) : Error : Op-code not recognised
    beq.w palload#_continue
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTERSONIC.ASM(1804) : Error : Op-code not recognised
    lea (palpointers3).l,a1
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTERSONIC.ASM(1806) : Error : Op-code not recognised
    palload#_continue:
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS2.ASM(10) : Error : Label 'palpointers' multiply defined
    palpointers:
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS2.ASM(14) : Error : Label 'ptr_pal_segabg' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS2.ASM(15) : Error : Label 'ptr_pal_title' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS2.ASM(16) : Error : Label 'ptr_pal_levelsel' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS2.ASM(17) : Error : Label 'ptr_pal_sonic' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS2.ASM(18) : Error : Label 'pal_levels' multiply defined
    pal_levels:
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS2.ASM(24) : Error : Label 'ptr_pal_sbz1' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS2.ASM(25) : Warning : Size of pal_levels ($1A) does not match ZoneCount (minus ending) ($7-1).
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS2.ASM(26) : Error : Label 'ptr_pal_special' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS2.ASM(28) : Error : Label 'ptr_pal_sbz3' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS2.ASM(29) : Error : Label 'ptr_pal_sbz3water' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS2.ASM(30) : Error : Label 'ptr_pal_sbz2' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS2.ASM(31) : Error : Label 'ptr_pal_lzsonwater' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS2.ASM(32) : Error : Label 'ptr_pal_sbz3sonwat' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS2.ASM(33) : Error : Label 'ptr_pal_ssresult' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS2.ASM(34) : Error : Label 'ptr_pal_continue' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS2.ASM(35) : Error : Label 'ptr_pal_ending' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS3.ASM(10) : Error : Label 'palpointers' multiply defined
    palpointers:
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS3.ASM(14) : Error : Label 'ptr_pal_segabg' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS3.ASM(15) : Error : Label 'ptr_pal_title' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS3.ASM(16) : Error : Label 'ptr_pal_levelsel' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS3.ASM(17) : Error : Label 'ptr_pal_sonic' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS3.ASM(18) : Error : Label 'pal_levels' multiply defined
    pal_levels:
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS3.ASM(24) : Error : Label 'ptr_pal_sbz1' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS3.ASM(25) : Warning : Size of pal_levels ($2E) does not match ZoneCount (minus ending) ($7-1).
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS3.ASM(26) : Error : Label 'ptr_pal_special' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS3.ASM(28) : Error : Label 'ptr_pal_sbz3' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS3.ASM(29) : Error : Label 'ptr_pal_sbz3water' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS3.ASM(30) : Error : Label 'ptr_pal_sbz2' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS3.ASM(31) : Error : Label 'ptr_pal_lzsonwater' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS3.ASM(32) : Error : Label 'ptr_pal_sbz3sonwat' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS3.ASM(33) : Error : Label 'ptr_pal_ssresult' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS3.ASM(34) : Error : Label 'ptr_pal_continue' multiply defined
    paladdress,ramaddress,colours
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER_INCPALETTE POINTERS3.ASM(35) : Error : Label 'ptr_pal_ending' multiply defined
    paladdress,ramaddress,colours
    Errors during pass 1 - pass 2 aborted
    Assembly completed.
    41 error(s) from 53524 lines in 0.14 seconds
    
    
     

    Can anyone help?
     
  2. Irixion

    Irixion Well-Known Member Member

    Joined:
    Aug 11, 2007
    Messages:
    670
    Location:
    Ontario, Canada
    Right, so, get rid of your multiple definitions and see if that helps. So. Yeah. Either the guide is broken or you didn't follow it properly because there's two of a lot of stuff.
     
  3. Pacca

    Pacca Having an online identity crisis since 2019 Member

    Joined:
    Jul 5, 2014
    Messages:
    1,175
    Location:
    Limbo
    After looking closely at your errors as well as the guide, it seems you have not followed all the instructions; redo the guide, making sure you read it clearly as you go.
     
  4. DrZakywaky

    DrZakywaky Newcomer Trialist

    Joined:
    Jul 21, 2012
    Messages:
    4
    I've done what you two have said bu i'm still getting a few errors.

    Code:
    
    SN 68k version 2.53
    
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER NOT WORKING 10-4-14SONIC.ASM(1797) : Error : Op-code not recognised
    move.b $fffffe11,d1
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER NOT WORKING 10-4-14SONIC.ASM(1798) : Error : Op-code not recognised
    lea (palpointers).l,a1
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER NOT WORKING 10-4-14SONIC.ASM(1799) : Error : Op-code not recognised
    cmp.b #0,d1
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER NOT WORKING 10-4-14SONIC.ASM(1800) : Error : Op-code not recognised
    beq.w palload1_continue
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER NOT WORKING 10-4-14SONIC.ASM(1801) : Error : Op-code not recognised
    lea (palpointers2).l,a1
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER NOT WORKING 10-4-14SONIC.ASM(1802) : Error : Op-code not recognised
    cmp.b #1,d1
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER NOT WORKING 10-4-14SONIC.ASM(1803) : Error : Op-code not recognised
    beq.w palload1_continue
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER NOT WORKING 10-4-14SONIC.ASM(1804) : Error : Op-code not recognised
    lea (palpointers3).l,a1
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER NOT WORKING 10-4-14_INCPALETTE POINTERS2.ASM(18) : Warning : Size of pal_levels ($15) does not match ZoneCount (minus ending) ($7-1).
    F:DOWNLOADSS1DISASM-MASTERS1DISASM-MASTER NOT WORKING 10-4-14_INCPALETTE POINTERS3.ASM(20) : Warning : Size of pal_levels ($1B) does not match ZoneCount (minus ending) ($7-1).
    Errors during pass 1 - pass 2 aborted
    Assembly completed.
    8 error(s) from 53364 lines in 0.12 seconds
    
    
     
  5. Clownacy

    Clownacy Retired Staff lolololo Member

    Joined:
    Aug 15, 2014
    Messages:
    1,020
    I should bring attention to this:

    The instructions here lack indentation, raising some 'Op-code not recognised' errors (Also, having the symbol '#' in a label causes errors, but the reader is supposed to replace them, as the guide tells them).
     
    Last edited by a moderator: Apr 10, 2015
  6. DrZakywaky

    DrZakywaky Newcomer Trialist

    Joined:
    Jul 21, 2012
    Messages:
    4
    So, I have to get rid of all the hashes?
     
  7. Clownacy

    Clownacy Retired Staff lolololo Member

    Joined:
    Aug 15, 2014
    Messages:
    1,020
    I just said that the hacker is supposed to replace them, which, as your usage of "palload1_continue" indicates, you already have. What I'm saying is that the instructions (not the labels) lack a space before them (indentation). Those are needed.
     
  8. DrZakywaky

    DrZakywaky Newcomer Trialist

    Joined:
    Jul 21, 2012
    Messages:
    4
    Oh, right.
     
Thread Status:
Not open for further replies.