Recursing Addons
Hey.
Code:
local Locale = LibStub("AceLocale-3.0"):GetLocale(AddOnName, false); If I understand this right, it should be getting my Addon info from the Addon folder where the TOC is. I keep all of these Ace Libraries in there own folder that is below the TOC called libraries. I am guessing here, but, I think the code is looking for the addon info in the libraries folder..? Is it possible to have the "code" look one level up for addon info? |
It sounds like your toc file is not looking for the Lua files in the correct place. Post your entire toc file code, please.
|
Quote:
|
Disable ALL other addons. This way you can be sure your addon loads the required libraries itself and paths are correct. And yes, I had to change some relative paths in my xml files for BfA that worked before.
|
Sorry, I was away.
I will do the requested post when WoW is available to log into. Thank you SO much. Ok here is the .toc for the main thing. Code:
## Interface: 80000 I do not have the XML anymore, I was trying to modulate as much as possible but am having issues getting the items to load with includes and scripts. |
This is how my mage portals addon handles its files. Hopefully it will help you see how it could be done.
TOC Code:
## Interface: 80100 Code:
<UI> Code:
<UI> Code:
<UI> |
Thank you very much!
|
Slightly off-topic.
I was looking at your addon, which is super neat and I noticed there is a bit of code I have been meaning to ask about. Code:
local addonName, addonData = ... It's the "..." part. What do they mean? I've read some books with no direct answer. Also thank you guys for helping me. |
Quote:
The private table can be used to share code/functions across different files without having to create a table that lives in the global namespace, making things cleaner :) |
Here is the section in the Lua manual about varargs: https://www.lua.org/pil/5.2.html
|
Quote:
|
Xrystal, might be a silly question, but why did you use 80100 as the Interface in your toc file? We are at least 6-8 months away from that build, if not longer. Right now the current Interface is 80000. Unless you either did a typo, or just used it as an example?
|
All times are GMT -6. The time now is 09:46 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI