Language…
14 users online: anonimzwx, Blizzard Buffalo, BlueSheep123, CalHal, DocCzekaj, Ekimnoid, Enderdavid_HD, HD_DankBaron, LuigiTron, ppp9q,  Ringo, sinseiga, sugarfish456, WalrusLife - Guests: 281 - Bots: 394
Users: 64,795 (2,376 active)
Latest user: mathew

Layer 3 disappearing when hitting message box?

Hi. I've been using stripe image to upload layer 3 tiles to the screen, but I'm having a problem. (here's a vid).

It works fine like in the video, but the problem happens after hitting a message box. Whenever Mario hits a message box, the text just disappears like the layer 3 tides do. I want to know if there is a fix for this. I've tried doing 2 things:

I hacked the routine over here at $05B19C, and JSL'd to my code uploading the layer 3 tiles after restoring the hijacked code in the routine (and a NOP as well). This doesn't work..

Then I hacked into the message box routine at $05B294, and did the same as before, uploading my layer 3 tiles. This just makes the tiles display for some frames before disappearing though (when hitting a message box).

I want to know how the status bar doesn't disappear when hitting a message box, because that is also using BG3. Is there some sort of code which prevents it from happening?

The only other way I could think of uploading tiles to the screen would be to use the sprite layer, which is obviously more harder than using stripe image or DMA->VRAM so I don't want to try that out.

If anyone can help me, I'd really appreciate it ;)
Don't put the Message Box in any level that has Layer 3 in it.
Yeah, I don't think you'll find much of that subject, it's probably neccissary to clear out all the layer 3. Perhaps make a patch that moves layer 3 tiles to layer 2 first? Or move the status bar IRQ down a few rows?
smwcentral iconWell, you could just disable the pause when a message is out. That would keep it from showing the abilities. 0_0 Can you teach me how to do that? That is awesome.......
You know, it would be cool if someone made a sword sprite(s) and released it to the public. That would help a lot of people........ Now that I think about it, that would be perfect for C3! (Not that I could program a sword sprite)
@Level Ate: That's what I was asking. If I make a pause screen, it must work all the time.

Maxx, if it moves layer 3 tiles to layer 2, wouldn't that involve layer 2? I don't want to mess with IRQ either. I guess I will just have to learn to use the sprite layer >_>

Oh, scepile3, it's just stripe image and DMA->VRAM transfers. Roy made a thread about it in the data repository forums.
smwcentral iconI just noticed something. In the messagebox dissassemble, I noticed this:
CODE_05B129: 9C 9F 0D STZ.W $0D9F ;/ HDMA to 0. Probably so that nothing layer 3 gets in the way.
Shouldn't tht be removed?
You know, it would be cool if someone made a sword sprite(s) and released it to the public. That would help a lot of people........ Now that I think about it, that would be perfect for C3! (Not that I could program a sword sprite)