Slow Tweak v1.2.0

A place to post your add ons and ideas for them

Moderator: Moderator

Message
Author
nsrr
Sher'Tul
Posts: 1126
Joined: Mon Sep 21, 2015 8:45 pm
Location: Middle of Nowhere

Slow Tweak v1.2.0

#1 Post by nsrr »

Here and on the Steam workshop.

Tweaks the 'Slow' effect such that when a new slow is applied to a target already afflicted with a slow, the new slow will no longer outright replace the old effect. Instead, the highest power effect will take priority. If the new effect is stronger, it will replace the old effect. Otherwise, it will be ignored.

This is primarily intended to resolve the issues caused by equipping multiple pieces of gear with on-hit slows. Due to the way Slow normally works, only the last effect applied will have any impact on the target. The result is that equipping more pieces of gear with on-hit slow can detrimentally impact your ability to slow enemies, which is counter-intuitive and less than ideal.

This refers specifically to the effect 'Slow', which reduces global speed. Other effects which influence speed, global or otherwise, are not affected by this addon.
Last edited by nsrr on Tue Jan 03, 2017 2:58 pm, edited 1 time in total.

jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

Re: Slow Tweak v1.1.0

#2 Post by jenx »

There are two melee slow effects: XX% to cause slow and Slow by YY%. Does it handle both types?
MADNESS rocks

dadito
Thalore
Posts: 169
Joined: Thu May 21, 2015 10:28 pm

Re: Slow Tweak v1.1.0

#3 Post by dadito »

Also does this work with oozemancer?

They have 40% slow built into slime spit, but ooze beam has 15% slow and overrides it all the time

nsrr
Sher'Tul
Posts: 1126
Joined: Mon Sep 21, 2015 8:45 pm
Location: Middle of Nowhere

Re: Slow Tweak v1.1.0

#4 Post by nsrr »

This will affect anything that uses the Slow status. I know Slime Spit uses Slow, so Oozebeam must as well, if it normally overwrites. So, yes, that should be covered.

Same for on-hit effects. If they apply Slow, this will affect them. This definetly includes 'slow by xx%' on-hit effects, as this was my primary focus in testing. I'm not sure about 'xx% chance to slow'... that's not an effect I actually remember. Unless you mean chance to cripple? Cripple affects all combat (mind, spell, attack) speeds, but not global speed, and is a different effect from Slow. It would not be affected.

jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

Re: Slow Tweak v1.1.0

#5 Post by jenx »

Slow global speed by XX% is on two antimagic egos: slime-covered and of the leech
MADNESS rocks

nsrr
Sher'Tul
Posts: 1126
Joined: Mon Sep 21, 2015 8:45 pm
Location: Middle of Nowhere

Re: Slow Tweak v1.1.0

#6 Post by nsrr »

jenx wrote:Slow global speed by XX% is on two antimagic egos: slime-covered and of the leech
Then, yes, covers both of those.

Slime-covered just has a chance to apply the Slow status.

Leech has a few effects. One is on-hit Slime damage. The Slime damage type is Nature damage with Slow built in. It's the same damage type used by Slimespit, for example. It doesn't specify the slow power, so it's probably the standard 15%. Leech also has a chance drain Stamina, and a chance to inflict Slow on-hit. I honestly couldn't tell you which would normally apply first in that case. If the wiki is right, the Slime damage is for all melee hits, not just the weapon with the ego, and those effects usually seem to hit last. In either case, the Slow status is being used all around, so with this tweak it won't matter which order they hit in. Only the strongest will be relevant.

jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

Re: Slow Tweak v1.1.0

#7 Post by jenx »

Could this addon be wrecking global character speed?

http://te4.org/characters/2460/tome/dfe ... 62b1ed8d89

I have yeek adventurer with Essence of Speed 5/5 and Quickened 2/5, and my global speed is 103.3% !!!!

It all went haywire when I got Quickened, the Yeek racial ability. I have made lots of chars like this and never had this happen before.

If it's not the addon, I have no idea what has caused it :-(
Last edited by jenx on Tue Jan 03, 2017 1:51 pm, edited 1 time in total.
MADNESS rocks

Mordy
Archmage
Posts: 300
Joined: Tue Feb 10, 2015 1:41 pm

Re: Slow Tweak v1.1.0

#8 Post by Mordy »

