v3.2.10, Dwemer help fix
His Dad [05-05-15 - 23:59]
diff --git a/AIResearchGrid.lua b/AIResearchGrid.lua
index 7918824..323c14a 100644
--- a/AIResearchGrid.lua
+++ b/AIResearchGrid.lua
@@ -9,7 +9,7 @@ local _
AIRG = {}
AIRG.name = "AIResearchGrid"
-AIRG.version = "3.2.9"
+AIRG.version = "3.2.10"
AIRG.initialised = false
AIRG.processing = false
AIRG.all = " #ALL" -- Default displayname for Virtual character, overrwritten by Localised version
@@ -519,7 +519,7 @@ end -- AIRG.PopulateMatrix
function AIRG.PopulateStyleData()
AIRG.vars.styles[AIRG.playerName] = {} -- create a table for this character's matrix
local i, j, known
- for i = 1, 15 do
+ for i = 1, 14 do
j = AIRG.styleLookupItem[i]
known = IsSmithingStyleKnown(j, 1) --patternIndex set to 1, temporary workaround for changes introduced in Update 4
AIRG.vars.styles[AIRG.playerName][i] = known
@@ -554,10 +554,16 @@ function AIRG.PopulateAll()
AIRG.vars.styles[thisname] = {}
end
-- Update the Styles for this char.
- for style, known in pairs (AIRG.vars.styles[thisname]) do --iterate over all styles
- if known then
- AIRG.vars.styles[AIRG.all][style] = true
- end
+ for i = 1, 14 do --iterate over all non-dwemer styles
+ if AIRG.vars.styles[thisname][i] then
+ AIRG.vars.styles[AIRG.all][i] = true
+ end
+ --Update Dwemer styles
+ for i = 1, 14 do --iterate over all dwemer items
+ if AIRG.vars.styles[thisname][15][i] then
+ AIRG.vars.styles[AIRG.all][15][i] = true
+ end
+ end
end
end
end
@@ -585,8 +591,8 @@ function AIRG.DisplayStyles()
end
--Dwemer Motif, special case
--update old saved variables, if exists
- AIRG.vars.styles[AIRG.curCharacter][15] = AIRG.vars.styles[AIRG.curCharacter][15] or {}
- if (AIRG.vars.styles[AIRG.curCharacter][15] == true) then AIRG.vars.styles[AIRG.curCharacter][15] = { [1] = true } end
+-- AIRG.vars.styles[AIRG.curCharacter][15] = AIRG.vars.styles[AIRG.curCharacter][15] or {}
+
--making styleIndex as variable, so it will be easier to make a loop if there will be any new styles
local styleIndex = 15
--for styleIndex = 15, maxStyleIndex do --start of the future loop
@@ -869,6 +875,11 @@ function AIRG.Initialise(eventCode, addOnName)
AIRG.vars.styles[AIRG.all][i] = false
end
+ AIRG.vars.styles[AIRG.all][15]= {} --Dwemer
+ for i = 1, 14 do
+ AIRG.vars.styles[AIRG.all][15][i] = false
+ end
+
-- AIRG.CreateDataMatrix
-- Following replaced with PlayerActivate
diff --git a/AIResearchGrid.txt b/AIResearchGrid.txt
index e08b308..c1bf8ce 100644
--- a/AIResearchGrid.txt
+++ b/AIResearchGrid.txt
@@ -1,6 +1,6 @@
-## Title: |cFFFFB0Research Grid|r v3.2.8
+## Title: |cFFFFB0Research Grid|r v3.2.10
## APIVersion: 100011
-## Version: 3.2.8
+## Version: 3.2.10
## Author: Stormknight and Team
## OptionalDependsOn: LibAddonMenu-2.0
## SavedVariables: AIRG_SavedVariables
diff --git a/doc/changelog.txt b/doc/changelog.txt
index ab54f18..194d596 100644
--- a/doc/changelog.txt
+++ b/doc/changelog.txt
@@ -1,3 +1,10 @@
+2015-05-05 V3.2.10
+ New Feature
+ None
+ Updated Version String.
+ Bug Fix
+ Dwemer style not being show correctly for #ALL
+
2015-05-03 V3.2.9
Fix possible crash with empty styles
diff --git a/doc/description.txt b/doc/description.txt
index 526c25b..f71df16 100644
--- a/doc/description.txt
+++ b/doc/description.txt
@@ -2,6 +2,12 @@
[B]AI Research Grid allows you to quickly and easily see which traits you have researched for Blacksmithing, Clothing & Woodworking, wherever you are in the world.[/B]
+[B]Known Bug. On rare occaisions "relative to" leads you to make an item to update another character. However when you try to research it, you find that char already know that trait.
+I don't know if it is a bug in AIRG or ESo. I can't reproduce it or analyse it. I haven't had this happen to me since patch 1.6. If it happens to you please post a comment.
+Just to make things worse, it is quite easy to skip a line or column when running your eye across it. I'm considering options on that.[/B]
+
+I hope that you find this addon useful even with this issue. --Dad
+
[B][I][COLOR="DarkOrange"]Features:
[LIST]
[*]Support for viewing multiple characters on the same account!