WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   Developing for BFA with standalone libraries (https://www.wowinterface.com/forums/showthread.php?t=56411)

yess 07-22-18 11:04 AM

Developing for BFA with standalone libraries
 
Since BFA/8.0.1 I get a missing file error for all libraries of my own addons because the .toc has the list of libs for the release version where the files will be included.

Has anyone found an elegant solution for this problem?

#@[email protected]
libs\LibStub\LibStub.lua
libs\CallbackHandler-1.0\CallbackHandler-1.0.xml
libs\AceAddon-3.0\AceAddon-3.0.xml
...
#@[email protected]

Edit: Hmm, an inverted tag would be nice, where the lines are commented out but will not be in the release version.

yess 07-24-18 02:48 AM

I found a solution that works well for me.

I moved the list of files to be included to an xml file and in that one I can use the non-debug tags:
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">
  <[email protected]@
  <Script file="LibStub\LibStub.lua" />
  <Include file="CallbackHandler-1.0\CallbackHandler-1.0.xml" />
  <Include file="AceAddon-3.0\AceAddon-3.0.xml" />
  ...
  @[email protected]>
</Ui>

That way I do not get the annoying errors during development and in the released version they are included as the packer changes the tags so that the lines are not commented out.


All times are GMT -6. The time now is 10:47 AM.

vBulletin © 2021, Jelsoft Enterprises Ltd
© 2004 - 2021 MMOUI