diff --git a/HistOffline.lua b/HistOffline.lua
index 6b1e0e9..2d28f9e 100644
--- a/HistOffline.lua
+++ b/HistOffline.lua
@@ -10,7 +10,7 @@ local Colour_Heading_Complete = "#58FA58"
-- ========================
-version= "Beta 7"
+version= "Beta 9"
require( "iuplua" )
require( "iupluacontrols" )
dofile "../../SavedVariables/History.lua"
diff --git a/data/data.lua b/data/data.lua
index c697eef..0ff6633 100644
--- a/data/data.lua
+++ b/data/data.lua
@@ -261,18 +261,17 @@ SQ_dat = {
[184] = {L=3, C=1, ["link1"] ="http://www.uesp.net/wiki/Online:The_Skin-Stealer%27s_Lair"},
--["41"] = "Eastmarch",
-[598] = {L=4, C=1,["link1"] = "http://www.uesp.net/wiki/Online:Eternal_Slumber"},
-[9999] = {L=4, C=1,["link1"] = "http://www.uesp.net/wiki/Online:One_Victor,_One_King" },
[599] = {L=4, C=1,["link1"] = "http://www.uesp.net/wiki/Online:Songs_of_Sovngarde"},
+[597] = {L=4, C=1,["link1"] = "http://www.uesp.net/wiki/Online:The_Siege_of_Cradlecrush"},
+[598] = {L=4, C=1,["link1"] = "http://www.uesp.net/wiki/Online:One_Victor,_One_King" },
--["51"] the Rift
-[952] = {L=4, C=1,["link1"] = "http://www.uesp.net/wiki/Online:Shattered_Hopes"},
-[337] = {L=4, C=1,["link1"] = "http://www.uesp.net/wiki/Online:Stomping_Sinmur" },
-[9999] = {L=4, C=1,["link1"] = "http://www.uesp.net/wiki/Online:Through_the_Shroud"},
+[952] = {L=5, C=1,["link1"] = "http://www.uesp.net/wiki/Online:Shattered_Hopes"},
+[337] = {L=5, C=1,["link1"] = "http://www.uesp.net/wiki/Online:Stomping_Sinmur" },
+[9999] = {L=5, C=1,["link1"] = "http://www.uesp.net/wiki/Online:Through_the_Shroud"},
--["12"]Glenumbra
-[31] = {L=1, C=2, ["link1"] = "http://www.uesp.net/wiki/Online:Angof_the_Gravesinger_%28quest%29"},
-[9999] = {L=1, C=2,["link1"] = "http://www.uesp.net/wiki/Online:Bloodthorn_Assassins"},
+[31] = {L=1, C=2, ["link1"] = "http://www.uesp.net/wiki/Online:Angof_the_Gravesinger_%28quest%29"}, --v
[22] = {L=1, C=2,["link1"] = "http://www.uesp.net/wiki/Online:The_Fall_of_Faolchu"},
[30] = {L=1, C=2,["link1"] = "http://www.uesp.net/wiki/Online:Purifying_the_Wyrd_Tree"},
@@ -291,7 +290,7 @@ SQ_dat = {
[517] ={L=4, C=2, ["link1"] = "http://www.uesp.net/wiki/Online:Alasan%27s_Plot" },
[518] ={L=4, C=2, ["link1"] = "http://www.uesp.net/wiki/Online:Amputating_the_Hand"},
[516] ={L=4, C=2, ["link1"] = "http://www.uesp.net/wiki/Online:A_Reckoning_with_Uwafa"},
-
+
--["52"] = "Bangkorai",
[145] ={L=5, C=2, ["link1"] = "http://www.uesp.net/wiki/Online:The_Parley"},
[146] ={L=5, C=2, ["link1"] = "http://www.uesp.net/wiki/Online:Storming_the_Garrison" },
@@ -304,23 +303,23 @@ SQ_dat = {
[511] ={L=1, C=3, ["link1"] = "http://www.uesp.net/wiki/Online:The_Veil_Falls"},
--["23"] = "Grahtwood",
-[9999] = {L=2, C=3, ["link1"] = "http://www.uesp.net/wiki/Online:The_Grip_of_Madness"},
+[605] = {L=2, C=3, ["link1"] = "http://www.uesp.net/wiki/Online:The_Grip_of_Madness"},
[606] = {L=2, C=3, ["link1"] = "http://www.uesp.net/wiki/Online:Heart_of_the_Matter" },
-[9999] = {L=2, C=3, ["link1"] = "http://www.uesp.net/wiki/Online:A_Lasting_Winter" },
+[607] = {L=2, C=3, ["link1"] = "http://www.uesp.net/wiki/Online:A_Lasting_Winter" },
--["33"] = "Greenshade",
-[9999] = {L=3, C=3, ["link1"] = "http://www.uesp.net/wiki/Online:Pelidil%27s_End"},
+[511] = {L=3, C=3, ["link1"] = "http://www.uesp.net/wiki/Online:Pelidil%27s_End"},
[945] = {L=3, C=3, ["link1"] = "http://www.uesp.net/wiki/Online:Striking_at_the_Heart"},
[510] = {L=3, C=3, ["link1"] = "http://www.uesp.net/wiki/Online:Throne_of_the_Wilderking"},
-- Malabal-Tor
-[9999] = {L=4, C=3, ["link1"] = "http://www.uesp.net/wiki/Online:Buyer_Beware"},
+[946] = {L=4, C=3, ["link1"] = "http://www.uesp.net/wiki/Online:The_Prisoner_of_Jathsogur"},
[283] = {L=4, C=3, ["link1"] = "http://www.uesp.net/wiki/Online:Reap_What_Is_Sown"},
-[946] = {L=4, C=3, ["link1"] = "http://www.uesp.net/wiki/Online:Restore_the_Silvenar"},
+[285] = {L=4, C=3, ["link1"] = "http://www.uesp.net/wiki/Online:Restore_the_Silvenar"},
--Reapers march
[538] = {L=5, C=3, ["link1"] = "http://www.uesp.net/wiki/Online:The_Den_of_Lorkhaj"},
-[9999] = {L=5, C=3,["link1"] = "http://www.uesp.net/wiki/Online:The_First_Step"},
+[536] = {L=5, C=3,["link1"] = "http://www.uesp.net/wiki/Online:Stonefire_Machinations"},
[537] = {L=5, C=3,["link1"] = "http://www.uesp.net/wiki/Online:Motes_in_the_Moonlight" },
--Coldharbour
diff --git a/history.lua b/history.lua
index 7ed09c1..93ed654 100644
--- a/history.lua
+++ b/history.lua
@@ -1,6 +1,6 @@
hist = {
name = "history",
- version = 1,
+ version = "beta-9",
initialised = false,
SV={},
L={},
@@ -127,7 +127,7 @@ local description
hist.me.ach[i]["description"] = zo_strformat(description)
hist.me.ach[i]["link"] = GetAchievementLink(i)
end
-
+
end
local function new_map()
@@ -290,6 +290,12 @@ function hist.Initialise(_, addOnName)
log("hist.SV.old created")
end
+ if (hist.SV.start_version == nil ) then
+ hist.SV.start_version = hist.version
+ end
+
+ hist.SV.this_version = hist.version
+
if hist.SV.data[hist.player] == nil
then
@@ -312,17 +318,18 @@ function hist.Initialise(_, addOnName)
if hist.debug then
log("Begin Duplicate tests, Saved -- Calculated" )
- log("Alliance test: " .. hist.me.Alliance .. " -- " .. zo_strformat("<<C:1>>",GetAllianceName(GetUnitAlliance("player"))))
- log("Race test: " .. hist.me.Race .. " -- " .. zo_strformat("<<C:1>>",GetUnitRace("player")))
- log("Class test: " .. hist.me.Class .. " -- " .. zo_strformat("<<C:1>>",GetUnitClass("player")))
- log("Gender test: " .. hist.me.Gender .. " -- " .. gendertext())
+ -- log("Alliance test: " .. hist.me.Alliance .. " -- " .. zo_strformat("<<C:1>>",GetAllianceName(GetUnitAlliance("player"))))
+ --- log("Race test: " .. hist.me.Race .. " -- " .. zo_strformat("<<C:1>>",GetUnitRace("player")))
+ -- log("Class test: " .. hist.me.Class .. " -- " .. zo_strformat("<<C:1>>",GetUnitClass("player")))
+ -- log("Gender test: " .. hist.me.Gender .. " -- " .. gendertext())
log("Level Lower: " .. hist.me.level .. " -- " .. level)
end
- if hist.me.Alliance ~= zo_strformat(GetAllianceName(GetUnitAlliance("player"))) or
- hist.me.Race ~= zo_strformat("<<C:1>>",GetUnitRace("player")) or
- hist.me.Class ~= zo_strformat("<<C:1>>",GetUnitClass("player")) or
- hist.me["Gender"] ~= gendertext() or
- hist.me.level > level
+ if hist.me.level > level
+ -- hist.me.Alliance ~= zo_strformat(GetAllianceName(GetUnitAlliance("player"))) or
+ -- hist.me.Race ~= zo_strformat("<<C:1>>",GetUnitRace("player")) or
+ -- hist.me.Class ~= zo_strformat("<<C:1>>",GetUnitClass("player")) or
+ -- hist.me["Gender"] ~= gendertext() or
+
then -- must be different with same name
local now = GetTimeStamp()
log("Duplicate " .. hist.player .. " Detected, moving to old")