Problem with asm while making new level

Discussion in 'Discussion and Q&A Archive' started by HiddenPalace, Jan 19, 2011.

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

    HiddenPalace Active Member Member

    Joined:
    Feb 9, 2010
    Messages:
    33
    I am trying to create a new level but I keep getting this error:


    > > > s2.asm(83334) LEVARTPTRS(4): error: symbol undefined


    > > > PALID_SLZ


    > > > dc.l (PALID_SLZ<<24)|BM128_SLZ


    What can I do to correct this?


    I am using level 9 as the base level.
     
    Last edited by a moderator: Jan 19, 2011
  2. DanielHall

    DanielHall Well-Known Member Member

    Joined:
    Jan 18, 2010
    Messages:
    860
    Location:
    North Wales
    Can we see the code?
     
  3. FireRat

    FireRat Do Not Interact With This User, Anywhere!!! Exiled

    Joined:
    Oct 31, 2009
    Messages:
    535
    Yes, and what is your dissam. version? the nemesis, aurochs or xernowil version?
     
  4. HiddenPalace

    HiddenPalace Active Member Member

    Joined:
    Feb 9, 2010
    Messages:
    33
    Here is my code:


    ;---------------------------------------------------------------------------------------


    ; SLZ primary 16x16 collision index (Kosinski compression)


    ColP_SLZ: BINCLUDE "collision/SLZ primary collision.bin"


    even


    ;---------------------------------------------------------------------------------------


    ; SLZ secondary 16x16 collision index (Kosinski compression)


    ColS_SLZ: BINCLUDE "collision/SLZ secondary collision.bin"


    even


    ;---------------------------------------------------------------------------------------


    ; SLZ act 1 level layout (Kosinski compression)


    Level_SLZ1: BINCLUDE "level/layout/SLZ act 1.bin"


    even


    ;---------------------------------------------------------------------------------------


    ; SLZ act 2 level layout (Kosinski compression)


    Level_SLZ2: BINCLUDE "level/layout/SLZ act 2.bin"


    even


    ;-----------------------------------------------------------------------------------


    ; SLZ 16x16 block mappings (Kosinski compression)


    BM16_SLZ: BINCLUDE "mappings/16x16/SLZ.bin"


    ;-----------------------------------------------------------------------------------


    ; SLZ main level patterns (Kosinski compression)


    ArtKos_SLZ: BINCLUDE "art/kosinski/SLZ.bin"


    ;-----------------------------------------------------------------------------------


    ; SLZ 128x128 block mappings (Kosinski compression)


    BM128_SLZ: BINCLUDE "mappings/128x128/SLZ.bin"


    ;-----------------------------------------------------------------------------------


    ;---------------------------------------------------------------------------------------


    levartptrs PLCID_Mtz1, PLCID_Mtz1, PalID_SLZ, ArtKos_SLZ, BM16_SLZ, BM128_SLZ ; 9 ; SLZ ; SNOW LAND ZONE (UNUSED)


    ------------------------------------------------------------------------------------


    PalPointers:


    PalPtr_SLZ: palptr Pal_SLZ, 1


    --------------------------------------------------


    Pal_SLZ: palette SLZ palette.bin ; Snow Land Zone palette


    ----------------------------------------------------------------------


    The bincludes are for your reference.


    the problem is the levartptrs.


    I am using the sonic 2 svn disassembly.
     
  5. HiddenPalace

    HiddenPalace Active Member Member

    Joined:
    Feb 9, 2010
    Messages:
    33
    I am trying to do an equal command:


    PalID_SLZ equ PalPtr_SLZ


    but I get this error:


    > > >s2.asm(83339) LEVARTPTRS(4): error: range overflow


    > > > dc.l (PALID_SLZ<<24)|BM128_SLZ
     
  6. HiddenPalace

    HiddenPalace Active Member Member

    Joined:
    Feb 9, 2010
    Messages:
    33
  7. Dark Lips

    Dark Lips Well-Known Member Member

    Joined:
    Nov 14, 2008
    Messages:
    293
    Location:
    Wolverhampton UK
    I dont know if this is of any help to you but over at retro there is a guide to adding extra zone slots to s2.
     
  8. HiddenPalace

    HiddenPalace Active Member Member

    Joined:
    Feb 9, 2010
    Messages:
    33
    The game crashes just before loading the zone layout.


    What is wrong?
     
  9. MicroChirp

    MicroChirp Wow, I was so stupid a few years ago... Member

    Joined:
    Oct 4, 2010
    Messages:
    366
    Location:
    In the middle of nowhere
    Hmm... Wrong entered code?
     
  10. DanielHall

    DanielHall Well-Known Member Member

    Joined:
    Jan 18, 2010
    Messages:
    860
    Location:
    North Wales
    Music doesn't work?
     
  11. HiddenPalace

    HiddenPalace Active Member Member

    Joined:
    Feb 9, 2010
    Messages:
    33
    It starts to load the level music.


    But then immediately changes to the supersonic music.
     
  12. HiddenPalace

    HiddenPalace Active Member Member

    Joined:
    Feb 9, 2010
    Messages:
    33
    The title card won't go away.
     
  13. HiddenPalace

    HiddenPalace Active Member Member

    Joined:
    Feb 9, 2010
    Messages:
    33
    It can't seem to load the level art.


    WHY?
     
  14. MarkeyJester

    MarkeyJester ♡ ! Member

    Joined:
    Jun 27, 2009
    Messages:
    2,867
    I'm gonna close this now, your questions are a bit small for a dedicated thread I'm afraid, if you need help, ask here insted =)
     
Thread Status:
Not open for further replies.