[open] CallSecureProtected('SelectSlotAbility',.. - ESOUI
Thread Tools Display Modes
01/09/19, 04:58 AM   #1
Gandalf's Avatar
Join Date: Aug 2016
Posts: 27
[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:
local success, reason = CallSecureProtected('SelectSlotAbility', SkillId2Idx(ability), 2+slot)
if not success then 
     d("Warning: "..GetAbilityName(ability).."] not slotted: <"..tostring(reason)..">")

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

Last edited by Gandalf : 01/10/19 at 03:49 PM.
  Reply With Quote
05/09/19, 01:43 PM   #4
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?

  Reply With Quote
05/09/19, 03:57 PM   #5
Gandalf's Avatar
Join Date: Aug 2016
Posts: 27
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