I was working on my game, and noticed a bug that occurs when you trigger a battle while a show choice window is active.
I first got this to trigger using Vlue's proximity events — with an enemy with a parallel process proximity sensor patrols around and triggers a battle when spotted. But I was able to recreate it in a completely fresh install with no plugins, using a parallel process that triggers a battle after a fixed time delay.
Installing Yanfly Core gives me a little more to work with...
This happens with no other plugins enabled.
I was not able to reproduce it with an event that triggers a battle on event touch. I was able to get the event to approach and even touch the player, but when a show choice window (or, for the matter, a show text window) is open then event touch events of any kind won't trigger.
I don't particularly want to discuss workarounds, I already made a plugin request thread here which would effectively circumvent the crash, and I've already redesigned it to prevent this from happening. But I'm kind of curious to see if anyone could explain what exactly is going on here and if it's fixable or not, because with how much I use time pressure in this game I feel like it could become an issue again.
I also wonder if anyone else has had a problem like this — because I couldn't find anything — and whether this remains unfixed for a reason or if it's just because it is a niche issue that nobody has ever really had before.
TypeError: Cannot read property 'bitmap' of undefinedI first got this to trigger using Vlue's proximity events — with an enemy with a parallel process proximity sensor patrols around and triggers a battle when spotted. But I was able to recreate it in a completely fresh install with no plugins, using a parallel process that triggers a battle after a fixed time delay.
Installing Yanfly Core gives me a little more to work with...
TypeError: Cannot read property 'bitmap' of undefinedat Window_ChoiceList.get (rpg_core.js:6358:43)at Window_ChoiceList.textWidthEx (rpg_windows.js:3908:42)at Window_ChoiceList.maxChoiceWidth (rpg_windows.js:3899:32)at Window_ChoiceList.windowWidth (rpg_windows.js:3875:22)at Window_ChoiceList.Window_Command.initialize (rpg_windows.js:1302:22)at Window_ChoiceList.initialize (rpg_windows.js:3827:41)at new Window_ChoiceList (rpg_windows.js:3819:21)at Window_Message.createSubWindows (rpg_windows.js:4275:26)at Window_Message.initialize (rpg_windows.js:4252:10)at new Window_Message (rpg_windows.js:4239:21)This happens with no other plugins enabled.
I was not able to reproduce it with an event that triggers a battle on event touch. I was able to get the event to approach and even touch the player, but when a show choice window (or, for the matter, a show text window) is open then event touch events of any kind won't trigger.
I don't particularly want to discuss workarounds, I already made a plugin request thread here which would effectively circumvent the crash, and I've already redesigned it to prevent this from happening. But I'm kind of curious to see if anyone could explain what exactly is going on here and if it's fixable or not, because with how much I use time pressure in this game I feel like it could become an issue again.
I also wonder if anyone else has had a problem like this — because I couldn't find anything — and whether this remains unfixed for a reason or if it's just because it is a niche issue that nobody has ever really had before.