Quantcast

- Hopefully fix Gold error on character start on some systems; comment out debug; wrap warband get money in a pcall

urnati [12-23-24 - 00:46]
- Hopefully fix Gold error on character start on some systems; comment out debug; wrap warband get money in a pcall
Filename
Titan/TitanHistory.lua
Titan/Titan_Mainline.toc
TitanAmmo/TitanAmmo_Classic.toc
TitanBag/TitanBag_Classic.toc
TitanBag/TitanBag_Mainline.toc
TitanClassic/TitanClassic_Classic.toc
TitanClock/TitanClock_Classic.toc
TitanClock/TitanClock_Mainline.toc
TitanGold/TitanGold.lua
TitanGold/TitanGold_Classic.toc
TitanGold/TitanGold_Mainline.toc
TitanLocation/TitanLocation_Classic.toc
TitanLocation/TitanLocation_Mainline.toc
TitanLootType/TitanLootType_Classic.toc
TitanLootType/TitanLootType_Mainline.toc
TitanPerformance/TitanPerformance_Classic.toc
TitanPerformance/TitanPerformance_Mainline.toc
TitanRegen/TitanRegen_Classic.toc
TitanRepair/TitanRepair_Classic.toc
TitanRepair/TitanRepair_Mainline.toc
TitanVolume/TitanVolume_Classic.toc
TitanVolume/TitanVolume_Mainline.toc
TitanXP/TitanXP_Classic.toc
TitanXP/TitanXP_Mainline.toc
diff --git a/Titan/TitanHistory.lua b/Titan/TitanHistory.lua
index 013f39a..65b112a 100644
--- a/Titan/TitanHistory.lua
+++ b/Titan/TitanHistory.lua
@@ -15,6 +15,12 @@ Green - 'header' - Titan or plugin
 Highlight - notes. tips. and details
 --]]
 Titan_Global.recent_changes = ""
