TypeError: cannot read property 'height' of undefined

hendryhu

Villager
Member
Joined
Oct 2, 2017
Messages
9
Reaction score
0
First Language
English
Primarily Uses
RMMV
Hi, I am new to this forum stuff.

This came up as I was trying to do a battle processing in a event in RPG Maker MV.
I have no plugins installed, I even tried to delete the "Made with MV" plugin but it didn't work either.

Thanks!
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
You'll have to provide a lot more detail. What event are you calling when this happens? Post the entire event. Also go and double check your plug-in manager, and make sure you are starting a new game, as usually this error means you are using an invalid save game from older plug-ins.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Check the enemies in that battle troop, and make sure they all exist. The only reason I can think of that this would happen on a Battle Processing call, if you have no plugins, is if you added enemies to the troop, then deleted them from the Enemy slot in the database.
 

hendryhu

Villager
Member
Joined
Oct 2, 2017
Messages
9
Reaction score
0
First Language
English
Primarily Uses
RMMV
You'll have to provide a lot more detail. What event are you calling when this happens? Post the entire event. Also go and double check your plug-in manager, and make sure you are starting a new game, as usually this error means you are using an invalid save game from older plug-ins.
I think it's from my older plugins, how do you start a new game while keeping the old stuff?

Also, the event is a battle processing. It worked when it's in random encounters so definitely no enemies are missing.

Lastly I want to thank you for responding so quickly, I have no idea that the forum was so active.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
Yep, if you have older plug-ins that you removed, then you have to start a new game. Just select new game on the title screen. Afraid that is the only solution though, as plug-ins add new variables and when you remove them (or add them), the old save files become invalid, hence the issue.
 

hendryhu

Villager
Member
Joined
Oct 2, 2017
Messages
9
Reaction score
0
First Language
English
Primarily Uses
RMMV
Thank you! I will try this tomorrow and see what happens.
 

mpurnell

Veteran
Veteran
Joined
Dec 6, 2015
Messages
82
Reaction score
10
First Language
english
Primarily Uses
FYI there is a 'console' plugin you can get to help with what is causing the error
 

hendryhu

Villager
Member
Joined
Oct 2, 2017
Messages
9
Reaction score
0
First Language
English
Primarily Uses
RMMV
FYI there is a 'console' plugin you can get to help with what is causing the error
Here is the console, if anyone is interested to take a look:

TypeError: Cannot read property 'height' of undefined
at Sprite_Enemy.updateFrame (file:///C:/Users/Janey/Documents/hendryworkshop/monsterplanet/js/rpg_sprites.js:981:34)
at Sprite_Enemy.Sprite_Battler.updateMain (file:///C:/Users/Janey/Documents/hendryworkshop/monsterplanet/js/rpg_sprites.js:512:14)
at Sprite_Enemy.Sprite_Battler.update (file:///C:/Users/Janey/Documents/hendryworkshop/monsterplanet/js/rpg_sprites.js:493:14)
at Sprite_Enemy.update (file:///C:/Users/Janey/Documents/hendryworkshop/monsterplanet/js/rpg_sprites.js:952:37)
at file:///C:/Users/Janey/Documents/hendryworkshop/monsterplanet/js/rpg_core.js:3569:19
at Array.forEach (native)
at Sprite.update (file:///C:/Users/Janey/Documents/hendryworkshop/monsterplanet/js/rpg_core.js:3567:19)
at file:///C:/Users/Janey/Documents/hendryworkshop/monsterplanet/js/rpg_core.js:3569:19
at Array.forEach (native)
at Sprite.update (file:///C:/Users/Janey/Documents/hendryworkshop/monsterplanet/js/rpg_core.js:3567:19)
 

hendryhu

Villager
Member
Joined
Oct 2, 2017
Messages
9
Reaction score
0
First Language
English
Primarily Uses
RMMV
I made a new project and it doesn't have that problem anymore!

Going to keep the old one just in case there is a solution.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
The solution is to start new game. Old saves (almost) never work when you remove plug-ins. There is no other way.

Also, do not post below yourself like that. That is double posting. Next time just edit your previous post.
 

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

Latest Threads

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,990
Members
137,562
Latest member
tamedeathman
Top