MZ Akea Visual Weapons bug duplicate SV Battlers

Hi there, i was using Akea visual weapons and it works great when only a character is using the visual weapon, but if two characters in the team use the same weapon, the weapon duplicate the character too, overlapping them.

I put here an exemple ( the battle bars are still in developing, just not look at it ), you can see that the first character on the top and the last character on the bottom are displayed correclty because they have two different weapons, the second and the third has overlapping issues because they are using the same weapon.

Am i making something wrong or the plugin has this limitation?

1697530219719.png
I've not come across this before. Since the weapons graphics are assigned to the items not the actors.
Looking at the code, There seems to be no specific check to avoid the actor sprite duplication issue when two different actors equip a weapon with the same ID. This could cause this bug.
The current code only checks if the weapon ID has changed from the previous one and loads the image of the corresponding weapon and actor, but does not take into account that the ID may be the same for multiple actors.

Of course correct me if i am wrong, i am still n00b with js.
Of course correct me if i am wrong, i am still n00b with js.
I think it makes more sense to troubleshoot your setup first.

Like, screenshots of how the items are setup in your database, any applicable plugin parameters, that kind of thing. Let someone else who uses the plugin test to see if they can duplicate the bug.

If it's verified that there is an actual glitch with the plugin and not with your project, then we'll look at the code 😉
@ATT_Turan I can confirm it's a bug.
1697761278654.png

Weapon images are given to the weapon ID, and I've tested this with a lot of different weapons with a variety of stock amounts.
@Holder Okay, cool. I could certainly take a look at it, but since it appears that @Gabe still actively frequents the forums, it might make the most sense to report it to him and see what he can do.

(In fact, @Lykan_3D, it usually makes the most sense to report bugs in the plugin's thread so the author is notified)
Unfortunately @ATT_Turan speaking to Reisen (Co person with Gabe) it sounds like Gabe isn't working on plugins anymore.
Shame because this is one hel'ova great battle system to use.
@Holder Well if he doesn't mind, I'm happy to take a poke at it, see if it's something easy to fix without rewriting the whole thing.
@Holder Well if he doesn't mind, I'm happy to take a poke at it, see if it's something easy to fix without rewriting the whole thing.
Yeah they've said it's open for people to use and edit away.
Sorry for my late reply, i work as a programmer with Unreal Engine for a company that work with simulators and i am in a shipping and review phase, so is pure madness.
I am happy to have helped to discover this bug, sadly my competence in JS for now is very low ( i am proficent with C++ and visual scripting only ) so i can't really help in the correction of the plugin, i plan to study JS in order to help more the community.
Thank you all for the time taken to review my ask for help. 😀
All fixed thanks to Gabe:

1700943882546.png

Updated code can be found here: https://gabe-plugins.itch.io/akea-visual-weapons
Just received this update to go with the configuration. This needs to be in your plug-in lists also for my battlers.

Original thread: https://forums.rpgmakerweb.com/threads/akea-visual-weapons-bug-duplicate-sv-battlers.162076/