From f80265786d643d392e9795f549bd0a72aa54e907 Mon Sep 17 00:00:00 2001 From: kaltokri Date: Fri, 3 Nov 2023 15:52:53 +0100 Subject: [PATCH 1/3] Fix broken links SetEngageRange --- Moose Development/Moose/AI/AI_A2A_Cap.lua | 2 +- Moose Development/Moose/AI/AI_A2G_SEAD.lua | 2 +- Moose Development/Moose/AI/AI_Air_Patrol.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Moose Development/Moose/AI/AI_A2A_Cap.lua b/Moose Development/Moose/AI/AI_A2A_Cap.lua index 93db27a38..0c8aff8fa 100644 --- a/Moose Development/Moose/AI/AI_A2A_Cap.lua +++ b/Moose Development/Moose/AI/AI_A2A_Cap.lua @@ -82,7 +82,7 @@ -- that will define when the AI will engage with the detected airborne enemy targets. -- The range can be beyond or smaller than the range of the Patrol Zone. -- The range is applied at the position of the AI. --- Use the method @{AI_Air_Patrol#AI_AIR_PATROL.SetEngageRange}() to define that range. +-- Use the method @{#AI_A2A_CAP.SetEngageRange}() to define that range. -- -- ## 4. Set the Zone of Engagement -- diff --git a/Moose Development/Moose/AI/AI_A2G_SEAD.lua b/Moose Development/Moose/AI/AI_A2G_SEAD.lua index 14806c2e0..42662862c 100644 --- a/Moose Development/Moose/AI/AI_A2G_SEAD.lua +++ b/Moose Development/Moose/AI/AI_A2G_SEAD.lua @@ -44,7 +44,7 @@ -- that will define when the AI will engage with the detected airborne enemy targets. -- The range can be beyond or smaller than the range of the Patrol Zone. -- The range is applied at the position of the AI. --- Use the method @{AI_Air_Patrol#AI_AIR_PATROL.SetEngageRange}() to define that range. +-- Use the method @{#AI_AIR_PATROL.SetEngageRange}() to define that range. -- -- # Developer Note -- diff --git a/Moose Development/Moose/AI/AI_Air_Patrol.lua b/Moose Development/Moose/AI/AI_Air_Patrol.lua index 00fc7f2d0..3185f987e 100644 --- a/Moose Development/Moose/AI/AI_Air_Patrol.lua +++ b/Moose Development/Moose/AI/AI_Air_Patrol.lua @@ -79,7 +79,7 @@ -- that will define when the AI will engage with the detected airborne enemy targets. -- The range can be beyond or smaller than the range of the Patrol Zone. -- The range is applied at the position of the AI. --- Use the method @{AI.AI_CAP#AI_AIR_PATROL.SetEngageRange}() to define that range. +-- Use the method @{#AI_AIR_PATROL.SetEngageRange}() to define that range. -- -- # Developer Note -- From 9d500186d1131fec9f307c818c6855d033c7c06a Mon Sep 17 00:00:00 2001 From: kaltokri Date: Fri, 3 Nov 2023 16:33:45 +0100 Subject: [PATCH 2/3] Enhancement of build-docs to remove old files --- docker/build-docs/start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/build-docs/start.sh b/docker/build-docs/start.sh index 4773540be..0ebbe62f4 100644 --- a/docker/build-docs/start.sh +++ b/docker/build-docs/start.sh @@ -4,6 +4,7 @@ cd /moose/ mkdir -p build/tools mkdir -p build/doc +rm -f build/doc/* # Checkout luadocumentor cd /moose/build/tools @@ -18,7 +19,6 @@ lua luadocumentor.lua -d /moose/build/doc '/moose/Moose Development/Moose' # Copy generated files in the MOOSE_DOCS repo if it is already there if [ -d /moose/build/MOOSE_DOCS/Documentation ]; then - rm -rf /moose/build/MOOSE_DOCS/Documentation - mkdir -p /moose/build/MOOSE_DOCS/Documentation + rm -f /moose/build/MOOSE_DOCS/Documentation/* cp /moose/build/doc/* /moose/build/MOOSE_DOCS/Documentation/ fi From 9d3cb4cc1b03793626cd656419935933c0eb3eb2 Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Sun, 5 Nov 2023 13:01:27 +0100 Subject: [PATCH 3/3] #MESSAGE * SRS label correction --- Moose Development/Moose/Core/Message.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Moose Development/Moose/Core/Message.lua b/Moose Development/Moose/Core/Message.lua index ad4079bc0..39fb11060 100644 --- a/Moose Development/Moose/Core/Message.lua +++ b/Moose Development/Moose/Core/Message.lua @@ -524,7 +524,8 @@ function MESSAGE:ToSRS(frequency,modulation,gender,culture,voice,coalition,volum if coordinate then _MESSAGESRS.MSRS:SetCoordinate(coordinate) end - _MESSAGESRS.SRSQ:NewTransmission(self.MessageText,nil,_MESSAGESRS.MSRS,nil,nil,nil,nil,nil,frequency,modulation,gender or _MESSAGESRS.Gender,culture or _MESSAGESRS.Culture,voice or _MESSAGESRS.Voice,volume,self.MessageCategory) + local category = string.gsub(self.MessageCategory,":","") + _MESSAGESRS.SRSQ:NewTransmission(self.MessageText,nil,_MESSAGESRS.MSRS,nil,nil,nil,nil,nil,frequency,modulation,gender or _MESSAGESRS.Gender,culture or _MESSAGESRS.Culture,voice or _MESSAGESRS.Voice,volume,category,coordinate) end return self end