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,670
Reaction score
15,291
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,872
Reaction score
8,583
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 Posts

Latest Profile Posts

A video update on the progress I've been making on the cutscenes. :kaosalute:

I wonder if color LUTs is possible for RPG Maker. It would be game changer and can replace the not so good looking tint screen
new mechanic in battle where you can mentally erase enemies when you deplete all their MP instead HP. this gives you a special item of their "memory". it's pretty to do in battle so far.
Apparently MZ lets you preview move routes in the move route editor without having to start up test game. That could save a lot of time during development compared to MV, especially for a long game that uses a lot of event movement for cutscenes.
A repost of an old meme I had made, now with music

Forum statistics

Threads
115,863
Messages
1,093,554
Members
151,083
Latest member
pasted
Top