YanFly Battle Engine NoMethodError

Status
Not open for further replies.

Arkain

Warper
Member
Joined
Oct 6, 2018
Messages
3
Reaction score
0
First Language
German
Primarily Uses
RMVXA
Hey Guys!
It's my first time ever posting something in a Forum :)
So heres my Question:

I started a new project and added :

BTW: I don't know if its helpful but i changed in Visual Battlers line 60 : PARTY_DIRECTION = 2
and this works fine. ( it makes my party face up)

But when i start my battle and my first actor attacks and comes back in position i got this error
e518c6f1-c978-4047-b3d7-1982043b090c.jpg

Script 'YFLY Battle Engine' line 3136: NoMethodError occured. undefined method 'actor?' for nil:NilClass
3135 def status_redraw_target(target)
3136 return unless target.actor?
3137 @status_window.draw_item($game_party.battle_members.index(target))
3138 end
How can i fix this?

At first i wanted to solve the problem by myself to improve my knowledge but i don't know what to do anymore.
I would appreciate if you could help me. :)
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,592
Reaction score
6,522
First Language
Indonesian
Primarily Uses
RMVXA
I don't use visual battler myself so idk how is their relation. But what happen if you change the line 3136 to this?
Code:
return unless target && target.actor?
 

Roninator2

Gamer
Veteran
Joined
May 22, 2016
Messages
2,660
Reaction score
563
First Language
English
Primarily Uses
RMVXA
there must be a copy paste error. I have all those scripts in a project and they work fine.
 

Arkain

Warper
Member
Joined
Oct 6, 2018
Messages
3
Reaction score
0
First Language
German
Primarily Uses
RMVXA
I don't use visual battler myself so idk how is their relation. But what happen if you change the line 3136 to this?
Code:
return unless target && target.actor?
still the same error and nothing changed at all
 

Arkain

Warper
Member
Joined
Oct 6, 2018
Messages
3
Reaction score
0
First Language
German
Primarily Uses
RMVXA
Solution: Okay Guys , deleted all scripts and copied them new. Guess it was just some copy and paste error. Thanks for helping me out that fast :)
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
7,839
Reaction score
5,222
First Language
Dutch
Primarily Uses
RMXP

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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

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