Issue with Yanfly's BattleStatusWindow and TouchUI.js

BigTaro

Villager
Member
Joined
Dec 22, 2012
Messages
12
Reaction score
6
First Language
English
Primarily Uses
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?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Been so busy lately that I wonder if I should slowly start preparing the advent calendar resources so I have enough in december.
Man, I wish it was harder for mean d-holes to make me feel like crying.
Made 8 games. Was aiming for 20. Gonna go for 40. Because 20 + 20. /Bed.
Got myself card game plugin, its bit laggy but worth it
Finally made battler stuff for my last character...

Forum statistics

Threads
94,535
Messages
921,690
Members
124,395
Latest member
thepoopinthesky
Top