Farming Bar

Farming Bar

63.7k Downloads

[Bug]: SetCooldown error

nancikennedy opened this issue ยท 0 comments

commented

Interface Version

10.0.5

AddOn Version

3.8.0

Have you replicated this error without any other addons loaded?

Yes

What steps did you take leading up to this issue?

This started when updating from 3.7.8 to 3.8.0 on the 2nd, but I have been lazy about reporting it.

  1. I had one bar, with one item (Embersilk Cloth) on it at the time, with a goal set.
  2. When I set up FB initially, I enabled both "Show Cooldown" and "Cooldown Text" and these had not changed.
  3. Updating to 3.8.0 resulted in this error popping up whenever I zoned, in any of the ways that can happen (porting, crossing from one zone to another, etc.).
  4. After experimenting, I was able to reliably avoid the error by simply unchecking the "Show Cooldown" box on the Appearance tab for that bar.

Error:
147x FarmingBar/Modules/Bars.lua:28: Usage: self:SetCooldown(start, duration [, modRate])
[string "=[C]"]: in function SetCooldown' [string "@FarmingBar/Modules/Bars.lua"]:28: in function ?'
[string "@Ace3/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:109: in function <...Ons/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:109>
[string "=[C]"]: ?
[string "@Ace3/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:19: in function <...Ons/Ace3/CallbackHandler-1.0/CallbackHandler-1.0.lua:15>
[string "@Ace3/CallbackHandler-1.0-8/CallbackHandler-1.0.lua"]:54: in function `Fire'
[string "@Ace3/AceEvent-3.0-4/AceEvent-3.0.lua"]:120: in function <Ace3/AceEvent-3.0/AceEvent-3.0.lua:119>

Locals:
(*temporary) = FarmingBar_Button1Cooldown {
0 =
}
(*temporary) = nil
(*temporary) = nil

Please supply any screenshots relevant to this issue.

No response

Please supply a copy of your saved variables.

FarmingBarDB = {
["global"] = {
["version"] = 6,
},
["profileKeys"] = {
["Drosalinda - Tanaris"] = "Drosalinda - Tanaris",
},
["profiles"] = {
["Drosalinda - Tanaris"] = {
["bars"] = {
{
["point"] = {
"BOTTOMRIGHT", -- [1]
nil, -- [2]
"BOTTOMRIGHT", -- [3]
-229.3841857910156, -- [4]
57.07767486572266, -- [5]
},
["label"] = "Default",
["buttonsPerAxis"] = 4,
["numButtons"] = 16,
["buttonSize"] = 36,
["alpha"] = 0.5,
["buttons"] = {
{
["onUse"] = {
["macrotext"] = "",
["type"] = "ITEM",
["itemID"] = 53010,
},
["trackers"] = {
{
["objective"] = 1,
["type"] = "ITEM",
["name"] = "Embersilk Cloth",
["id"] = 53010,
["includeAlts"] = false,
["includeGuildBank"] = {
},
["altIDs"] = {
},
["includeBank"] = false,
}, -- [1]
},
["objective"] = 1000,
["mute"] = false,
["condition"] = {
["func"] = "function(trackers, GetTrackerCount)\n -- This is the structure of the tracker table:\n --trackers = {\n -- [1] = {\n -- type = "ITEM", -- "CURRENCY"\n -- id = 0000,\n -- objective = 1,\n -- includeAlts = false,\n -- includeBank = false,\n -- includeGuildBank = {\n -- ["GuildKey"] = true\n -- },\n -- altIDs = {\n -- {\n -- type = "ITEM", -- "CURRENCY"\n -- name = "",\n -- id = 0000,\n -- multiplier = 1,\n -- }\n -- },\n -- },\n --}\n \n -- NOTE: make sure the first argument of GetTrackerCount is nil\n -- This function is not necessary, but available if your custom function is simple and doesn't change the way each tracker is calculated.\n --local count = GetTrackerCount(, trackers[1])\n \n return GetTrackerCount(, trackers[1])\nend",
["type"] = "ALL",
},
["icon"] = {
["id"] = 466842,
["type"] = "AUTO",
},
["title"] = "Embersilk Cloth",
}, -- [1]
nil, -- [2]
{
["onUse"] = {
["macrotext"] = "",
["type"] = "ITEM",
["itemID"] = 49916,
},
["trackers"] = {
{
["objective"] = 1,
["type"] = "ITEM",
["name"] = "Lovely Charm Bracelet",
["includeAlts"] = false,
["id"] = 49916,
["altIDs"] = {
},
["includeBank"] = false,
["includeGuildBank"] = {
},
}, -- [1]
},
["objective"] = 0,
["mute"] = false,
["icon"] = {
["id"] = 133334,
["type"] = "AUTO",
},
["condition"] = {
["func"] = "function(trackers, GetTrackerCount)\n -- This is the structure of the tracker table:\n --trackers = {\n -- [1] = {\n -- type = "ITEM", -- "CURRENCY"\n -- id = 0000,\n -- objective = 1,\n -- includeAlts = false,\n -- includeBank = false,\n -- includeGuildBank = {\n -- ["GuildKey"] = true\n -- },\n -- altIDs = {\n -- {\n -- type = "ITEM", -- "CURRENCY"\n -- name = "",\n -- id = 0000,\n -- multiplier = 1,\n -- }\n -- },\n -- },\n --}\n \n -- NOTE: make sure the first argument of GetTrackerCount is nil\n -- This function is not necessary, but available if your custom function is simple and doesn't change the way each tracker is calculated.\n --local count = GetTrackerCount(, trackers[1])\n \n return GetTrackerCount(, trackers[1])\nend",
["type"] = "ALL",
},
["title"] = "Lovely Charm Bracelet",
}, -- [3]
{
["onUse"] = {
["macrotext"] = "",
["type"] = "ITEM",
["itemID"] = 49927,
},
["trackers"] = {
{
["name"] = "Love Token",
["type"] = "ITEM",
["objective"] = 1,
["id"] = 49927,
["includeAlts"] = false,
["altIDs"] = {
},
["includeBank"] = false,
["includeGuildBank"] = {
},
}, -- [1]
},
["objective"] = 0,
["mute"] = false,
["condition"] = {
["func"] = "function(trackers, GetTrackerCount)\n -- This is the structure of the tracker table:\n --trackers = {\n -- [1] = {\n -- type = "ITEM", -- "CURRENCY"\n -- id = 0000,\n -- objective = 1,\n -- includeAlts = false,\n -- includeBank = false,\n -- includeGuildBank = {\n -- ["GuildKey"] = true\n -- },\n -- altIDs = {\n -- {\n -- type = "ITEM", -- "CURRENCY"\n -- name = "",\n -- id = 0000,\n -- multiplier = 1,\n -- }\n -- },\n -- },\n --}\n \n -- NOTE: make sure the first argument of GetTrackerCount is nil\n -- This function is not necessary, but available if your custom function is simple and doesn't change the way each tracker is calculated.\n --local count = GetTrackerCount(, trackers[1])\n \n return GetTrackerCount(, trackers[1])\nend",
["type"] = "ALL",
},
["icon"] = {
["id"] = 135453,
["type"] = "AUTO",
},
["title"] = "Love Token",
}, -- [4]
},
}, -- [1]
},
},
},
}
FarmingBarDevDB = nil