I'm running into an issue where whenever I try to test a battle, the game crashes with this error: "Failed to execute 'getImageData' on 'CanvasRenderingContext2D': Float parameter 1 is non-finite." I originally thought that it had something to do with a plugin I had installed, so I turned it off, and it didn't do anything. This renders the game utterly unable to be progressed, so I need help with this.
Error makes battles unplayable
Javascript/Plugin SupportCould please press F8 and paste the contents of the console here?
uncaught Error: ENOENT: no such file or directory, scandir 'C:\Users\(Censored because privacy)\Documents\Games\The Fall\img\SumRndmDde\hud\pictures'
/C:/Users/(Censored because privacy)(/Documents/Games/The%20Fall/js/plugins/TitleScreen.js:107 Uncaught TypeError: Cannot read property 'trim' of undefined
rpg_managers.js:1618 TypeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': float parameter 1 is non-finite.
at TypeError (native)
at Bitmap.getPixel (file:///C:/Users/(Censored because privacy)/Documents/Games/The%20Fall/js/rpg_core.js:689:30)
at Window_VisualHPGauge.Window_Base.textColor (file:///C:/Users/(Censored because privacy)/Documents/Games/The%20Fall/js/rpg_windows.js:176:28)
at Window_VisualHPGauge.hpGaugeColor1 (file:///C:/Users/(Censored because privacy)/Documents/Games/The%20Fall/js/plugins/HPbars.js:593:17)
at Window_VisualHPGauge.drawActorHp (file:///C:/Users/(Censored because privacy)/Documents/Games/The%20Fall/js/plugins/HPbars.js:602:23)
at Window_VisualHPGauge.refresh (file:///C:/Users/(Censored because privacy)/Documents/Games/The%20Fall/js/plugins/HPbars.js:585:10)
at Window_VisualHPGauge.updateRefresh (file:///C:/Users/(Censored because privacy)/Documents/Games/The%20Fall/js/plugins/HPbars.js:576:36)
at Window_VisualHPGauge.updateWindowAspects (file:///C:/Users/(Censored because privacy)/Documents/Games/The%20Fall/js/plugins/HPbars.js:488:10)
at Window_VisualHPGauge.update (file:///C:/Users/(Censored because privacy)/Documents/Games/The%20Fall/js/plugins/HPbars.js:480:10)
at file:///C:/Users/(Censored because privacy)/Documents/Games/The%20Fall/js/rpg_core.js:3290:19
/C:/Users/(Censored because privacy)(/Documents/Games/The%20Fall/js/plugins/TitleScreen.js:107 Uncaught TypeError: Cannot read property 'trim' of undefined
rpg_managers.js:1618 TypeError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': float parameter 1 is non-finite.
at TypeError (native)
at Bitmap.getPixel (file:///C:/Users/(Censored because privacy)/Documents/Games/The%20Fall/js/rpg_core.js:689:30)
at Window_VisualHPGauge.Window_Base.textColor (file:///C:/Users/(Censored because privacy)/Documents/Games/The%20Fall/js/rpg_windows.js:176:28)
at Window_VisualHPGauge.hpGaugeColor1 (file:///C:/Users/(Censored because privacy)/Documents/Games/The%20Fall/js/plugins/HPbars.js:593:17)
at Window_VisualHPGauge.drawActorHp (file:///C:/Users/(Censored because privacy)/Documents/Games/The%20Fall/js/plugins/HPbars.js:602:23)
at Window_VisualHPGauge.refresh (file:///C:/Users/(Censored because privacy)/Documents/Games/The%20Fall/js/plugins/HPbars.js:585:10)
at Window_VisualHPGauge.updateRefresh (file:///C:/Users/(Censored because privacy)/Documents/Games/The%20Fall/js/plugins/HPbars.js:576:36)
at Window_VisualHPGauge.updateWindowAspects (file:///C:/Users/(Censored because privacy)/Documents/Games/The%20Fall/js/plugins/HPbars.js:488:10)
at Window_VisualHPGauge.update (file:///C:/Users/(Censored because privacy)/Documents/Games/The%20Fall/js/plugins/HPbars.js:480:10)
at file:///C:/Users/(Censored because privacy)/Documents/Games/The%20Fall/js/rpg_core.js:3290:19
Looks like there are some missing pictures in the img/SumRndmDde/hud/pictures directory. Try disabling his scripts until you can pinpoint the faulty one.
I noticed this, and disabled them. However, the error still pops up.
Is there any plugin active right now? Have you tried to disable them one by one?
From the error log, I could guess it is the HPbars.js or the TitleScreen.js plugin.
From the error log, I could guess it is the HPbars.js or the TitleScreen.js plugin.
I disabled HPbars and TitleScreen, and the error still pops up.
If you're still getting that error, that means the plug-in is not disabled. Also note that to turn on or off a plug-in you have to start playing a game from the beginning.
I've moved this thread to Plug-In Support. Thank you.
That worked! Thanks!
additionally, you should rename your directory names to be network-legal.
The space in "the fall" needs to be gone before deplayment or you risk problems on non-windows devices.
(this is only for the directory name, not for the title itself, and goes for any other space in any filename as well)
The space in "the fall" needs to be gone before deplayment or you risk problems on non-windows devices.
(this is only for the directory name, not for the title itself, and goes for any other space in any filename as well)
Original thread: https://forums.rpgmakerweb.com/threads/error-makes-battles-unplayable.79279/