So I made 2 new armor slots; Gloves and Shoes.
But when I try to test the game by equipping the player with an armor I set to "Shoes" category, this screenshot appears.
What is it and how do I fix it?
Did you start a new game after changing the slots, or did you resume a previously saved game?
If you started a new game, please trigger the error, then take and post a screenshot of the console. The error messages in the game window are next-to-useless, but the console will say what script and what line caused the error (usually).
If you resumed a game that you started and saved before adding the new slots, that's probably why.
I resumed the game when play testing. I will let you know if I see it again with a new save file. ^^;
Thanks for answering and clarifying that!
Edit: Yeah, it was because I had resumed the game. Thanks!
In case you were curious, the engine expects every equip slot to have a Game_Item instance in it. If you add new slots, then use a save from before doing so, that slot now has nothing in it ("undefined" instead of an "empty" Game_Item).
You could remedy it with a little one-off script call that adds a new Game_Item to an Actor's _equips, but initializing Actors should also solve the problem - hence why starting a new game works.