Thread Tools Display Modes
11-18-14, 09:03 AM   #1
GuildLaunch
A Kobold Labourer
 
GuildLaunch's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2012
Posts: 1
New Garrisons Addon API

Hey guys, I'm trying to see what I can do with the new garrisons API and it appears that C_Garrisons.GetBuildings() is returning almost correct info.

{
["buildingID"] = 26,
["plotID"] = 23,
["texPrefix"] = "GarrBuilding_Barracks_1_H",
["uiTab"] = 2,
}, -- [1]
{
["buildingID"] = 111,
["plotID"] = 22,
["texPrefix"] = "GarrBuilding_TradingPost_1_H",
["uiTab"] = 1,
}, -- [2]
{
["buildingID"] = 93,
["plotID"] = 18,
["texPrefix"] = "GarrBuilding_Enchanting_1_H",
["uiTab"] = 0,
}, -- [3]
{
["buildingID"] = 117,
["plotID"] = 19,
["texPrefix"] = "GarrBuilding_Blacksmith_2_H",
["uiTab"] = 0,
}, -- [4]
{
["buildingID"] = 62,
["plotID"] = 59,
["texPrefix"] = "GarrBuilding_Mine_1_H",
["uiTab"] = 4,
}, -- [5]
{
["buildingID"] = 134,
["plotID"] = 67,
["texPrefix"] = "GarrBuilding_Fishing_2_H",
["uiTab"] = 5,
}, -- [6]
{
["buildingID"] = 29,
["plotID"] = 63,
["texPrefix"] = "GarrBuilding_Farm_1_H",
["uiTab"] = 3,
}, -- [7]


All of those building levels are correct except for GarrBuilding_Mine_1_H, which should be displaying level 2. I actually just upgraded my blacksmith and it updated in the file to level 2 as soon as I logged in.

So I guess my question, have you guys been running into similar weirdness with the new API? I'm guessing it is all just a bit buggy still.

Edit: I upgraded my Herb Garden to level 2 and it is doing the same things as the Mine now, C_Garrisons.GetBuildings() displays GarrBuilding_Farm_1_H when it should be GarrBuilding_Farm_2_H



Aaaand, I figured it out. Those are referring to the texture used. Mine and Farm never change their texture. It all makes sense now. Also interesting, Small buildings are uiTab 0, medium are 1, large 2, herb - 3, mine - 4, fishing - 5, pet - 6.
__________________
Addons developed by/for Guild Launch. Our addons focus on guild management needs such as DKP, Raid Management and Character Profiles.

Last edited by GuildLaunch : 11-18-14 at 12:54 PM.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » New Garrisons Addon API


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