From e20f6360b73e83a4a580ec3f84aed6508df15623 Mon Sep 17 00:00:00 2001 From: Ambroise Garel <47314805+akaAgar@users.noreply.github.com> Date: Sat, 26 Jul 2025 22:46:06 +0200 Subject: [PATCH] Added warning for missing autoexec.cfg --- Script/Script.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Script/Script.lua b/Script/Script.lua index 6571ee5..e6b3a07 100644 --- a/Script/Script.lua +++ b/Script/Script.lua @@ -56,6 +56,11 @@ do multiplayer = false } + if not net or not net.dostring_in then + TUM.log("Mission failed to execute. Please copy the provided \"autoexec.cfg\" file to the [Saved Games]\\DCS\\Config directory.\nThe file can be downloaded from github.com/akaAgar/the-universal-mission-for-dcs-world", TUM.logLevel.ERROR) + return nil + end + if #DCSEx.envMission.getPlayerGroups() == 0 then TUM.log("No \"Player\" or \"Client\" aircraft slots have been found. Please fix this problem in the mission editor.", TUM.logLevel.ERROR) return nil