TypeError: Cannot read property 'getValue' of undefined

HoorEnglish

Warper
Member
Joined
Sep 10, 2021
Messages
3
Reaction score
0
First Language
English
Primarily Uses
RMMZ
I've been using HimeWorks's Grid Battle System and I think (and hope) that I've done everything right. Things work fine until I get into the battle area. When I click the attack button, I get the error: "Cannot read property 'getValue' of undefined." Is there a problem within my coding that I might need to fix? Or perhaps some spaghetti code somewhere that might need some handling?
 

vietanhdang2017

Veteran
Veteran
Joined
Sep 16, 2021
Messages
31
Reaction score
14
First Language
English
Primarily Uses
RMMV
Yes, of course something need to be fixed. But no one can help you anything until you show us the code itself
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,295
Reaction score
8,743
First Language
German
Primarily Uses
RMMV
The problem is not the getvalue, the problem is the undefined.
the engine has been given a reference to a data object that does not exist.

so you need to find that reference and either restore the missing data object, or remove the reference and replace it with something that exists.

possible causes:
1) you loaded an old (and now incompatible) savefile after deleting something in the database
-> delete the savegames and start new playtests
2) a plugin is configured with a reference that does not exist
-> go through all plugins and all configuration options to find the wrong entry
3) you deleted a database object that is still referenced somewhere else in the database
-> correct your database references
4) conflict between two plugins blocking each others data
->reorder or remove the conflicting plugin

If you want help to find the exact cause, you have to give a screenshot of the console with the full error trace (press F8 on error message), and a screenshot of your plugin manager with all plugins and their order.
 

ST0RMTiger

Veteran
Veteran
Joined
Sep 17, 2021
Messages
39
Reaction score
35
First Language
German
Primarily Uses
RMMZ
@Andar gave you a quite exact answer but maybe you are not that familiar with coding. So I searched the plugin itself and found a quite good reference of himeworks itself.

As the plugin needs a lot of configuration by you that seems not to be set as standard by the plugin, I assume that you skipped some parts of config. If the plugin has no extensive error handling (which is obviously the case) this might be the source of your problem.

So try to read through the reference and try to set up every single parameter first before you try to start a battle. Something is missing and this is most likely a missing set up parameter.

As @vietanhdang2017 said, you would have to go into a lot more detail to help you with that more precisely.
 

Latest Threads

Latest Profile Posts

May I make a suggestion for what language we should use for plugins?

IMG_1177.JPG
Have you opened all the advent calendar's yet? Don't forget to leave @Starbird_Resources and @WaywardMartian some love!
1638376821276.png
LOOK AT EM GOOOOOOOOOO!
Sorry for the spam with this, I'm just real happy with how this has gone :D
Custom sleep sequence done! :kaopride:
fuY8hyg.gif
The other day I posted a merchant airship tileset and said it was overflow from my Advent Calendar. @Avery said something like "that's one way to flex!" Well, this morning I woke up and realized THAT I MISCOUNTED AND AM SHORT BY ONE DAY. My face and palm are now perfectly fused together.

Forum statistics

Threads
117,104
Messages
1,104,608
Members
153,122
Latest member
HoomanBBQ
Top