Hello,
I am Buuhuu from the EU-Servers. Currently we are running on Allods Version 9.0.00.64. I got a request to check this addon, as it wasn't working anymore. See following mods.txt logs:
Error: addon Healer: Error while running the chunk
Error: addon Healer: [string "Mods/Addons/Healer/Scripts/mainscript.lua"]:0: attempt to index a nil value
Error: addon Healer: func: __index, metamethod, line: -1, defined: C, line: -1, [C]
Error: addon Healer: func: , upvalue, line: 0, defined: Lua, line: 0, [string "Mods/Addons/Healer/Scripts/mainscript.lua"]
Error: addon Healer: func: , upvalue, line: 0, defined: Lua, line: 0, [string "Mods/Addons/Healer/Scripts/mainscript.lua"]
Error: addon Healer: func: , upvalue, line: 0, defined: Lua, line: 0, [string "Mods/Addons/Healer/Scripts/mainscript.lua"]
Error: addon Healer: func: updatePanel, global, line: 0, defined: Lua, line: 0, [string "Mods/Addons/Healer/Scripts/mainscript.lua"]
Error: addon Healer: func: ?, ?, line: 0, defined: Lua, line: 0, [string "Mods/Addons/Healer/Scripts/mainscript.lua"]
I fixed this bug in the following file (mainscript.lua and therefore mainscript.luac of course):
local function hideAuras(index)
if not index then aurasShow=false end
for i=0, 3 do
if not index or index==i then
hide(wtAurasBars[i].wdg)
end
end
end
Changed to:
local function hideAuras(index)
if not index then aurasShow=false end
for i=0, 3 do
if not index or index==i then
-- note Buuhuu: check for nil before accessing property
local wtAuraBar = wtAurasBars[i]
if not wtAuraBar == nil then
hide(wtAuraBar.wdg)
end
end
end
end
Also I changed the description of the addon in desc.txt and name.txt to give a hint ingame, that it is an inofficial fix.
I upload my fixed version here. Though I didn't test it on RU-Servers, it shouldn't be any more broken then before.
Greetings,
Buuhuu