WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Looking for a russian developer! (https://www.wowinterface.com/forums/showthread.php?t=48874)

Basso 01-26-14 05:37 AM

Looking for a russian developer!
 
Hi there, i need help from some russian friends.
My AddOn BgDBM-Skin works fine in the western world as far as i can say, but a russian user has a error:

Code:

Message: Interface\AddOns\DBM-StatusBarTimers\DBT.lua:135: attempt to index field '?' (a nil value)
Time: 01/25/14 20:03:40
Count: 1
Stack: Interface\AddOns\DBM-StatusBarTimers\DBT.lua:135: in main chunk

Locals: _ = "Разбойник"
playerClass = "ROGUE"
colours = <table> {
HUNTER = <table> {
}
WARRIOR = <table> {
}
PALADIN = <table> {
}
ROUGE = <table> {
}
PRIEST = <table> {
}
WARLOCK = <table> {
}
MAGE = <table> {
}
SHAMAN = <table> {
}
DRUID = <table> {
}
MONK = <table> {
}
DEATHKNIGHT = <table> {
}
}
multi = 0.6
barPrototype = <table> {
}
unusedBars = <table> {
}
unusedBarObjects = <table> {
}
instances = <table> {
}
updateClickThrough = nil
options = nil
setupHandlers = nil
stringFromTimer = <function> defined @Interface\AddOns\DBM-StatusBarTimers\DBT.lua:78
ipairs = <function> defined =[C]:-1
pairs = <function> defined =[C]:-1
next = <function> defined =[C]:-1
type = <function> defined =[C]:-1
tinsert = <function> defined =[C]:-1
(*temporary) = <table> {
Flash = <table> {
}
HugeBarYOffset = <table> {
}
Texture = <table> {
}
ExpandUpwards = <table> {
}
Spark = <table> {
}
HugeBarXOffset = <table> {
}
IconLeft = <table> {
}
IconRight = <table> {
}
BarYOffset = <table> {
}
BarXOffset = <table> {
}
}
(*temporary) = <table> {
type = "number"
}
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = nil
(*temporary) = "attempt to index field '?' (a nil value)"

I aks him that a friend should try it too so i could make sure its because of the russian version and yes he did have the same, i know what this error means, the var i use var the colors seems to be empty, but i have no clue why this happens in the russian version or how to fix it, i mean im not using any localized stuff in there and i also cant try myself because if i change my wow to russian i cant connect to any server, besides that i cant read anything. XD

Does anyone have a clue and can help me so the russian users can use my addon too?

thanks in advance
basso

Resike 01-26-14 05:52 AM

It probably caused because you're using a non-localized table value:

class - The localized name of the unit's class, or the unit's name if the unit is an NPC (string)
classFileName - A non-localized token representing the class (string)

local class, classFileName = UnitClass("unit")

Edit: Nevemind, i tought you're using a diffrenet colortable.

But found the issue:

You misspelled ROGUE / ROUGE on the table. :)

So the addon would drop this bug to any rogue.

Basso 01-26-14 05:56 AM

Yeah thats the thing im already using the non localized token, the classFileName as you labeled it.
local _, playerClass = UnitClass("player")

Nothing localized :(

Resike 01-26-14 06:04 AM

Quote:

Originally Posted by Basso (Post 290213)
Yeah thats the thing im already using the non localized token, the classFileName as you labeled it.
local _, playerClass = UnitClass("player")

Nothing localized :(

Read my edit.

Basso 01-26-14 06:18 AM

Quote:

Originally Posted by Resike (Post 290215)
Read my edit.

*Head meets Desk several times*

Thank you, what a stupid mistake.

Resike 01-26-14 06:54 AM

Quote:

Originally Posted by Basso (Post 290216)
*Head meets Desk several times*

Thank you, what a stupid mistake.

Belive me, you won't make it again. :)

Cairenn 01-26-14 03:30 PM

Also, believe me, you aren't the first and you won't be the last [to make a silly, obvious, head-desk mistake]. ;) :p :D

Wimpface 01-27-14 08:31 AM

Quote:

Originally Posted by Cairenn (Post 290238)
Also, believe me, you aren't the first and you won't be the last [to make a silly, obvious, head-desk mistake]. ;) :p :D

I have a thread atleast every 1-2 weeks on these forums with a silly mistake like this. Atleast, that's what the average should be as I go very long periods without doing anything related to addons and then when I do mess around, I post around 3-4 threads a week. It's great fun. :p

A few years ago, I remember contemplating on making just one big thread where I'd ask questions but I decided against it. It felt silly having 2-3 active threads at once under my name.


All times are GMT -6. The time now is 07:41 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI