not well-formed error and OnUpdate script not working. Help?
This is the TOC:
UIMod.toc Lua Code:
core.lua Lua Code:
core.xml Lua Code:
I get the following LUA error at login: Message: Interface\AddOns\UIMod\core.xml(1): error: not well-formed (invalid token) Time: Mon Dec 14 20:41:58 2020 Count: 3 I also get the following debug messages I set up to make sure each step is working as intended: 08:43:19 | UIMOD: Hello! Hello PLAYER_LOGIN 08:43:19 | 0 08:43:19 | UIMOD Player Login: GW2 UI Garrison Button is shown. Hiding. 08:43:23 | UIMOD: Hello! Hello PLAYER_ENTERING_WORLD 08:43:23 | 0 08:43:23 | UIMOD Entering World: GW2 UI Garrison Button is shown. Hiding. What happens is: the button doesn't get hidden and the OnUpdate script doesn't seem to be running. However, if I just type the following: Quote:
Any ideas to what I may be doing wrong? |
The error is with the formatting of your XML, seemingly in line 1.
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/ |
I tried replacing core.xml to all of the following
Lua Code:
Lua Code:
Lua Code:
Lua Code:
Lua Code:
And with all of them the onupdate script still doesn't seem to be triggering. What should I do? |
Put the OnUpdate in Lua.
Lua Code:
|
Code:
<OnUpdate> I would have to check but I'm pretty sure the function attribute came with Mixins and may be tied to them (I don't really use XML these days). |
You are loading the xml before the lua so the function is set to nil. But do as Kanegasi suggested as there is no point in having a separate xml when you are already doing everything in the lua file basically.
|
Quote:
|
Quote:
Maybe I'll have better luck next time... |
Yeah I used a XML file because the wowwiki article instructed to...
So I shouldn't use XML files when I'm not creating actually graphical UI frames? Quote:
This is my core.lua now but the OnUpdate funcion still isn't happening. Not even firing the debug prints Lua Code:
I tried removing core.xml from the TOC to no avail |
You shouldd be getting an error!
Change the first instance of: Code:
self.TimeSinceLastUpdate = 0 Code:
f.TimeSinceLastUpdate = 0 XML in WoW is used for frame creation and not much else (but that can also be done in lua alone). |
It worked!!!!!!!! Thanks!
|
All times are GMT -6. The time now is 02:59 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI