The RPG Maker Resource Kit

RMRK RPG Maker Creation => MV => Topic started by: Wiimeiser on November 16, 2017, 10:41:26 AM

Title: Game crash when switching actors in status menu
Post by: Wiimeiser on November 16, 2017, 10:41:26 AM
When using this (http://yanfly.moe/2017/06/02/yep-140-more-status-menu-pages-rpg-maker-mv/) plugin and hovering over one of the new pages, switching completely crashes the game with "cannot read property 'length' of undefined". I've tested with a clean project and it is not a conflict with anything, it seems to be a conflict with this (http://yanfly.moe/2015/12/04/yep-37-status-menu-core/) (which it cannot run without, period) if it's a conflict at all. Unfortunately, I don't have a Patreon so I can't report this bug, and I'm pretty sure though I'm sure I'm the only one because otherwise this would be fixed by now...

EDIT: The line apparently at fault reads:
Code: [Select]
return this._actor.actor().customStatusMenuPagesData[pageKey].length;
Below is a screenshot of the console and the contents of the lines it points to:
https://imgur.com/a/ef1Zc

EDIT2: Removing the ".length" on that line fixes the crash, but the text doesn't display.

Someone else had a similar problem back in August (https://forums.rpgmakerweb.com/index.php?threads/cannot-read-property-length-of-undefined-yanfly-morestatuspages.83017/). They supposedly reported it but Yanfly never responded.

So yeah, this plugin's a lost cause. No one use this plugin!