Event not being called?
I've been playing ESO on and off for a while. I've finally got around to looking into making my own addons. So I fillowed the Writing your first addon tutorial. Though Instead of doing incombat, i'm using zone change. I believe I have it set up correctly but when I change zones the label in the UI won't update nor will the new location be added to the chat.
my lua file Code:
-- First, we create a namespace for our addon by declaring a top-level table that will hold everything else. Code:
<GuiXml> |
Welcome to ESOUI!
Your code looks good at first glance. Aside from the label always being set to "Location Updated" instead of the zoneName, but that's probably something you changed to debug your code? Does the label show up in the UI, or is that missing too? Here are a few things you could try:
|
1 Attachment(s)
@sirinsidiator
The label does show up. Though it has the text that is inside the xml file at all times. See attachment underneath the compass. You are correct in stating the label will always say Location Updated for debugging. I just used a 2 hour xp scroll. So I'm going to do some leveling and then come back to this and post my results on disabling all othe addons along with adding in error("Hello World"). As far as the chat tabs I only have one tab. This is to help me debug as I currently playing solo. Update: Added in error("Hello World") I do get an error window popping up. I have disabled all other plugins to help debug this. Still no change. Used /zgoo and not sure what that should show but nothing. I added in error("Zone Chnaged") into my zone changed function and that doesn't execute. The event is not registered or something? I am using the correct event for the zoned changed correct? Along with the correct arguments that are passed in??? Update 2: Addon is working now. I had to completely close out of ESO to have it start working. Not sure why as the tutorial is doesn't mention having to completely closing ESO. |
Quote:
Restarting the game is rarely required. I only experience this when adding new textures as they won't load when reloading the UI respectively switching chars. Did you try a /reloadui after code changes? And that didn't work? |
Quote:
Yes. After any change to the xml and lua files I use /reloadui. Not sure why but restarting the entire game helped it. Now the next mission is to get the label pushed to the left of the bar and get it to resize correctly. |
All times are GMT -6. The time now is 05:54 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI