Modcraft - The community dedicated to quality WoW modding!
Wrath of the Lich King Modding => Miscellaneous => Topic started by: samgartell on November 12, 2011, 09:23:32 pm
-
I've done everything as it should be, but no matter how much I do this it always gives me the error
Interface/GlueXML/VideoOptionsPanels.lua:470: bad argument #2 to 'SetFormattedText' (string expected, got nil)
I'm not sure why, I've not edited VideoOptionsPanels.lua and as far as I know, I shouldn't have too.
Can anybody lead me in the right direction as to why this is happening? Not expecting anybody to do anything for me, just want to know WHY it could be happening so I can fix it.
-
Hmm... did you also edit the GlueStrings.lua?
Perhaps you did kill there something this Lua script loads. So you get null (nill)back.
-
If my Lua knowledge is as good as it used to be, I'd say that the problem lies in the fact that you used an old Lua/XML file. Like the one from 'locale-enGB.mpq' when you really need the one from 'patch-3.mpq'. This will make an error if you pick the old one :S
But what the error actually says is that it expected text, where it got nothing. Explain? Sure. Here's an example:
Frame:SetText("Im random! :D")
What the error says is that it had expected something like this:
Frame:SetText("Im random! :D", "AW HELL NO! ^_^")
So in short, it expected another value after whatever it currently contains.
But in reality, the actual problem might just be that your using an old version of the Lua/XML file. Which ofcause makes it error x)
Thanks
Keta
-
If my Lua knowledge is as good as it used to be, I'd say that the problem lies in the fact that you used an old Lua/XML file. Like the one from 'locale-enGB.mpq' when you really need the one from 'patch-3.mpq'. This will make an error if you pick the old one :S
But what the error actually says is that it expected text, where it got nothing. Explain? Sure. Here's an example:
Frame:SetText("Im random! :D")
What the error says is that it had expected something like this:
Frame:SetText("Im random! :D", "AW HELL NO! ^_^")
So in short, it expected another value after whatever it currently contains.
But in reality, the actual problem might just be that your using an old version of the Lua/XML file. Which ofcause makes it error x)
Thanks
Keta
Oh my god, I did NOT think of this, I'll try it now and get back to you!
EDIT: Ok, well it fixed the VideoOptionsPanels.lua error, and I'm getting a GlueParent error
InterfaceGlueXMLGlueParent.lua:391: Usage:PlayGlueAmbience("sound name", "(optional) fade in time")
I'm assuming this isn't included in Khira's tutorial. So I'm going to take a look myself, again thanks can't believe that.. Should start doing these things in the day, when I'm not so tired and I actually pay attention to tutorials! :)
EDIT2: Ok, it also gives error #132 when pressing Create Character on the character select screen... Confused... I should go to bed #_#