GithubHelp home page GithubHelp logo

torhal / broker_currency Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 6.0 296 KB

A LibDataBroker display of currencies and gold totals for session / today / yesterday / this week / last week.

Home Page: https://www.curseforge.com/wow/addons/broker-currency

Lua 100.00%
world-of-warcraft-addon

broker_currency's People

Contributors

bradcongithub avatar christophknuth avatar torhal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

broker_currency's Issues

Gold Summary Blanking Out - No LUA Errors

I have made updates per #13, however, am only able to see the character gold for two of my toons under the Summary tooltip (these toons are the one I'm currently on and the first toon that I logged into when changes were made on the above fix).

LUA Error in Broker_Currency: attempt to index local 'left4' (a nil value)

I'm getting the following LUA error when logging into the game in Shadowlands. I have current release ver 9.0.5.7 installed.

Message: Interface\AddOns\Broker_Currency\Broker_Currency.lua:265: attempt to index local 'left4' (a nil value)
Time: Tue Aug 3 19:25:04 2021
Count: 1
Stack: Interface\AddOns\Broker_Currency\Broker_Currency.lua:265: attempt to index local 'left4' (a nil value)
[string "=(tail call)"]: ?
[string "@interface\AddOns\Broker_Currency\Broker_Currency.lua"]:265: in function <Interface\AddOns\Broker_Currency\Broker_Currency.lua:245>
[string "@interface\AddOns\Broker_Currency\Broker_Currency.lua"]:630: in function <Interface\AddOns\Broker_Currency\Broker_Currency.lua:627>
[string "=[C]"]: ?
[string "@interface\AddOns\Ace3\AceAddon-3.0\AceAddon-3.0.lua"]:70: in function <Interface\AddOns\Ace3\AceAddon-3.0\AceAddon-3.0.lua:65>
[string "@interface\AddOns\Ace3\AceAddon-3.0\AceAddon-3.0.lua"]:498: in function `InitializeAddon'
[string "@interface\AddOns\Ace3\AceAddon-3.0\AceAddon-3.0.lua"]:623: in function <Interface\AddOns\Ace3\AceAddon-3.0\AceAddon-3.0.lua:615>

Locals:

Random lua errors after todays update, stats not saved properly.

Hi Torhal.

I just downloaded the new update today (9.0.5.7). After reloading a bunch of times on each characters on my server (first-time logins seemed to trigger the below errors, on most of my characters although not all), I noticed the summary tooltip keeps the names of the characters and gold gained today/this week (which tracks previously logged in toons' gold as gained+spent gold), but not gold on any character other than the one I'm logged onto, and no currencies are shown at all.

The list of currencies on my chocolate bar seems to work fine, it's just the mouse-over tooltip.

Any ideas?

Below are the 3 lua errors I'm getting:

18x Broker_Currency\Broker_Currency-9.0.5.7.lua:265: attempt to index local 'left4' (a nil value)
[string "@Broker_Currency\Broker_Currency-9.0.5.7.lua"]:265: in function <Broker_Currency\Broker_Currency.lua:245>
[string "@Broker_Currency\Broker_Currency-9.0.5.7.lua"]:630: in function <Broker_Currency\Broker_Currency.lua:627>
[string "=[C]"]: ?
[string "@datastore\libs\AceAddon-3.0\AceAddon-3.0-13.lua"]:70: in function <DataStore\libs\AceAddon-3.0\AceAddon-3.0.lua:65>
[string "@datastore\libs\AceAddon-3.0\AceAddon-3.0-13.lua"]:498: in function `InitializeAddon'
[string "@datastore\libs\AceAddon-3.0\AceAddon-3.0-13.lua"]:623: in function <DataStore\libs\AceAddon-3.0\AceAddon-3.0.lua:615>


12x Broker_Currency\Broker_Currency-9.0.5.7.lua:376: attempt to compare nil with number
[string "@Broker_Currency\Broker_Currency-9.0.5.7.lua"]:376: in function ?' [string "@DataStore\libs\CallbackHandler-1.0\CallbackHandler-1.0-7.lua"]:119: in function <...ore\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:119> [string "=[C]"]: ? [string "@DataStore\libs\CallbackHandler-1.0\CallbackHandler-1.0-7.lua"]:29: in function <...ore\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:25> [string "@DataStore\libs\CallbackHandler-1.0\CallbackHandler-1.0-7.lua"]:64: in function Fire'
[string "@datastore\libs\AceEvent-3.0\AceEvent-3.0-4.lua"]:120: in function <DataStore\libs\AceEvent-3.0\AceEvent-3.0.lua:119>


