From 81336fe552847fb578589470f631d44ce41c8459 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 2 Jan 2024 07:41:25 -0800 Subject: [PATCH] prevent the f16 from causing issues --- wwt/ufcPatch/aircraft/ufcPatchF16.lua | 2 +- wwt/ufcPatch/ufcPatch.lua | 2 ++ wwt/wwtExport.lua | 5 +++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/wwt/ufcPatch/aircraft/ufcPatchF16.lua b/wwt/ufcPatch/aircraft/ufcPatchF16.lua index 53c8f63..f225545 100644 --- a/wwt/ufcPatch/aircraft/ufcPatchF16.lua +++ b/wwt/ufcPatch/aircraft/ufcPatchF16.lua @@ -1,5 +1,5 @@ local ufcUtils = require("ufcPatch\\utilities\\ufcPatchUtils") - +-- The F16 will not work by default due to WinWing news F16 ICP. This ufcPatch file will no longer be used. ufcPatchF16 = {} function ufcPatchF16.generateUFCData() diff --git a/wwt/ufcPatch/ufcPatch.lua b/wwt/ufcPatch/ufcPatch.lua index 0d6b0b5..e5054d5 100644 --- a/wwt/ufcPatch/ufcPatch.lua +++ b/wwt/ufcPatch/ufcPatch.lua @@ -63,6 +63,8 @@ function ufcPatch.generateUFCExport(deltaTime, moduleName) return ufcPatchAH64.generateUFCData() -- F-16C_50 sends information when latest is available + -- WARNING: The F-16C ufc patch addon will no longer work. This is due to SimApp Pro and the new F16 ICP causing issues. + -- For now, this will be disabled elseif moduleName == 'F-16C_50' then return ufcPatchF16.generateUFCData() diff --git a/wwt/wwtExport.lua b/wwt/wwtExport.lua index be8676e..135620e 100644 --- a/wwt/wwtExport.lua +++ b/wwt/wwtExport.lua @@ -71,9 +71,10 @@ do -- Required to trick SimApp Pro into allowing UFC/Com/Scratch pad commands local isF18 = _self.Name == 'FA-18C_hornet' - if isF18 == false then + local isF16 = _self.Name == 'F-16C_50' + -- To prevent Breaking the ICP, this mod will be disabled when flying the F18 or the F16 + if isF18 == false and isF16 == false then _winwing.ufcPatch.useCustomUFC = true - _send["msg"]="FA-18C_hornet" end _winwing.net.send(_send)