From d997d244792bc6826cac4b218eb5c87234777778 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Mon, 15 Jul 2024 22:59:17 -0300 Subject: [PATCH] Fixed window statistics no opening, more debug for the wipe segments handle --- boot.lua | 4 ++-- classes/container_segments.lua | 10 ++++++++++ frames/window_statistics.lua | 1 + 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/boot.lua b/boot.lua index 1e128fe3f..4e385ccf0 100644 --- a/boot.lua +++ b/boot.lua @@ -19,8 +19,8 @@ local addonName, Details222 = ... local version, build, date, tvs = GetBuildInfo() - Details.build_counter = 12807 - Details.alpha_build_counter = 12807 --if this is higher than the regular counter, use it instead + Details.build_counter = 12808 + Details.alpha_build_counter = 12808 --if this is higher than the regular counter, use it instead Details.dont_open_news = true Details.game_version = version Details.userversion = version .. " " .. Details.build_counter diff --git a/classes/container_segments.lua b/classes/container_segments.lua index 0bac56f79..6af16754a 100644 --- a/classes/container_segments.lua +++ b/classes/container_segments.lua @@ -584,8 +584,18 @@ function Details222.Combat.AddCombat(combatToBeAdded) Details:Msg("bRunOkay2 Error > failed to get amount of segments in this boss > ", result) else local segmentRemoveResult = "" + if (type(result) ~= "number") then + Details:Msg("result of bRunOkay2 isn't a number | result: ", result, type(result)) + end + local bRunOkay3, errorText3 = pcall(function() local amountOfSegmentsInThisBoss = result + + if (not Details.segments_amount_boss_wipes) then + Details:Msg("Details.segments_amount_boss_wipes isn't a number, issue with profile? ", type(Details.segments_amount_boss_wipes)) + Details:Msg("on default profile:", Details.default_profile.segments_amount_boss_wipes) + end + if (amountOfSegmentsInThisBoss > Details.segments_amount_boss_wipes) then ---@type combat[] local allSegmentsWithThisBoss = {} diff --git a/frames/window_statistics.lua b/frames/window_statistics.lua index 07e135ca0..4c3ad04d0 100644 --- a/frames/window_statistics.lua +++ b/frames/window_statistics.lua @@ -4,6 +4,7 @@ local Details = _G.Details local DF = _G.DetailsFramework local Loc = _G.LibStub("AceLocale-3.0"):GetLocale("Details") +local tocName, Details222 = ... local _ --prefix used on sync statistics