DIV ARENA FORUMS

Obscure M8 bug

BreadCaster - 15-4-2017 at 12:55 PM

Yet another mode 8 bug!! This ones fairly easy to avoid but I thought it were worth flagging up :)

So, as you may have read I've got a game which dynamically switches out WLDs as you move from sector to sector, to simulate rooms over rooms. It's a great trick and it's making my current project possible :)

But there is a problem! Yes. When dynamically loading in another WLD, sometimes the screen goes black. No visual readout from the mode 8 camera, but you can still hear the player walking, you can see their colliding with walls, passing into sectors (I have a stats readout at the top of the screen for m8_wall and m8_sector, amongst othar things haha). I managed to stop it happening, and isolated it down to one single function - set_env_color.

Basically, if set_env_color has been used at all - even if it's set to one thing then set back to RGB 0, 0, 0 then it still causes this error. Comment out every set_env_color and this bug does not occur.

A weird one, yes?

Yes.


BC

CicTec - 15-4-2017 at 06:04 PM

Hello BreadCaster,

Could you please provide an example to try to display the problem ? So I can test what causes the bug.

BreadCaster - 19-4-2017 at 08:12 AM

Quote: Originally posted by CicTec  
Hello BreadCaster,

Could you please provide an example to try to display the problem ? So I can test what causes the bug.


Of course!! I can send a basic version of the full program, WLDs and FPG soon although to access this I have to set up my tower PC, so please bare with me while I find some time to do this.

CicTec - 19-4-2017 at 08:48 AM

No problem, take all the time needed to mount the example, when available will try it. :)

BreadCaster - 19-4-2017 at 02:07 PM

Quote: Originally posted by CicTec  
No problem, take all the time needed to mount the example, when available will try it. :)


Sending you a U2U now with a link to download the .rar/files needed :)

CicTec - 19-4-2017 at 02:50 PM

Thanks :), received and downloaded, I shall examine it in the coming days, as soon as I have some news, will alert.