GHZ BG this is no longer an issue!

Discussion in 'Discussion and Q&A Archive' started by liamsonichacker, Jul 14, 2010.

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

    liamsonichacker Mad Level Skillz ;) Member

    Joined:
    May 29, 2009
    Messages:
    50
    Location:
    Leicester, UK
    I tried to change the BG on ghz to this


    Please note that this is an example!.


    [​IMG]


    I edit the with the BG deformation code, The back ground appears but it is in only one row.


    [​IMG]


    What I want to do is have it as the whole BG not just a row.


    Thanks,


    Liam.


    EDIT: I tryed theocas's Idea, now I get a build error like so:


    [​IMG]


    If you cant read it, it says:


    C:\DOCUMENTS AND SETTINGS\----\DESKTOP\S1\CODE\SONIC1.ASM(6720) : Error : Symbol


    'index' not defined


    C:\DOCUMENTS AND SETTINGS\----\DESKTOP\S1\CODE\SONIC1.ASM(6720) : Error : Symbol


    'deform' not defined


    This is the code:



    ; ---------------------------------------------------------------------------
    ; Offset index for background layer deformation code


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


    Deform_Index: dc.w Deform_GHZ-Deform-Index, Deform_LZ-Deform_Index


    dc.w Deform_MZ-Deform_Index, Deform_SLZ-Deform_Index


    dc.w Deform_SYZ-Deform_Index, Deform_SBZ-Deform_Index


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


    ; Green Hill Zone background layer deformation code


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


    ; ||||||||||||||| S U B R O U T I N E |||||||||||||||||||||||||||||||||||||||


    Deform_GHZ: ; XREF: Deform_Index


    move.w ($FFFFF73A).w,d4


    ext.l d4


    asl.l #7,d4


    move.w ($FFFFF73C).w,d5


    ext.l d5


    asl.l #7,d5


    bsr.w ScrollBlock1


    move.w ($FFFFF70C).w,($FFFFF618).w


    lea ($FFFFCC00).w,a1


    move.w #$DF,d1


    move.w ($FFFFF700).w,d0


    neg.w d0


    swap d0


    move.w ($FFFFF708).w,d0


    neg.w d0


    loc_23F2:


    move.l d0,(a1)+


    dbf d1,loc_63C6


    move.w ($FFFFF646).w,d0


    sub.w ($FFFFF704).w,d0


    rts
     
    Last edited by a moderator: Jul 15, 2010
  2. theocas

    theocas #! Member

    Joined:
    Apr 10, 2010
    Messages:
    375
    Have you tried (that's the correct spelling of tryed) replacing GHZ's deformation code with LZ's? Did you edit all background rows and collumns in SonEd2? So what you want is the background as those squares, right? Copying LZ's deformation and BG scrolling code should do the job.
     
  3. liamsonichacker

    liamsonichacker Mad Level Skillz ;) Member

    Joined:
    May 29, 2009
    Messages:
    50
    Location:
    Leicester, UK
    It only lets me edit one row in SonED2, and Yea it is those squares, and if you have a look, I edited the code like you said, it will show you what went wrong


    Thanks,


    Liam.
     
  4. Malevolence

    Malevolence Well-Known Member Member

    Joined:
    Jul 29, 2008
    Messages:
    97
    I really can't understand what you're trying to achieve, I feel like your sentences are a little... broken. Could you try rephrasing and perhaps I could help?
     
  5. liamsonichacker

    liamsonichacker Mad Level Skillz ;) Member

    Joined:
    May 29, 2009
    Messages:
    50
    Location:
    Leicester, UK
    Is it more understandable now?


    Thanks,


    Liam.
     
  6. Malevolence

    Malevolence Well-Known Member Member

    Joined:
    Jul 29, 2008
    Messages:
    97
    Ah I think I get it. You could probably copy a stationary bg deformation as theocas has said (such as LZ), but for your errors that means you've typed that somewhere and the routine or whatever doesn't exist (ie if you typed jsr deform but deform: isn't around)
     
  7. liamsonichacker

    liamsonichacker Mad Level Skillz ;) Member

    Joined:
    May 29, 2009
    Messages:
    50
    Location:
    Leicester, UK
    It says the errors are on line 6720 witch is:


    Deform_Index: dc.w Deform_GHZ-Deform-Index, Deform_LZ-Deform_Index


    Thanks,


    Liam
     
  8. MarkeyJester

    MarkeyJester ♡ ! Member

    Joined:
    Jun 27, 2009
    Messages:
    2,867
    You don't need to say thanks and tell us your name all the time, we know your name, and we know that you're grateful =P


    You problem is "probably" (and I put that in quotes because it may not be true) the fact that the distance between Deform_GHZ & Deform-Index (&/or Deform_LZ & Deform-Index) are too far, or you have more than one, or it could be that Deform_GHZ, Deform_LZ &/or Deform-Index do not exist.
     
  9. OrdosAlpha

    OrdosAlpha RIGHT! Naebody move! Root Admin

    Joined:
    Aug 5, 2007
    Messages:
    1,793
    Location:
    Glasgow, Scotland
    Indeed. Quit it.
     
  10. liamsonichacker

    liamsonichacker Mad Level Skillz ;) Member

    Joined:
    May 29, 2009
    Messages:
    50
    Location:
    Leicester, UK
    I'm sorry people :p



    Deform_GHZ: ; XREF: Deform_Index
    move.w ($FFFFF73A).w,d4


    ext.l d4


    asl.l #7,d4


    move.w ($FFFFF73C).w,d5


    ext.l d5


    asl.l #7,d5


    bsr.w ScrollBlock1


    move.w ($FFFFF70C).w,($FFFFF618).w


    lea ($FFFFCC00).w,a1


    move.w #$DF,d1


    move.w ($FFFFF700).w,d0


    neg.w d0


    swap d0


    move.w ($FFFFF708).w,d0


    neg.w d0


    loc_23F2:


    move.l d0,(a1)+


    dbf d1,loc_63C6


    move.w ($FFFFF646).w,d0


    sub.w ($FFFFF704).w,d0


    rts


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


    ; Labyrinth Zone background layer deformation code


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


    ; ||||||||||||||| S U B R O U T I N E |||||||||||||||||||||||||||||||||||||||


    Deform_LZ: ; XREF: Deform_Index


    move.w ($FFFFF73A).w,d4


    ext.l d4


    asl.l #7,d4


    move.w ($FFFFF73C).w,d5


    ext.l d5


    asl.l #7,d5


    bsr.w ScrollBlock1


    move.w ($FFFFF70C).w,($FFFFF618).w


    lea ($FFFFCC00).w,a1


    move.w #$DF,d1


    move.w ($FFFFF700).w,d0


    neg.w d0


    swap d0


    move.w ($FFFFF708).w,d0


    neg.w d0


    loc_63C6:


    move.l d0,(a1)+


    dbf d1,loc_63C6


    move.w ($FFFFF646).w,d0


    sub.w ($FFFFF704).w,d0


    rts


    ; End of function Deform_LZ



    Do you mean that?


    I also checked, all the spaces are the same.
     
    Last edited by a moderator: Jul 15, 2010
  11. Crash

    Crash Well-Known Member Member

    Joined:
    Jul 15, 2010
    Messages:
    302
    Location:
    Australia
    Change this:



    dc.w Deform_GHZ-Deform-Index



    to this:



    dc.w Deform_GHZ-Deform_Index



    and it should compile.
     
Thread Status:
Not open for further replies.