This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [QUESTION] GlueXML Error After Adding New Race  (Read 1776 times)

samgartell

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 92
    • View Profile
[QUESTION] GlueXML Error After Adding New Race
« 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
Quote
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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Steff

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 4551
    • View Profile
Re: [QUESTION] GlueXML Error After Adding New Race
« Reply #1 on: November 13, 2011, 01:24:27 am »
Hmm... did you also edit the GlueStrings.lua?
Perhaps you did kill there something this Lua script loads. So you get null (nill)back.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
Please mark as solved if solved.
Don't ask if you could ask a question... JUST ask the Question.
You can send me also offline messages. I will answer if I get online.
Skype: project.modcraft
Discord: steff#6954

Keta

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 210
    • View Profile
Re: [QUESTION] GlueXML Error After Adding New Race
« Reply #2 on: November 13, 2011, 02:17:04 am »
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
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

samgartell

  • Registred Member
  • Loreweaver
  • *****
  • Posts: 92
    • View Profile
Re: [QUESTION] GlueXML Error After Adding New Race
« Reply #3 on: November 13, 2011, 03:33:55 am »
Quote from: "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
Quote
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 #_#
« Last Edit: January 01, 1970, 01:00:00 am by Admin »