Page 1 of 1

Screen flashes black. Game Locks. Upon equipping an Ego Cap.

Posted: Fri Oct 30, 2020 9:38 pm
by smithfield
Usually I try to do more due diligence than this. but its pretty severe, so here goes...

Playing 1.7, this character, has an ego cap, Isurin the Hardened Leather Cap, which, when he tries to equip it causes...

the screen to go black, then back, then black, then back, then black, flashing over and over and then locking up altogether if you alt-tab around.

I know that this happens when you mess up w/ core.display.???surface.

I looked into te4_log.txt and there was some stuff from Zizzo's work.

I am posting the te4_log and the debug log in hopes that this will make some sense to someone.

Re: Screen flashes black. Game Locks. Upon equipping an Ego

Posted: Fri Oct 30, 2020 9:54 pm
by Moasseman
Zomnibus issue - Turn off Combined lifebar in Zomnibus and issue goes away

Re: Screen flashes black. Game Locks. Upon equipping an Ego

Posted: Sat Oct 31, 2020 1:12 am
by mstephans
This is what caused the problem for me as well. Thanks for figuring it out!!

Re: Screen flashes black. Game Locks. Upon equipping an Ego

Posted: Sat Oct 31, 2020 1:28 am
by smithfield
Confirmed. Thanks muchas troll intestine buckets.

Re: Screen flashes black. Game Locks. Upon equipping an Ego

Posted: Sat Oct 31, 2020 1:40 am
by smithfield
By the way.

Zizzo, if you learn why this is happening I would like to know. I have tried to create new surfaces and use them w/ existing ones and gotten the same bug. I was replacing the caps lock scroll message surface and I wanted to do something 'special' but chose to settle instead.

Re: Screen flashes black. Game Locks. Upon equipping an Ego

Posted: Sat Oct 31, 2020 3:36 am
by Zizzo
Moasseman wrote:Zomnibus issue - Turn off Combined lifebar in Zomnibus and issue goes away
Should be fixed in latest release (I hope…).
smithfield wrote:Zizzo, if you learn why this is happening I would like to know.
Well, in this case it was happening because my custom life bar drawing code was trying to use a method that didn't exist, and somehow my testing never tripped over it. :oops: Fiddling with the UI is always tricky; an error in the wrong place will bring everything down in the dreaded flickering black screen. I should probably make more extensive use of Lua's pcall() method to catch errors and try to recover more gracefully.

Re: Screen flashes black. Game Locks. Upon equipping an Ego

Posted: Sat Oct 31, 2020 4:50 am
by smithfield
Thank you soooo much. That's exactly the kind of info that I need.