Lua error with KR server : ZaralekRotation
Black-Beer opened this issue ยท 3 comments
ADDON VERSION: v37 (KR server)
KR server
Describe the bug
Addon isn't working and they got a error from the Bugsack.
Screenshots
HandyNotes_Dragonflight/core/util.lua:291: attempt to perform arithmetic on field '?' (a nil value)
[string "@HandyNotes_Dragonflight/core/util.lua"]:291: in function Initialize' [string "@HandyNotes_Dragonflight/core/class.lua"]:56: in function
ZaralekRotation'
[string "@HandyNotes_Dragonflight/zones/zaralek_cavern.lua"]:69: in main chunk
Locals:
self = {
__address = "00000223869A81E0"
id = 2
__class =
{
}
}
attrs =
{
id = 2
}
region_initial =
{
1 = 1683298800
3 = 1683259200
}
(*temporary) = 172800
(*temporary) = nil
(*temporary) = 2
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to perform arithmetic on field '?' (a nil value)"
HandyNotes_Dragonflight/zones/azure_span.lua:1 (null)
HandyNotes_Dragonflight/zones/ohnahran_plains.lua:1 (null)
HandyNotes_Dragonflight/zones/thaldraszus.lua:1 (null)
HandyNotes_Dragonflight/zones/waking_shores.lua:1 (null)
HandyNotes_Dragonflight/zones/zaralek_cavern.lua:1 (null)
Interface\FrameXML\Bindings.xml:1 HandyNotes_Dragonflight/zones/azure_span.lua:1 (null)
Interface\FrameXML\Bindings.xml:1 HandyNotes_Dragonflight/zones/ohnahran_plains.lua:1 (null)
Interface\FrameXML\Bindings.xml:1 HandyNotes_Dragonflight/zones/thaldraszus.lua:1 (null)
Interface\FrameXML\Bindings.xml:1 HandyNotes_Dragonflight/zones/waking_shores.lua:1 (null)
Interface\FrameXML\Bindings.xml:1 HandyNotes_Dragonflight/zones/zaralek_cavern.lua:1 (null)
replace this file in core
folder and /reload
UI.
should be no error and wait for next release.
It appears that some of the files are missing time data for the Korean server, which is causing the error. You need to modify the lua files in the HandyNotes_Dragonflight\zones folder.
For example, adding time information for the Korean server to the zaralek_cavern.lua file seems to work.
local ZaralekRotation = Class('ZaralekRotation', ns.Interval, {
initial = {eu = 1683259200, us = 1683298800, kr = 1683759600, tw = 1683759600},
offset = 86400,
interval = 86400
})