From 662885aaa651d1437b257d2f2900b278e0e6ed26 Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Mon, 13 May 2024 09:56:48 +0200 Subject: [PATCH] xxx --- Moose Development/Moose/Functional/Tiresias.lua | 7 ++++--- Moose Development/Moose/Ops/ArmyGroup.lua | 2 +- Moose Development/Moose/Wrapper/Group.lua | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Moose Development/Moose/Functional/Tiresias.lua b/Moose Development/Moose/Functional/Tiresias.lua index c7853c593..83cc02bba 100644 --- a/Moose Development/Moose/Functional/Tiresias.lua +++ b/Moose Development/Moose/Functional/Tiresias.lua @@ -97,7 +97,7 @@ TIRESIAS = { ClassName = "TIRESIAS", debug = false, - version = "0.0.4", + version = "0.0.5", Interval = 20, GroundSet = nil, VehicleSet = nil, @@ -203,7 +203,7 @@ function TIRESIAS:AddExceptionSet(Set) } exceptions:AddGroup(grp,true) end - BASE:I("TIRESIAS: Added exception group: "..grp:GetName()) + BASE:T("TIRESIAS: Added exception group: "..grp:GetName()) end ) return self @@ -391,6 +391,7 @@ function TIRESIAS:_SwitchOnGroups(group,radius) if ground:CountAlive() > 0 then ground:ForEachGroupAlive( function(grp) + local name = grp:GetName() if grp.Tiresias and grp.Tiresias.type and (not grp.Tiresias.exception == true ) then if grp.Tiresias.invisible == true then grp:SetCommandInvisible(false) @@ -407,7 +408,7 @@ function TIRESIAS:_SwitchOnGroups(group,radius) end --BASE:I(string.format("TIRESIAS - Switch on %s %s (Exception %s)",tostring(grp.Tiresias.type),grp:GetName(),tostring(grp.Tiresias.exception))) else - BASE:E("TIRESIAS - This group has not been initialized or is an exception!") + BASE:T("TIRESIAS - This group "..tostring(name).. " has not been initialized or is an exception!") end end ) diff --git a/Moose Development/Moose/Ops/ArmyGroup.lua b/Moose Development/Moose/Ops/ArmyGroup.lua index 4dff8027c..62f3dfec4 100644 --- a/Moose Development/Moose/Ops/ArmyGroup.lua +++ b/Moose Development/Moose/Ops/ArmyGroup.lua @@ -2109,7 +2109,7 @@ function ARMYGROUP:_InitGroup(Template, Delay) return end - self:I(self.lid.."FF Initializing Group") + self:T(self.lid.."FF Initializing Group") -- Get template of group. local template=Template or self:_GetTemplate() diff --git a/Moose Development/Moose/Wrapper/Group.lua b/Moose Development/Moose/Wrapper/Group.lua index 4747091b5..ab2334d69 100644 --- a/Moose Development/Moose/Wrapper/Group.lua +++ b/Moose Development/Moose/Wrapper/Group.lua @@ -367,7 +367,7 @@ function GROUP:GetDCSObject() return DCSGroup end - self:E(string.format("ERROR: Could not get DCS group object of group %s because DCS object could not be found!", tostring(self.GroupName))) + self:T2(string.format("ERROR: Could not get DCS group object of group %s because DCS object could not be found!", tostring(self.GroupName))) return nil end