diff --git a/Missionframework/scripts/client/misc/secondary_jip.sqf b/Missionframework/scripts/client/misc/secondary_jip.sqf index 56107faee..44f910584 100644 --- a/Missionframework/scripts/client/misc/secondary_jip.sqf +++ b/Missionframework/scripts/client/misc/secondary_jip.sqf @@ -1,3 +1,5 @@ +scriptName "secondary_jip"; + waitUntil { time > 20; }; diff --git a/Missionframework/scripts/server/ai/add_defense_waypoints.sqf b/Missionframework/scripts/server/ai/add_defense_waypoints.sqf index bd4e95a89..c52cc9f0d 100644 --- a/Missionframework/scripts/server/ai/add_defense_waypoints.sqf +++ b/Missionframework/scripts/server/ai/add_defense_waypoints.sqf @@ -1,3 +1,5 @@ +scriptName "add_defense_waypoints"; + private _grp = _this select 0; private _flagpos = _this select 1; private _basepos = getpos (leader _grp); diff --git a/Missionframework/scripts/server/ai/building_defence_ai.sqf b/Missionframework/scripts/server/ai/building_defence_ai.sqf index 8fc2f64a7..307f5e497 100644 --- a/Missionframework/scripts/server/ai/building_defence_ai.sqf +++ b/Missionframework/scripts/server/ai/building_defence_ai.sqf @@ -1,3 +1,5 @@ +scriptName "building_defence_ai"; + params ["_unit", ["_sector", ""]]; _unit setUnitPos "UP"; diff --git a/Missionframework/scripts/server/asymmetric/asymmetric_loop.sqf b/Missionframework/scripts/server/asymmetric/asymmetric_loop.sqf index ad6046161..b1a401f89 100644 --- a/Missionframework/scripts/server/asymmetric/asymmetric_loop.sqf +++ b/Missionframework/scripts/server/asymmetric/asymmetric_loop.sqf @@ -1,3 +1,5 @@ +scriptName "asymmetric_loop"; + waitUntil {!isNil "KPLIB_saveLoaded"}; waitUntil {!isNil "KPLIB_civ_rep"}; waitUntil {KPLIB_saveLoaded}; diff --git a/Missionframework/scripts/server/base/huron_manager.sqf b/Missionframework/scripts/server/base/huron_manager.sqf index 995924949..e0c123294 100644 --- a/Missionframework/scripts/server/base/huron_manager.sqf +++ b/Missionframework/scripts/server/base/huron_manager.sqf @@ -1,3 +1,5 @@ +scriptName "huron_manager"; + waitUntil {!isNil "KPLIB_saveLoaded"}; waitUntil {KPLIB_saveLoaded}; diff --git a/Missionframework/scripts/server/battlegroup/counter_battlegroup.sqf b/Missionframework/scripts/server/battlegroup/counter_battlegroup.sqf index 262e715b5..5a003a926 100644 --- a/Missionframework/scripts/server/battlegroup/counter_battlegroup.sqf +++ b/Missionframework/scripts/server/battlegroup/counter_battlegroup.sqf @@ -1,3 +1,5 @@ +scriptName "counter_battle_group"; + if (isNil "infantry_weight") then {infantry_weight = 33;}; if (isNil "armor_weight") then {armor_weight = 33;}; if (isNil "air_weight") then {air_weight = 33;}; diff --git a/Missionframework/scripts/server/battlegroup/random_battlegroups.sqf b/Missionframework/scripts/server/battlegroup/random_battlegroups.sqf index daec8f09f..7ca7c139c 100644 --- a/Missionframework/scripts/server/battlegroup/random_battlegroups.sqf +++ b/Missionframework/scripts/server/battlegroup/random_battlegroups.sqf @@ -1,3 +1,5 @@ +scriptName "random_battlegroups"; + sleep (900 / KPLIB_param_aggressivity); private _sleeptime = 0; while {KPLIB_param_aggressivity > 0.9 && KPLIB_endgame == 0} do { diff --git a/Missionframework/scripts/server/battlegroup/readiness_increase.sqf b/Missionframework/scripts/server/battlegroup/readiness_increase.sqf index 02f3859d6..87e62aeb5 100644 --- a/Missionframework/scripts/server/battlegroup/readiness_increase.sqf +++ b/Missionframework/scripts/server/battlegroup/readiness_increase.sqf @@ -1,3 +1,5 @@ +scriptName "readiness_increase"; + waitUntil {!isNil "KPLIB_saveLoaded" && {KPLIB_saveLoaded}}; while {true} do { diff --git a/Missionframework/scripts/server/civinformant/civinfo_loop.sqf b/Missionframework/scripts/server/civinformant/civinfo_loop.sqf index 34b45f352..b9b5c07ef 100644 --- a/Missionframework/scripts/server/civinformant/civinfo_loop.sqf +++ b/Missionframework/scripts/server/civinformant/civinfo_loop.sqf @@ -1,3 +1,5 @@ +scriptName "civinfo_loop"; + waitUntil {sleep 10; ({_x in KPLIB_sectors_city || _x in KPLIB_sectors_capital} count KPLIB_sectors_player) > 0}; if (KPLIB_civinfo_debug > 0) then {[format ["Loop spawned on: %1", debug_source], "CIVINFO"] remoteExecCall ["KPLIB_fnc_log", 2];}; diff --git a/Missionframework/scripts/server/game/apply_default_permissions.sqf b/Missionframework/scripts/server/game/apply_default_permissions.sqf index 3f00fc506..9711cdf70 100644 --- a/Missionframework/scripts/server/game/apply_default_permissions.sqf +++ b/Missionframework/scripts/server/game/apply_default_permissions.sqf @@ -1,3 +1,5 @@ +scriptName "apply_default_permissions"; + if (!KPLIB_param_permissions) exitWith {}; waitUntil {!isNil "KPLIB_permissions"}; diff --git a/Missionframework/scripts/server/game/cleanup_vehicles.sqf b/Missionframework/scripts/server/game/cleanup_vehicles.sqf index cd26ee094..51f878fe9 100644 --- a/Missionframework/scripts/server/game/cleanup_vehicles.sqf +++ b/Missionframework/scripts/server/game/cleanup_vehicles.sqf @@ -1,3 +1,5 @@ +scriptName "cleanup_vehicles"; + private [ "_nextvehicle", "_nearestfob", "_reset_ticker" ]; _cleanup_classnames = []; diff --git a/Missionframework/scripts/server/game/manage_time.sqf b/Missionframework/scripts/server/game/manage_time.sqf index 8ea971b63..a98743fb0 100644 --- a/Missionframework/scripts/server/game/manage_time.sqf +++ b/Missionframework/scripts/server/game/manage_time.sqf @@ -1,3 +1,5 @@ +scriptName "manage_time"; + while {true} do { if (KPLIB_param_shorterNights && (daytime > 20 || daytime < 4)) then { setTimeMultiplier (KPLIB_param_timeMulti * 4); diff --git a/Missionframework/scripts/server/game/manage_weather.sqf b/Missionframework/scripts/server/game/manage_weather.sqf index 1c4e0a82a..eb6d8570b 100644 --- a/Missionframework/scripts/server/game/manage_weather.sqf +++ b/Missionframework/scripts/server/game/manage_weather.sqf @@ -1,3 +1,5 @@ +scriptName "manage_weather"; + private _weathers = [ [0.25], [0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55], diff --git a/Missionframework/scripts/server/game/playtime.sqf b/Missionframework/scripts/server/game/playtime.sqf index 44a97ec00..330322da4 100644 --- a/Missionframework/scripts/server/game/playtime.sqf +++ b/Missionframework/scripts/server/game/playtime.sqf @@ -1,3 +1,5 @@ +scriptName "KPLIB_playtime"; + waitUntil { !isNil "KPLIB_saveLoaded" }; waitUntil { KPLIB_saveLoaded }; diff --git a/Missionframework/scripts/server/game/server_restart.sqf b/Missionframework/scripts/server/game/server_restart.sqf index 875a19bde..d7c8da1d0 100644 --- a/Missionframework/scripts/server/game/server_restart.sqf +++ b/Missionframework/scripts/server/game/server_restart.sqf @@ -1,3 +1,5 @@ +scriptName "server_restart"; + if (!isDedicated) exitWith {}; _serverDuration = (KPLIB_param_restart * 60 * 60); diff --git a/Missionframework/scripts/server/game/synchronise_eco.sqf b/Missionframework/scripts/server/game/synchronise_eco.sqf index b4b3fe674..8a1fcda5b 100644 --- a/Missionframework/scripts/server/game/synchronise_eco.sqf +++ b/Missionframework/scripts/server/game/synchronise_eco.sqf @@ -1,3 +1,7 @@ +scriptName "synchronize_eco"; + +publicVariable "synchronise_eco"; + sync_eco = []; publicVariable "sync_eco"; waitUntil{!isNil "KPLIB_saveLoaded"}; diff --git a/Missionframework/scripts/server/game/synchronise_vars.sqf b/Missionframework/scripts/server/game/synchronise_vars.sqf index 6da7b2ae0..d9429ee74 100644 --- a/Missionframework/scripts/server/game/synchronise_vars.sqf +++ b/Missionframework/scripts/server/game/synchronise_vars.sqf @@ -1,3 +1,5 @@ +scriptName "synchronise_vars"; + sync_vars = []; publicVariable "sync_vars"; waitUntil{!isNil "KPLIB_saveLoaded"}; diff --git a/Missionframework/scripts/server/game/zeus_synchro.sqf b/Missionframework/scripts/server/game/zeus_synchro.sqf index ec1b24191..8f2f0a2c2 100644 --- a/Missionframework/scripts/server/game/zeus_synchro.sqf +++ b/Missionframework/scripts/server/game/zeus_synchro.sqf @@ -1,3 +1,5 @@ +scriptName "zeus_synchro"; + waitUntil {!isNil "KPLIB_b_potato01"}; // Classnames of objects which should be added as editable for Zeus diff --git a/Missionframework/scripts/server/offloading/group_diag.sqf b/Missionframework/scripts/server/offloading/group_diag.sqf index f33ffc378..221f9ce18 100644 --- a/Missionframework/scripts/server/offloading/group_diag.sqf +++ b/Missionframework/scripts/server/offloading/group_diag.sqf @@ -1,3 +1,5 @@ +scriptName "group_diag"; + waitUntil {sleep 1; !isNil "KPLIB_sectors_active"}; while {true} do { diff --git a/Missionframework/scripts/server/offloading/show_fps.sqf b/Missionframework/scripts/server/offloading/show_fps.sqf index 49c289f62..a3d062b61 100644 --- a/Missionframework/scripts/server/offloading/show_fps.sqf +++ b/Missionframework/scripts/server/offloading/show_fps.sqf @@ -1,3 +1,5 @@ +scriptName "show_fps"; + private _sourcestr = "Server"; private _position = 0; diff --git a/Missionframework/scripts/server/patrols/manage_one_civilian_patrol.sqf b/Missionframework/scripts/server/patrols/manage_one_civilian_patrol.sqf index 414354d97..f6e6a9923 100644 --- a/Missionframework/scripts/server/patrols/manage_one_civilian_patrol.sqf +++ b/Missionframework/scripts/server/patrols/manage_one_civilian_patrol.sqf @@ -1,3 +1,5 @@ +scriptName "manage_one_civilian_patrol"; + private [ "_spawnsector", "_grp", "_usable_sectors", "_spawntype", "_civnumber", "_vehdriver", "_spawnpos", "_civveh", "_sectors_patrol", "_patrol_startpos", "_waypoint", "_grpspeed", "_sectors_patrol_random", "_sectorcount", "_nextsector", "_nearestroad" ]; diff --git a/Missionframework/scripts/server/patrols/manage_one_patrol.sqf b/Missionframework/scripts/server/patrols/manage_one_patrol.sqf index a30ca2344..f26c77cde 100644 --- a/Missionframework/scripts/server/patrols/manage_one_patrol.sqf +++ b/Missionframework/scripts/server/patrols/manage_one_patrol.sqf @@ -1,3 +1,5 @@ +scriptName "manage_one_patrol"; + params [ "_minimum_readiness", "_is_infantry" ]; private [ "_headless_client" ]; diff --git a/Missionframework/scripts/server/patrols/manage_patrols.sqf b/Missionframework/scripts/server/patrols/manage_patrols.sqf index 60bcde8bd..a9e4c3fec 100644 --- a/Missionframework/scripts/server/patrols/manage_patrols.sqf +++ b/Missionframework/scripts/server/patrols/manage_patrols.sqf @@ -1,3 +1,5 @@ +scriptName "manage_patrols"; + _combat_triggers = [20,40,50,65,80,95]; if ( KPLIB_param_unitcap < 0.9 ) then { _combat_triggers = [20,45,90]; }; if ( KPLIB_param_unitcap > 1.3 ) then { _combat_triggers = [15,25,40,65,75,85,95]; }; diff --git a/Missionframework/scripts/server/patrols/reinforcements_resetter.sqf b/Missionframework/scripts/server/patrols/reinforcements_resetter.sqf index 2362e3483..3012c0919 100644 --- a/Missionframework/scripts/server/patrols/reinforcements_resetter.sqf +++ b/Missionframework/scripts/server/patrols/reinforcements_resetter.sqf @@ -1,3 +1,5 @@ +scriptName "reinforcements_resetter"; + _reset_time = 1800; reinforcements_set = false; diff --git a/Missionframework/scripts/server/resources/manage_logistics.sqf b/Missionframework/scripts/server/resources/manage_logistics.sqf index d12bc3c27..6d2cb7fe8 100644 --- a/Missionframework/scripts/server/resources/manage_logistics.sqf +++ b/Missionframework/scripts/server/resources/manage_logistics.sqf @@ -1,3 +1,5 @@ +scriptName "manage_logistics"; + waitUntil {!isNil "KPLIB_saveLoaded"}; waitUntil {!isNil "KPLIB_logistics"}; waitUntil {KPLIB_saveLoaded}; diff --git a/Missionframework/scripts/server/resources/manage_resources.sqf b/Missionframework/scripts/server/resources/manage_resources.sqf index e3cec3c70..a4a3aa9f8 100644 --- a/Missionframework/scripts/server/resources/manage_resources.sqf +++ b/Missionframework/scripts/server/resources/manage_resources.sqf @@ -1,3 +1,5 @@ +scriptName "manage_resources"; + waitUntil {!isNil "KPLIB_saveLoaded"}; waitUntil {!isNil "KPLIB_production"}; waitUntil {KPLIB_saveLoaded}; diff --git a/Missionframework/scripts/server/resources/recalculate_resources.sqf b/Missionframework/scripts/server/resources/recalculate_resources.sqf index 4cab5ab3d..1b13f6dcf 100644 --- a/Missionframework/scripts/server/resources/recalculate_resources.sqf +++ b/Missionframework/scripts/server/resources/recalculate_resources.sqf @@ -1,3 +1,5 @@ +scriptName "recalculate_resources"; + waitUntil {!isNil "KPLIB_saveLoaded"}; waitUntil {KPLIB_saveLoaded}; diff --git a/Missionframework/scripts/server/resources/recalculate_timer.sqf b/Missionframework/scripts/server/resources/recalculate_timer.sqf index a2781a78d..26321ae38 100644 --- a/Missionframework/scripts/server/resources/recalculate_timer.sqf +++ b/Missionframework/scripts/server/resources/recalculate_timer.sqf @@ -1,3 +1,5 @@ +scriptName "recalculate_timer"; + waitUntil { !isNil "KPLIB_saveLoaded" }; waitUntil {KPLIB_saveLoaded}; diff --git a/Missionframework/scripts/server/resources/recalculate_timer_sector.sqf b/Missionframework/scripts/server/resources/recalculate_timer_sector.sqf index 80c9ee11d..7f3cddea7 100644 --- a/Missionframework/scripts/server/resources/recalculate_timer_sector.sqf +++ b/Missionframework/scripts/server/resources/recalculate_timer_sector.sqf @@ -1,3 +1,5 @@ +scriptName "recalculate_timer_sector"; + waitUntil {!isNil "KPLIB_saveLoaded"}; waitUntil {KPLIB_saveLoaded}; diff --git a/Missionframework/scripts/server/resources/unit_cap.sqf b/Missionframework/scripts/server/resources/unit_cap.sqf index e5109a083..47ce2b66c 100644 --- a/Missionframework/scripts/server/resources/unit_cap.sqf +++ b/Missionframework/scripts/server/resources/unit_cap.sqf @@ -1,3 +1,5 @@ +scriptName "unit_cap"; + unitcap = 0; KPLIB_heli_count = 0; KPLIB_plane_count = 0; diff --git a/Missionframework/scripts/server/sector/lose_sectors.sqf b/Missionframework/scripts/server/sector/lose_sectors.sqf index ed96f0f47..eea53637c 100644 --- a/Missionframework/scripts/server/sector/lose_sectors.sqf +++ b/Missionframework/scripts/server/sector/lose_sectors.sqf @@ -1,3 +1,5 @@ +scriptName "lose_sectors"; + waitUntil { !isNil "KPLIB_sectors_fob" }; waitUntil { !isNil "KPLIB_sectors_player" }; diff --git a/Missionframework/scripts/server/sector/manage_one_sector.sqf b/Missionframework/scripts/server/sector/manage_one_sector.sqf index bbff77bd7..0d7e84829 100644 --- a/Missionframework/scripts/server/sector/manage_one_sector.sqf +++ b/Missionframework/scripts/server/sector/manage_one_sector.sqf @@ -1,3 +1,4 @@ +scriptName "manage_one_sector"; // base amount of sector lifetime tickets // if there are no enemies one ticket is removed every SECTOR_TICK_TIME seconds // 12 * 5 = 60s by default diff --git a/Missionframework/scripts/server/sector/wait_to_spawn_sector.sqf b/Missionframework/scripts/server/sector/wait_to_spawn_sector.sqf index 6697b803b..e67bdc17e 100644 --- a/Missionframework/scripts/server/sector/wait_to_spawn_sector.sqf +++ b/Missionframework/scripts/server/sector/wait_to_spawn_sector.sqf @@ -1,3 +1,5 @@ +scriptName "wait_to_spawn_sector"; + params ["_sector", "_opforcount"]; private _start = diag_tickTime; diff --git a/Missionframework/scripts/shared/diagnostics.sqf b/Missionframework/scripts/shared/diagnostics.sqf index e976f534d..017c7a3db 100644 --- a/Missionframework/scripts/shared/diagnostics.sqf +++ b/Missionframework/scripts/shared/diagnostics.sqf @@ -1,3 +1,5 @@ +scriptName "KPLIB_diagnostics"; + private _source = ""; ["------------------------------------", "MISSIONSTART"] call KPLIB_fnc_log;