Hello, everyone!
I seem to be encountering a bug in Yanfly's "Item Core" plugin (YEP_ItemCore.js). The issue has been replicated in a clean (new) project with no other plugins enabled.
I am using Item Core v. 1.30 — This appears to be the latest version after checking Yanfly's website.
The error occurs when using the limited number of items param with the "updated scene item" param set to false. When using an item from the menu, such as a potion, the game crashes with the following error: "TypeError" - "Cannot read property 'name' of null"
Here is how to reproduce the bug:
1. Create a new project.
2. Add YEP_ItemCore to plugins.
3. Change "Max Items" param to some number (I've tried various numbers here, it doesn't seem to matter.)
4. Change "Updated Scene Item" to "false."
5. Click "OK," "Apply," and exit the plugins window.
6. Create an autorun event that gives the party at least 1 potion.
7. Add some kind of damage to a player or the entire party so you can use the potion on them.
8. Run the game.
9. Open the menu and use the potion on a damaged player.
10. "TypeError" - "Cannot read property 'name' of null"
Console Log:
rpg_managers.js:1949 TypeError: Cannot read property 'name' of null
at Window_ItemList.drawEquippedActor (YEP_ItemCore.js:1443)
at Window_ItemList.drawItemCarryNumber (YEP_ItemCore.js:1414)
at Window_ItemList.drawItemNumber (YEP_ItemCore.js:1400)
at Window_ItemList.drawItem (rpg_windows.js:1991)
at Window_ItemList.Window_Selectable.redrawItem (rpg_windows.js:1272)
at Window_ItemList.Window_Selectable.redrawCurrentItem (rpg_windows.js:1277)
at Scene_Item.useItem (rpg_scenes.js:1292)
at Scene_ItemBase.onActorOk (rpg_scenes.js:1136)
at Window_MenuActor.Window_Selectable.callHandler (rpg_windows.js:902)
at Window_MenuActor.Window_Selectable.callOkHandler (rpg_windows.js:1171)
Any help in squashing this is appreciated. Or, if I am somehow being silly and missing something obvious, please correct me gently. 🙂
Thank you in advance!
I seem to be encountering a bug in Yanfly's "Item Core" plugin (YEP_ItemCore.js). The issue has been replicated in a clean (new) project with no other plugins enabled.
I am using Item Core v. 1.30 — This appears to be the latest version after checking Yanfly's website.
The error occurs when using the limited number of items param with the "updated scene item" param set to false. When using an item from the menu, such as a potion, the game crashes with the following error: "TypeError" - "Cannot read property 'name' of null"
Here is how to reproduce the bug:
1. Create a new project.
2. Add YEP_ItemCore to plugins.
3. Change "Max Items" param to some number (I've tried various numbers here, it doesn't seem to matter.)
4. Change "Updated Scene Item" to "false."
5. Click "OK," "Apply," and exit the plugins window.
6. Create an autorun event that gives the party at least 1 potion.
7. Add some kind of damage to a player or the entire party so you can use the potion on them.
8. Run the game.
9. Open the menu and use the potion on a damaged player.
10. "TypeError" - "Cannot read property 'name' of null"
Console Log:
rpg_managers.js:1949 TypeError: Cannot read property 'name' of null
at Window_ItemList.drawEquippedActor (YEP_ItemCore.js:1443)
at Window_ItemList.drawItemCarryNumber (YEP_ItemCore.js:1414)
at Window_ItemList.drawItemNumber (YEP_ItemCore.js:1400)
at Window_ItemList.drawItem (rpg_windows.js:1991)
at Window_ItemList.Window_Selectable.redrawItem (rpg_windows.js:1272)
at Window_ItemList.Window_Selectable.redrawCurrentItem (rpg_windows.js:1277)
at Scene_Item.useItem (rpg_scenes.js:1292)
at Scene_ItemBase.onActorOk (rpg_scenes.js:1136)
at Window_MenuActor.Window_Selectable.callHandler (rpg_windows.js:902)
at Window_MenuActor.Window_Selectable.callOkHandler (rpg_windows.js:1171)
Any help in squashing this is appreciated. Or, if I am somehow being silly and missing something obvious, please correct me gently. 🙂
Thank you in advance!