From e873b097cfbaafc9f1cff8190cb8ef8653402380 Mon Sep 17 00:00:00 2001 From: leka1986 <83298840+leka1986@users.noreply.github.com> Date: Sat, 6 Dec 2025 10:10:18 +0100 Subject: [PATCH 1/4] Convert cargo type to string for logging Concatenate local 'type' Nil value --- Moose Development/Moose/Ops/CTLD.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Moose Development/Moose/Ops/CTLD.lua b/Moose Development/Moose/Ops/CTLD.lua index 122ce7ab8..43df08964 100644 --- a/Moose Development/Moose/Ops/CTLD.lua +++ b/Moose Development/Moose/Ops/CTLD.lua @@ -7297,10 +7297,10 @@ end local type = cargo.CargoType local gname = cargo.Name local gcargo = self:_FindCratesCargoObject(gname) or self:_FindTroopsCargoObject(gname) - self:T("Looking at " .. gname .. " in the helo - type = " .. type) + self:T("Looking at " .. gname .. " in the helo - type = "..tostring(type)) if (type == CTLD_CARGO.Enum.TROOPS or type == CTLD_CARGO.Enum.ENGINEERS or type == CTLD_CARGO.Enum.VEHICLE or type == CTLD_CARGO.Enum.FOB) then if gcargo and gcargo:GetStock0() > 0 then - self:T("Adding " .. gname .. " in the helo - type = " .. type) + self:T("Adding " .. gname .. " in the helo - type = "..tostring(type)) if (type == CTLD_CARGO.Enum.TROOPS or type == CTLD_CARGO.Enum.ENGINEERS) then Troopstable[gname].Inhelo = Troopstable[gname].Inhelo + 1 end From 31a537748e7b55882ab9b8b1effab94a94e70d6f Mon Sep 17 00:00:00 2001 From: leka1986 <83298840+leka1986@users.noreply.github.com> Date: Sat, 6 Dec 2025 10:13:37 +0100 Subject: [PATCH 2/4] Add check for IniGroup in HandleEventShot Added a check for IniGroup in HandleEventShot to prevent processing if it's not present. Error in 2 instances, attempt to index field IniGroup ( a nil value ) --- Moose Development/Moose/Functional/Shorad.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/Moose Development/Moose/Functional/Shorad.lua b/Moose Development/Moose/Functional/Shorad.lua index 526ff062f..bc5156943 100644 --- a/Moose Development/Moose/Functional/Shorad.lua +++ b/Moose Development/Moose/Functional/Shorad.lua @@ -684,6 +684,7 @@ do local ShootingWeapon = EventData.Weapon -- Identify the weapon fired local ShootingWeaponName = EventData.WeaponName -- return weapon type -- get firing coalition + if not EventData.IniGroup then return self end local weaponcoalition = EventData.IniGroup:GetCoalition() -- get detection probability if self:_CheckCoalition(weaponcoalition) then --avoid overhead on friendly fire From d77b2655b1c9d7cdcff1cc86f7a3af5f7159c590 Mon Sep 17 00:00:00 2001 From: leka1986 <83298840+leka1986@users.noreply.github.com> Date: Sat, 6 Dec 2025 10:16:15 +0100 Subject: [PATCH 3/4] Update Scenery.lua attempt to call method getPoint (a nil value) --- Moose Development/Moose/Wrapper/Scenery.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moose Development/Moose/Wrapper/Scenery.lua b/Moose Development/Moose/Wrapper/Scenery.lua index d7e367e92..ea1f8f8f0 100644 --- a/Moose Development/Moose/Wrapper/Scenery.lua +++ b/Moose Development/Moose/Wrapper/Scenery.lua @@ -75,7 +75,7 @@ function SCENERY:Register( SceneryName, SceneryObject, SceneryZone ) self.Vector = (self.Vec3 and VECTOR) and VECTOR:NewFromVec(self.Vec3) or nil end - if SceneryObject then + if SceneryObject and SceneryObject.getPoint then local vec3 = SceneryObject:getPoint() self.Vec3 = { x = vec3.x, y = vec3.y, z = vec3.z } self.Vec2 = { x = vec3.x, y = vec3.z } From 83464090d6ecf54b1f060fd5fbc57831b4fbd4b8 Mon Sep 17 00:00:00 2001 From: leka1986 <83298840+leka1986@users.noreply.github.com> Date: Sat, 6 Dec 2025 10:20:03 +0100 Subject: [PATCH 4/4] Update Set.lua removed duplicate Filter = {}, --- Moose Development/Moose/Core/Set.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/Moose Development/Moose/Core/Set.lua b/Moose Development/Moose/Core/Set.lua index 191d62287..27ec6c0e0 100644 --- a/Moose Development/Moose/Core/Set.lua +++ b/Moose Development/Moose/Core/Set.lua @@ -89,7 +89,6 @@ do -- SET_BASE Index = {}, Database = nil, CallScheduler = nil, - Filter = {}, FilterCoalitionNumbers = { [coalition.side.RED+1] = "red", [coalition.side.BLUE+1] = "blue",