VE Actors Battlers Error Crash (im at the end of my game, please help)

LtBenjamin

Veteran
Veteran
Joined
Dec 15, 2013
Messages
64
Reaction score
5
First Language
english
Primarily Uses
Whenever I try and change a party member during a boss fight (one of them sacrifices their selves)

 

I get an error for line 559 in VE actors battlers script (the one in bold) and it crashes.

 

It may be because im using Victor script with yanlfys party system.

 

Is there any way i can fix this?

 

 

 

 

 #--------------------------------------------------------------------------

  # * New method: update_party

  #--------------------------------------------------------------------------

  def update_party

    @actor_sprites.each_index do |i|

      next if $game_party.battle_members.include?(@actor_sprites.battler)

      @actor_sprites.dispose

      @actor_sprites = nil

    end

    $game_party.battle_members.collect do |actor|

      next if @actors_party.include?(actor)

      @actor_sprites.push(Sprite_Battler.new(@viewport1, actor))

    end

    @actor_sprites.compact!

    @actors_party = $game_party.battle_members.dup

    $game_party.battle_members.each do |actor|

      old_position = [actor.screen_x, actor.screen_y]

      actor.default_direction if $imported[:ve_animated_battle]

      if old_position != [actor.screen_x, actor.screen_y]

        sprite(actor).start_effect:)appear) 

      end

    end

  end

end
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
43,677
Reaction score
15,293
First Language
English
Primarily Uses
RMMV
The error message would be helpful, along with links to both scripts. Sometimes the problem is not with the line that's reported during the crash.


If the error message says something like default_direction method doesn't exist for actor I'd question whether you've added a script and are playing from a saved game made prior to adding the script. If it says something about nil actor, then that doesn't seem right either, as I'd expect it to error on the line above.
 
Last edited by a moderator:

LtBenjamin

Veteran
Veteran
Joined
Dec 15, 2013
Messages
64
Reaction score
5
First Language
english
Primarily Uses
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,886
Reaction score
8,590
First Language
German
Primarily Uses
RMMV
Most battle system scripts initialise the actors on battle-start, that's why summoning skills have so many problems (the new actors aren't initialised if they are added during combat, after battlestart).


My best guess is that this is something similiar - if it happens when the actor is changed, then it's probably that the new actor wasn't initialised at start.


If it happens after removing an actor, then the battlescript most likely stored the original actor list in its own way and is suddenly missing one of the battlers that it expects to be there based on the battle-start-list.


Any way to change your battle by giving the actor a "sacrified" state (which blocks all actions) and removing it only after battle?


Because otherwise, you have to first find the place where the script stores the initialization data and then change that data the moment you change the actor...
 

LtBenjamin

Veteran
Veteran
Joined
Dec 15, 2013
Messages
64
Reaction score
5
First Language
english
Primarily Uses
Thanks. I couldnt get a state to keep her out of battle. But i did manage to show her dying and then aborting the battle leading to a cut scene that that removes her and then goes back to battle. I guess its the price i have to pay to have an awesome battle script and a party script.
 

Latest Threads

Latest Profile Posts

Bengawan Solo with fantasy style arrangement. :D
So I just got my computer back (Was posting stuff on my phone) But now my dang monitor's broken! I'll need to get a new one, which means... JOBS! Yaaay... When I get a new monitor, I'll post picture of one of my RPGMMV projects.
Wish me luck... :kaodes:
Had to clean up disk space because Windows Updates was having my primaries' disk space for breakfast, lunch and dinner. I guess the clean up thingy doesn't work or something because there were 15gigs of old update files in it.
Monday morning, and the sudden message: Hey, can you set up a full second lesson about pixel art till tomorrow?

Forum statistics

Threads
115,892
Messages
1,093,771
Members
151,139
Latest member
ibbicool
Top