Ruminyauee
Member
First, if anyone can help me figure this out I would greatly appreciate it. I have been struggling with this bug for over two weeks and cannot find the solution.
To begin, the bug occurs when I engage in battle. About 95% of the time the battlers works flawlessly. The battlers do what their supposed to do. Even my add-ons like modern_algebra's advanced skill options work with Tenkentai's Sideview ABS (scripted to fit XP by Atoa). I use most of the add-ons that come with and have put a lot of effort into implementing them into my game.
The problem comes with the other 5% of the battles. Every once in awhile when I choose the "attack" command, the most basic element of any battle, the game will freeze. There is no error message, and the actors/enemies continue their animated movement, but no attack occurs and no one can use any moves. The game simply stops, and I just hear the music and see my little actors and monsters walking in place. At first I thought it had something to do with the dual-wield script, because it happened with a dual-wield character a few times. Then I noticed that it happened with other characters as well.
It is quite a problem, and I've already put an immense amount of effort into working this into my game. I THINK, with some help, that I have narrowed it down to a possible problem with these scripts:
However, I'll be honest, my scripting abilities are not very high. I think, since these deal with the attack sequence, I thought they would be the best places to start. With my limited knowledge though, I cannot seem to find what may be causing the freezing.
It is really debilitating for the game, has anyone else experienced a similar problem?
Thanks in advance for any help anyone can give.
To begin, the bug occurs when I engage in battle. About 95% of the time the battlers works flawlessly. The battlers do what their supposed to do. Even my add-ons like modern_algebra's advanced skill options work with Tenkentai's Sideview ABS (scripted to fit XP by Atoa). I use most of the add-ons that come with and have put a lot of effort into implementing them into my game.
The problem comes with the other 5% of the battles. Every once in awhile when I choose the "attack" command, the most basic element of any battle, the game will freeze. There is no error message, and the actors/enemies continue their animated movement, but no attack occurs and no one can use any moves. The game simply stops, and I just hear the music and see my little actors and monsters walking in place. At first I thought it had something to do with the dual-wield script, because it happened with a dual-wield character a few times. Then I noticed that it happened with other characters as well.
It is quite a problem, and I've already put an immense amount of effort into working this into my game. I THINK, with some help, that I have narrowed it down to a possible problem with these scripts:
Code:
#--------------------------------------------------------------------------
# * Frame Update (actor command phase : basic command)
#--------------------------------------------------------------------------
def update_phase3_basic_command
# If B button was pressed
if Input.trigger?(Input::B)
# Play cancel SE
$game_system.se_play($data_system.cancel_se)
# Go to command input for previous actor
phase3_prior_actor
return
end
# If C button was pressed
if Input.trigger?(Input::C)
# Branch by actor command window cursor position
case @actor_command_window.index
when 0 # attack
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Set action
@active_battler.current_action.kind = 0
@active_battler.current_action.basic = 0
# Start enemy selection
start_enemy_select
when 1 # skill
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Set action
@active_battler.current_action.kind = 1
# Start skill selection
start_skill_select
when 2 # guard
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Set action
@active_battler.current_action.kind = 0
@active_battler.current_action.basic = 1
# Go to command input for next actor
phase3_next_actor
when 3 # item
# Play decision SE
$game_system.se_play($data_system.decision_se)
# Set action
@active_battler.current_action.kind = 2
# Start item selection
start_item_select
end
return
end
end
Code:
alias acbs_update_phase4_step2_atb update_phase4_step2
def update_phase4_step2
@active_battler.defense_pose = false
if @active_battler.cast_action != nil
active_cast = @active_battler.cast_action
if active_cast.scope == 1 or active_cast.scope == 3 or active_cast.scope == 5
@active_battler.current_action.target_index = @active_battler.cast_target
end
if active_cast.is_a?(RPG::Skill)
@active_battler.current_action.kind = 1
@active_battler.current_action.skill_id = @active_battler.cast_action.id
elsif active_cast.is_a?(RPG::Item)
@active_battler.current_action.kind = 2
@active_battler.current_action.item_id = @active_battler.cast_action.id
end
end
for state in @active_battler.battler_states
@active_battler.remove_state(state.id) if state.extension.include?("ZEROTURNLIFT")
end
acbs_update_phase4_step2_atb
end
However, I'll be honest, my scripting abilities are not very high. I think, since these deal with the attack sequence, I thought they would be the best places to start. With my limited knowledge though, I cannot seem to find what may be causing the freezing.
It is really debilitating for the game, has anyone else experienced a similar problem?
Thanks in advance for any help anyone can give.