Log tweaks

This commit is contained in:
IT07 2016-08-13 22:11:27 +02:00
parent 333333e9c4
commit 418bd128ba

View File

@ -7,17 +7,23 @@
if (isNil "VEMFrHasStarted") then if (isNil "VEMFrHasStarted") then
{ {
VEMFrHasStarted = call compileFinal "true"; [] spawn
[("Launcher"),(2),(format["/// booting VEMFr v%1 (%2) \\\", getText (configFile >> "CfgPatches" >> "a3_vemf_reloaded" >> "version"), call VEMFr_fnc_whichMod])] ExecVM ("log" call VEMFr_fnc_scriptPath);
uiNamespace setVariable ["VEMFrUsedLocs", []];
uiNamespace setVariable ["VEMFrHcLoad", [[],[]]];
if (("overridesToRPT" call VEMFr_fnc_config) isEqualTo "yes") then { [] ExecVM ("overrides" call VEMFr_fnc_scriptPath) };
{ {
_h = [] ExecVM format["a3_vemf_reloaded\sqf\%1.sqf", _x]; VEMFrHasStarted = call compileFinal "true";
if ((_x isEqualTo "checkClasses") OR (_x isEqualTo "spawnStaticAI")) then { waitUntil { if (scriptDone _h) then {true} else {uiSleep 0.1; false} } }; [("Launcher"),(2),(format["/// booting up VEMFr v%1 (%2) \\\", getText (configFile >> "CfgPatches" >> "a3_vemf_reloaded" >> "version"), call VEMFr_fnc_whichMod])] ExecVM ("log" call VEMFr_fnc_scriptPath);
} forEach [("checkClasses"),("missionTimer"),("REMOTEguard"),("spawnStaticAI")]; uiSleep 0.5;
[("Launcher"),(2),(format[("Headless client support: %1"),(if (("headlessClientSupport" call VEMFr_fnc_config) isEqualTo "yes") then {"ENABLED"} else {"DISABLED"})])] ExecVM ("log" call VEMFr_fnc_scriptPath);
uiNamespace setVariable ["VEMFrUsedLocs", []];
uiNamespace setVariable ["VEMFrHcLoad", [[],[]]];
if ((call VEMFr_fnc_whichMod) isEqualTo "Epoch") then { west setFriend [independent, 0]; independent setFriend [west, 0] }; uiSleep 1;
} else { [("Launcher"),(0),(format["a3_vemf_reloaded FAILED to launch! VEMFrHasStarted (%1) is already defined!", VEMFrHasStarted])] ExecVM ("log" call VEMFr_fnc_scriptPath) }; if (("overridesToRPT" call VEMFr_fnc_config) isEqualTo "yes") then { _h = ExecVM ("overrides" call VEMFr_fnc_scriptPath); waitUntil { if (scriptDone _h) then {true} else {uiSleep 0.5; false} } };
{
_h = [] ExecVM format["a3_vemf_reloaded\sqf\%1.sqf", _x];
if ((_x isEqualTo "checkClasses") OR (_x isEqualTo "spawnStaticAI")) then { waitUntil { if (scriptDone _h) then {true} else {uiSleep 0.1; false} } };
} forEach [("checkClasses"),("missionTimer"),("REMOTEguard"),("spawnStaticAI")];
if ((call VEMFr_fnc_whichMod) isEqualTo "Epoch") then { west setFriend [independent, 0]; independent setFriend [west, 0] };
};
} else { [("Launcher"),(0),(format[("a3_vemf_reloaded FAILED to launch! VEMFrHasStarted (%1) is already defined!"),(VEMFrHasStarted)])] ExecVM ("log" call VEMFr_fnc_scriptPath) };