Game crashing whenever I try optimize or clear equips

Midnight Kitty

Midnight
Veteran
Joined
Jun 18, 2013
Messages
129
Reaction score
14
First Language
English
Primarily Uses
RMMV

Attachments

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,370
Reaction score
7,678
First Language
German
Primarily Uses
RMMV
Does this happen if you start a new game, or did you load an old savefile?

We need a screenshot of the full error message from the console (F8), a screenshot of your plugin manager and the version number of the projects RPG_core.JS file (might be older than the editor Version)
 

Midnight Kitty

Midnight
Veteran
Joined
Jun 18, 2013
Messages
129
Reaction score
14
First Language
English
Primarily Uses
RMMV
I was loading an old save file.
This is the full error from the console
Code:
TypeError: Cannot read property 'LB_toDatabaseObject' of undefined     at Game_Actor.changeEquip (LB_EquipVariables.js:179) at Game_Actor.clearEquipments (rpg_objects.js:3698) at Game_Actor.optimizeEquipments (rpg_objects.js:3705) at Scene_Equip.commandOptimize (rpg_scenes.js:1487) at Window_EquipCommand.Window_Selectable.callHandler (rpg_windows.js:902) at Window_EquipCommand.Window_Command.callOkHandler (rpg_windows.js:1426) at Window_EquipCommand.Window_Selectable.processOk (rpg_windows.js:1156) at Window_EquipCommand.Window_Selectable.processHandling (rpg_windows.js:1027) at Window_EquipCommand.Window_Selectable.update (rpg_windows.js:984) at rpg_core.js:7033
SceneManager.catchException @ rpg_managers.js:1949
fullerror.png
Edit: It works if I start a new game.
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
You'll have to disregard your old save file if you want to use that plugin but then you should be fine. Any plugin that changes the way data is saved or loaded will cause the saves to be incompatible.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,100
Reaction score
13,705
First Language
English
Primarily Uses
RMMV
The old savefile issue is only if you saved a game and then added a plugin. So if your saved game was started prior to adding that particular plugin, then that's likely the reason.

Loading old saves after adding new plugins is possibly the number one cause of "cannot read property <...> of undefined" errors. Start a new game and see if the error continues to happen. If it does, then it could be that the plugin hasn't been configured properly, or a compatibility issue.
 

Midnight Kitty

Midnight
Veteran
Joined
Jun 18, 2013
Messages
129
Reaction score
14
First Language
English
Primarily Uses
RMMV
The save file was made after the plugin was added so I don't see why it would happen then. I have had that plugin in the project for quite some time without noticing this issue.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,100
Reaction score
13,705
First Language
English
Primarily Uses
RMMV
I just noticed you've got two plugin errors there, and one is with my heal on level up plugin. You MUST give it the correct name, or it won't work. Unfortunately the names/titles in Pastebin are in a readable format, and that's what it downloads as when you hit the Download link. Please rename the plugin to HealOnLevelUp.js and reset the parameters.

Have you added ANY new plugins since you first started that game? The crash is happening because there is nothing equipped in the specified slot. Have you added a plugin that increases the number of slots, or does anything at all with equipment slots? I don't think you can add extra slots without a plugin - I'm pretty sure the database only allows you to rename them, but not add extra ones.

If you had started a game, saved it, and added such a plugin (one that adds extra equipment slots), it would totally cause this error, because actors are saved with the setup they had when they first joined the party. If you change something in the database, or using plugin parameters, then resume the saved game, they do not get the new settings, because it loads the actor data from the save file rather than the database.
 

TWings

The Dragon Whisperer
Veteran
Joined
Jul 26, 2017
Messages
527
Reaction score
860
First Language
French
Primarily Uses
RMMV
I don't think you can add extra slots without a plugin - I'm pretty sure the database only allows you to rename them, but not add extra ones.
I don't have RM open right now, so I can't check, but I believe you can add as many equipment slots as you wish in the database, since I added 2 or 3 more than the default setting in my current project.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA

I've moved this thread to Plug-In Support. Please be sure to post your threads in the correct forum next time. Thank you.

 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,100
Reaction score
13,705
First Language
English
Primarily Uses
RMMV
I believe you can add as many equipment slots as you wish
You're right - just took a look now. You can add new equipment types, and they will give you new slots on the actor tab (that's nice to confirm, as it could come in handy for my own project). So it might be possible to get this error even without a plugin to add new equipment slots. But the slots are still saved against the actor, which is saved in the save file, so jury's out on that one.

Anyway - the error is because it's looking for equipment in a slot that doesn't have anything.
 

Midnight Kitty

Midnight
Veteran
Joined
Jun 18, 2013
Messages
129
Reaction score
14
First Language
English
Primarily Uses
RMMV
I did not add in any extra plugins from the save file. Just a few more weapons and armor.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Are we allowed to post about non-RPG Maker games?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

A bit of a "sparkle" update to the lower portion of the world map. :LZSexcite:

Forum statistics

Threads
105,884
Messages
1,017,238
Members
137,608
Latest member
Arm9
Top