Hey guys, I'm getting a lua runtime error. /windower4//addons/gearswap/equip_processing.lua:258: attempt to index field '?' (a nil value)
Gearswap will load but it immediately gives this error if I try to load a lua or change jobs. None of my luas will load either. I've tried re-installing windower and that didn't work. I also got a different equip_processing file from my brother and that didn't work. I don't know if it's tied to the new reisenjima gear either. I tried looking into the equip processing file to try and see if i could fix the problem, but I haven't got a clue what to fix, if anything. If anyone could help me figure this out I'd greatly appreciate it. Following is the code for the equip_processing.lua around line 258. is there something that needs to be fixed or is there a different problem? All of my lua's are motenten based.
function equip_piece(eq_slot_id,bag_id,inv_slot_id)
-- Many complicated, wow!
local cur_eq_tab = items.equipment[toslotname(eq_slot_id)]
if cur_eq_tab.slot ~= empty then
items[to_windower_api(res.bags[cur_eq_tab.bag_id].english)][cur_eq_tab.slot].status = 0
end
if inv_slot_id ~= empty then
items.equipment[toslotname(eq_slot_id)] = {slot=inv_slot_id,bag_id=bag_id}
items[to_windower_api(res.bags[bag_id].english)][inv_slot_id].status = 5
return string.char(inv_slot_id,eq_slot_id,bag_id,0)
else
items.equipment[toslotname(eq_slot_id)] = {slot=empty,bag_id=0}
return string.char(0,eq_slot_id,0,0)
end
end