Thread Tools Display Modes
01/09/19, 04:58 AM   #1
Gandalf
 
Gandalf's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2016
Posts: 28
[fixed] CallSecureProtected('SelectSlotAbility',..

Bug Description:
After porting from one pvp campaign to another while the char is in combat, CallSecureProtected('SelectSlotAbility',...)
will fail with reason="secure protected functions cannot be called while in lockdown"

Additional comments:
#1 campaign porting resolves the combat state, but leaves an internal lockdown state triggered
#2 manually ability slotting works even when that internal lock is triggered
#3 getting in/out of combat by killing a mob/player resolves that internal lockdown

Code to catch the error:
Code:
local success, reason = CallSecureProtected('SelectSlotAbility', SkillId2Idx(ability), 2+slot)
if not success then 
     d("Warning: "..GetAbilityName(ability).."] not slotted: <"..tostring(reason)..">")
end

Last edited by Gandalf : 07/15/19 at 01:59 PM.
  Reply With Quote
01/10/19, 10:16 AM   #2
ZOS_ChipHilseberg
ZOS Staff!
Premium Member
Yes this person is from ZeniMax!
Join Date: Oct 2014
Posts: 551
We'll get this fixed. Thanks.
  Reply With Quote
01/10/19, 02:21 PM   #3
Gandalf
 
Gandalf's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2016
Posts: 28
Great! Many thanks!

Last edited by Gandalf : 01/10/19 at 03:49 PM.
  Reply With Quote
05/09/19, 01:43 PM   #4
mesota
AddOn Author - Click to view addons
Join Date: Oct 2017
Posts: 4
It seems that my addon (AlphaGear) suffers from the same issue. Is it foreseeable when this will be fixed?

-mesota
  Reply With Quote
05/09/19, 03:57 PM   #5
Gandalf
 
Gandalf's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2016
Posts: 28
Update pts5.0.3:

It seems to be fixed. Can not reprocude the error by entering a cyrodiil campaign while in combat

Last edited by Gandalf : 05/10/19 at 06:03 AM.
  Reply With Quote

ESOUI » Developer Discussions » Bug Reports » [open] CallSecureProtected('SelectSlotAbility',..

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off