Hi,
There seems to be an issue related to using both Yanfly's Battle Status Window (YEP_BattleStatusWindow.js) v1.04 and the TouchUI.js that came included in the steam version of RMMV while running on Android via the crosswalk accelerated webview. If those two plugins are enabled together, then entering a battle will throw the following error:
TypeError: Cannot read property 'width' of undefined.
When disabling the BattleStatusWindow plugin the issue goes away. Here is a call trace of the issue from ADB's logcat.
06-01 02:19:38.323 879 879 I chromium: [INFO:CONSOLE(1722)] "TypeError: Cannot read property 'width' of undefined
06-01 02:19:38.323 879 879 I chromium: at Window_BattleActor.Window_BattleStatus.itemWidth (file:///android_asset/www/js/plugins/YEP_BattleStatusWindow.js:438:25)
06-01 02:19:38.323 879 879 I chromium: at Window_BattleActor.Window_Selectable.contentsWidth (file:///android_asset/www/js/plugins/TouchUI.js:1471:48)
06-01 02:19:38.323 879 879 I chromium: at Window_BattleActor.Window_Selectable._refreshCursor (file:///android_asset/www/js/plugins/TouchUI.js:1540:38)
06-01 02:19:38.323 879 879 I chromium: at Window_BattleActor.Window._refreshAllParts (file:///android_asset/www/js/rpg_core.js:5386:10)
06-01 02:19:38.323 879 879 I chromium: at Window_BattleActor.Window._refreshAllParts (file:///android_asset/www/js/plugins/YEP_CoreEngine.js:651:40)
06-01 02:19:38.323 879 879 I chromium: at Window_BattleActor.Window_Selectable._refreshAllParts (file:///android_asset/www/js/plugins/TouchUI.js:1517:39)
06-01 02:19:38.323 879 879 I chromium: at Window_BattleActor.Window._onWindowskinLoad (file:///android_asset/www/js/rpg_core.js:5376:10)
06-01 02:19:38.323 879 879 I chromium: at Bitmap.addLoadListener (file:///android_asset/www/js/rpg_core.js:1015:9)
06-01 02:19:38.323 879 879 I chromium: at Window_BattleActor.Object.defineProperty.set (file:///android_asset/www/js/rpg_core.js:5071:30)
06-01 02:19:38.323 879 879 I chromium: at Window_BattleActor.Window_Base.loadWindowskin (file:///android_asset/www/js/rpg_windows.js:66:21)", source: file:///android_asset/www/js/rpg_managers.js (1722)
That error seems to be referencing this chunk of code:
Window_BattleStatus.prototype.itemWidth = function() {
return this.contents.width / this.maxCols();
};
It seems to be trying to grab the width of an item that is most likely nil. Has anyone else encountered this before? If so, how did you solve it?
There seems to be an issue related to using both Yanfly's Battle Status Window (YEP_BattleStatusWindow.js) v1.04 and the TouchUI.js that came included in the steam version of RMMV while running on Android via the crosswalk accelerated webview. If those two plugins are enabled together, then entering a battle will throw the following error:
TypeError: Cannot read property 'width' of undefined.
When disabling the BattleStatusWindow plugin the issue goes away. Here is a call trace of the issue from ADB's logcat.
06-01 02:19:38.323 879 879 I chromium: [INFO:CONSOLE(1722)] "TypeError: Cannot read property 'width' of undefined
06-01 02:19:38.323 879 879 I chromium: at Window_BattleActor.Window_BattleStatus.itemWidth (file:///android_asset/www/js/plugins/YEP_BattleStatusWindow.js:438:25)
06-01 02:19:38.323 879 879 I chromium: at Window_BattleActor.Window_Selectable.contentsWidth (file:///android_asset/www/js/plugins/TouchUI.js:1471:48)
06-01 02:19:38.323 879 879 I chromium: at Window_BattleActor.Window_Selectable._refreshCursor (file:///android_asset/www/js/plugins/TouchUI.js:1540:38)
06-01 02:19:38.323 879 879 I chromium: at Window_BattleActor.Window._refreshAllParts (file:///android_asset/www/js/rpg_core.js:5386:10)
06-01 02:19:38.323 879 879 I chromium: at Window_BattleActor.Window._refreshAllParts (file:///android_asset/www/js/plugins/YEP_CoreEngine.js:651:40)
06-01 02:19:38.323 879 879 I chromium: at Window_BattleActor.Window_Selectable._refreshAllParts (file:///android_asset/www/js/plugins/TouchUI.js:1517:39)
06-01 02:19:38.323 879 879 I chromium: at Window_BattleActor.Window._onWindowskinLoad (file:///android_asset/www/js/rpg_core.js:5376:10)
06-01 02:19:38.323 879 879 I chromium: at Bitmap.addLoadListener (file:///android_asset/www/js/rpg_core.js:1015:9)
06-01 02:19:38.323 879 879 I chromium: at Window_BattleActor.Object.defineProperty.set (file:///android_asset/www/js/rpg_core.js:5071:30)
06-01 02:19:38.323 879 879 I chromium: at Window_BattleActor.Window_Base.loadWindowskin (file:///android_asset/www/js/rpg_windows.js:66:21)", source: file:///android_asset/www/js/rpg_managers.js (1722)
That error seems to be referencing this chunk of code:
Window_BattleStatus.prototype.itemWidth = function() {
return this.contents.width / this.maxCols();
};
It seems to be trying to grab the width of an item that is most likely nil. Has anyone else encountered this before? If so, how did you solve it?