wrycu/StarWarsFFG-Enhancements

Attack animation

Ryan-BLKST opened this issue · 10 comments

Hello,

It seems that localized 'global value' name is messing up the per item attack animation.
On the french version, the popup brings (valeur global) as default but it cannot be saved as such, the system displays 'Custom animation was removed'.
It 'works' when (global value) is placed instead but I cannot play custom sounds.

Tested on blank world, 1.80-alpha8 / FFG Star wars Enhancements 2.0.0
Uploading Capture.PNG…

Thank you again for your work !

wrycu commented

I think you're misunderstanding how it works. You cannot set a custom value for one part; you must set a custom value for each of the three fields - animation file, sound file, and number of times to play. If you leave any of them as default, it will unset it instead.

Isn't the (global value) supposed to get the value from the global FFG Enhancement setting ?

Also, when trying to set with default values (copy pasted from the settings), it does not work
Capture

wrycu commented

(global value) (or the localized version) is supposed to use the values set in the module settings. You can only set custom values in that window when none of them are set to (global value).

What happens when you try to save with your screenshot?

You can only set custom values in that window when none of them are set to (global value).

I do not understand, do you mean the global settings (in Options => FFG Enhanced => Attack animations) must be blank for the custom values to work ?

What happens when you try to save with your screenshot?

It saves but no sounds or animation is played when attacking

wrycu commented

This will not work:

image

Neither will this:

image

All settings must be set to something other than the default value or it will "remove custom animation".


Can you try changing the skill the weapon is using and let me know if it works for any skill?

The error may actually be somewhere else.
I was testing with 1 animation count, it does not work. But when testing with values of 2 or more, it works.

It seems sound and animation are played 1 time less than the value indicated in "Animation count".

wrycu commented

Thanks for offering to take this @bheiskell, looking forward to your fix

Chatting with @wrycu, there may be an off by one bug, causing 1 to become 0 attacks.

I confirmed it's an off by one in my local environment. Looking into how to fix it. As a work around, set animation count = 2.

wrycu commented

Will be released in 2.0.2.