View Single Post
02/05/22, 03:05 PM   #19
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
What is written at line 262?
Check what line 262 says, what function is tried to use there and check if you got a typo then at one of the functions
CurrencyLocation_get_string or CurrencyType_get_string or CurrencyChangeReason_get_string

Edit: Just saw line 262 is CurrencyType_get_string
use merTorchbug or ZGOO ingame and check if it exists via /tbug CurrencyType_get_string or /zgoo CurrencyType_get_string
If it returns nil that function is not existing. Either your lua file where it was defined was not loaded
or you wrote a local up in front of that function?



btw, if your funcs always end on "_get_string" you could create yourself a small local function to call the functions like this:
Lua Code:
  1. local funcPattern = ""%s_get_string""
  2.     local function getStringOfValue(value, prefix)
  3.         local funcName = string.format(funcPattern, prefix) --CurrencyType_get_string
  4.         if _G[funcName] == nil then return end
  5.         return _G[funcName](value)
  6.     end
  7.     currency_type = getStringOfValue(currencyType, "CurrencyType")

And check if you really got the correct file esoui_constants_live.lua in your live/AddOns/EsoGrinder folder!

Maybe provide us a complete zip file of the addon ESOGrinder including the current code and files and let us see what is wrong that way, or do you have it somewhere at github maybe? Always easier to see the total!

Last edited by Baertram : 02/05/22 at 03:12 PM.
  Reply With Quote