Seeing the Error Message "TypeError- Cannot read property 'height' of undefined." while testing Battles

Joined
Jul 2, 2021
Messages
38
Reaction score
13
First Language
Bengali
Primarily Uses
RMMZ
One particular battle is causing an issue in both Gameplay and during Preview. It shows the black screen with the error:

"
TypeError
Cannot read property 'height' of undefined."
Can anyone help me out?
 

ThreeSixNine

Veteran
Veteran
Joined
Jan 22, 2019
Messages
487
Reaction score
398
First Language
English
Primarily Uses
RMMV
'Cannot read property '...' of undefined means the system is trying to access data that is no longer present.

You might have a troop trying to add an enemy that's been removed from the database.
 

JohnDoeNews

Steam mod (MV/MZ)
Veteran
Joined
Apr 25, 2017
Messages
1,044
Reaction score
823
First Language
Dutch
Primarily Uses
RMMV
If you have changed your database and lowered the max of any object in the database, and you load an old save where this object was still present, you will get an error like this.

Lets say you had an actor with class #4, then save the game and change the max of classes to #3 and then load the save again, it will read info from a class that doesn't exist.

If you would have just clicked delete, but not changed the max, then the error would not have shown. Since, even if the slot is empty, but the slot exists, all other parameters coming with it exist, even if the parameters are all set to 0 or default.

Getting this error, in most cases doesn't mean your project is broken, but your save game might be corrupt. Starting a new game instead of loading an old save might solve the problem in most cases.

If this is the case, then please not the following: If you work on an update of a project you already released, then your players will have the same problem too. Therefor, always be careful with lowering the max of anything, after you already shared (parts of) the game with your audience.
 

Latest Threads

Latest Posts

Latest Profile Posts

Voice.gif
The Voice... They usually show up to talk to you about leaving your mark on the world, which is one of the major themes of my game... How will you be remembered by society.
The only time my brother shows me any kind of support is by liking or LOL my Facebook Comments.
I finally finished the Coliseum for my game. Love how it looks. Credits for the assets goes to Kokoro Reflections, @Starbird_Resources, and @megumi014.
Colossuem.png
Mimics! Mimics everywhere!

Forum statistics

Threads
124,512
Messages
1,164,165
Members
163,348
Latest member
bongdaso
Top