Added warning for missing autoexec.cfg

This commit is contained in:
Ambroise Garel
2025-07-26 22:46:06 +02:00
parent fa15f25db6
commit e20f6360b7
+5
View File
@@ -56,6 +56,11 @@ do
multiplayer = false 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 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) TUM.log("No \"Player\" or \"Client\" aircraft slots have been found. Please fix this problem in the mission editor.", TUM.logLevel.ERROR)
return nil return nil