Display MoreThere are more small differences...
Example: API:GetGuildRosterInfo : as described in the link, LogOutTime should have format 00:00:00. But in Arcadia we get values like "0:18:30:32" - neither number of fields nor 2 obligatory digits in each. This means that for example vanilla GuildPanel addon does not work (GuildPanel.helpers.ParseTime() assumes format as in wiki...).
I wonder if this kind of differences are described somewhere. Some addons were adjusted to run on Arcadia: is there some info somewhere (wiki? a forum?) that describes what needed changing?
PS: a quick fix for GuildPanel:
DiffDisplay MoreInterface/Addons/GuildPanel/script $ diff -ruN GuildPanelHelpers_orig.lua GuildPanelHelpers.lua --- GuildPanelHelpers_orig.lua 2012-06-29 19:50:02.000000000 +0200 +++ GuildPanelHelpers.lua 2020-12-05 13:11:23.800254100 +0100 @@ -144,7 +144,7 @@ end; function GuildPanel.helpers.ParseTime(val) - local a,b; + local a,b, factor, part; if(string.find(val,GuildPanel.patterns["day"])) then -- 2 days 10 hours 17 minutes @@ -155,21 +155,16 @@ b = tonumber(arg[1]); if(b == 1) then b = "1 "..GuildPanel.locale["SingleDay"]; else b = b.." "..GuildPanel.locale["MultiDays"]; end; else + -- 73:15:27:41 + -- 0:18:30:32 -- 12:22:11 - - -- match this pattern - if(string.find(val,"%d%d:%d%d:%d%d")) then - - a = tonumber(string.sub(val,1,2)); - a = a + (tonumber(string.sub(val,4,5)) / 100); - b = val; - else - -- bad data - - a = -1; - b = "???"; - - end; + factor = 1000000.00; + a = 0; + for part in string.gmatch(val, "([^:]+)") do + a = a + tonumber(part) * factor; + factor = factor / 100; + end + b = val; end; return a,b;
GuildPanel addon is updated in CoA curseforge already.
We are working on a general API list in web site and expecting it to be publicly available soon.
Greetings