Hi all,
I'm using VisuStella's Item/Equips Core, and my playtest crashes when I try to unequip a character's weapon. The crash doesn't occur when the plugin is off, and there are no rulings set in the plugin parameters that would cause the weapon slot to be unable to be empty. What could be causing this? The error that pops up is:
TypeError: Cannot read property 'iconIndex' of null
at Game_Actor.<computed>.changeEquipBase (VisuMZ_1_ItemsEquipsCore.js:3461)
at Game_Actor.<computed>.changeEquip (VisuMZ_1_ItemsEquipsCore.js:3461)
at Scene_Equip.executeEquipChange (rmmz_scenes.js:1934)
at Scene_Equip.onItemOk (rmmz_scenes.js:1923)
at Window_EquipItem.Window_Selectable.callHandler (rmmz_windows.js:1038)
at Window_EquipItem.Window_Selectable.callOkHandler (rmmz_windows.js:1279)
at Window_EquipItem.Window_Selectable.processOk (rmmz_windows.js:1272)
at Window_EquipItem.Window_Selectable.processHandling (rmmz_windows.js:1151)
at Window_EquipItem.Window_Selectable.update (rmmz_windows.js:1116)
at Window_EquipItem.Window_Selectable.<computed>.<computed> [as update] (VisuMZ_1_ItemsEquipsCore.js:3461)
My guess (because of the 'iconIndex' in the error) is that it has something to do with looking for an icon somewhere. In the plugin parameters there is a place to edit the icon for unequip but it is by default set to a valid icon number.
I'm using VisuStella's Item/Equips Core, and my playtest crashes when I try to unequip a character's weapon. The crash doesn't occur when the plugin is off, and there are no rulings set in the plugin parameters that would cause the weapon slot to be unable to be empty. What could be causing this? The error that pops up is:
TypeError: Cannot read property 'iconIndex' of null
at Game_Actor.<computed>.changeEquipBase (VisuMZ_1_ItemsEquipsCore.js:3461)
at Game_Actor.<computed>.changeEquip (VisuMZ_1_ItemsEquipsCore.js:3461)
at Scene_Equip.executeEquipChange (rmmz_scenes.js:1934)
at Scene_Equip.onItemOk (rmmz_scenes.js:1923)
at Window_EquipItem.Window_Selectable.callHandler (rmmz_windows.js:1038)
at Window_EquipItem.Window_Selectable.callOkHandler (rmmz_windows.js:1279)
at Window_EquipItem.Window_Selectable.processOk (rmmz_windows.js:1272)
at Window_EquipItem.Window_Selectable.processHandling (rmmz_windows.js:1151)
at Window_EquipItem.Window_Selectable.update (rmmz_windows.js:1116)
at Window_EquipItem.Window_Selectable.<computed>.<computed> [as update] (VisuMZ_1_ItemsEquipsCore.js:3461)
My guess (because of the 'iconIndex' in the error) is that it has something to do with looking for an icon somewhere. In the plugin parameters there is a place to edit the icon for unequip but it is by default set to a valid icon number.