Error while battletesting

Status
Not open for further replies.

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
What you have here is not a bug in Neon Black's script, but an incompatibility between that script and Yanfly's Visual Battlers. If you enable the Step Effects script and disable the Visual Battlers, the error does not occur. Likewise when you enable the visual battlers and disable the step effects, it does not occur. It only occurs when you have BOTH of those scripts enabled.


By default, Game_Character is a class that's only used when you're on the map. The Step Effects script updates Game_Character to do the step effects. Yanfly's Visual Battlers uses a new class that's based on Game_Character, so is introducing that class into battles, when previously it was not used there. So it's calling methods in the Step Effects script when a battle is happening, that would only normally get called when you're on a map.


Anyway, the solution is simple. Find this line in the Step Effects script:

Code:
do_step_effects_set if pattern_step_sets.include?(@pattern)
and change it to this:
Code:
do_step_effects_set if pattern_step_sets.include?(@pattern) && !$game_party.in_battle
Next time, it would help to tell us you have a hundred of Yanfly's scripts in use. In your first post, you only mentioned two scripts, which implied you were only USING two scripts. Had you said what you were REALLY using, I would have immediately said it probably had something to do with one of Yanfly's battle scripts ;)
 
Last edited by a moderator:

Girostrike

Sponge
Veteran
Joined
Jan 19, 2013
Messages
66
Reaction score
0
First Language
English
Primarily Uses
I only mentioned the two because those were the only two scripts that modified a particular aspect of the game that I thought was the cause of the error. But yes, that probably would have been helpful to know. Sorry about that.

But thank you Andar and once again Shaz for all the help as well as Mithran for the clarification on your script.

@Chaos17 Now that my current problem is solved, that script will actually help me with something else. Thanks for letting me know about this.

And I believe that's a wrap. Thanks everybody!  :D
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
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: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,575
Latest member
akekaphol101
Top