Type error : cannot read property 'y' of undefined

Symphotang

Villager
Member
Joined
Aug 7, 2017
Messages
17
Reaction score
1
First Language
French
Primarily Uses
RMMV
Hello.
I have plugins from Yanfly. Animated sideview enemies and ActSeqPack2.
When i write <Floating> in the notepack of a enemy, i have the error : cannot read property 'y' of undefined
I don't know what's wrong.
When i press F8, i have this :
 

Attachments

Skunk

Melody Master
Veteran
Joined
Mar 2, 2013
Messages
1,069
Reaction score
396
First Language
English/Slavic
Primarily Uses
RMMV
Download all action sequence packs and try it again.
 

Symphotang

Villager
Member
Joined
Aug 7, 2017
Messages
17
Reaction score
1
First Language
French
Primarily Uses
RMMV
I already had all action sequence packs. :s
 

Celianna

Tileset artist
Global Mod
Joined
Mar 1, 2012
Messages
10,554
Reaction score
5,576
First Language
Dutch
Primarily Uses
RMMV
Moving this to plugin support.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
30,766
Reaction score
7,392
First Language
German
Primarily Uses
RMMV
give a screenshot of your plugin manager - the most probably cause is the wrong order of plugins, or as a second option wrong/old versions of some plugins.
 

Groundon3

Villager
Member
Joined
Aug 5, 2017
Messages
9
Reaction score
5
First Language
English
Primarily Uses
RMMV
I see what the problem is. The Yanfly Core Engine is in the middle of the list. It needs to be above all other Yanfly plugins. Hope that helps.
 

Symphotang

Villager
Member
Joined
Aug 7, 2017
Messages
17
Reaction score
1
First Language
French
Primarily Uses
RMMV
Good remark. I put the Yanfly Core Engine above all other Yanfly plugins but unfortunately it still does not work.
upload_2017-8-9_7-33-2.png

upload_2017-8-9_7-36-13.png

Thanks anyway for the reply.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
30,766
Reaction score
7,392
First Language
German
Primarily Uses
RMMV
That is because most oft your yanfly plugins are out oft order,not only the core.
Please go to yanfly's website and reorder all plugins Into exactly the order given there, then start new game for future testing .
Yanfly's plugins will cause random errors it not in correct order
 

Symphotang

Villager
Member
Joined
Aug 7, 2017
Messages
17
Reaction score
1
First Language
French
Primarily Uses
RMMV
Oh I see. That's too bad. I will try ! Thanks for your reply.
 

Symphotang

Villager
Member
Joined
Aug 7, 2017
Messages
17
Reaction score
1
First Language
French
Primarily Uses
RMMV
Yeah ! I did it ! However there is always the bug. T_T
__________________________________________________________________________________________________________________

upload_2017-8-10_4-53-4.png
___________________________________________________________________________________________________________________

upload_2017-8-10_4-53-39.png
__________________________________________________________________________________________________________________

upload_2017-8-10_4-54-13.png

But I'm very grateful for your helps. You helped me a lot ! Thanks to you, some plugins like SaveCore works ! (crashed when i save)
So I don't understand. I wrote well <Floating> right ? (In the "enemy" category)

upload_2017-8-10_5-0-2.png

Other features of the plugin work like <Broathing> but not <Floating>...
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
30,766
Reaction score
7,392
First Language
German
Primarily Uses
RMMV
search the forum for exactly that tag, <Floating>.
I remember that it has been called several times as not working, and vaguely remember that the reason was that it was handled by a different yanfly plugin than supposed. But I don't remember the solution, so you have to search for those topics and check for yourself.
 

nagolli

Warper
Member
Joined
Dec 4, 2016
Messages
2
Reaction score
4
First Language
Spanish
Primarily Uses
N/A
I just had this error and found this post, after a while trying to solve it i've got a solution, sorry for necroposting but I think it would be nice to solve the problem.

1) Open Yep_X_Animated SVEnemies.JS with a text editor (I recomend notepad++)

2) Search for this, line 1510:
Sprite_Enemy.prototype.updateFloatingStateSprite = function() {
if (this._enemy && this._enemy.isFloating()) {
var heightRate = this.addFloatingHeight();
var height = this._enemy.spriteHeight();
this._stateIconSprite.y += Math.ceil(heightRate * height);
this._stateSprite.y += Math.ceil(heightRate * height);
};
};

3) Change for this:
Sprite_Enemy.prototype.updateFloatingStateSprite = function() {
if (this._enemy && this._enemy.isFloating()) {
var heightRate = this.addFloatingHeight();
var height = this._enemy.spriteHeight();
this._stateIconSprite.y += Math.ceil(heightRate * height);
if(typeof this._stateSprite!== 'undefined')
this._stateSprite.y += Math.ceil(heightRate * height);
};
};

4) It works

Explanation for: this._stateSprite is undefined if you don't have states, then you should check if it is undefined because trying to get the height(Y) of nothing will cause an error.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Ami
--- Currency ---

Hero: This city cannot accept Gold to buy the items.
Merchant: You can exchange Gold into TC,depending the rate of TC this time.
Hero: Really? Then,i want to exchange 999999999G.
Merchant: Let's see……Wait a second,are you Cheating again?
Hero: Hell No!!! I earn it with myself!!!
There's always a time when you're super excited to create something but you already have no energy left. :I
I think of all the effects in my game, the light passing through fog has got to be my favorite....

...Also I spent all day trying to figure out how I had suddenly messed it up and made it start dropping frames like crazy. So I had all day to look at it... mocking me... with it's previous 60fps reduced to 30fps... At least it's fixed now.
Dalph wrote on slimmmeiske2's profile.
Slimmm, we should team one day and make "Reid in Wonderland" or "Aluxes in boots".
Ami
--- F.Mage Cooking ---

F.Mage: Hey,guys. i made dinner for you!
M.Fighter & Hero: (Shock) Dinner???
(F.Mage Put The Failed And Burnt Dishes Surrounded With Creepy Aura)
Hero: What the...???
F.Mage: It's Curry Rice,Fried Egg And Cakes. I hope you guys like my Dishes.
M.Fighter: Are you kidding me?

Forum statistics

Threads
103,474
Messages
999,609
Members
135,021
Latest member
Maxdestructo
Top