View Single Post
05/27/20, 07:37 AM   #1
Sheen
Join Date: Apr 2020
Posts: 3
Question Trying to get working unmaintained addon "Move All Items"

Hello,

I've just discovered this tiny addon (176 lines, no libs required) : https://www.esoui.com/downloads/info...eAllItems.html

It's exactly what I'm looking for, unfortunately, it's no more maintained since 2017.
I'm trying to understand what is the issue, but I'm not a developer and I admit that I don't understand anything.



Addon is loading, buttons are visible and in place, but when clicking on button I got this api error :

---------------------------------------------------------------------------------------
user:/AddOns/MoveAllItems/MoveAllItems.lua:77: table index is nil
stack traceback:
user:/AddOns/MoveAllItems/MoveAllItems.lua:77: in function 'DepositAllItems'
<Locals> button = ud, window = ud, delayStep = 300, toBagId = 3, fromBagId = 1, tempitems = [table:1]{}, items = [table:2]{}, _ = 1, v = [table:3]{bottom = 42, bestItemTypeName = "Nouveau", sortPriorityName = "000Nouveau", isHeader = T, top = 0, num = 6, bagTypeId = 1, typeId = 998} </Locals>
user:/AddOns/MoveAllItems/MoveAllItems.lua:88: in function 'ButtonClickHandler'
<Locals> button = ud </Locals>
---------------------------------------------------------------------------------------



The line 77 is this function :
---------------------------------------------------------------------------------------
local function DepositAllItems(button)
local window = button:GetParent():GetNamedChild("Backpack")
local delayStep = 300

local toBagId
local fromBagId = BAG_BACKPACK
if button.guild == true then toBagId = BAG_GUILDBANK
else toBagId = BAG_BANK end

local tempitems = {}
local items = {}
u
tempitems[v.data.slotIndex] = v.data <----- LINE 77
end
for _,v in pairs(tempitems) do
table.insert(items, v)
end

MoveItems(toBagId, fromBagId, items, delayStep)
end
---------------------------------------------------------------------------------------



The line 88 is this function :
---------------------------------------------------------------------------------------
local function ButtonClickHandler(button)
--figure out which button was pressed
if button.deposit == true then DepositAllItems(button) <-- LINE 88
else WithdrawAllItems(button) end
end
---------------------------------------------------------------------------------------



The error is table is null, so I think syntax has changed because of multiple api upgrade and item table is not created properly, but I'm not able to go further.

I think it does not require much mork but maybe I'm wrong.
If someone has a few time to help me, you're welcome ^^


Thanks.

Last edited by Sheen : 05/27/20 at 07:43 AM.
  Reply With Quote