diff --git a/Doc/Changelog.txt b/Doc/Changelog.txt index d379815..dbfa53b 100644 --- a/Doc/Changelog.txt +++ b/Doc/Changelog.txt @@ -1,3 +1,7 @@ +2016-10-12 version 25 + Sorts characters names + Doesn't log messages about levelling while history not working. As CP are levelling and are global, this is inevitable. + 2016-10-04 version 24 A minor to fix to record time played. Now records Leveling when Champion Points are earned. Looks a bit odd since that's account wide. diff --git a/HistOffline.lua b/HistOffline.lua index 64c354e..1cbdf3e 100644 --- a/HistOffline.lua +++ b/HistOffline.lua @@ -14,7 +14,7 @@ local Colour_Heading_Complete = "#58FA58" --iup.SetGlobal("UTF8MODE","YES") -- ======================== -version= "24" +version= "25" require( "iuplua" ) require( "iupluacontrols" ) dofile "../../SavedVariables/History.lua" @@ -201,8 +201,10 @@ for acc,_ in pairs(History_SV["Default"]) do me.timeplayed = thischar.timeplayed end end -end + table.sort(accounts[acc].playerIDs,function(a,b) return (playerNames[a] < playerNames[b]) end) + table.sort(accounts[acc].playerIDs_vet,function(a,b) return (playerNames[a] < playerNames[b]) end) +end @@ -1157,7 +1159,7 @@ iup.Append(accounts[acc].char_tabs, accounts[acc].log_tab) end -- Accounts - +table.sort(accounts_list) function select_account() local selected diff --git a/data/Trial.lua b/data/Trial.lua index ce5d98b..c32929a 100644 --- a/data/Trial.lua +++ b/data/Trial.lua @@ -23,13 +23,16 @@ trial_dat = { } -Craglorm_Conqueror = "" -- [1139] = "Craglorn Trials Conqueror" "Complete Hel Ra Citadel, Aetherian Archive, and Sanctum Ophidia at their highest difficulties.", +Craglorn_Conqueror = "" -- [1139] = "Craglorn Trials Conqueror" "Complete Hel Ra Citadel, Aetherian Archive, and Sanctum Ophidia at their highest difficulties.", +Craglorn_Dat["N"] = {} Craglorn_Dat["N"].id = { [1474] = {L=1, C=1, key ="11"}, -- "Hel Ra Citadel Conqueror", [1503] = {L=2, C=1, key ="21"}, -- "Aetherian Archive Conqueror" Defeat the Celestial Mage in Veteran Aetherian Archive, while the Trial is scaled to Champion 160.", [1462] = {L=3, C=1, key ="31"}, -- "Sanctum Ophidia Conqueror", } + +Craglorn_Dat["V"] = {} Craglorn_Dat["V"].id = { [991] = {L=1, C=1, key ="11"}, -- "Hel Ra Citadel Completed", "Defeat the Celestial Warrior, freeing him from the Serpent's control." [870] = {L=2, C=1, key ="21"}, -- "Hel Ra Citadel: The War Horn", "Sound the war horn in Veteran Hel Ra Citadel and defeat the ancient warriors who answer.", @@ -40,6 +43,8 @@ Craglorn_Dat["V"].id = { [1124] = {L=7, C=1, key ="71"}, -- "Time Trial: Sanctum Ophidia", "Completed the Sanctum Ophidia within a time limit of 33 minutes.", [992] = {L=8, C=1, key ="81"}, -- "Dragonstar Arena Champion", "Conquer all challengers and earn the title of Dragonstar Arena Champion!", } + +Craglorn_Dat["VH"] = {} Craglorn_Dat["VH"].id = { [1136] = {L=1, C=1, key ="11"}, -- "Hel Ra Citadel Difficult Mode","Defeat the Celestial Warrior after enraging him through the destruction of his statue army.", [1137] = {L=2, C=1, key ="21"}, -- "Aetherian Archive Difficult Mode" "Defeat the Celestial Mage after taunting her by smashing the Aetherial Orbs." diff --git a/data/en/en.lua b/data/en/en.lua index 3610b16..b7b7157 100644 --- a/data/en/en.lua +++ b/data/en/en.lua @@ -169,7 +169,7 @@ Craglorn_Names["V"] = { } Craglorn_Names["VH"] = { - ["11"] = "Hel Ra Citadel Difficult Mode"", + ["11"] = "Hel Ra Citadel Difficult Mode", ["21"] = "Aetherian Archive Difficult Mode", ["31"] = "Sanctum Ophidia Difficult Mode", ["41"] = "Dragonstar Arena Conqueror", diff --git a/history.lua b/history.lua index 8a9be6d..edf8c87 100644 --- a/history.lua +++ b/history.lua @@ -1,6 +1,6 @@ hist = { name = "history", - version = "23", + version = "25", initialised = false, SV={}, L={}, @@ -410,11 +410,13 @@ function hist.Initialise(_, addOnName) - -- fix missed level, leveled up with addon disabled + -- fix missed level, leveled up with addon disabled - if hist.me.level ~= level then - log("Missed level, Was " .. hist.me.level .. " now " .. level) + if hist.me.level ~= level then -- ignore CP level events + if level<= 50 then + log("Missed level, Was " .. hist.me.level .. " now " .. level) + end hist.me.level = level hist.me.levels[hist.me.level] = { begin = GetTimeStamp(), diff --git a/history.txt b/history.txt index e128a3c..037195a 100644 --- a/history.txt +++ b/history.txt @@ -1,6 +1,6 @@ ## Title: Dad's History -## APIVersion: 100016 100017 -## Version: 24 +## APIVersion: 100017 +## Version: 25 ## Author: HisDad ## Description: Record progress of all characters for offline viewing. ## SavedVariables: History_SV