View Bug Report
UI Error when trying to use or destroy item
Bug #: 3059
File: FCO ItemSaver
Date: 07/18/20 11:36 AM
By: reyu
Status: Game Bug (Cant fix)
With only FCO Item Saver (and required Libs) activated, when trying to use or destroy an item I get a UI error.

The following is from trying to use an item:
Code:
EsoUI/Ingame/Inventory/InventorySlot.lua:1102: function expected instead of nil
stack traceback:
EsoUI/Ingame/Inventory/InventorySlot.lua:1102: in function 'TryUseItem'
|caaaaaa<Locals> inventorySlot = ud, bag = 1, index = 14, usable = T, onlyFromActionSlot = F </Locals>|r
EsoUI/Ingame/Inventory/InventorySlot.lua:1324: in function '(anonymous)'
(tail call): ?
(tail call): ?
EsoUI/Libraries/ZO_ContextMenus/ZO_ContextMenus.lua:451: in function 'ZO_Menu_ClickItem'
|caaaaaa<Locals> control = ud, button = 1, menuEntry = [table:1]{itemYPad = 0} </Locals>|r
ZO_MenuItem1_MouseUp:4: in function '(main chunk)'
|caaaaaa<Locals> self = ud, button = 1, upInside = T, ctrl = F, alt = F, shift = F, command = F </Locals>|r
And this is what I get when trying to destroy an item:
Code:
EsoUI/Ingame/Inventory/InventorySlot.lua:1063: function expected instead of nil
stack traceback:
EsoUI/Ingame/Inventory/InventorySlot.lua:1063: in function 'ZO_InventorySlot_InitiateDestroyItem'
|caaaaaa<Locals> inventorySlot = ud, bag = 1, index = 11 </Locals>|r
EsoUI/Ingame/Inventory/InventorySlot.lua:1704: in function 'OnSelect'
EsoUI/Libraries/ZO_ContextMenus/ZO_ContextMenus.lua:451: in function 'ZO_Menu_ClickItem'
|caaaaaa<Locals> control = ud, button = 1, menuEntry = [table:1]{itemYPad = 0} </Locals>|r
ZO_MenuItem1_MouseUp:4: in function '(main chunk)'
|caaaaaa<Locals> self = ud, button = 1, upInside = T, ctrl = F, alt = F, shift = F, command = F </Locals>|r
I can successfully use an item if I assign it to a quick slot and use it from there. It only errors if I try to execute an action from the inventory, a bank screen, shop, or similar interface.

RSS 2.0 Feed for Bug CommentsNotes Sort Options
By: reyu - 07/18/20 11:46 AM
Small update, if I hit `E` while hovering over the item to use it, it works normally. It's only by right clicking and selecting `use` that I encounter the error.
By: Baertram - 07/18/20 01:24 PM
Yeah, and both are well known and written in the FCOIS comments, 1st "sticky" comment + workarounds, since 1/2 year now :-)
#40) Getting an "Attempt to access a private function" error message if you try to destroy / use an item:

Not able to fix this as I would have to remove other protective function code. So it's just usable by the help of the workarounds.
By: reyu - 07/19/20 06:20 PM
Ah, sorry for the spam then. I seem to have missed that page somehow. Thank you!
By: Baertram - 07/19/20 11:36 PM
No problem.
I wasn't able to find out yet why the stuff happens.
Seems to have to do with my hooks I create on the inventory rows to protect the items against if you doubleclick them (for usage e.g.).

I tried all ways that ZOs provides to achieve the same results by other ways, but they all create the isnecure code then for use and destroy.

As there exist workarounds and most ppl do not use the context menus (or the drag&drop is easier than using a context menu for the destroy) I did not invest more time trying to fix this.

Maybe in the future.
I'm also still waiting for some of the Zos devs to tell me why this happens, where as all other stuff is working properly (af I had adopted to ZOs insecure code patches).
But no answer yet :-(