HUD Modification Not Working?

Discussion in 'Discussion and Q&A Archive' started by DarkLeach, Aug 15, 2012.

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

    DarkLeach Well-Known Member Member

    Joined:
    Jul 3, 2011
    Messages:
    193
    Location:
    In the middle of desert heat
    I'm trying to add an Item to the HUD and it isn't showing up correctly. It shows up correctly (mostly) in SonMapEd, but in game it's horribly broken.


    In SonMapEd:


    /monthly_08_2012/post-1593-0-29343600-1345070847_thumb.png


    In Game with Debug Mode off:


    /monthly_08_2012/post-1593-0-63336100-1345070854_thumb.png


    In Game with Debug Mode on:


    /monthly_08_2012/post-1593-0-79660400-1345070863_thumb.png


    I have no clue what's going on here, but I know it has to do with the game is pulling the score instead of my tile graphics.


    Here is the obj21.asm:



    Code:
    
    ; ---------------------------------------------------------------------------
    
    ; Sprite mappings - SCORE, TIME, RINGS, BOOST
    
    ; ---------------------------------------------------------------------------
    
    dc.w byte_1C5BC-Map_obj21, byte_1C5F0-Map_obj21
    
    dc.w byte_1C624-Map_obj21, byte_1C658-Map_obj21
    
    byte_1C5BC: dc.b $C ;A
    
    dc.b $80, $D, $80, 0, 0 ;SCOR
    
    dc.b $80, $D, $80, $16, $20 ;"E"
    
    dc.b $80, $D, $80, $20, $40 ;? After E
    
    dc.b $90, $D, $80, $10, 0 ;TIME
    
    dc.b $90, $D, $80, $28, $28 ;? After TIME
    
    dc.b $A0, $D, $80, 8, 0 ;RING
    
    dc.b $A0, 1, $80, 0, $20 ;S
    
    dc.b $B0, $D, $80, $18, 0 ;BOOS
    
    dc.b $B0, 1, $80, $20, $20 ;T
    
    dc.b $A0, 9, $80, $30, $30
    
    dc.b $40, 5, $81, $A, 0
    
    dc.b $40, $D, $81, $E, $10
    
    dc.b 0
    
    byte_1C5F0: dc.b $C
    
    dc.b $80, $D, $80, 0, 0
    
    dc.b $80, $D, $80, $16, $20
    
    dc.b $80, $D, $80, $20, $40
    
    dc.b $90, $D, $80, $10, 0
    
    dc.b $90, $D, $80, $28, $28
    
    dc.b $A0, $D, $A0, 8, 0
    
    dc.b $A0, 1, $A0, 0, $20
    
    dc.b $B0, $D, $80, $18, 0 ;BOOS
    
    dc.b $B0, 1, $80, $20, $20 ;T
    
    dc.b $A0, 9, $80, $30, $30
    
    dc.b $40, 5, $81, $A, 0
    
    dc.b $40, $D, $81, $E, $10
    
    dc.b 0
    
    byte_1C624: dc.b $C
    
    dc.b $80, $D, $80, 0, 0
    
    dc.b $80, $D, $80, $16, $20
    
    dc.b $80, $D, $80, $20, $40
    
    dc.b $90, $D, $A0, $10, 0
    
    dc.b $90, $D, $80, $28, $28
    
    dc.b $A0, $D, $80, 8, 0
    
    dc.b $A0, 1, $80, 0, $20
    
    dc.b $B0, $D, $80, $18, 0 ;BOOS
    
    dc.b $B0, 1, $80, $20, $20 ;T
    
    dc.b $A0, 9, $80, $30, $30
    
    dc.b $40, 5, $81, $A, 0
    
    dc.b $40, $D, $81, $E, $10
    
    dc.b 0
    
    byte_1C658: dc.b $C
    
    dc.b $80, $D, $80, 0, 0
    
    dc.b $80, $D, $80, $16, $20
    
    dc.b $80, $D, $80, $20, $40
    
    dc.b $90, $D, $A0, $10, 0
    
    dc.b $90, $D, $80, $28, $28
    
    dc.b $A0, $D, $A0, 8, 0
    
    dc.b $A0, 1, $A0, 0, $20
    
    dc.b $B0, $D, $80, $18, 0 ;BOOS
    
    dc.b $B0, 1, $80, $20, $20 ;T
    
    dc.b $A0, 9, $80, $30, $30
    
    dc.b $40, 5, $81, $A, 0
    
    dc.b $40, $D, $81, $E, $10
    
    even
    
    

    I just want to know whats going on and why, and I'd like to have some help fixing it. Any help on this subject will be greatly appreciated. :)

    [/CODE]
     

    Attached Files:

  2. redhotsonic

    redhotsonic Also known as RHS Member

    Joined:
    Aug 10, 2007
    Messages:
    2,969
    Location:
    England
    The only thing I can notice that's wrong is that the BOOST isn't being displayed. Is there enough room in the VRAM for the art to be loaded?
     
  3. DarkLeach

    DarkLeach Well-Known Member Member

    Joined:
    Jul 3, 2011
    Messages:
    193
    Location:
    In the middle of desert heat
    I feel stupid now :p , I noticed that the "BOOST" loads, but it's overwritten by the Score Digit Display tiles. Which in turn is where the Debug Display Tiles are loaded... So you are right, the VRAM space is being used :/ , but where could I free some up?
     
Thread Status:
Not open for further replies.