From 4c1c36ef46148791af3ccda3071ae596ba1317c6 Mon Sep 17 00:00:00 2001 From: Shafik Date: Sat, 4 Jan 2025 16:16:03 +0200 Subject: [PATCH 1/2] [FIXED] `attempt to call method 'GetPlayerName' (a nil value)` --- Moose Development/Moose/Functional/CleanUp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moose Development/Moose/Functional/CleanUp.lua b/Moose Development/Moose/Functional/CleanUp.lua index 359922b5a..f4a391eef 100644 --- a/Moose Development/Moose/Functional/CleanUp.lua +++ b/Moose Development/Moose/Functional/CleanUp.lua @@ -414,7 +414,7 @@ function CLEANUP_AIRBASE.__:CleanUpSchedule() end end -- Clean Units which are waiting for a very long time in the CleanUpZone. - if CleanUpUnit and not CleanUpUnit:GetPlayerName() then + if CleanUpUnit and (CleanUpUnit.GetPlayerName == nil or not CleanUpUnit:GetPlayerName()) then local CleanUpUnitVelocity = CleanUpUnit:GetVelocityKMH() if CleanUpUnitVelocity < 1 then if CleanUpListData.CleanUpMoved then From 1182a5eb1eee33db4a87a8bb908897ecb08ef0e9 Mon Sep 17 00:00:00 2001 From: Shafik Date: Fri, 10 Jan 2025 21:40:03 +0200 Subject: [PATCH 2/2] [FIXED] `attempt to index field 'IniDCSGroup' (a nil value)` --- Moose Development/Moose/Core/Set.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moose Development/Moose/Core/Set.lua b/Moose Development/Moose/Core/Set.lua index eeb7baf0e..f0efc0763 100644 --- a/Moose Development/Moose/Core/Set.lua +++ b/Moose Development/Moose/Core/Set.lua @@ -7962,7 +7962,7 @@ do -- SET_OPSGROUP function SET_OPSGROUP:_EventOnDeadOrCrash( Event ) --self:F( { Event } ) - if Event.IniDCSUnit then + if Event.IniDCSGroup then local ObjectName, Object = self:FindInDatabase( Event ) if ObjectName then if Event.IniDCSGroup:getSize() == 1 then -- Only remove if the last unit of the group was destroyed.