Thread Tools Display Modes
05-07-23, 01:23 AM   #1
Walkerbo
A Cobalt Mageweaver
 
Walkerbo's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 233
GarrisonMissionBaseFrameTemplate broken

Hi all

I am building a new addon and had been using "GarrisonMissionBaseFrameTemplate" but as of 10.1 it is now throwing up an CreateFrame(): Couldn't find inherited node "GarrisonMissionBaseFrameTemplate" error.
I really want to use that template as I really like the background texture.

The strange issue is that if I run my addon with every other addon disabled I get the CreateFrame(): Couldn't find inherited node "GarrisonMissionBaseFrameTemplate" error, however, if I run every addon my frames work perfectly.

I have been able to work this out.

Why do my frames work correctly when I have multiple, (100+), addons enabled, but cease to work when I run it on its own?
__________________
"As someone once told me, frames are just special types of tables, and tables are special types of pointers."
Fizzlemizz
  Reply With Quote
05-07-23, 06:33 AM   #2
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,863
Do a search for that frame name string across the addon folders. I wouldn't be surprised if someone just created a global variable as an alternative frame name to what it was changed to .. one line change compared to multiple. This would then possibly make other addons using the old name be valid again ( if it was just a name change scenario ).
__________________
  Reply With Quote
05-07-23, 06:44 AM   #3
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,863
However, after some hunting down, I find the frame template still exists in 10.1

https://www.townlong-yak.com/framexm...mplates.xml#78

In fact comparing back to 7.0 that section of code doesn't appear to have changed. Something else must be causing the error - maybe a slight spelling error that you are not seeing ?
__________________
  Reply With Quote
05-07-23, 09:27 AM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,832
It's part of the Blizzard_GarrisonTemplates addon which is LOD.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote
05-07-23, 06:06 PM   #5
Walkerbo
A Cobalt Mageweaver
 
Walkerbo's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 233
Thanks for the replies.

I fixed this by downloading the Blizzard_GarrisonSharedTemplates.xml file and storing it in my addon.

This works but is it the proper way to solve this problem?
__________________
"As someone once told me, frames are just special types of tables, and tables are special types of pointers."
Fizzlemizz
  Reply With Quote
05-07-23, 06:18 PM   #6
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,863
I suspect the proper way would be to have 'Blizzard_GarrisonTemplates' as a required dependency so that it loads automatically ( or manually load it if the automatic part doesn't work with OnDemand Addons )
__________________
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » GarrisonMissionBaseFrameTemplate broken

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