Midnight Kitty

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

Attachments

  • LB_toDatabaseObject Error.png
    LB_toDatabaseObject Error.png
    202.6 KB · Views: 10

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,372
Reaction score
8,395
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,141
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

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,901
Reaction score
14,996
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

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,901
Reaction score
14,996
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
528
Reaction score
867
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,880
Reaction score
14,706
First Language
English
Primarily Uses
RMVXA

I've moved this thread to Plug-In Support. Thank you.

 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
42,901
Reaction score
14,996
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.
 

Latest Threads

Latest Posts

Latest Profile Posts

welp, I literally can't continue working on ALEX now that my MZ trial is up (unless I somehow place in the jam which I don't remotely deserve to for my unfinished crap) so I am back on my bullshit
some test stuff. Empty for now. My other project (this project) needs more attention. The lagging really kicks up when I try to capture gameplay. ✨
Real-Time Battles, Pixel Filter, Animate Cursor & Menus & Windows | RPG Maker News #114

When your side job becomes more interesting than your dayjob and you think "do I quit again or finally actually do the same thing for more than five consecutive years..." I don't think I'll ever be able to say that though, I just cannot stick with one thing like you're 'supposed to'.
Does the word "research" imply that you're searching for something that had been found before?

Forum statistics

Threads
113,879
Messages
1,078,149
Members
147,969
Latest member
mvkgant
Top