TypeError "Cannot read property 'height' of undefined

Status
Not open for further replies.

BaigletheKid

Villager
Member
Joined
Oct 25, 2015
Messages
14
Reaction score
1
First Language
English
  


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

also, 



please help i'm at a standstill! Thanks :]
 

HeroicJay

Veteran
Veteran
Joined
Jun 23, 2014
Messages
322
Reaction score
177
First Language
English
Primarily Uses
RMMV
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.
 
Last edited by a moderator:

BaigletheKid

Villager
Member
Joined
Oct 25, 2015
Messages
14
Reaction score
1
First Language
English
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!
 
Last edited by a moderator:

BaigletheKid

Villager
Member
Joined
Oct 25, 2015
Messages
14
Reaction score
1
First Language
English
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
 

HeroicJay

Veteran
Veteran
Joined
Jun 23, 2014
Messages
322
Reaction score
177
First Language
English
Primarily Uses
RMMV
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.
 

BaigletheKid

Villager
Member
Joined
Oct 25, 2015
Messages
14
Reaction score
1
First Language
English
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.



Yeah looks like it's still true.
 

HeroicJay

Veteran
Veteran
Joined
Jun 23, 2014
Messages
322
Reaction score
177
First Language
English
Primarily Uses
RMMV
Maybe the problem isn't with the script but with the monster. Can you show us the monster's details?
 

BaigletheKid

Villager
Member
Joined
Oct 25, 2015
Messages
14
Reaction score
1
First Language
English
Maybe the problem isn't with the script but with the monster. Can you show us the monster's details?
Absolutely! 





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!
 
Last edited by a moderator:

BaigletheKid

Villager
Member
Joined
Oct 25, 2015
Messages
14
Reaction score
1
First Language
English
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.
 
Last edited by a moderator:

Yanfly

Veteran
Joined
Mar 15, 2012
Messages
1,743
Reaction score
2,638
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?
 
  • Like
Reactions: Shy

BaigletheKid

Villager
Member
Joined
Oct 25, 2015
Messages
14
Reaction score
1
First Language
English
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) 
 

HeroicJay

Veteran
Veteran
Joined
Jun 23, 2014
Messages
322
Reaction score
177
First Language
English
Primarily Uses
RMMV
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?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,714
First Language
English
Primarily Uses
RMMV
I've moved this thread to Javascript/Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.
 

BaigletheKid

Villager
Member
Joined
Oct 25, 2015
Messages
14
Reaction score
1
First Language
English
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.  
 

BaigletheKid

Villager
Member
Joined
Oct 25, 2015
Messages
14
Reaction score
1
First Language
English
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 :p
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,714
First Language
English
Primarily Uses
RMMV
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.
 

BaigletheKid

Villager
Member
Joined
Oct 25, 2015
Messages
14
Reaction score
1
First Language
English
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.
 
Last edited by a moderator:

Potato Coach

LOLWUT?
Member
Joined
Jun 12, 2014
Messages
10
Reaction score
0
First Language
Taglish
Clear the troop and add it again... tell me if it worx :)
 
Status
Not open for further replies.

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

  • TSL

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,547
Members
137,835
Latest member
yetisteven
Top