Notify Message
Forums
Page 1
Search
#12679552 Sep 03, 2016 at 04:11 PM · Edited over 5 years ago
7 Posts
Hi guys,

As promised, I'm going to try to post here how to modify your Altoholic file, so it will allow you, in the Garrison Followers Grid box, to select a new option called 'Gnomish' which will display all the possible follower gnomes for your garrison, and whether your characters have recruited them or not.

I wrote this myself so the code is clean and there is no danger to your systems. You will need to be aware that when you update Altoholic, the changes will be lost and you might need to put them back in.

This is for version 7.0.006 of Altoholic.

OK here we go. The first thing you are going to need is to make sure you have BugGrabber and BugSack addons installed so that if you make any mistakes you will be able to see them easily (and copy and whisper them to me if needed).

Second: make sure you have Altoholic loaded and working and it is at least version 7.0.006.

The next thing you are going to want to do is make sure that the area you are going to change is already working! So go to the last tab in Altoholic (Grids) and select the second from last box (Garrison Followers). There you will see a grid of all the followers that all your characters have, and on the drop down on the top you can select from 'All', 'Collected', 'Not Collected', 'Recruited at the Inn' and 'Not recruited at the inn'. Make sure this is working.

If everything is working then you are ready to start.

1. Locate your Addons Folder (mine is at D:\Games\World of Warcraft\Interface\AddOns) you are looking to find the folder called Altoholic_Grids.

2. In Altoholic_Grids there is a lua file called Grid_GarrisonFollowers.lua this is the file you are going to edit with a text editor. I prefer NotePad++ but you can use any text editor you like (or use Visual Studio, etc. if you use those sorts of things).

3. You will make 5 changes to the file.

a. First change. You need to add a list of the FollowerID's for known gnomes. I got these from wowhead so they are hard-coded but I was looking for an easy solution that works. If they add more gnomes, it will need altering but I don't think they are going to do this. There are 24 gnome followers that can be recruited at the inn. So you need to add this table to the file. It should go at the top of the file, I have placed it after local nonInnFollowers, making sure i was in 'clear space', so on my file, this starts at line 65 (after all those numbers for nonInnFollowers) and making sure to be AFTER the curly bracket ('}') that is part of the last definition.

-- gnomes
local gnomes = {
[88] = true,
[90] = true,
[93] = true,
[233] = true,
[234] = true,
[288] = true,
[293] = true,
[348] = true,
[350] = true,
[362] = true,
[365] = true,
[367] = true,
[376] = true,
[402] = true,
[404] = true,
[407] = true,
[411] = true,
[427] = true,
[442] = true,
[444] = true,
[451] = true,
[452] = true,
[455] = true,
[581] = true,
}

b. ok the second change you want to make is here:

local followerTypes = {
ALL,
L["Collected"],
L["Not collected"],
L["Recruited at the inn"],
L["Not recruited at the inn"],
L["Gnomish"]
}

so the highlighted line, is added. You have to say "Gnomish" and not "Gnome" because it's already defined somewhere else that needs it. If you don't type this exactly, it won't work.

c. Third change, fourth change and fifth change:

local gnomescollected = {}

-- in every other case (1, 2, 4 ,5) , we must add collected followers
for id, _ in pairs(collected) do
if currentFollowers <= 2 then -- All (collected + uncollected) = 1, or 2 = collected only
table.insert(view, id)
elseif currentFollowers == 4 and not nonInnFollowers[id] then -- All, but only from the inn
table.insert(view, id)
elseif currentFollowers == 5 and nonInnFollowers[id] then -- All, but only NOT from the inn
table.insert(view, id)
elseif currentFollowers == 6 and gnomes[id] then
gnomescollected[id] = true
table.insert(view, id)
end
end

if currentFollowers == 6 then
for id, _ in pairs(gnomes) do
if not gnomescollected[id] then
table.insert(view, id)
end
end
end


Add the yellow highlighted lines to the existing code (and fix the formatting).


You will need to reload the ui (/reload) to see the changes.

Please let me know if you have any problems at all with this and enjoy! I am sorry but I can't quite figure out how to make this format like proper code, so you will need to use your imagination to get it tabbed properly. Altoholic's code is very nicely written so this shouldn't be a problem.

-- Khoria
+1
#12687676 Sep 06, 2016 at 03:40 PM
271 Posts
Thank you! 😎
+0
Page 1