It's possible that the addon new slows don't clean themselves correctly once removed (say, you apply a 15% slow, then upgrade it to 30%, then the slow ends and it only removes the original 15%). It's not much of a problem for NPCs since death is usually the removal cause, but for the player those errors accumulate fast :D

nsrr
Sher'Tul
Posts: 1126
Joined: Mon Sep 21, 2015 8:45 pm
Location: Middle of Nowhere

Re: Slow Tweak v1.1.0

#9 Post by nsrr »

Well, that's no good...

I'll look into this immediately.

nsrr
Sher'Tul
Posts: 1126
Joined: Mon Sep 21, 2015 8:45 pm
Location: Middle of Nowhere

Re: Slow Tweak v1.2.0

#10 Post by nsrr »

Mordy hit the nail on the head; slows weren't being removed properly due to some poor coding on my part.

This has been fixed in v1.2.0, now up.

I apologize for the mistake, and thanks for letting me know.

jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

Re: Slow Tweak v1.2.0

#11 Post by jenx »

nsrr wrote:Mordy hit the nail on the head; slows weren't being removed properly due to some poor coding on my part.

This has been fixed in v1.2.0, now up.

I apologize for the mistake, and thanks for letting me know.
Thank you for fixing it!

Will my char now work, or do I have to restart?

Edit: Answer, it doesn't work :-(
MADNESS rocks

jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

Re: Slow Tweak v1.2.0

#12 Post by jenx »

I updated the addon and rolled a new char. I got a lua error, not from this addon but from marksman. But I've played dozens of hours using marksman with no errors, so it is possibly this addon?

or an edge case with marksman, but I doubt it tbh.

here is the error:

Code: Select all

error = "Lua Error: /engine/interface/ActorTalents.lua:279: /engine/interface/ActorTalents.lua:256: /engine/interface/ActorTalents.lua:150: /data-marksman/talents/techniques/archery-prowess_raz.lua:187: attempt to index local 'target' (a nil value)\
stack traceback:\
\9/data-marksman/talents/techniques/archery-prowess_raz.lua:187: in function </data-marksman/talents/techniques/archery-prowess_raz.lua:146>\
\9[C]: in function 'xpcall'\
\9/engine/interface/ActorTalents.lua:147: in function </engine/interface/ActorTalents.lua:140>\
  At [C]:-1 \
  At [C]:-1 error\
  At /engine/interface/ActorTalents.lua:279 useTalent\
  At /engine/interface/PlayerHotkeys.lua:170 \
  At /engine/interface/PlayerHotkeys.lua:162 activateHotkey\
  At /engine/HotkeysIconsDisplay.lua:384 onMouse\
  At /mod/class/uiset/Minimalist.lua:1785 fct\
  At /engine/Mouse.lua:58 "
seen = true
reported = true
MADNESS rocks

nsrr
Sher'Tul
Posts: 1126
Joined: Mon Sep 21, 2015 8:45 pm
Location: Middle of Nowhere

Re: Slow Tweak v1.2.0

#13 Post by nsrr »

Yes, unfortunately, the error is not something I can correct retroactively. Again, my apologies. I lost a couple of characters as well, if it makes you feel better.

As for that error, I can't see anything that Slow Tweak would have to do with it. Judging from the code, I think it's fairly likely that is an edge case error. The talent that fired the error was Volley, and it looks like it builds a list of secondary targets and then attacks them one at a time. It doesn't check to see if they are still alive, though, so it could throw an error like this if one of the secondary targets was killed by on-hit burst damage from the Volley attack made against another target within the burst range. I could be wrong about the exact cause, but either way, I'm pretty confident this is all Marksman. Could you post the error in the Marksman thread so Razakai can take a look?

jenx
Sher'Tul Godslayer
Posts: 2263
Joined: Mon Feb 14, 2011 11:16 pm

Re: Slow Tweak v1.2.0

#14 Post by jenx »

Yikes! I think there is something wrong with the addon...

I am battling the Master and he has Reflexive Dodging, granting him 354% global speed increase.

My attacks have given him:
Imploding slow (slowed by 50%)
Slowed by the gloom (slowed by 30%)

His global speed is 373.7% !!!!

Is this right?
MADNESS rocks

nsrr
Sher'Tul
Posts: 1126
Joined: Mon Sep 21, 2015 8:45 pm
Location: Middle of Nowhere

Re: Slow Tweak v1.2.0

#15 Post by nsrr »

I can't say for sure, really. Looks about right? Base speed of 100%, + 354% - 30% - 50% = approx. 374% ?

Post Reply