TypeError "Cannot read property 'height' of undefined

  [IMG]http://i.imgur.com/8VfCTGD.png[/IMG]

i can't test battles or engage in battles with this enemy.

also, 

[IMG]http://i.imgur.com/8ltgGII.png[/IMG]

please help i'm at a standstill! Thanks :]
It's a bug in the Core engine that only happens when you turn off the TP meter. To fix it, in the function Window_SkillStatus.prototype.refresh, where it says "rect.height", change it to just "h". (There is no "rect" defined.)

If that doesn't make sense to you, then just wait for an update and turn the TP meter back on for now.
awesome i'll give it a try! also before i start changing stuff, is this the rpgcore or is this Yanfly's core. 

Thanks for the quick reply!
It's a bug in the Core engine that only happens when you turn off the TP meter. To fix it, in the function Window_SkillStatus.prototype.refresh, where it says "rect.height", change it to just "h". (There is no "rect" defined.)

If that doesn't make sense to you, then just wait for an update and turn the TP meter back on for now.
Never mind, I assumed I Unchecked it while I was clicking around the system, but it's still on. I don't think that was it. Thanks
The bug I was referring to was in Yanfly's, and huh. You're sure it's still on in the plugin's parameters (I don't think the database matters)? Maybe there were two bugs like this and I never ran into yours.
The bug I was referring to was in Yanfly's, and huh. You're sure it's still on in the plugin's parameters (I don't think the database matters)? Maybe there were two bugs like this and I never ran into yours.
yeah I checked to see if i unchecked the "show TP meter" in the system files and it was still checked. So it isn't because the TP meter was turned off, i never actually opened up the yanfly core to edit anything it's still default. I'll check just the same.

[IMG]http://i.imgur.com/zIVOnhr.png[/IMG]

Yeah looks like it's still true.
There's been a round of bugfixes: http://yanfly.moe/2015/10/24/plugin-bugfixes-round-2/

Try updating your plugins and see if the problems still persist.~
There's been a round of bugfixes: http://yanfly.moe/2015/10/24/plugin-bugfixes-round-2/

Try updating your plugins and see if the problems still persist.~
Thank's Yanfly! All of my Plugins are up to date.  Just tried to Re-run still getting the same print out. Anything I could send you to help you figure it out? 
Maybe the problem isn't with the script but with the monster. Can you show us the monster's details?
Maybe the problem isn't with the script but with the monster. Can you show us the monster's details?
Absolutely! 

[IMG]http://i.imgur.com/0y3YkWh.png[/IMG]

[IMG]http://i.imgur.com/O58lJ33.png[/IMG]

I have tried with all the troops in the troop window, and they work fine on first initialization but when I change any Parameters in the Battle Test dialog it crashes.

Edit: also thank's for all the help guys!
ok you got me thinking, so I deleted all the sprites on all three troops i had made up and re added them to the window. i didn't move them or anything and the battle came right up. i'm thinking it's looking for the troops in a default position.


or it could be that I edited the enemies after they were placed.


Never mind, after like the fifth battle it crashed again.
The bitmap isn't reading properly, which leads me to wonder if your enemy happens to not be a png file?

Also, did you try pressing the clear button and then readding the enemy?
The bitmap isn't reading properly, which leads me to wonder if your enemy happens to not be a png file?

Also, did you try pressing the clear button and then readding the enemy?
I Did and it seemed to work, until I tried to change the information in the Battle test dialog again or re-position the sprite on the field . the battler graphic is Assassin.png in the resources that come with RMMV. I did change the hue on the img select but it didn't seem to have any bearing on it. (ya know, other than change the hue) and even the Default color works fine. Right now it seems to be working ok with all plug-ins disabled (which sucks because I love your plugins).

If you have any more questions let me know! and thanks for being on top of things. (you too, HeroicJay) 
I admit I'm shooting in the dark here. You say it works at first, but then you change the Battle Test parameters. Could you possibly be changing to a weapon with a bad animation code? Or to an actor with a bad battle sprite index?
I've moved this thread to Javascript/Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.
I admit I'm shooting in the dark here. You say it works at first, but then you change the Battle Test parameters. Could you possibly be changing to a weapon with a bad animation code? Or to an actor with a bad battle sprite index?
Same here, i'm usually pretty good at crushing mistakes that I make but it's killing me.

If it helps I'm using a custom sprite made with the built in sprite creation tool. All were exported to the correct folder and called up in the right window.

I have tried with no weapons and had the error called up, with different weapons same thing.

It's probably something stupid that i'm not seeing.  
I've moved this thread to Javascript/Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.
Thank you, I'm a new user. Won't happen again 😛
BaigletheKid, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


🙂


There are some buttons in the lower right corner of your posts (and others posts) to save you the double-posting issue.


If you need to add more info to your post, you can edit it, instead of double posting (which is posting again when the last post is also yours and was made less than 72 hours ago). If you need to reply to several people and want to quote their posts, hit the MultiQuote button on each of their posts, then the Reply to All Quoted Posts (or something like that).


Hopefully it won't take long to get the hang of the forums, and you're certainly not going to be the only one we'll say this to 🙂 There's a lot of stuff here to get familiar with.
OK, so. I still can't figure this out. It was working Fine in editor all morning so I started Eventing a Scaling level event for the 3 Troops I made.  I can fight them individually in the editor no problem, but as soon as I launch the game and interact with the event it crashes in the same way it was before. All Plugins have been off since last night(since editor seemed to be running ok) but in game it's still messing up! Any ideas?

Edit: I just changed the sprite to something else, deleted the enemy from the troop screen, and re-added it. It now crashes in the editor as well as the game. FUuuuuu

Edit 2: https://www.reddit.com/r/RPGMaker/comments/3q36w9/im_getting_this_every_time_i_start_battle/cwcizyy

Here's to hoping it's fixed until they release a patch!

Thanks for the support guys.
Clear the troop and add it again... tell me if it worx 🙂

Original thread: https://forums.rpgmakerweb.com/threads/typeerror-cannot-read-property-height-of-undefined.47056/