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,769
Reaction score
15,321
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
34,001
Reaction score
8,631
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

I found an absolutely brilliant lifehack on the internet today.

Screenshot_760.jpg
It does sometimes get a little embarrassing that I often come here to ask for help with something and seldom have anything to actually show for it. If there is one thing though I can commend myself for, it's for sticking with an idea I've been tinkering with for this long now and gradually making headways. Even though I've been reserved about my progress, I can say I'm farther now than where I initially started.
I'm gonna put my project on pause for a tiny bit so I can explore the engine outside of it... Winging it can only get you so far LMFAO
Have seen some of my favorite people here posting and helping others with questions today -- love to see it!

Forum statistics

Threads
116,136
Messages
1,096,079
Members
151,556
Latest member
Jeffreyq12
Top