4x Broker_Currency\Tooltip.lua:180: attempt to index local 'gainedReference' (a nil value)
[string "@Broker_Currency\Tooltip.lua"]:180: in function <Broker_Currency\Tooltip.lua:177>
[string "@Broker_Currency\Tooltip.lua"]:216: in function <Broker_Currency\Tooltip.lua:184>
[string "@Broker_Currency\Tooltip.lua"]:274: in function `OnEnter'
[string "@ChocolateBar\Chocolate.lua"]:257: in function <ChocolateBar\Chocolate.lua:228>

Locals:
currencyIDList =

{
1 = 829
2 = 1174
3 = 398
4 = 821
5 = 1535
6 = 384
7 = 393
8 = 1172
9 = 1173
10 = 754
11 = 677
12 = 400
13 = 394
14 = 828
15 = 397
16 = 676
17 = 401
18 = 385
19 = 399
20 = 1534
21 = 697
22 = 738
23 = 752
24 = 1273
25 = 1129
26 = 994
27 = 1580
28 = 776
29 = 163036
30 = 116415
31 = 37829
32 = 21100
33 = 515
34 = 49927
35 = 1379
36 = 944
37 = 789
38 = 1602
39 = 1356
40 = 1357
41 = 26045
42 = 26044
43 = 1792
44 = 1149
45 = 1704
46 = 391
}
profitTable =
{
}
gainedReference = nil
spentReference = nil
(for index) = 1
(for limit) = 46
(for step) = 1
index = 1
currencyID = 829
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index local 'gainedReference' (a nil value)"

Errors when logging in on WoD

Hi there!

When I log in with my character playing WoD, I am receiving the errors below, in order. Not sure if it's caused by Broker Currency though... Happy to contact another Dev, if needed.

Many thanks!

+++++++++++++
2x Broker_Currency\Broker_Currency-9.0.5.7.lua:265: attempt to index local 'left4' (a nil value)
[string "@Broker_Currency\Broker_Currency-9.0.5.7.lua"]:265: in function <Broker_Currency\Broker_Currency.lua:245>
[string "@Broker_Currency\Broker_Currency-9.0.5.7.lua"]:630: in function <Broker_Currency\Broker_Currency.lua:627>
[string "=[C]"]: ?
[string "@!KalielsTracker\Libs\AceAddon-3.0\AceAddon-3.0-13.lua"]:70: in function <...s!KalielsTracker\Libs\AceAddon-3.0\AceAddon-3.0.lua:65>
[string "@!KalielsTracker\Libs\AceAddon-3.0\AceAddon-3.0-13.lua"]:498: in function `InitializeAddon'
[string "@!KalielsTracker\Libs\AceAddon-3.0\AceAddon-3.0-13.lua"]:623: in function <...s!KalielsTracker\Libs\AceAddon-3.0\AceAddon-3.0.lua:615>
+++++++++++++

+++++++++++++
23x Broker_Currency\Broker_Currency-9.0.5.7.lua:376: attempt to compare nil with number
[string "@Broker_Currency\Broker_Currency-9.0.5.7.lua"]:376: in function Update' [string "@Broker_Currency\Tooltip.lua"]:318: in function ShowTooltip'
[string "@Broker_Currency\Tooltip.lua"]:305: in function OnEnter' [string "@Bazooka\Bazooka-v2.9.8.lua"]:1583: in function showTip'
[string "@bazooka\Bazooka-v2.9.8.lua"]:1388: in function <Bazooka\Bazooka.lua:1379>

Locals:
self =