+.. TitanUtils_GetGoldText("8.1.7 : 2024/12/22\n")
+.. TitanUtils_GetGreenText("Gold : \n")
+.. TitanUtils_GetHighlightText(""
+.. "- Hopefully fix an error on character start ocurring on some systems."
+)
+.. "\n\n"
 .. TitanUtils_GetGoldText("8.1.6 : 2024/12/09\n")
 .. TitanUtils_GetGreenText("Gold : \n")
 .. TitanUtils_GetHighlightText(""
diff --git a/Titan/Titan_Mainline.toc b/Titan/Titan_Mainline.toc
index 0d44b1a..0d3a60f 100644
--- a/Titan/Titan_Mainline.toc
+++ b/Titan/Titan_Mainline.toc
@@ -1,7 +1,7 @@
 ## Interface: 110007
-## Title: Titan Panel [|cffeda55f_Core_|r] |cff00aa008.1.6|r
+## Title: Titan Panel [|cffeda55f_Core_|r] |cff00aa008.1.7|r
 ## Author: Titan Panel Dev Team
-## Version: 8.1.6
+## Version: 8.1.7
 ## IconTexture: Interface\Icons\Achievement_Dungeon_UlduarRaid_Titan_01
 ## SavedVariables: TitanAll, TitanSettings, TitanSkins, ServerTimeOffsets, ServerHourFormat
 ## Notes: Adds display bars to show and control information/launcher plugins.
diff --git a/TitanAmmo/TitanAmmo_Classic.toc b/TitanAmmo/TitanAmmo_Classic.toc
index 44b3f30..82cfc0b 100644
--- a/TitanAmmo/TitanAmmo_Classic.toc
+++ b/TitanAmmo/TitanAmmo_Classic.toc
@@ -1,6 +1,6 @@
 ## Interface: 11505, 40401
-## Title: Titan Panel [|cffeda55fAmmo|r] |cff00aa008.1.6|r
-## Version: 8.1.6
+## Title: Titan Panel [|cffeda55fAmmo|r] |cff00aa008.1.7|r
+## Version: 8.1.7
 ## Notes: Adds an ammo monitor to Titan Panel - Classic versions only
 ## Author: Titan Panel Development Team (http://www.titanpanel.org)
 ## SavedVariables:
diff --git a/TitanBag/TitanBag_Classic.toc b/TitanBag/TitanBag_Classic.toc
index d161b70..cdc9492 100644
--- a/TitanBag/TitanBag_Classic.toc
+++ b/TitanBag/TitanBag_Classic.toc
@@ -1,6 +1,6 @@
 ## Interface: 11505, 40401
-## Title: Titan Panel [|cffeda55fBag|r] |cff00aa008.1.6|r
-## Version: 8.1.6
+## Title: Titan Panel [|cffeda55fBag|r] |cff00aa008.1.7|r
+## Version: 8.1.7
 ## Notes: Adds bag and free slot information to Titan Panel
 ## Author: Titan Panel Development Team (http://www.titanpanel.org)
 ## SavedVariables:
diff --git a/TitanBag/TitanBag_Mainline.toc b/TitanBag/TitanBag_Mainline.toc
index e40409f..454af43 100644
--- a/TitanBag/TitanBag_Mainline.toc
+++ b/TitanBag/TitanBag_Mainline.toc
@@ -1,6 +1,6 @@
 ## Interface: 110007
-## Title: Titan Panel [|cffeda55fBag|r] |cff00aa008.1.6|r
-## Version: 8.1.6
+## Title: Titan Panel [|cffeda55fBag|r] |cff00aa008.1.7|r
+## Version: 8.1.7
 ## IconTexture: Interface\AddOns\TitanBag\TitanBag
 ## Notes: Adds bag and free slot information to Titan Panel
 ## Author: Titan Panel Development Team (http://www.titanpanel.org)
diff --git a/TitanClassic/TitanClassic_Classic.toc b/TitanClassic/TitanClassic_Classic.toc
index d5a1dbd..eb4f0e2 100644
--- a/TitanClassic/TitanClassic_Classic.toc
+++ b/TitanClassic/TitanClassic_Classic.toc
@@ -1,7 +1,7 @@
 ## Interface: 11505, 40401
-## Title: Titan Panel [|cffeda55f_Core_|r] |cff00aa008.1.6|r
+## Title: Titan Panel [|cffeda55f_Core_|r] |cff00aa008.1.7|r
 ## Author: Titan Panel Dev Team
-## Version: 8.1.6
+## Version: 8.1.7
 ## SavedVariables: TitanAll, TitanSettings, TitanSkins, ServerTimeOffsets, ServerHourFormat
 ## OptionalDeps: Ace3, AceGUI-3.0-SharedMediaWidgets, LibSharedMedia-3.0, LibQTip-1.0, !LibUIDropDownMenu
 ## Notes: Adds display bars to show and control information/launcher plugins.
diff --git a/TitanClock/TitanClock_Classic.toc b/TitanClock/TitanClock_Classic.toc
index 79f7f1e..5d67db9 100644
--- a/TitanClock/TitanClock_Classic.toc
+++ b/TitanClock/TitanClock_Classic.toc
@@ -1,6 +1,6 @@
 ## Interface: 11505, 40401
-## Title: Titan Panel [|cffeda55fClock|r] |cff00aa008.1.6|r
-## Version: 8.1.6
+## Title: Titan Panel [|cffeda55fClock|r] |cff00aa008.1.7|r
+## Version: 8.1.7
 ## Notes: Adds a clock to Titan Panel
 ## Author: Titan Panel Development Team (http://www.titanpanel.org)
 ## SavedVariables:
diff --git a/TitanClock/TitanClock_Mainline.toc b/TitanClock/TitanClock_Mainline.toc
index f376557..eb49ce7 100644
--- a/TitanClock/TitanClock_Mainline.toc
+++ b/TitanClock/TitanClock_Mainline.toc
@@ -1,6 +1,6 @@
 ## Interface: 110007
-## Title: Titan Panel [|cffeda55fClock|r] |cff00aa008.1.6|r
-## Version: 8.1.6
+## Title: Titan Panel [|cffeda55fClock|r] |cff00aa008.1.7|r
+## Version: 8.1.7
 ## IconTexture: Interface\Icons\Spell_Nature_TimeStop
 ## Notes: Adds a clock to Titan Panel
 ## Author: Titan Panel Development Team (http://www.titanpanel.org)
diff --git a/TitanGold/TitanGold.lua b/TitanGold/TitanGold.lua
index 4a50ad6..c4e3af6 100644
--- a/TitanGold/TitanGold.lua
+++ b/TitanGold/TitanGold.lua
@@ -122,11 +122,31 @@ end
 function Warband.SetSum()
 	if Warband.Use() then
 		-- Really just prevents errors if not implemented in the WoW version
-		Warband.bank_sum = C_Bank.FetchDepositedMoney(Enum.BankType.Account)
+
+		-- There *may* have been instances of failure reported as Titan errors
+		-- Wrap in pcall for safety
+		--Warband.bank_sum = C_Bank.FetchDepositedMoney(Enum.BankType.Account)
+		local sum = 0
+		local call_success = false
+		local ret_val = nil
+
+		call_success, -- needed for pcall
+		ret_val =  -- actual return values
+			pcall(C_Bank.FetchDepositedMoney, Enum.BankType.Account)
+
+		if call_success then
+			-- Assume a valid Warband cash amount (WOWMONEY)
+			sum = ret_val
+		else
+			-- Set to zero as a default and not an error.
+			sum = 0
+		end
+		Warband.bank_sum = sum
+
 	else
 		-- Likely Classic version
 	end
-	TitanTopicDebug(TITAN_GOLD_ID, 2, Gold_debug("SetSum"))
+	--TitanTopicDebug(TITAN_GOLD_ID, 2, Gold_debug("SetSum"))
 end

 ---local Set Warband Bank info
@@ -138,20 +158,20 @@ function Warband.Init()
 	else
 		-- Likely Classic version
 	end
-	TitanTopicDebug(TITAN_GOLD_ID, 2, Gold_debug("Init"))
+	--TitanTopicDebug(TITAN_GOLD_ID, 2, Gold_debug("Init"))
 end

 ---local Return Warband Bank info
 ---@return number
 function Warband.GetSum()
-	TitanTopicDebug(TITAN_GOLD_ID, 2, Gold_debug("GetSum"))
+	--TitanTopicDebug(TITAN_GOLD_ID, 2, Gold_debug("GetSum"))
 	return Warband.bank_sum
 end

 ---local Return Warband Bank info
 ---@return string
 function Warband.GetName()
-	TitanTopicDebug(TITAN_GOLD_ID, 2, Gold_debug("GetName"))
+	--TitanTopicDebug(TITAN_GOLD_ID, 2, Gold_debug("GetName"))
 	return Warband.label
 end

@@ -658,7 +678,7 @@ local function GetTooltipText()
 			.. war_name
 			.. "\t" .. cash
 		local str = "" .. war_name .. " ".. cash
-		TitanTopicDebug(TITAN_GOLD_ID, 3, str)
+		--TitanTopicDebug(TITAN_GOLD_ID, 3, str)
 	end


@@ -1244,7 +1264,7 @@ local function OnShow(self)

 	local dbg = ""
 		.." "..Gold_debug("OnShow")
-	TitanTopicDebug(TITAN_GOLD_ID, 1, dbg)
+	--TitanTopicDebug(TITAN_GOLD_ID, 1, dbg)
 end

 ---local When shown, unregister needed events and stop timer for gold per hour
@@ -1294,7 +1314,7 @@ local function OnEvent(self, event, a1, ...)
 		Warband.Init()
 		TitanPanelButton_UpdateButton(TITAN_GOLD_ID)
 	end
-	TitanTopicDebug(TITAN_GOLD_ID, 1, event)
+	--TitanTopicDebug(TITAN_GOLD_ID, 1, event)
 end

 ---Button clicks - only shift-left for now
diff --git a/TitanGold/TitanGold_Classic.toc b/TitanGold/TitanGold_Classic.toc
index 5069ae0..9fff6cd 100644
--- a/TitanGold/TitanGold_Classic.toc
+++ b/TitanGold/TitanGold_Classic.toc
@@ -1,6 +1,6 @@
 ## Interface: 11505, 40401
-## Title: Titan Panel [|cffeda55fGold|r] |cff00aa008.1.6|r
-## Version: 8.1.6
+## Title: Titan Panel [|cffeda55fGold|r] |cff00aa008.1.7|r
+## Version: 8.1.7
 ## Notes: Keeps track of all gold held by a player's toons on a per server/faction basis.
 ## Author: Titan Panel Development Team (http://www.titanpanel.org)
 ## SavedVariables: GoldSave
diff --git a/TitanGold/TitanGold_Mainline.toc b/TitanGold/TitanGold_Mainline.toc
index 381a29d..3948b68 100644
--- a/TitanGold/TitanGold_Mainline.toc
+++ b/TitanGold/TitanGold_Mainline.toc
@@ -1,6 +1,6 @@
 ## Interface: 110007
-## Title: Titan Panel [|cffeda55fGold|r] |cff00aa008.1.6|r
-## Version: 8.1.6
+## Title: Titan Panel [|cffeda55fGold|r] |cff00aa008.1.7|r
+## Version: 8.1.7
 ## IconTexture: Interface\AddOns\TitanGold\Artwork\TitanGold
 ## Notes: Keeps track of all gold held by a player's toons on a per server/faction basis.
 ## Author: Titan Panel Development Team (http://www.titanpanel.org)
diff --git a/TitanLocation/TitanLocation_Classic.toc b/TitanLocation/TitanLocation_Classic.toc
index 0344250..b6ea0ba 100644
--- a/TitanLocation/TitanLocation_Classic.toc
+++ b/TitanLocation/TitanLocation_Classic.toc
@@ -1,6 +1,6 @@
 ## Interface: 11505, 40401
-## Title: Titan Panel [|cffeda55fLocation|r] |cff00aa008.1.6|r
-## Version: 8.1.6
+## Title: Titan Panel [|cffeda55fLocation|r] |cff00aa008.1.7|r
+## Version: 8.1.7
 ## Notes: Adds coordinates and location information to Titan Panel
 ## Author: Titan Panel Development Team (http://www.titanpanel.org)
 ## SavedVariables:
diff --git a/TitanLocation/TitanLocation_Mainline.toc b/TitanLocation/TitanLocation_Mainline.toc
index 556534b..55f404a 100644
--- a/TitanLocation/TitanLocation_Mainline.toc
+++ b/TitanLocation/TitanLocation_Mainline.toc
@@ -1,6 +1,6 @@
 ## Interface: 110007
-## Title: Titan Panel [|cffeda55fLocation|r] |cff00aa008.1.6|r
-## Version: 8.1.6
+## Title: Titan Panel [|cffeda55fLocation|r] |cff00aa008.1.7|r
+## Version: 8.1.7
 ## IconTexture: Interface\AddOns\TitanLocation\TitanLocation
 ## Notes: Adds coordinates and location information to Titan Panel
 ## Author: Titan Panel Development Team (http://www.titanpanel.org)
diff --git a/TitanLootType/TitanLootType_Classic.toc b/TitanLootType/TitanLootType_Classic.toc
index 0dbe2e1..84e4c4b 100644
--- a/TitanLootType/TitanLootType_Classic.toc
+++ b/TitanLootType/TitanLootType_Classic.toc
@@ -1,6 +1,6 @@
 ## Interface: 11505, 40401
-## Title: Titan Panel [|cffeda55fLootType|r] |cff00aa008.1.6|r
-## Version: 8.1.6
+## Title: Titan Panel [|cffeda55fLootType|r] |cff00aa008.1.7|r
+## Version: 8.1.7
 ## Notes: Adds group loot and instance difficulty information to Titan Panel
 ## Author: Titan Panel Development Team (http://www.titanpanel.org)
 ## SavedVariables: TitanClassicLootTypeSaved
diff --git a/TitanLootType/TitanLootType_Mainline.toc b/TitanLootType/TitanLootType_Mainline.toc
index bb821f5..c285860 100644
--- a/TitanLootType/TitanLootType_Mainline.toc
+++ b/TitanLootType/TitanLootType_Mainline.toc
@@ -1,6 +1,6 @@
 ## Interface: 110007
-## Title: Titan Panel [|cffeda55fLootType|r] |cff00aa008.1.6|r
-## Version: 8.1.6
+## Title: Titan Panel [|cffeda55fLootType|r] |cff00aa008.1.7|r
+## Version: 8.1.7
 ## IconTexture: Interface\AddOns\TitanLootType\TitanLootType
 ## Notes: Adds group loot and instance difficulty information to Titan Panel
 ## Author: Titan Panel Development Team (http://www.titanpanel.org)
diff --git a/TitanPerformance/TitanPerformance_Classic.toc b/TitanPerformance/TitanPerformance_Classic.toc
index 5e508fb..5c066dc 100644
--- a/TitanPerformance/TitanPerformance_Classic.toc
+++ b/TitanPerformance/TitanPerformance_Classic.toc
@@ -1,6 +1,6 @@
 ## Interface: 11505, 40401
-## Title: Titan Panel [|cffeda55fPerformance|r] |cff00aa008.1.6|r
-## Version: 8.1.6
+## Title: Titan Panel [|cffeda55fPerformance|r] |cff00aa008.1.7|r
+## Version: 8.1.7
 ## Notes: Adds FPS and Garbage collection information to Titan Panel
 ## Author: Titan Panel Development Team (http://www.titanpanel.org)
 ## SavedVariables:
diff --git a/TitanPerformance/TitanPerformance_Mainline.toc b/TitanPerformance/TitanPerformance_Mainline.toc
index 82922ab..8acc03f 100644
--- a/TitanPerformance/TitanPerformance_Mainline.toc
+++ b/TitanPerformance/TitanPerformance_Mainline.toc
@@ -1,6 +1,6 @@
 ## Interface: 110007
-## Title: Titan Panel [|cffeda55fPerformance|r] |cff00aa008.1.6|r
-## Version: 8.1.6
+## Title: Titan Panel [|cffeda55fPerformance|r] |cff00aa008.1.7|r
+## Version: 8.1.7
 ## IconTexture: Interface\AddOns\TitanPerformance\TitanPerformance
 ## Notes: Adds FPS and Garbage collection information to Titan Panel
 ## Author: Titan Panel Development Team (http://www.titanpanel.org)
diff --git a/TitanRegen/TitanRegen_Classic.toc b/TitanRegen/TitanRegen_Classic.toc
index c26f342..9bd42dc 100644
--- a/TitanRegen/TitanRegen_Classic.toc
+++ b/TitanRegen/TitanRegen_Classic.toc
@@ -1,6 +1,6 @@
 ## Interface: 11505, 40401
-## Title: Titan Panel [|cffeda55fRegen|r] |cff00aa008.1.6|r
-## Version: 8.1.6
+## Title: Titan Panel [|cffeda55fRegen|r] |cff00aa008.1.7|r
+## Version: 8.1.7
 ## Notes: Adds a regen monitor to Titan Panel to show HP/MANA regen - Classic versions only
 ## Author: Titan Panel Development Team (http://www.titanpanel.org)
 ## SavedVariables:
diff --git a/TitanRepair/TitanRepair_Classic.toc b/TitanRepair/TitanRepair_Classic.toc
index ea70171..b475dd7 100644
--- a/TitanRepair/TitanRepair_Classic.toc
+++ b/TitanRepair/TitanRepair_Classic.toc
@@ -1,6 +1,6 @@
 ## Interface: 11505, 40401
-## Title: Titan Panel [|cffeda55fRepair|r] |cff00aa008.1.6|r
-## Version: 8.1.6
+## Title: Titan Panel [|cffeda55fRepair|r] |cff00aa008.1.7|r
+## Version: 8.1.7
 ## Notes: Provides a configurable durability display. Also adds the ability to auto repair items and inventory at vendors. Adds selling of grey items.
 ## Author: Titan Panel Development Team (http://www.titanpanel.org)
 ## SavedVariables:
diff --git a/TitanRepair/TitanRepair_Mainline.toc b/TitanRepair/TitanRepair_Mainline.toc
index ca8d80a..70785b9 100644
--- a/TitanRepair/TitanRepair_Mainline.toc
+++ b/TitanRepair/TitanRepair_Mainline.toc
@@ -1,6 +1,6 @@
 ## Interface: 110007
-## Title: Titan Panel [|cffeda55fRepair|r] |cff00aa008.1.6|r
-## Version: 8.1.6
+## Title: Titan Panel [|cffeda55fRepair|r] |cff00aa008.1.7|r
+## Version: 8.1.7
 ## IconTexture: Interface\AddOns\TitanRepair\TitanRepair
 ## Notes: Provides a configurable durability display. Also adds the ability to auto repair items and inventory at vendors. Adds selling of grey items.
 ## Author: Titan Panel Development Team (http://www.titanpanel.org)
diff --git a/TitanVolume/TitanVolume_Classic.toc b/TitanVolume/TitanVolume_Classic.toc
index 19bf1c9..88dce2f 100644
--- a/TitanVolume/TitanVolume_Classic.toc
+++ b/TitanVolume/TitanVolume_Classic.toc
@@ -1,6 +1,6 @@
 ## Interface: 11505, 40401
-## Title: Titan Panel [|cffeda55fVolume|r] |cff00aa008.1.6|r
-## Version: 8.1.6
+## Title: Titan Panel [|cffeda55fVolume|r] |cff00aa008.1.7|r
+## Version: 8.1.7
 ## Notes: Adds a volume control icon on your Titan Bar
 ## Author: Titan Panel Development Team (http://www.titanpanel.org)
 ## SavedVariables:
diff --git a/TitanVolume/TitanVolume_Mainline.toc b/TitanVolume/TitanVolume_Mainline.toc
index 4851817..25939a7 100644
--- a/TitanVolume/TitanVolume_Mainline.toc
+++ b/TitanVolume/TitanVolume_Mainline.toc
@@ -1,6 +1,6 @@
 ## Interface: 110007
-## Title: Titan Panel [|cffeda55fVolume|r] |cff00aa008.1.6|r
-## Version: 8.1.6
+## Title: Titan Panel [|cffeda55fVolume|r] |cff00aa008.1.7|r
+## Version: 8.1.7
 ## IconTexture: Interface\AddOns\TitanVolume\Artwork\TitanVolumeHigh
 ## Notes: Adds a volume control icon on your Titan Bar
 ## Author: Titan Panel Development Team (http://www.titanpanel.org)
diff --git a/TitanXP/TitanXP_Classic.toc b/TitanXP/TitanXP_Classic.toc
index e74404c..ded03d1 100644
--- a/TitanXP/TitanXP_Classic.toc
+++ b/TitanXP/TitanXP_Classic.toc
@@ -1,6 +1,6 @@
 ## Interface: 11505, 40401
-## Title: Titan Panel [|cffeda55fXP|r] |cff00aa008.1.6|r
-## Version: 8.1.6
+## Title: Titan Panel [|cffeda55fXP|r] |cff00aa008.1.7|r
+## Version: 8.1.7
 ## Notes: Adds information to Titan Panel about XP earned and time to level
 ## Author: Titan Panel Development Team (http://www.titanpanel.org)
 ## SavedVariables:
diff --git a/TitanXP/TitanXP_Mainline.toc b/TitanXP/TitanXP_Mainline.toc
index f58e5e5..fe379a1 100644
--- a/TitanXP/TitanXP_Mainline.toc
+++ b/TitanXP/TitanXP_Mainline.toc
@@ -1,6 +1,6 @@
 ## Interface: 110007
-## Title: Titan Panel [|cffeda55fXP|r] |cff00aa008.1.6|r
-## Version: 8.1.6
+## Title: Titan Panel [|cffeda55fXP|r] |cff00aa008.1.7|r
+## Version: 8.1.7
 ## IconTexture: Interface\Icons\xp_icon
 ## Notes: Adds information to Titan Panel about XP earned and time to level
 ## Author: Titan Panel Development Team (http://www.titanpanel.org)