Thread Tools Display Modes
11-01-06, 12:02 PM   #1
Airlag
A Deviate Faerie Dragon
Join Date: Nov 2006
Posts: 12
Problem with the generated XML UI tag

Hi,
today I downloaded your editor to try something out.
For my purposes it works very fine, onely one big problem:

I can't use any declared functions.
When I declare a function in a LUA file and use it (for example in an OnLoad event) I allways get an error message that I try to call a global function that is nil.

I tracked the problem down to the point that everything is working perfectly fine when the leading XML tag is
Code:
<Ui xmlns="http://www.blizzard.com/wow/ui/"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">
the generated code is
Code:
<Ui xmlns="http://www.blizzard.com/wow/ui"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
xsi:schemaLocation statement missing. Unfortunately I can't find any option to get the correct tag generated.

Please please help me.
  Reply With Quote
11-01-06, 05:00 PM   #2
Nulkris
A Cobalt Mageweaver
 
Nulkris's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2005
Posts: 214
The schemaLocation is just a hint to an XML editor, it has no effect otherwise. If you are using a function from a Lua file in an XML file, you need to ensure that the Lua file is loaded first, this is done by placing it earlier in the toc file.

Within the designer, go to the Project Explorer panel, ensure that the Project View button is down on the toolbar at the top of the panel, then you will see a list of files in your project. Go to the lua file, right click, and select Load Earlier. Do this until the lua file is above the xml file in the list and you should be good to go.
__________________
Nulkris - A80 Rogue - Proudmoore
(Also Drukris, Hamkris on Proudmoore; Hulkris on Jubei'Thos & Khaz Modan)
  Reply With Quote
11-02-06, 12:53 PM   #3
Airlag
A Deviate Faerie Dragon
Join Date: Nov 2006
Posts: 12
It works!

I'm pretty sure that this did not work yesterday...
I tried it out both in the TOC file...
If i remember right then I just reloaded the UI, did not leave the game.

Ok, it looks like a ReloadUI does not reload the TOC file.

Thanks for the help
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » Problem with the generated XML UI tag

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off