{
SetDefaultModuleLibraries = defined @!KalielsTracker\Libs\AceAddon-3.0\AceAddon-3.0.lua:367
Enable = defined @!KalielsTracker\Libs\AceAddon-3.0\AceAddon-3.0.lua:294
RegisterChatCommand = defined @datastore\libs\AceConsole-3.0\AceConsole-3.0.lua:85
EnableModule = defined @!KalielsTracker\Libs\AceAddon-3.0\AceAddon-3.0.lua:332
modules =
{
}
GetModule = defined @!KalielsTracker\Libs\AceAddon-3.0\AceAddon-3.0.lua:210
IterateEmbeds = defined @!KalielsTracker\Libs\AceAddon-3.0\AceAddon-3.0.lua:442
ShowTooltip = defined @Broker_Currency\Tooltip.lua:317
defaultModuleLibraries =
{
}
TimeLeft = defined @datastore\libs\AceTimer-3.0\AceTimer-3.0.lua:172
UnregisterChatCommand = defined @datastore\libs\AceConsole-3.0\AceConsole-3.0.lua:111
ScheduleRepeatingTimer = defined @datastore\libs\AceTimer-3.0\AceTimer-3.0.lua:129
CancelAllTimers = defined @datastore\libs\AceTimer-3.0\AceTimer-3.0.lua:160
Printf = defined @datastore\libs\AceConsole-3.0\AceConsole-3.0.lua:69
SetDefaultModulePrototype = defined @!KalielsTracker\Libs\AceAddon-3.0\AceAddon-3.0.lua:409
name = "Broker_Currency"
IsEnabled = defined @!KalielsTracker\Libs\AceAddon-3.0\AceAddon-3.0.lua:451
orderedModules =
{
}
ScheduleTimer = defined @datastore\libs\AceTimer-3.0\AceTimer-3.0.lua:94
DisableModule = defined @!KalielsTracker\Libs\AceAddon-3.0\AceAddon-3.0.lua:350
defaultModuleState = true
last =
{
}
RegisterMessage = defined @PetTracker\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:90
UnregisterBucket = defined @Broker_Currency\Libraries\AceBucket-3.0\AceBucket-3.0.lua:206
Print = defined @datastore\libs\AceConsole-3.0\AceConsole-3.0.lua:54
baseName = "Broker_Currency"
AddLine = defined @Broker_Currency\Tooltip.lua:471
OnInitialize = defined @Broker_Currency\Broker_Currency.lua:627
Update = defined @Broker_Currency\Broker_Currency.lua:344
IsModule = defined @!KalielsTracker\Libs\AceAddon-3.0\AceAddon-3.0.lua:468
OnEnable = defined @Broker_Currency\Broker_Currency.lua:334
SetDefaultModuleState = defined @!KalielsTracker\Libs\AceAddon-3.0\AceAddon-3.0.lua:387
CancelTimer = defined @datastore\libs\AceTimer-3.0\AceTimer-3.0.lua:147
SendMessage = defined @PetTracker\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:59
SetEnabledState = defined @!KalielsTracker\Libs\AceAddon-3.0\AceAddon-3.0.lua:424
UnregisterAllBuckets = defined @Broker_Currency\Libraries\AceBucket-3.0\AceBucket-3.0.lua:229
enabledState = true
UnregisterAllEvents = defined @PetTracker\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:174
RegisterEvent = defined @PetTracker\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:90
UnregisterAllMessages = defined @PetTracker\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:174
UnregisterMessage = defined @PetTracker\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:153
GetArgs = defined @datastore\libs\AceConsole-3.0\AceConsole-3.0.lua:144
NewModule = defined @!KalielsTracker\Libs\AceAddon-3.0\AceAddon-3.0.lua:235
IterateModules = defined @!KalielsTracker\Libs\AceAddon-3.0\AceAddon-3.0
++++++++++++++++++

errors with latest version

Error occured in: Global
Count: 1
Message: ..\AddOns\Broker_Currency\Tooltip.lua line 180:
attempt to index local 'gainedReference' (a nil value)
Debug:
[string "@RCLootCouncil\Classes\Services\ErrorHandler.lua"]:149:
...dOns\RCLootCouncil\Classes\Services\ErrorHandler.lua:147
[string "=[C]"]: ?
[string "@Broker_Currency\Tooltip.lua"]:180:
Broker_Currency\Tooltip.lua:177
[string "@Broker_Currency\Tooltip.lua"]:216:
Broker_Currency\Tooltip.lua:184
[string "@Broker_Currency\Tooltip.lua"]:274: OnEnter()
[string "@bazooka\Bazooka.lua"]:1583: showTip()
[string "@bazooka\Bazooka.lua"]:1388:
Bazooka\Bazooka.lua:1379
Locals:
private =

{
ThrowError = defined @interface\AddOns\RCLootCouncil\Classes\Services\ErrorHandler.lua:48
DoesErrorExist = defined @interface\AddOns\RCLootCouncil\Classes\Services\ErrorHandler.lua:90
ClearOldErrors = defined @interface\AddOns\RCLootCouncil\Classes\Services\ErrorHandler.lua:110
SanitizeLine = defined @interface\AddOns\RCLootCouncil\Classes\Services\ErrorHandler.lua:86
MAX_STACK_DEPTH = 10
log =
{
}
ErrorHandler = defined @interface\AddOns\RCLootCouncil\Classes\Services\ErrorHandler.lua:119
IncrementErrorCount = defined @interface\AddOns\RCLootCouncil\Classes\Services\ErrorHandler.lua:80
NewError = defined @interface\AddOns\RCLootCouncil\Classes\Services\ErrorHandler.lua:52
IsRCLootCouncilError = defined @interface\AddOns\RCLootCouncil\Classes\Services\ErrorHandler.lua:97
}
orig_errorhandler = defined @interface\AddOns\TradeSkillMaster\LibTSM\Service\ErrorHandler.lua:717

Count: 11
Message: ..\AddOns\Broker_Currency\Broker_Currency.lua line 376:
attempt to compare nil with number
Debug:
[string "@RCLootCouncil\Classes\Services\ErrorHandler.lua"]:149:
...dOns\RCLootCouncil\Classes\Services\ErrorHandler.lua:147
[string "=(tail call)"]: ?
[string "@Broker_Currency\Broker_Currency.lua"]:376: ?()
[string "@ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua"]:119:
...Ons\Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:119
[string "=[C]"]: ?
[string "@ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua"]:29:
...Ons\Ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua:25
[string "@ace3\CallbackHandler-1.0\CallbackHandler-1.0.lua"]:64: Fire()
[string "@ace3\AceEvent-3.0\AceEvent-3.0.lua"]:120:
Ace3\AceEvent-3.0\AceEvent-3.0.lua:119
Locals:
None

Count: 1
Message: ..\AddOns\Broker_Currency\Broker_Currency.lua line 265:
attempt to index local 'left4' (a nil value)
Debug:
[string "=(tail call)"]: ?
[string "@Broker_Currency\Broker_Currency.lua"]:265:
Broker_Currency\Broker_Currency.lua:245
[string "@Broker_Currency\Broker_Currency.lua"]:630:
Broker_Currency\Broker_Currency.lua:627
[string "=[C]"]: ?
[string "@ace3\AceAddon-3.0\AceAddon-3.0.lua"]:70:
Ace3\AceAddon-3.0\AceAddon-3.0.lua:65
[string "@ace3\AceAddon-3.0\AceAddon-3.0.lua"]:498: InitializeAddon()
[string "@ace3\AceAddon-3.0\AceAddon-3.0.lua"]:623:
Ace3\AceAddon-3.0\AceAddon-3.0.lua:615
Locals:
None

Sigh

Every time this addon gets updated, it breaks. Time to put it on permanent ignore.

9.0.5.5 causing errors upon logging in.

Updated to 9.0.5.5 and I receive the following errors when I log into the game.

1x Broker_Currency\Broker_Currency-9.0.5.5.lua:12: Usage: EmbedLibrary(addon, libname, silent, offset): 'libname' - Cannot find a library instance of "AceBucket-3.0".
[string "=[C]"]: ?
[string "@datastore\libs\AceAddon-3.0\AceAddon-3.0-13.lua"]:189: in function EmbedLibrary' [string "@DataStore\libs\AceAddon-3.0\AceAddon-3.0-13.lua"]:171: in function EmbedLibraries'
[string "@datastore\libs\AceAddon-3.0\AceAddon-3.0-13.lua"]:138: in function `NewAddon'
[string "@Broker_Currency\Broker_Currency-9.0.5.5.lua"]:12: in main chunk

Locals:
(*temporary) = "Usage: EmbedLibrary(addon, libname, silent, offset): 'libname' - Cannot find a library instance of "AceBucket-3.0"."

1x Broker_Currency\Tooltip.lua:60: table index is nil
[string "@Broker_Currency\Tooltip.lua"]:60: in main chunk

Locals:
AddOnFolderName = "Broker_Currency"
private =

{
CurrencyItemID =
{
}
CurrencyItemName =
{
}
CurrencyID =
{
}
CategoryCurrencyIDs =
{
}
Debug = defined @Broker_Currency\Debugger.lua:22
ExpansionCurrencyIDs =
{
}
ExpansionCurrencyGroups =
{
}
IgnoredCurrencyIDs =
{
}
CurrencyName =
{
}
GetDebugger = defined @Broker_Currency\Debugger.lua:16
CategoryCurrencyGroups =
{
}
}
LibStub =
{
NewLibrary = defined @AchieveIt\libs\LibStub\LibStub.lua:20
minors =
{
}
minor = 2
IterateLibraries = defined @AchieveIt\libs\LibStub\LibStub.lua:46
GetLibrary = defined @AchieveIt\libs\LibStub\LibStub.lua:36
libs =
{
}
}
AceConfigDialog =
{
ConfigTableChanged = defined @Altoholic\libs\AceConfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:1829
CloseAll = defined @Altoholic\libs\AceConfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:1810
Close = defined @Altoholic\libs\AceConfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:1820
SetDefaultSize = defined @Altoholic\libs\AceConfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:1840
tooltip = AceConfigDialogTooltip {
}
Open = defined @Altoholic\libs\AceConfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:1855
AddToBlizOptions = defined @Altoholic\libs\AceConfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:1986
BlizOptions =
{
}
popup = {
}
GetStatusTable = defined @Altoholic\libs\AceConfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:407
OpenFrames =
{
}
Status =
{
}
frame = {
}
FeedGroup = defined @Altoholic\libs\AceConfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:1600
SelectGroup = defined @Altoholic\libs\AceConfig-3.0\AceConfigDialog-3.0\AceConfigDialog-3.0.lua:437
}
LibDataBroker =
{
attributestorage =
{
}
pairs = defined @AllTheThings\lib\LibDataBroker-1.1\LibDataBroker-1.1.lua:70
NewDataObject = defined @AllTheThings\lib\LibDataBroker-1.1\LibDataBroker-1.1.lua:36
callbacks =
{
}
ipairs = defined @AllTheThings\lib\LibDataBroker-1.1\LibDataBroker-1.1.lua:81
RegisterCallback = defined @AchieveIt\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:90
GetNameByDataObject = defined @AllTheThings\lib\LibDataBroker-1.1\LibDataBroker-1.1.lua:63
GetDataObjectByName = defined @AllTheThings\lib\LibDataBroker-1.1\LibDataBroker-1.1.lua:59
UnregisterCallback = defined @AchieveIt\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:153
domt =
{
}
proxystorage =
{
}
DataObjectIterator = defined @AllTheThings\lib\LibDataBroker-1.1\LibDataBroker-1.1.lua:55
namestorage =
{
}
UnregisterAllCallbacks = defined @AchieveIt\libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:174
}
LibQTip =
{
activeTooltips =
{
}
LabelPrototype =
{
}
tooltipHeap =
{
}
cellPrototype =
{
}
tableHeap =
{
}
providerMetatable =
{
}
timerHeap =
{
}
providerPrototype =
{
}
onReleaseHandlers =
{
}
LabelProvider =
{
}
tipMetatable =
{
}
frameHeap =
{
}
IterateTooltips = defined @Broker_Currency\Libraries\LibQTip-1.0\LibQTip-1.0.lua:167
CreateCellProvider = defined @Broker_Currency\Libraries\LibQTip-1.0\LibQTip-1.0.lua:284
layoutCleaner =

Update??

Is there any sort of update from the author, or does anyone have a self developed update that fixes the issues with the addon (version 9.0.5.7)??

9.0.5.7 LUA errors

First char to log in is fine. Switching to another char gives LUA errors in Broker_currency.lua:

always:
line 265: attempt to index local 'left4' (a nil value)

one of these (depends on which char is logged in first):
line 352: attempt to index local 'playerInfo' (a nil value)
line 376: attempt to compare nil with number

WOTLK Classic support?

WOTLK Classic introduced currencies. Is it possible to get support for this?

Alternatively can anyone tell me what currencies were used in WOTLK? I think it's these:

  • Honor
  • Arena Points
  • DalaranJewelcraftersToken
  • ChampionsSeal
  • Badge of Justice
  • Emblem of Heroism
  • Emblem of Valor

Any others?

Side note, why are some of these "ignored" in the addon? Where they not used in later expansions at all?

Also some TBC items I guess do those later become currency? Stuff like Halaa Research Tokens. The addon shows them as being currency at one point but in WOTLK classic at the moment they are still items in your bags.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.