One counter with two sound damage bug

I got this problem for a long time. i put some % to my main character that will counter attack when the
enemy attacks. The problem is my character only does one counter but instead of one sound
damage will be heard, to sound damage is being heard. I don`t know if i`m explaining this right but
it suppose to be does one sound damage because it only does one counter attack. i try to check the
script i`m using the fix the bug. i`m using -
Yanfly Engine Ace - Ace Core Engine v1.09
Yanfly Engine Ace - Ace Battle Engine v1.22
Yami Engine Symphony - Battle Symphony
Yami Engine Symphony - Add-on: Holder Battlers
anyone can help me about this ?
ace battle engine and battle symphony are playing the sound.
You will have to look for the code and comment out one of them.
wait i`ll give a try. i tried this in a fresh new project and put only Yami Engine Symphony - Battle Symphony still the bug
is present, and i don`t know where to look at the code because i tried it before
but i can`t see it in the customization codes. and i can`t find it in the
core code
guys ? i can`t find the bug can anyone help me
guys ? i can`t find the bug can anyone help me
You need to give people time. We are not a team of professional coders working around the clock.
If you haven't read the forum rules, I suggest that you do that.
Can you upload the demo project you said does the sound twice? send me the link and I'll look into it.
Thanks
ok

@StateAlchemist , please avoid double posting, as it is against the forum rules. You can use the "Edit" function on your posts to add additional information you've forgotten or respond to multiple people. You can review our forum rules here. Thank you.


I've moved this thread to Script Support. Thank you.

Putting the Yami script into a test project, I see the issue, but don't know the solution yet. The counter action is performing twice, hence the two sounds.
yes i does i`m trying to find where`s the problem still can`t find it. so hard huhuhuhu it should do one sound because it only does 1 counter attack
Double-post notice: @StateAlchemist
Moved to: Script Support
sorry. i`m still working on it how to use the forum right sorry guys
It’s okay, you’re not in trouble. They’re just reminders. 🙂
Here is a partial fix.

Corrects the sounds for me, but I notice that the actor does not retreat from the counter movement. So the actor could eventually be more forward than the actor is supposed to be. But this was only because the actor got attacked twice. the second time was right after the first enemy was killed. Another test shows that if the enemy is not killed and the actor is not attacked right away then all is good.
Further testing shows that the actor will reset when performing a normal action. But if the actor does counter attacks and kills every enemy each counter then the actor will continue to move forward.

Place below Yami Engine Symphony - Battle Symphony
Code:
class Game_Battler < Game_BattlerBase
 
  #--------------------------------------------------------------------------
  # new method: force_make_actions
  #--------------------------------------------------------------------------
  def force_make_actions
    clear_actions
    if @counter_subject == nil
      @actions = Array.new(make_action_times) { Game_Action.new(self) }
    else
      @actions = Array.new(make_action_times_counter) { Game_Action.new(self) }
    end
  end
  #--------------------------------------------------------------------------
  # new method: make_action_times_counter
  #--------------------------------------------------------------------------
  def make_action_times_counter
    action_plus_set.inject(1) { 1 }
  end
end
i tried it but the 2 sounds when counter still there. i put it below the script and the other one i put it under the script.
still not working. did this one works for you? i mean the script u send?
this one works for you?
yes fully working except for the movement as mentioned above.
The four scripts you mentioned and the patch I made below yami battle. (should be it's own script slot not at the bottom of another script.)
i did paste it in a new line. still not working it still has the two sounds. look
Untitled.png
@StateAlchemist So what other scripts do you have? It's fully working for me with the scripts you said you were using.
I see you have yanfly combat log, which you did not say you were using; but it has no affect on this problem.
Without more info, I can't recreate the problem.
This is all the sripts that i`m using...
I'm not sure what some of those scripts are. You did not name them by 'author - script'.
Can you attach your scripts.rvdata2 file? I'll put it in my test project and see.

Original thread: https://forums.rpgmakerweb.com/threads/one-counter-with-two-sound-damage-bug.105515/