I have searched high and low for a solution to this error and for some reason have hit a dead end. This is where I hope someone would be kind enough to help me solve my problem.
I am running Victor Engine Base, Animated Battler and Actor Battler in my game (with tons of other scripts, but I have isolated those three in a blank game and the same error occurs so I am 99% sure it's not a compatibility issue.) Whenever I have an actor join the party in the middle of a battle using battle events, I get an error which I have attached a screenshot of.
I have tried messing with the code enough to the point where I'm afraid of breaking my game. (Don't worry, I've returned them to proper standing before moving on.) This is the section of code the error is referring to:
is the line in question.
#--------------------------------------------------------------------------
# * 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
I saw one other post with the same error, but lucky for me, the op closed it without explaining their solution. I was wondering if anyone else could help me solve this problem? It would be appreciated from someone who doesn't know anything about Ruby! I've also attatched a demo using just the mentioned scripts to show exactly what I'm trying to do in my game.

View attachment Blank For Testing.zip
I am running Victor Engine Base, Animated Battler and Actor Battler in my game (with tons of other scripts, but I have isolated those three in a blank game and the same error occurs so I am 99% sure it's not a compatibility issue.) Whenever I have an actor join the party in the middle of a battle using battle events, I get an error which I have attached a screenshot of.
I have tried messing with the code enough to the point where I'm afraid of breaking my game. (Don't worry, I've returned them to proper standing before moving on.) This is the section of code the error is referring to:
is the line in question.
#--------------------------------------------------------------------------
# * 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
I saw one other post with the same error, but lucky for me, the op closed it without explaining their solution. I was wondering if anyone else could help me solve this problem? It would be appreciated from someone who doesn't know anything about Ruby! I've also attatched a demo using just the mentioned scripts to show exactly what I'm trying to do in my game.

View attachment Blank For Testing.zip