View Single Post
07-07-12, 09:14 PM   #4
TheRealArkayn
A Deviate Faerie Dragon
 
TheRealArkayn's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2008
Posts: 15
-derp-

Not sure how I lost my OnEvent function call from my XML file, but I sure did. Here is the new PasteBin: http://pastebin.com/bmUVhWE9

My current issues are that my add-on is supposed to load into the edit boxes a) the default values or b) the saved values from CM_db. When I use /cm to display the GUI, it opens without values in the edit boxes and I simply can't get the GUI to open with values already there. Also, when I add values to the boxes and click "accept," the add-on should store the values in CM_db but the only thing showing in CM_db in the saved variables folder is CM_db = nil. Have I populated my tables correctly (lines 125-140 and/or lines 192-195)?



This is what I get when I populate the fields and click "accept:"

Message: Interface\AddOns\CurrencyMonitor\Frame.lua:127: attempt to index global 'CM_db' (a nil value)
Count: 1
Stack: Interface\AddOns\CurrencyMonitor\Frame.lua:127: in function `CM_UpdateAll'
[string "*:OnClick"]:1: in function <[string "*:OnClick"]:1>

Locals: v = CM_ValorEdit {
0 = <userdata>
}
j = CM_JusticeEdit {
0 = <userdata>
}
c = CM_ConquestEdit {
0 = <userdata>
}
h = CM_HonorEdit {
0 = <userdata>
}
(*temporary) = nil
(*temporary) = <table> {
threshold = "1"
tracked = true
}
(*temporary) = true
(*temporary) = "3"
(*temporary) = "4"
(*temporary) = CM_HonorEdit {
0 = <userdata>
}
(*temporary) = "4"
(*temporary) = nil
(*temporary) = "attempt to index global 'CM_db' (a nil value)"
currencyThresholds = <table> {
1 = "1"
2 = "2"
3 = "3"
4 = "4"
}
trackingTable = <table> {
1 = true
}

Last edited by TheRealArkayn : 07-07-12 at 09:16 PM. Reason: Forgot PasteBin
  Reply With Quote