From b4bdf45958b14d047c036d7bf60b1bdda9e15b8d Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sun, 17 Jan 2016 18:47:50 +0100 Subject: [PATCH 01/24] Add: inidb into DB save.sqf --- .../core/fnc/compile.sqf | 1 + .../core/fnc/db/save.sqf | 27 ++++++++----------- .../core/init_server.sqf | 6 ++--- 3 files changed, 15 insertions(+), 19 deletions(-) diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf index 1b127c29e..237bef65a 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf @@ -41,6 +41,7 @@ if (isServer) then { btc_fnc_data_spawn_group = compile preprocessFile "core\fnc\data\spawn_group.sqf"; //DB + OO_fnc_inidbi = compile {["new", format ["btc_hm_%1_date",worldName]] call OO_INIDBI}; btc_fnc_db_save = compile preprocessFile "core\fnc\db\save.sqf"; btc_fnc_db_delete = compile preprocessFile "core\fnc\db\delete.sqf"; diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf index 96f9e72d9..ac743d04f 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf @@ -1,9 +1,5 @@ -/* -profileNamespace setVariable ["var_kills",10000]; -saveProfileNamespace; -_playerKills = profileNamespace getVariable "var_kills";*/ -call btc_fnc_db_delete; +"delete" call OO_fnc_inidbi; private ["_cities_status","_fobs"]; @@ -13,7 +9,7 @@ hint "saving..."; btc_db_is_saving = true; _name = worldName; -profileNamespace setVariable [format ["btc_hm_%1_date",_name],date]; +["write", ["mission_Param", "date", date]] call OO_fnc_inidbi; for "_i" from 0 to (count btc_city_all - 1) do { private "_s"; @@ -44,7 +40,7 @@ _cities_status = []; _cities_status pushBack _city_status; //diag_log format ["SAVE: %1 - %2",(_x getVariable "id"),(_x getVariable "occupied")]; } foreach btc_city_all; -profileNamespace setVariable [format ["btc_hm_%1_cities",_name],_cities_status]; +["write", ["environement", "cities", _cities_status]] call OO_fnc_inidbi; //HIDEOUT _array_ho = []; @@ -67,9 +63,9 @@ _array_ho = []; diag_log format ["HO %1 DATA %2",_x,_data]; _array_ho pushBack _data; } foreach btc_hideouts; -profileNamespace setVariable [format ["btc_hm_%1_ho",_name],_array_ho]; +["write", ["environement", "ho", _array_ho]] call OO_fnc_inidbi; -profileNamespace setVariable [format ["btc_hm_%1_ho_sel",_name],(btc_hq getVariable ["info_hideout",objNull])]; +["write", ["environement", "ho_sel", (btc_hq getVariable ["info_hideout",objNull])]] call OO_fnc_inidbi; //CACHE _array_cache = []; @@ -84,10 +80,11 @@ _cache_markers = []; _cache_markers pushBack _data; } foreach btc_cache_markers; _array_cache pushback (_cache_markers); -profileNamespace setVariable [format ["btc_hm_%1_cache",_name],_array_cache]; +["write", ["environement", "cache", _array_cache]] call OO_fnc_inidbi; //rep status -profileNamespace setVariable [format ["btc_hm_%1_rep",_name],btc_global_reputation]; +["write", ["environement", "rep", btc_global_reputation]] call OO_fnc_inidbi; + //FOBS _fobs = []; { @@ -95,7 +92,7 @@ _fobs = []; _pos = getMarkerPos _x; _fobs pushBack [_x,_pos]; } foreach btc_fobs; -profileNamespace setVariable [format ["btc_hm_%1_fobs",_name],_fobs]; +["write", ["base", "fobs", _fobs]] call OO_fnc_inidbi; //Vehicles status _array_veh = []; @@ -112,7 +109,7 @@ _array_veh = []; _array_veh pushBack _data; //diag_log format ["VEH %1 DATA %2",_x,_data]; } foreach btc_vehicles; -profileNamespace setVariable [format ["btc_hm_%1_vehs",_name],_array_veh]; +["write", ["base", "vehs", _array_veh]] call OO_fnc_inidbi; //Objects status _array_obj = []; @@ -127,11 +124,9 @@ _array_obj = []; _data pushBack _cargo; _array_obj pushBack _data; } foreach btc_log_obj_created; -profileNamespace setVariable [format ["btc_hm_%1_objs",_name],_array_obj]; +["write", ["base", "objs", _array_obj]] call OO_fnc_inidbi; // -profileNamespace setVariable [format ["btc_hm_%1_db",_name],true]; -saveProfileNamespace; hint "saving...3"; [[9],"btc_fnc_show_hint"] spawn BIS_fnc_MP; diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/init_server.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/init_server.sqf index 23799a0c5..97905bfa6 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/init_server.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/init_server.sqf @@ -1,14 +1,14 @@ call compile preprocessFile "core\fnc\city\init.sqf"; -if (btc_db_load && {profileNamespace getVariable ["btc_hm_db",false]}) then { +if (btc_db_load && {"exists" call OO_fnc_inidbi}) then { call compile preprocessFile "core\fnc\db\load.sqf"; } else { for "_i" from 1 to btc_hideout_n do {[] call btc_fnc_mil_create_hideout;}; [] execVM "core\fnc\cache\init.sqf"; - + [] spawn {{waitUntil {!isNull _x};_x addMPEventHandler ["MPKilled", {if (isServer) then {_this call btc_fnc_eh_veh_killed};}];} foreach btc_vehicles;}; }; - + [btc_helo_1,30,true] spawn btc_fnc_eh_veh_add_respawn; //[btc_helo_1,true,30] spawn btc_fnc_veh_track_marker; \ No newline at end of file From 2df99bdffba715b456bb7d64da80a487cfcfab0d Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sun, 17 Jan 2016 19:11:59 +0100 Subject: [PATCH 02/24] FIX: private variable missing --- =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf | 3 ++- =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf index c8c71fcac..a883e1883 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf @@ -1,5 +1,6 @@ -private ["_cities_status","_fobs","_fobs_loaded"]; +private ["_cities_status","_fobs","_name","_city_status","_array_ho","_data","_ho_markers","_array_cache","_c +","_fobs","_array_veh","_cargo","_array_obj","_marker"]; _name = worldName; diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf index ac743d04f..70dff6531 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf @@ -1,7 +1,8 @@ "delete" call OO_fnc_inidbi; -private ["_cities_status","_fobs"]; +private ["_cities_status","_fobs","_name","_city_status","_array_ho","_data","_ho_markers","_array_cache","_c +","_fobs","_array_veh","_cargo","_array_obj","_marker"]; hint "saving..."; [[8],"btc_fnc_show_hint"] spawn BIS_fnc_MP; From fc24a7c0ef0e1c66039d9efbdb24837695edc33a Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sun, 17 Jan 2016 19:46:48 +0100 Subject: [PATCH 03/24] FIX: compile take string not code --- =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf | 2 +- =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf index 237bef65a..ed0cd57b3 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf @@ -41,7 +41,7 @@ if (isServer) then { btc_fnc_data_spawn_group = compile preprocessFile "core\fnc\data\spawn_group.sqf"; //DB - OO_fnc_inidbi = compile {["new", format ["btc_hm_%1_date",worldName]] call OO_INIDBI}; + OO_fnc_inidbi = ["new", format ["btc_hm_%1_date",worldName]] call OO_INIDBI; btc_fnc_db_save = compile preprocessFile "core\fnc\db\save.sqf"; btc_fnc_db_delete = compile preprocessFile "core\fnc\db\delete.sqf"; diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf index 70dff6531..5d3c146cb 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf @@ -8,7 +8,6 @@ hint "saving..."; [[8],"btc_fnc_show_hint"] spawn BIS_fnc_MP; btc_db_is_saving = true; -_name = worldName; ["write", ["mission_Param", "date", date]] call OO_fnc_inidbi; From aa78ad739b12d891e362c9613d80da14e937b2b4 Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sun, 17 Jan 2016 21:59:00 +0100 Subject: [PATCH 04/24] FIX: change DB name --- =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf index ed0cd57b3..d00494eb1 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf @@ -41,7 +41,7 @@ if (isServer) then { btc_fnc_data_spawn_group = compile preprocessFile "core\fnc\data\spawn_group.sqf"; //DB - OO_fnc_inidbi = ["new", format ["btc_hm_%1_date",worldName]] call OO_INIDBI; + OO_fnc_inidbi = ["new", format ["btc_hm_%1",worldName]] call OO_INIDBI; btc_fnc_db_save = compile preprocessFile "core\fnc\db\save.sqf"; btc_fnc_db_delete = compile preprocessFile "core\fnc\db\delete.sqf"; From 9d013c8a4206a4521526a293fcde4e4020ab8dc8 Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sun, 17 Jan 2016 22:42:35 +0100 Subject: [PATCH 05/24] Add: iniDB for load --- .../core/fnc/db/load.sqf | 32 +++++++++---------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf index a883e1883..551b38c5a 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf @@ -1,13 +1,11 @@ private ["_cities_status","_fobs","_name","_city_status","_array_ho","_data","_ho_markers","_array_cache","_c -","_fobs","_array_veh","_cargo","_array_obj","_marker"]; +","_fobs","_array_veh","_cargo","_array_obj","_marker","_ho"]; -_name = worldName; - -setDate (profileNamespace getVariable [format ["btc_hm_%1_date",_name],date]); +setDate (["read", ["mission_Param", "date", date]] call OO_fnc_inidbi); //CITIES -_cities_status = profileNamespace getVariable [format ["btc_hm_%1_cities",_name],[]]; +_cities_status = ["read", ["environement", "cities", [] ]] call OO_fnc_inidbi; //diag_log format ["_cities_status: %1",_cities_status]; { @@ -66,7 +64,7 @@ _cities_status = profileNamespace getVariable [format ["btc_hm_%1_cities",_name] } foreach (_x getVariable ["markers",[]]); _data pushback (_cache_markers); */ -_array_ho = profileNamespace getVariable [format ["btc_hm_%1_ho",_name],[]]; +_array_ho = ["read", ["environement", "ho", [] ]] call OO_fnc_inidbi; { _pos = (_x select 0); @@ -105,10 +103,10 @@ _array_ho = profileNamespace getVariable [format ["btc_hm_%1_ho",_name],[]]; if (btc_debug_log) then {diag_log format ["btc_fnc_mil_create_hideout: _this = %1 ; POS %2 ID %3",_x,_pos,btc_hideouts_id];}; btc_hideouts_id = btc_hideouts_id + 1; - btc_hideouts = btc_hideouts + [_hideout]; + btc_hideouts pushBack _hideout; } foreach _array_ho; -_ho = profileNamespace getVariable [format ["btc_hm_%1_ho_sel",_name],objNull]; +_ho = ["read", ["environement", "ho_sel", objNull]] call OO_fnc_inidbi; btc_hq setVariable ["info_hideout",_ho]; if (count btc_hideouts == 0) then {[] execVM "core\fnc\common\final_phase.sqf";}; @@ -118,7 +116,7 @@ if (count btc_hideouts == 0) then {[] execVM "core\fnc\common\final_phase.sqf";} btc_cache_cities = + btc_city_all; btc_cache_markers = []; -_array_cache = profileNamespace getVariable [format ["btc_hm_%1_cache",_name],[]]; +_array_cache = ["read", ["environement", "cache", [] ]] call OO_fnc_inidbi; btc_cache_pos = _array_cache select 0; btc_cache_n = _array_cache select 1; @@ -135,7 +133,7 @@ btc_cache_obj addEventHandler ["HandleDamage", btc_fnc_cache_hd_cache]; _marker setMarkerText (_x select 1); _marker setMarkerSize [0.5, 0.5]; _marker setMarkerColor "ColorRed"; - btc_cache_markers = btc_cache_markers + [_marker]; + btc_cache_markers pushBack _marker; } foreach (_array_cache select 3); if (btc_debug_log) then {diag_log format ["CACHE SPAWNED: ID %1 POS %2",btc_cache_n,btc_cache_pos];}; @@ -150,10 +148,10 @@ if (btc_debug) then { }; //REP -btc_global_reputation = profileNamespace getVariable [format ["btc_hm_%1_rep",_name],0]; +btc_global_reputation = ["read", ["environement", "rep", 0 ]] call OO_fnc_inidbi; //FOB -_fobs = profileNamespace getVariable [format ["btc_hm_%1_fobs",_name],[]]; +_fobs = ["read", ["environement", "fobs", [] ]] call OO_fnc_inidbi; _fobs_loaded = []; { @@ -183,7 +181,7 @@ btc_fobs = _fobs_loaded; {deleteVehicle _x} foreach btc_vehicles; btc_vehicles = []; -_vehs = profileNamespace getVariable [format ["btc_hm_%1_vehs",_name],[]]; +_vehs = ["read", ["base", "vehs", [] ]] call OO_fnc_inidbi; /* {diag_log format ["0: %1",(_x select 0)]; diag_log format ["1: %1",(_x select 1)]; @@ -205,7 +203,7 @@ diag_log format ["5: %1",(_x select 5)]; { private "_obj"; _obj = _x createVehicle [0,0,0]; - btc_log_obj_created = btc_log_obj_created + [_obj]; + btc_log_obj_created pushBack _obj; [_obj,_veh] call btc_fnc_log_server_load; } foreach (_x select 5); } foreach _vehs; @@ -224,17 +222,17 @@ diag_log format ["5: %1",(_x select 5)]; _array_obj pushBack _data; */ //btc_log_obj_created = []; -_objs = profileNamespace getVariable [format ["btc_hm_%1_objs",_name],[]]; +_objs = ["read", ["base", "objs", [] ]] call OO_fnc_inidbi; { private "_obj"; _obj = (_x select 0) createVehicle (_x select 1); - btc_log_obj_created = btc_log_obj_created + [_obj]; + btc_log_obj_created pushBack _obj; _obj setDir (_x select 2); _obj setPosASL (_x select 1); { private "_l"; _l = _x createVehicle [0,0,0]; - btc_log_obj_created = btc_log_obj_created + [_l]; + btc_log_obj_created pushBack _l; [_l,_obj] call btc_fnc_log_server_load; } foreach (_x select 3); } foreach _objs; From c06406ba3af6f705251aba6cb60b75d0a9e1d5c2 Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Mon, 18 Jan 2016 01:03:07 +0100 Subject: [PATCH 06/24] FIX: inidb can't take object parameter for assigned_to and ho_sel --- .../core/fnc/db/load.sqf | 11 ++++++++--- .../core/fnc/db/save.sqf | 3 +-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf index 551b38c5a..e19ee7ed0 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf @@ -76,7 +76,10 @@ _array_ho = ["read", ["environement", "ho", [] ]] call OO_fnc_inidbi; _hideout setVariable ["id",(_x select 1)]; _hideout setVariable ["rinf_time",(_x select 2)]; _hideout setVariable ["cap_time",(_x select 3)]; - _hideout setVariable ["assigned_to",(_x select 4)]; + _city = btc_city_all select 0; + _city_pos = _pos distance (getpos _city); + {if ((_pos distance (getpos _x)) < _city_pos) then {_city = _x; _city_pos = getpos _city;}} forEach btc_city_all; + _hideout setVariable ["assigned_to", _city]; _hideout addEventHandler ["HandleDamage", btc_fnc_mil_hd_hideout]; @@ -88,7 +91,7 @@ _array_ho = ["read", ["environement", "ho", [] ]] call OO_fnc_inidbi; _marker setMarkerSize [0.5, 0.5]; _marker setMarkerColor "ColorRed"; _markers pushBack _marker; - } foreach (_x select 5); + } foreach (_x select 4); _hideout setVariable ["markers",_markers]; @@ -106,7 +109,9 @@ _array_ho = ["read", ["environement", "ho", [] ]] call OO_fnc_inidbi; btc_hideouts pushBack _hideout; } foreach _array_ho; -_ho = ["read", ["environement", "ho_sel", objNull]] call OO_fnc_inidbi; +_ho = btc_hideouts select 0; +_id_inidbi = ["read", ["environement", "ho_sel", 0]] call OO_fnc_inidbi; +{if ((_x getVariable ["id",0]) == _id_inidbi) exitWith {_ho = _x}} forEach btc_hideouts; btc_hq setVariable ["info_hideout",_ho]; if (count btc_hideouts == 0) then {[] execVM "core\fnc\common\final_phase.sqf";}; diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf index 5d3c146cb..4e3a01831 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf @@ -50,7 +50,6 @@ _array_ho = []; _data pushBack (_x getVariable ["id",0]); _data pushBack (_x getVariable ["rinf_time",0]); _data pushBack (_x getVariable ["cap_time",0]); - _data pushBack (_x getVariable ["assigned_to",objNull]); _ho_markers = []; { @@ -65,7 +64,7 @@ _array_ho = []; } foreach btc_hideouts; ["write", ["environement", "ho", _array_ho]] call OO_fnc_inidbi; -["write", ["environement", "ho_sel", (btc_hq getVariable ["info_hideout",objNull])]] call OO_fnc_inidbi; +["write", ["environement", "ho_sel", (btc_hq getVariable ["info_hideout",objNull]) getVariable ["id",0] ]] call OO_fnc_inidbi; //CACHE _array_cache = []; From 1a6e3fcb8191cb538330538c7a40d2a33608d4f6 Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Mon, 18 Jan 2016 21:37:10 +0100 Subject: [PATCH 07/24] FIX: distance --- =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf index e19ee7ed0..41aaac075 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf @@ -78,7 +78,7 @@ _array_ho = ["read", ["environement", "ho", [] ]] call OO_fnc_inidbi; _hideout setVariable ["cap_time",(_x select 3)]; _city = btc_city_all select 0; _city_pos = _pos distance (getpos _city); - {if ((_pos distance (getpos _x)) < _city_pos) then {_city = _x; _city_pos = getpos _city;}} forEach btc_city_all; + {if ((_pos distance (getpos _x)) < _city_pos) then {_city = _x; _city_pos = _pos distance (getpos _city);}} forEach btc_city_all; _hideout setVariable ["assigned_to", _city]; _hideout addEventHandler ["HandleDamage", btc_fnc_mil_hd_hideout]; From 8bd14087d1799dc5b0080f79e93858026dfe03dc Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Tue, 19 Jan 2016 20:23:19 +0100 Subject: [PATCH 08/24] FIX: side is save as string not object --- =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/data/get_group.sqf | 4 ++-- .../core/fnc/data/spawn_group.sqf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/data/get_group.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/data/get_group.sqf index c28d2e877..5fcb9a817 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/data/get_group.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/data/get_group.sqf @@ -4,7 +4,7 @@ _units = units _group; _type_db = 0; _array_pos = []; _array_type = []; -_side = side (leader _group); +_side = str(side (leader _group)); _array_dam = []; _behaviour = [behaviour (leader _group),combatMode _group,formation _group]; _array_wp = []; @@ -36,7 +36,7 @@ if (!isNil {_group getVariable "getWeapons"}) then {_type_db = 5;}; if (vehicle leader _group != leader _group) then {_type_db = 1;}; -if (_type_db == 1) then +if (_type_db == 1) then { private ["_veh"]; _veh = vehicle leader _group; diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/data/spawn_group.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/data/spawn_group.sqf index fb5b3b8f1..366537bce 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/data/spawn_group.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/data/spawn_group.sqf @@ -4,7 +4,7 @@ private ["_type","_array_pos","_array_type","_side","_array_dam","_behaviour","_ _type = _this select 0; _array_pos = _this select 1; _array_type = _this select 2; -_side = _this select 3; +_side = call compile (_this select 3); _array_dam = _this select 4; _behaviour = _this select 5; _array_wp = _this select 6; @@ -75,7 +75,7 @@ if (_type == 5) then { while {Alive _suicider && !isNull _suicider && !_cond} do { sleep 5; if (count (getpos _suicider nearEntities ["SoldierWB", 25]) > 0) then {_cond = true;_suicider spawn btc_fnc_ied_suicider_active}; - }; + }; }; }; From b2eda14cc8f6e58eaf5b2101d8aae6add4c453fc Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sun, 24 Jan 2016 13:59:15 +0100 Subject: [PATCH 09/24] FIXsss - inidb do not support object - too big array - side error --- .../core/fnc/data/spawn_group.sqf | 16 +++++- .../core/fnc/db/load.sqf | 13 +++-- .../core/fnc/db/save.sqf | 51 +++++++++++++++++-- 3 files changed, 73 insertions(+), 7 deletions(-) diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/data/spawn_group.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/data/spawn_group.sqf index 366537bce..001714e72 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/data/spawn_group.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/data/spawn_group.sqf @@ -4,7 +4,21 @@ private ["_type","_array_pos","_array_type","_side","_array_dam","_behaviour","_ _type = _this select 0; _array_pos = _this select 1; _array_type = _this select 2; -_side = call compile (_this select 3); +switch (_this select 3) do +{ + case "CIV": + { + _side = civilian; + }; + case "UNKNOWN": + { + _side = sideUnknown; + }; + default + { + _side = call compile (_this select 3); + }; +}; _array_dam = _this select 4; _behaviour = _this select 5; _array_wp = _this select 6; diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf index 41aaac075..b5b619f9a 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf @@ -1,6 +1,5 @@ -private ["_cities_status","_fobs","_name","_city_status","_array_ho","_data","_ho_markers","_array_cache","_c -","_fobs","_array_veh","_cargo","_array_obj","_marker","_ho"]; +private ["_cities_status","_fobs","_name","_city_status","_array_ho","_data","_ho_markers","_array_cache","_fobs","_array_veh","_cargo","_array_obj","_marker","_ho","_data_units"]; setDate (["read", ["mission_Param", "date", date]] call OO_fnc_inidbi); @@ -32,7 +31,15 @@ _cities_status = ["read", ["environement", "cities", [] ]] call OO_fnc_inidbi; _city setVariable ["initialized",(_x select 1)]; _city setVariable ["spawn_more",(_x select 2)]; _city setVariable ["occupied",(_x select 3)]; - _city setVariable ["data_units",(_x select 4)]; + + _data_units = (_x select 4); + { + if ((_x select 0) == 3) then { + _x set [7,([_x select 7,3] call btc_fnc_getHouses) select 0]; + }; + } forEach _data_units; + _city setVariable ["data_units",_data_units]; + _city setVariable ["has_ho",(_x select 5)]; _city setVariable ["ho_units_spawned",(_x select 6)]; _city setVariable ["ieds",(_x select 7)]; diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf index 4e3a01831..225768899 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf @@ -1,8 +1,7 @@ "delete" call OO_fnc_inidbi; -private ["_cities_status","_fobs","_name","_city_status","_array_ho","_data","_ho_markers","_array_cache","_c -","_fobs","_array_veh","_cargo","_array_obj","_marker"]; +private ["_cities_status","_fobs","_name","_city_status","_array_ho","_data","_ho_markers","_array_cache","_fobs","_array_veh","_cargo","_array_obj","_marker","_lereste","_i","_step","_temp_save","_data_units"]; hint "saving..."; [[8],"btc_fnc_show_hint"] spawn BIS_fnc_MP; @@ -31,6 +30,12 @@ _cities_status = []; _city_status pushBack (_x getVariable "spawn_more"); _city_status pushBack (_x getVariable "occupied"); + _data_units = _x getVariable "data_units"; + { + if ((_x select 0) == 3) then { + _x set [7,getPos (_x select 7)]; + }; + } forEach _data_units; _city_status pushBack (_x getVariable "data_units"); _city_status pushBack (_x getVariable ["has_ho",false]); @@ -40,7 +45,47 @@ _cities_status = []; _cities_status pushBack _city_status; //diag_log format ["SAVE: %1 - %2",(_x getVariable "id"),(_x getVariable "occupied")]; } foreach btc_city_all; -["write", ["environement", "cities", _cities_status]] call OO_fnc_inidbi; +cities_status = []; +cities_status append _cities_status; + +_lereste = []; +_lereste append _cities_status; +_step = count _cities_status; +_i = 1; + +/*hint "b"; ["write", ["environement", "cities3", (((cities_status select 3) select 4) select 4) select 7]] call OO_fnc_inidbi + get_group*/ +while {!(_lereste isEqualTo [])} do +{ + _temp_save = []; + _temp_save append _lereste; + player sideChat "str(count _lereste)"; + player sideChat str(count _lereste); + _temp_save resize _step; + player sideChat "str(count _temp_save)"; + player sideChat str(count _temp_save); + switch (["write", ["environement", format ["cities_%1",_i], _temp_save]] call OO_fnc_inidbi) do + { + case true: + { + _lereste deleteRange [0,_step]; + if (count _lereste < _step) then {_step = count _lereste}; + _i = _i + 1; + }; + + case nil: + { + player sideChat "HELLLLLLLOOOO"; + _step = floor(_step/2); + }; + + default + { + player sideChat "HELLLLLLLOOOO"; + _step = floor(_step/2); + }; + }; +}; //HIDEOUT _array_ho = []; From f661e590926d10f1320f8f37adb60c4c815b1684 Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sun, 24 Jan 2016 17:40:25 +0100 Subject: [PATCH 10/24] Add Load big array - FIX error due assign array to the same entry --- .../core/fnc/db/load.sqf | 6 ++- .../core/fnc/db/save.sqf | 41 ++++++++++--------- 2 files changed, 26 insertions(+), 21 deletions(-) diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf index b5b619f9a..0c880205a 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf @@ -4,7 +4,11 @@ private ["_cities_status","_fobs","_name","_city_status","_array_ho","_data","_h setDate (["read", ["mission_Param", "date", date]] call OO_fnc_inidbi); //CITIES -_cities_status = ["read", ["environement", "cities", [] ]] call OO_fnc_inidbi; +_nb_cities_array = ["read", ["environement", "nb_cities_array", 0]] call OO_fnc_inidbi; +_cities_status = []; +for "_i" from 1 to _nb_cities_array do { + _cities_status append (["read", ["environement", format ["cities_array_%1",_i], [] ]] call OO_fnc_inidbi); +}; //diag_log format ["_cities_status: %1",_cities_status]; { diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf index 225768899..9fe3f78cc 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf @@ -1,7 +1,7 @@ "delete" call OO_fnc_inidbi; -private ["_cities_status","_fobs","_name","_city_status","_array_ho","_data","_ho_markers","_array_cache","_fobs","_array_veh","_cargo","_array_obj","_marker","_lereste","_i","_step","_temp_save","_data_units"]; +private ["_cities_status","_fobs","_name","_city_status","_array_ho","_data","_ho_markers","_array_cache","_fobs","_array_veh","_cargo","_array_obj","_marker","_lereste","_nb_cities_array","_step","_temp_save","_data_units"]; hint "saving..."; [[8],"btc_fnc_show_hint"] spawn BIS_fnc_MP; @@ -30,13 +30,15 @@ _cities_status = []; _city_status pushBack (_x getVariable "spawn_more"); _city_status pushBack (_x getVariable "occupied"); - _data_units = _x getVariable "data_units"; + _data_units = +(_x getVariable "data_units"); { - if ((_x select 0) == 3) then { + if ((_x select 0) isEqualTo 3) then { + player sideChat str(_x select 7); + player sideChat str(getPos (_x select 7)); _x set [7,getPos (_x select 7)]; }; } forEach _data_units; - _city_status pushBack (_x getVariable "data_units"); + _city_status pushBack _data_units; _city_status pushBack (_x getVariable ["has_ho",false]); _city_status pushBack (_x getVariable ["ho_units_spawned",false]); @@ -45,47 +47,46 @@ _cities_status = []; _cities_status pushBack _city_status; //diag_log format ["SAVE: %1 - %2",(_x getVariable "id"),(_x getVariable "occupied")]; } foreach btc_city_all; -cities_status = []; -cities_status append _cities_status; +cities_status = +_cities_status; -_lereste = []; -_lereste append _cities_status; +_lereste = +_cities_status; _step = count _cities_status; -_i = 1; +_nb_cities_array = 0; /*hint "b"; ["write", ["environement", "cities3", (((cities_status select 3) select 4) select 4) select 7]] call OO_fnc_inidbi get_group*/ while {!(_lereste isEqualTo [])} do { - _temp_save = []; - _temp_save append _lereste; + _temp_save = +_lereste; player sideChat "str(count _lereste)"; player sideChat str(count _lereste); _temp_save resize _step; player sideChat "str(count _temp_save)"; player sideChat str(count _temp_save); - switch (["write", ["environement", format ["cities_%1",_i], _temp_save]] call OO_fnc_inidbi) do - { + switch (["write", ["environement", format ["cities_array_%1",_nb_cities_array], _temp_save]] call OO_fnc_inidbi) do { case true: { - _lereste deleteRange [0,_step]; - if (count _lereste < _step) then {_step = count _lereste}; - _i = _i + 1; + _lereste deleteRange [0,_step]; + if (count _lereste < _step) then {_step = count _lereste}; + _nb_cities_array = _nb_cities_array + 1; }; case nil: { - player sideChat "HELLLLLLLOOOO"; - _step = floor(_step/2); + player sideChat "HELLLLLLLOOOO"; + _step = floor(_step/2); }; default { - player sideChat "HELLLLLLLOOOO"; - _step = floor(_step/2); + player sideChat "HELLLLLLLOOOO"; + _step = floor(_step/2); }; }; +if (_step isEqualTo 0) exitWith {hint "Error Array too big"}; }; +["write", ["environement", "nb_cities_array", _nb_cities_array]] call OO_fnc_inidbi; + //HIDEOUT _array_ho = []; From c7d3c08970d029945a8f412bb529d14e14345c85 Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sun, 24 Jan 2016 17:52:16 +0100 Subject: [PATCH 11/24] FIX: increament big array --- =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf index 0c880205a..d81ee56f4 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf @@ -4,9 +4,9 @@ private ["_cities_status","_fobs","_name","_city_status","_array_ho","_data","_h setDate (["read", ["mission_Param", "date", date]] call OO_fnc_inidbi); //CITIES -_nb_cities_array = ["read", ["environement", "nb_cities_array", 0]] call OO_fnc_inidbi; +_nb_cities_array = (["read", ["environement", "nb_cities_array", 0]] call OO_fnc_inidbi) - 1; _cities_status = []; -for "_i" from 1 to _nb_cities_array do { +for "_i" from 0 to _nb_cities_array do { _cities_status append (["read", ["environement", format ["cities_array_%1",_i], [] ]] call OO_fnc_inidbi); }; //diag_log format ["_cities_status: %1",_cities_status]; From 38706781d9e492a892ef90ceb113e2fa27f4d04b Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sun, 24 Jan 2016 19:06:23 +0100 Subject: [PATCH 12/24] Add: btc_fnc_db_save_array to save big array --- .../core/fnc/compile.sqf | 1 + .../core/fnc/db/save.sqf | 39 +------------------ .../core/fnc/db/save_array.sqf | 39 +++++++++++++++++++ 3 files changed, 41 insertions(+), 38 deletions(-) create mode 100644 =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save_array.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf index d00494eb1..8c4d0a409 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf @@ -44,6 +44,7 @@ if (isServer) then { OO_fnc_inidbi = ["new", format ["btc_hm_%1",worldName]] call OO_INIDBI; btc_fnc_db_save = compile preprocessFile "core\fnc\db\save.sqf"; btc_fnc_db_delete = compile preprocessFile "core\fnc\db\delete.sqf"; + btc_fnc_db_save_array = compile preprocessFile "core\fnc\db\save_array.sqf"; //EH //btc_fnc_eh_helo_respawn = compile preprocessFile "core\fnc\eh\helo_respawn.sqf"; diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf index 9fe3f78cc..7cb4c9bf3 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf @@ -49,44 +49,7 @@ _cities_status = []; } foreach btc_city_all; cities_status = +_cities_status; -_lereste = +_cities_status; -_step = count _cities_status; -_nb_cities_array = 0; - -/*hint "b"; ["write", ["environement", "cities3", (((cities_status select 3) select 4) select 4) select 7]] call OO_fnc_inidbi - get_group*/ -while {!(_lereste isEqualTo [])} do -{ - _temp_save = +_lereste; - player sideChat "str(count _lereste)"; - player sideChat str(count _lereste); - _temp_save resize _step; - player sideChat "str(count _temp_save)"; - player sideChat str(count _temp_save); - switch (["write", ["environement", format ["cities_array_%1",_nb_cities_array], _temp_save]] call OO_fnc_inidbi) do { - case true: - { - _lereste deleteRange [0,_step]; - if (count _lereste < _step) then {_step = count _lereste}; - _nb_cities_array = _nb_cities_array + 1; - }; - - case nil: - { - player sideChat "HELLLLLLLOOOO"; - _step = floor(_step/2); - }; - - default - { - player sideChat "HELLLLLLLOOOO"; - _step = floor(_step/2); - }; - }; -if (_step isEqualTo 0) exitWith {hint "Error Array too big"}; -}; -["write", ["environement", "nb_cities_array", _nb_cities_array]] call OO_fnc_inidbi; - +[_cities_status,"environement","cities_array" ] call btc_fnc_db_save_array; //HIDEOUT _array_ho = []; diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save_array.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save_array.sqf new file mode 100644 index 000000000..6113e5aaa --- /dev/null +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save_array.sqf @@ -0,0 +1,39 @@ + +private ["_lereste","_section","_key","_nb_cities_array","_step","_temp_save"]; + +_lereste = _this select 0; +_section = _this select 1; +_key = _this select 2; + +_step = count _lereste; +_nb_cities_array = 0; + +while {!(_lereste isEqualTo [])} do +{ + _temp_save = +_lereste; + player sideChat "str(count _lereste)"; + player sideChat str(count _lereste); + _temp_save resize _step; + player sideChat "str(count _temp_save)"; + player sideChat str(count _temp_save); + switch (["write", [_section, format ["%1_%2",_key,_nb_cities_array], _temp_save]] call OO_fnc_inidbi) do { + case true: + { + _lereste deleteRange [0,_step]; + if (count _lereste < _step) then {_step = count _lereste}; + _nb_cities_array = _nb_cities_array + 1; + }; + + case nil: + { + _step = floor(_step/2); + }; + + default + { + _step = floor(_step/2); + }; + }; +if (_step isEqualTo 0) exitWith {hint "Error Array too big"}; +}; +["write", [_section, format ["nb_%1",_key], _nb_cities_array]] call OO_fnc_inidbi; \ No newline at end of file From ad4790cd1ce95064111bccacd256e7babc0611b9 Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sun, 24 Jan 2016 21:11:07 +0100 Subject: [PATCH 13/24] Add: btc_fnc_db_save_array return the number of key created --- .../core/fnc/db/save.sqf | 8 ++++++-- .../core/fnc/db/save_array.sqf | 11 +++++++---- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf index 7cb4c9bf3..db589760b 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf @@ -18,6 +18,7 @@ for "_i" from 0 to (count btc_city_all - 1) do { hint "saving...2"; //City status _cities_status = []; +_nb_cities_data_units = []; { //[151,false,false,true,false,false,[]] _city_status = []; @@ -38,7 +39,7 @@ _cities_status = []; _x set [7,getPos (_x select 7)]; }; } forEach _data_units; - _city_status pushBack _data_units; + _nb_cities_data_units pushBack ([_data_units,"environement",format ["city_%1_data_units",(_city_status select 0)]] call btc_fnc_db_save_array); _city_status pushBack (_x getVariable ["has_ho",false]); _city_status pushBack (_x getVariable ["ho_units_spawned",false]); @@ -47,9 +48,12 @@ _cities_status = []; _cities_status pushBack _city_status; //diag_log format ["SAVE: %1 - %2",(_x getVariable "id"),(_x getVariable "occupied")]; } foreach btc_city_all; +["write", ["environement", "nb_cities_data_units", _nb_cities_data_units]] call OO_fnc_inidbi; + cities_status = +_cities_status; +_nb_cities_status = [[_cities_status,"environement","cities_status"] call btc_fnc_db_save_array]; +["write", ["environement", "nb_cities_status", _nb_cities_status]] call OO_fnc_inidbi; -[_cities_status,"environement","cities_array" ] call btc_fnc_db_save_array; //HIDEOUT _array_ho = []; diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save_array.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save_array.sqf index 6113e5aaa..6a2dd300f 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save_array.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save_array.sqf @@ -10,6 +10,12 @@ _nb_cities_array = 0; while {!(_lereste isEqualTo [])} do { + if (_step isEqualTo 0) exitWith { + hint "Error Array too big"; + lereste = +_lereste; + _nb_cities_array ="Error Array too big"; + }; + _temp_save = +_lereste; player sideChat "str(count _lereste)"; player sideChat str(count _lereste); @@ -23,17 +29,14 @@ while {!(_lereste isEqualTo [])} do if (count _lereste < _step) then {_step = count _lereste}; _nb_cities_array = _nb_cities_array + 1; }; - case nil: { _step = floor(_step/2); }; - default { _step = floor(_step/2); }; }; -if (_step isEqualTo 0) exitWith {hint "Error Array too big"}; }; -["write", [_section, format ["nb_%1",_key], _nb_cities_array]] call OO_fnc_inidbi; \ No newline at end of file +_nb_cities_array \ No newline at end of file From 869ce7e613b8a0f6516faa8c0b35b2230a68c816 Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Tue, 26 Jan 2016 22:38:05 +0100 Subject: [PATCH 14/24] Add: load big array - indicate need @iniDB in mission parameter - obtimize gethouses - can delete data base - FIX element - use array of array - debug message --- .../core/def/param.hpp | 150 +++++++++--------- .../core/fnc/common/getHouses.sqf | 18 +-- .../core/fnc/db/delete.sqf | 16 +- .../core/fnc/db/load.sqf | 34 ++-- .../core/fnc/db/save.sqf | 13 +- .../core/fnc/db/save_array.sqf | 3 +- 6 files changed, 118 insertions(+), 116 deletions(-) diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/def/param.hpp b/=BTC=co@22_Hearts_and_Minds.Altis/core/def/param.hpp index ee544839b..1bc2de005 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/def/param.hpp +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/def/param.hpp @@ -2,163 +2,163 @@ class Params { class btc_p_time { //paramsArray[0] title = "Set the start time:"; - values[]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24}; - texts[]={"1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24"}; - default = 12; + values[]={1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24}; + texts[]={"1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24"}; + default = 12; }; class btc_p_en { //paramsArray[1] title = "Enemy type:"; - values[]={0,1,2,3}; - texts[]={"Guerrilla (A3)","CAF","AAF (A3)","RHS Insurgents"}; - default = 0; + values[]={0,1,2,3}; + texts[]={"Guerrilla (A3)","CAF","AAF (A3)","RHS Insurgents"}; + default = 0; }; class btc_p_ied { //paramsArray[2] title = "IEDs ratio:"; - values[]={0, 0.5, 1, 1.5}; - texts[]={"Off","Low","Normal","High"}; - default = 1; + values[]={0, 0.5, 1, 1.5}; + texts[]={"Off","Low","Normal","High"}; + default = 1; }; class btc_p_hideout_n { //paramsArray[3] title = "Hideout numbers:"; - values[]={99,1,2,3,4,5}; - texts[]={"Random","1","2","3","4","5"}; - default = 3; + values[]={99,1,2,3,4,5}; + texts[]={"Random","1","2","3","4","5"}; + default = 3; }; class btc_p_cache_info_def { //paramsArray[4] title = "Info cache distance:"; - values[]={500,1000,1500,2000,2500,3000,3500,4000,5000}; - texts[]={"500 m","1000 m","1500 m","2000 m","2500 m","3000 m","3500 m","4000 m","5000 m"}; - default = 1000; - }; + values[]={500,1000,1500,2000,2500,3000,3500,4000,5000}; + texts[]={"500 m","1000 m","1500 m","2000 m","2500 m","3000 m","3500 m","4000 m","5000 m"}; + default = 1000; + }; class btc_p_cache_info_ratio { //paramsArray[5] title = "Cache info ratio:"; - values[]={50,100}; - texts[]={"50 m","100 m"}; - default = 100; + values[]={50,100}; + texts[]={"50 m","100 m"}; + default = 100; }; class btc_p_info_chance { //paramsArray[6] title = "Intel from dead bodies chance:"; - values[]={0,10,20,30,40,50,60,70,80,90,100}; - texts[]={"100 %","90 %","80 %","70 %","60 %","50 %","40 %","30 %","20 %","10 %","0 %"}; - default = 70; + values[]={0,10,20,30,40,50,60,70,80,90,100}; + texts[]={"100 %","90 %","80 %","70 %","60 %","50 %","40 %","30 %","20 %","10 %","0 %"}; + default = 70; }; class btc_p_rep { //paramsArray[7] title = "Reputation at start:"; - values[]={0, 200, 500, 750}; - texts[]={"Very Low","Low","Normal","High"}; - default = 200; - }; + values[]={0, 200, 500, 750}; + texts[]={"Very Low","Low","Normal","High"}; + default = 200; + }; class btc_p_redeploy { //paramsArray[8] title = "Allow re-deploy?"; - values[]={0,1}; - texts[]={"No","Yes"}; - default = 1; + values[]={0,1}; + texts[]={"No","Yes"}; + default = 1; }; class btc_p_set_skill { //paramsArray[9] title = "Set skill?"; - values[]={0,1}; - texts[]={"No","Yes"}; - default = 1; + values[]={0,1}; + texts[]={"No","Yes"}; + default = 1; }; class btc_p_set_skill_general { //paramsArray[10] title = "Set skill, general"; - values[]={0,1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100}; - texts[]={"0","0.1","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1","2","3","4","5","6","7","8","9","10"}; - default = 0; + values[]={0,1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100}; + texts[]={"0","0.1","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1","2","3","4","5","6","7","8","9","10"}; + default = 0; }; class btc_p_set_skill_aimingAccuracy { //paramsArray[11] title = "Set skill, aimingAccuracy"; - values[]={0,1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100}; - texts[]={"0","0.1","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1","2","3","4","5","6","7","8","9","10"}; - default = 1; + values[]={0,1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100}; + texts[]={"0","0.1","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1","2","3","4","5","6","7","8","9","10"}; + default = 1; }; class btc_p_set_skill_aimingShake { //paramsArray[12] title = "Set skill, aimingShake"; - values[]={0,1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100}; - texts[]={"0","0.1","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1","2","3","4","5","6","7","8","9","10"}; - default = 7; + values[]={0,1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100}; + texts[]={"0","0.1","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1","2","3","4","5","6","7","8","9","10"}; + default = 7; }; class btc_p_set_skill_aimingSpeed { //paramsArray[13] title = "Set skill, aimingSpeed"; - values[]={0,1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100}; - texts[]={"0","0.1","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1","2","3","4","5","6","7","8","9","10"}; - default = 2; + values[]={0,1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100}; + texts[]={"0","0.1","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1","2","3","4","5","6","7","8","9","10"}; + default = 2; }; class btc_p_set_skill_endurance { //paramsArray[14] title = "Set skill, endurance"; - values[]={0,1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100}; - texts[]={"0","0.1","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1","2","3","4","5","6","7","8","9","10"}; - default = 7; + values[]={0,1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100}; + texts[]={"0","0.1","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1","2","3","4","5","6","7","8","9","10"}; + default = 7; }; class btc_p_set_skill_spotDistance { //paramsArray[15] title = "Set skill, spotDistance"; - values[]={0,1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100}; - texts[]={"0","0.1","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1","2","3","4","5","6","7","8","9","10"}; - default = 100; + values[]={0,1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100}; + texts[]={"0","0.1","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1","2","3","4","5","6","7","8","9","10"}; + default = 100; }; class btc_p_set_skill_spotTime { //paramsArray[16] title = "Set skill, spotTime"; - values[]={0,1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100}; - texts[]={"0","0.1","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1","2","3","4","5","6","7","8","9","10"}; - default = 100; + values[]={0,1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100}; + texts[]={"0","0.1","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1","2","3","4","5","6","7","8","9","10"}; + default = 100; }; class btc_p_set_skill_courage { //paramsArray[17] title = "Set skill, courage"; - values[]={0,1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100}; - texts[]={"0","0.1","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1","2","3","4","5","6","7","8","9","10"}; - default = 1; + values[]={0,1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100}; + texts[]={"0","0.1","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1","2","3","4","5","6","7","8","9","10"}; + default = 1; }; class btc_p_set_skill_reloadSpeed { //paramsArray[18] title = "Set skill, reloadSpeed"; - values[]={0,1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100}; - texts[]={"0","0.1","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1","2","3","4","5","6","7","8","9","10"}; - default = 20; + values[]={0,1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100}; + texts[]={"0","0.1","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1","2","3","4","5","6","7","8","9","10"}; + default = 20; }; class btc_p_set_skill_commanding { //paramsArray[19] title = "Set skill, commanding"; - values[]={0,1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100}; - texts[]={"0","0.1","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1","2","3","4","5","6","7","8","9","10"}; - default = 80; + values[]={0,1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100}; + texts[]={"0","0.1","0.2","0.3","0.4","0.5","0.6","0.7","0.8","0.9","1","2","3","4","5","6","7","8","9","10"}; + default = 80; }; class btc_p_debug { //paramsArray[20] title = "Debug:"; - values[]={0,1,2}; - texts[]={"No","Yes", "Log only"}; - default = 0; + values[]={0,1,2}; + texts[]={"No","Yes", "Log only"}; + default = 0; }; class btc_p_engineer { //paramsArray[21] title = "Everybody can disarm IED with the same chances:"; - values[]={0,1}; - texts[]={"No","Yes"}; - default = 0; + values[]={0,1}; + texts[]={"No","Yes"}; + default = 0; }; class btc_p_load { //paramsArray[22] - title = "Load the savegame (if available)"; - values[]={0,1}; - texts[]={"No","Yes"}; - default = 1; + title = "Load the savegame (If available and Need @iniDB)"; + values[]={0,1}; + texts[]={"No","Yes"}; + default = 1; }; class btc_p_med_level { //paramsArray[23] @@ -177,8 +177,8 @@ class Params { class btc_p_rev { //paramsArray[25] title = "Revive time:"; - values[]={0,60,120,180,240,300,600,900,1200,999999}; - texts[]={"0","60","120","180","240","300","600","900","1200","999999"}; - default = 600; + values[]={0,60,120,180,240,300,600,900,1200,999999}; + texts[]={"0","60","120","180","240","300","600","900","1200","999999"}; + default = 600; }; }; diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/getHouses.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/getHouses.sqf index 2c340f037..3fc7f1443 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/getHouses.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/getHouses.sqf @@ -1,11 +1,9 @@ -_pos = _this select 0; -_radius = _this select 1; -_buildings = nearestObjects [_pos, ["Building"], _radius]; + +_buildings = nearestObjects [(_this select 0), ["Building"], (_this select 1)]; _useful = []; -{ - if (format["%1", _x buildingPos 2] != "[0,0,0]" && {damage _x == 0} && {isNil {_x getVariable "btc_house_taken"}}) then - { - _useful set [count _useful, _x]; - }; -} forEach _buildings; -_useful \ No newline at end of file +{ + if (format["%1", _x buildingPos 2] != "[0,0,0]" && {damage _x isEqualTo 0} && {isNil {_x getVariable "btc_house_taken"}}) then { + _useful pushBack _x; + }; +} forEach _buildings; +_useful \ No newline at end of file diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/delete.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/delete.sqf index 955074212..144de30a8 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/delete.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/delete.sqf @@ -1,17 +1,3 @@ - -_name = worldName; - -profileNamespace setVariable [format ["btc_hm_%1_date",_name],nil]; -profileNamespace setVariable [format ["btc_hm_%1_cities",_name],nil]; -profileNamespace setVariable [format ["btc_hm_%1_ho",_name],nil]; -profileNamespace setVariable [format ["btc_hm_%1_ho_sel",_name],nil]; -profileNamespace setVariable [format ["btc_hm_%1_cache",_name],nil]; -profileNamespace setVariable [format ["btc_hm_%1_rep",_name],nil]; -profileNamespace setVariable [format ["btc_hm_%1_fobs",_name],nil]; -profileNamespace setVariable [format ["btc_hm_%1_vehs",_name],nil]; -profileNamespace setVariable [format ["btc_hm_%1_objs",_name],nil]; -profileNamespace setVariable [format ["btc_hm_%1_db",_name],nil]; - -saveProfileNamespace; +"delete" call OO_fnc_inidbi; [[10],"btc_fnc_show_hint"] spawn BIS_fnc_MP; \ No newline at end of file diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf index d81ee56f4..28b971752 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf @@ -4,13 +4,16 @@ private ["_cities_status","_fobs","_name","_city_status","_array_ho","_data","_h setDate (["read", ["mission_Param", "date", date]] call OO_fnc_inidbi); //CITIES -_nb_cities_array = (["read", ["environement", "nb_cities_array", 0]] call OO_fnc_inidbi) - 1; +player sideChat "Load Cities"; +_nb_cities_status = ((["read", ["environement", "nb_cities_status", [0]]] call OO_fnc_inidbi) select 0) - 1; _cities_status = []; -for "_i" from 0 to _nb_cities_array do { - _cities_status append (["read", ["environement", format ["cities_array_%1",_i], [] ]] call OO_fnc_inidbi); +for "_i" from 0 to _nb_cities_status do { + _cities_status append (["read", ["environement", format ["cities_status_%1",_i], [] ]] call OO_fnc_inidbi); }; -//diag_log format ["_cities_status: %1",_cities_status]; +_nb_cities_data_units = ["read", ["environement", "nb_cities_data_units", [[],[]] ]] call OO_fnc_inidbi; +//diag_log format ["_cities_status: %1",_cities_status]; +player sideChat "Load Cities data units"; { /* _city_status pushBack (_x getVariable "id"); @@ -28,7 +31,7 @@ for "_i" from 0 to _nb_cities_array do { */ - private ["_id","_city"]; + private ["_id","_city","_element"]; _id = _x select 0; _city = btc_city_all select _id; @@ -36,17 +39,25 @@ for "_i" from 0 to _nb_cities_array do { _city setVariable ["spawn_more",(_x select 2)]; _city setVariable ["occupied",(_x select 3)]; - _data_units = (_x select 4); + _element = (_nb_cities_data_units select 1) select ((_nb_cities_data_units select 0) find _id); + _data_units = []; + player sideChat str(_element); + if (_element > 0) then { + for "_i" from 0 to _element do { + _data_units append (["read", ["environement", format ["city_%1_data_units_%2",_id,_i], [] ]] call OO_fnc_inidbi); + }; + }; { - if ((_x select 0) == 3) then { + if ((_x select 0) isEqualTo 3) then { _x set [7,([_x select 7,3] call btc_fnc_getHouses) select 0]; }; } forEach _data_units; _city setVariable ["data_units",_data_units]; - _city setVariable ["has_ho",(_x select 5)]; - _city setVariable ["ho_units_spawned",(_x select 6)]; - _city setVariable ["ieds",(_x select 7)]; + _city setVariable ["has_ho",(_x select 4)]; + _city setVariable ["ho_units_spawned",(_x select 5)]; + diag_log str(_x select 6); + _city setVariable ["ieds",(_x select 6)]; if (btc_debug) then {//_debug @@ -60,6 +71,7 @@ for "_i" from 0 to _nb_cities_array do { } foreach _cities_status; //HIDEOUT +player sideChat "Load HideOuts"; /* _data pushBack (getPos _x); _data pushBack (_x getVariable ["id",0]); @@ -128,7 +140,7 @@ btc_hq setVariable ["info_hideout",_ho]; if (count btc_hideouts == 0) then {[] execVM "core\fnc\common\final_phase.sqf";}; //CACHE - +player sideChat "Load Cache"; btc_cache_cities = + btc_city_all; btc_cache_markers = []; diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf index db589760b..a9a56a2f6 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf @@ -18,12 +18,15 @@ for "_i" from 0 to (count btc_city_all - 1) do { hint "saving...2"; //City status _cities_status = []; -_nb_cities_data_units = []; +_nb_cities_data_units = [[],[]]; { //[151,false,false,true,false,false,[]] + private ["_id"]; _city_status = []; - _city_status pushBack (_x getVariable "id"); - + _id = (_x getVariable "id"); + _city_status pushBack _id ; + (_nb_cities_data_units select 0) pushBack _id; + diag_log str(_id); //_city_status pushBack (_x getVariable "name"); _city_status pushBack (_x getVariable "initialized"); @@ -34,12 +37,14 @@ _nb_cities_data_units = []; _data_units = +(_x getVariable "data_units"); { if ((_x select 0) isEqualTo 3) then { + diag_log str(_x select 7); + diag_log str(getPos (_x select 7)); player sideChat str(_x select 7); player sideChat str(getPos (_x select 7)); _x set [7,getPos (_x select 7)]; }; } forEach _data_units; - _nb_cities_data_units pushBack ([_data_units,"environement",format ["city_%1_data_units",(_city_status select 0)]] call btc_fnc_db_save_array); + (_nb_cities_data_units select 1) pushBack ([_data_units,"environement",format ["city_%1_data_units",(_city_status select 0)]] call btc_fnc_db_save_array); _city_status pushBack (_x getVariable ["has_ho",false]); _city_status pushBack (_x getVariable ["ho_units_spawned",false]); diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save_array.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save_array.sqf index 6a2dd300f..73b532de3 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save_array.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save_array.sqf @@ -12,7 +12,6 @@ while {!(_lereste isEqualTo [])} do { if (_step isEqualTo 0) exitWith { hint "Error Array too big"; - lereste = +_lereste; _nb_cities_array ="Error Array too big"; }; @@ -22,6 +21,8 @@ while {!(_lereste isEqualTo [])} do _temp_save resize _step; player sideChat "str(count _temp_save)"; player sideChat str(count _temp_save); + diag_log str(typeName _temp_save); + diag_log str(count _temp_save); switch (["write", [_section, format ["%1_%2",_key,_nb_cities_array], _temp_save]] call OO_fnc_inidbi) do { case true: { From dd1e4a8b546f177cc16a8d9d5d40a0a41482f709 Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sat, 30 Jan 2016 13:07:19 +0100 Subject: [PATCH 15/24] Add: Check if iniDB is present server side --- .../core/fnc/common/show_hint.sqf | 5 ++++- =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf | 2 +- =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/delete.sqf | 2 ++ =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf | 1 + =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf | 1 + 5 files changed, 9 insertions(+), 2 deletions(-) diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/show_hint.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/show_hint.sqf index 435f9d033..d90c70c7b 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/show_hint.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/show_hint.sqf @@ -15,7 +15,7 @@ switch (_type) do { case 3 : { hint "This body does not have any intel"; }; - case 4 : { + case 4 : { hint "Found intels about an ammo cache and an hideout! Map updated"; }; case 5 : { @@ -36,4 +36,7 @@ switch (_type) do { case 10 : { hint "Database deleted!"; }; + case 11 : { + hint ("Game not " + (_this select 1) + " because @iniDB isn't lauched server side!"); + }; }; \ No newline at end of file diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf index 8c4d0a409..cb61ad521 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf @@ -41,7 +41,7 @@ if (isServer) then { btc_fnc_data_spawn_group = compile preprocessFile "core\fnc\data\spawn_group.sqf"; //DB - OO_fnc_inidbi = ["new", format ["btc_hm_%1",worldName]] call OO_INIDBI; + if (isClass(configFile >> "cfgPatches" >> "inidbi2")) then {OO_fnc_inidbi = compile str(["new", format ["btc_hm_%1",worldName]] call OO_INIDBI)} else {OO_fnc_inidbi = compile "false"}; btc_fnc_db_save = compile preprocessFile "core\fnc\db\save.sqf"; btc_fnc_db_delete = compile preprocessFile "core\fnc\db\delete.sqf"; btc_fnc_db_save_array = compile preprocessFile "core\fnc\db\save_array.sqf"; diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/delete.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/delete.sqf index 144de30a8..9cedb1542 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/delete.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/delete.sqf @@ -1,3 +1,5 @@ +if ((call OO_fnc_inidbi) isEqualTo false) exitWith {[[11, "deleted"],"btc_fnc_show_hint"] spawn BIS_fnc_MP;}; + "delete" call OO_fnc_inidbi; [[10],"btc_fnc_show_hint"] spawn BIS_fnc_MP; \ No newline at end of file diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf index 28b971752..e00b12e01 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf @@ -1,3 +1,4 @@ +if ((call OO_fnc_inidbi) isEqualTo false) exitWith {[[11, "loaded"],"btc_fnc_show_hint"] spawn BIS_fnc_MP;}; private ["_cities_status","_fobs","_name","_city_status","_array_ho","_data","_ho_markers","_array_cache","_fobs","_array_veh","_cargo","_array_obj","_marker","_ho","_data_units"]; diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf index a9a56a2f6..8989ed653 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf @@ -1,3 +1,4 @@ +if ((call OO_fnc_inidbi) isEqualTo false) exitWith {[[11, "saved"],"btc_fnc_show_hint"] spawn BIS_fnc_MP;}; "delete" call OO_fnc_inidbi; From d009ac38972185371c34aeacaacce4b76d67e69b Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sat, 30 Jan 2016 19:59:53 +0100 Subject: [PATCH 16/24] FIX: can't compile string --- =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf index cb61ad521..d4900f302 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf @@ -41,7 +41,7 @@ if (isServer) then { btc_fnc_data_spawn_group = compile preprocessFile "core\fnc\data\spawn_group.sqf"; //DB - if (isClass(configFile >> "cfgPatches" >> "inidbi2")) then {OO_fnc_inidbi = compile str(["new", format ["btc_hm_%1",worldName]] call OO_INIDBI)} else {OO_fnc_inidbi = compile "false"}; + if (isClass(configFile >> "cfgPatches" >> "inidbi2")) then {OO_fnc_inidbi = ["new", format ["btc_hm_%1",worldName]] call OO_INIDBI} else {OO_fnc_inidbi = compile "false"}; btc_fnc_db_save = compile preprocessFile "core\fnc\db\save.sqf"; btc_fnc_db_delete = compile preprocessFile "core\fnc\db\delete.sqf"; btc_fnc_db_save_array = compile preprocessFile "core\fnc\db\save_array.sqf"; From 0861a2529544abc8b42c23d84271b751e5202cb8 Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sun, 31 Jan 2016 14:25:41 +0100 Subject: [PATCH 17/24] FIX: rtp output when iniDB presence test --- .../core/fnc/compile.sqf | 2 +- .../core/fnc/db/delete.sqf | 2 +- .../core/fnc/db/load.sqf | 2 +- .../core/fnc/db/save.sqf | 2 +- .../core/init_server.sqf | 15 +++++++++++---- 5 files changed, 15 insertions(+), 8 deletions(-) diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf index d4900f302..e288e717c 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf @@ -41,7 +41,7 @@ if (isServer) then { btc_fnc_data_spawn_group = compile preprocessFile "core\fnc\data\spawn_group.sqf"; //DB - if (isClass(configFile >> "cfgPatches" >> "inidbi2")) then {OO_fnc_inidbi = ["new", format ["btc_hm_%1",worldName]] call OO_INIDBI} else {OO_fnc_inidbi = compile "false"}; + if (isClass(configFile >> "cfgPatches" >> "inidbi2")) then {OO_fnc_inidbi = ["new", format ["btc_hm_%1",worldName]] call OO_INIDBI}; btc_fnc_db_save = compile preprocessFile "core\fnc\db\save.sqf"; btc_fnc_db_delete = compile preprocessFile "core\fnc\db\delete.sqf"; btc_fnc_db_save_array = compile preprocessFile "core\fnc\db\save_array.sqf"; diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/delete.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/delete.sqf index 9cedb1542..d940cc73b 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/delete.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/delete.sqf @@ -1,4 +1,4 @@ -if ((call OO_fnc_inidbi) isEqualTo false) exitWith {[[11, "deleted"],"btc_fnc_show_hint"] spawn BIS_fnc_MP;}; +if !(isClass(configFile >> "cfgPatches" >> "inidbi2")) exitWith {[[11, "deleted"],"btc_fnc_show_hint"] spawn BIS_fnc_MP;}; "delete" call OO_fnc_inidbi; diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf index e00b12e01..911c53cc0 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf @@ -1,4 +1,4 @@ -if ((call OO_fnc_inidbi) isEqualTo false) exitWith {[[11, "loaded"],"btc_fnc_show_hint"] spawn BIS_fnc_MP;}; +if !(isClass(configFile >> "cfgPatches" >> "inidbi2")) exitWith {[[11, "loaded"],"btc_fnc_show_hint"] spawn BIS_fnc_MP;}; private ["_cities_status","_fobs","_name","_city_status","_array_ho","_data","_ho_markers","_array_cache","_fobs","_array_veh","_cargo","_array_obj","_marker","_ho","_data_units"]; diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf index 8989ed653..c4c43369a 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf @@ -1,4 +1,4 @@ -if ((call OO_fnc_inidbi) isEqualTo false) exitWith {[[11, "saved"],"btc_fnc_show_hint"] spawn BIS_fnc_MP;}; +if !(isClass(configFile >> "cfgPatches" >> "inidbi2")) exitWith {[[11, "saved"],"btc_fnc_show_hint"] spawn BIS_fnc_MP;}; "delete" call OO_fnc_inidbi; diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/init_server.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/init_server.sqf index 97905bfa6..7e3de0a22 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/init_server.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/init_server.sqf @@ -1,7 +1,15 @@ call compile preprocessFile "core\fnc\city\init.sqf"; -if (btc_db_load && {"exists" call OO_fnc_inidbi}) then { - call compile preprocessFile "core\fnc\db\load.sqf"; +if (btc_db_load && isClass(configFile >> "cfgPatches" >> "inidbi2")) then { + if ("exists" call OO_fnc_inidbi) then { + call compile preprocessFile "core\fnc\db\load.sqf"; + } else { + for "_i" from 1 to btc_hideout_n do {[] call btc_fnc_mil_create_hideout;}; + + [] execVM "core\fnc\cache\init.sqf"; + + [] spawn {{waitUntil {!isNull _x};_x addMPEventHandler ["MPKilled", {if (isServer) then {_this call btc_fnc_eh_veh_killed};}];} foreach btc_vehicles;}; + }; } else { for "_i" from 1 to btc_hideout_n do {[] call btc_fnc_mil_create_hideout;}; @@ -10,5 +18,4 @@ if (btc_db_load && {"exists" call OO_fnc_inidbi}) then { [] spawn {{waitUntil {!isNull _x};_x addMPEventHandler ["MPKilled", {if (isServer) then {_this call btc_fnc_eh_veh_killed};}];} foreach btc_vehicles;}; }; -[btc_helo_1,30,true] spawn btc_fnc_eh_veh_add_respawn; -//[btc_helo_1,true,30] spawn btc_fnc_veh_track_marker; \ No newline at end of file +[btc_helo_1,30,true] spawn btc_fnc_eh_veh_add_respawn; \ No newline at end of file From 3f51ffacbcdb5ffc7e4df5be15476218a8c55cf0 Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sun, 31 Jan 2016 14:39:31 +0100 Subject: [PATCH 18/24] Add: FOB save --- =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf index 911c53cc0..6195ceae9 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf @@ -180,7 +180,7 @@ if (btc_debug) then { btc_global_reputation = ["read", ["environement", "rep", 0 ]] call OO_fnc_inidbi; //FOB -_fobs = ["read", ["environement", "fobs", [] ]] call OO_fnc_inidbi; +_fobs = ["read", ["base", "fobs", [] ]] call OO_fnc_inidbi; _fobs_loaded = []; { From 90519f2b31611c7776d88c3e279ba70e65be815d Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sun, 31 Jan 2016 22:07:57 +0100 Subject: [PATCH 19/24] FIXsss : objects - object not save - object load by DB are not curator enable - object unload by player are not curator enable --- .../core/fnc/db/load.sqf | 3 +++ .../core/fnc/db/save.sqf | 14 +++++++------- .../core/fnc/db/save_array.sqf | 6 ------ 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf index 6195ceae9..346b5a9f3 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf @@ -233,6 +233,7 @@ diag_log format ["5: %1",(_x select 5)]; private "_obj"; _obj = _x createVehicle [0,0,0]; btc_log_obj_created pushBack _obj; + btc_curator addCuratorEditableObjects [[_obj], false]; [_obj,_veh] call btc_fnc_log_server_load; } foreach (_x select 5); } foreach _vehs; @@ -258,10 +259,12 @@ _objs = ["read", ["base", "objs", [] ]] call OO_fnc_inidbi; btc_log_obj_created pushBack _obj; _obj setDir (_x select 2); _obj setPosASL (_x select 1); + btc_curator addCuratorEditableObjects [[_obj], false]; { private "_l"; _l = _x createVehicle [0,0,0]; btc_log_obj_created pushBack _l; + btc_curator addCuratorEditableObjects [[_l], false]; [_l,_obj] call btc_fnc_log_server_load; } foreach (_x select 3); } foreach _objs; diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf index c4c43369a..fe744b402 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf @@ -27,7 +27,6 @@ _nb_cities_data_units = [[],[]]; _id = (_x getVariable "id"); _city_status pushBack _id ; (_nb_cities_data_units select 0) pushBack _id; - diag_log str(_id); //_city_status pushBack (_x getVariable "name"); _city_status pushBack (_x getVariable "initialized"); @@ -38,10 +37,6 @@ _nb_cities_data_units = [[],[]]; _data_units = +(_x getVariable "data_units"); { if ((_x select 0) isEqualTo 3) then { - diag_log str(_x select 7); - diag_log str(getPos (_x select 7)); - player sideChat str(_x select 7); - player sideChat str(getPos (_x select 7)); _x set [7,getPos (_x select 7)]; }; } forEach _data_units; @@ -115,9 +110,13 @@ _fobs = []; //Vehicles status _array_veh = []; { + private ["_pos"]; _data = []; _data pushBack (typeOf _x); - _data pushBack (getPos _x); + + _pos = getPos _x; + _data pushBack ([_pos select 0, _pos select 1, [0,_pos select 2] select ((_pos select 1) < 0) ]); + _data pushBack (getDir _x); _data pushBack (fuel _x); _data pushBack (damage _x); @@ -132,7 +131,7 @@ _array_veh = []; //Objects status _array_obj = []; { - if (!isNil {_x getVariable "loaded"} || !Alive _x || isNull _x) exitWith {}; + if !(!isNil {_x getVariable "loaded"} || !Alive _x || isNull _x) then { _data = []; _data pushBack (typeOf _x); _data pushBack (getPosASL _x); @@ -141,6 +140,7 @@ _array_obj = []; {_cargo pushBack (typeOf _x)} foreach (_x getVariable ["cargo",[]]); _data pushBack _cargo; _array_obj pushBack _data; + }; } foreach btc_log_obj_created; ["write", ["base", "objs", _array_obj]] call OO_fnc_inidbi; diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save_array.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save_array.sqf index 73b532de3..df88b9e6e 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save_array.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save_array.sqf @@ -16,13 +16,7 @@ while {!(_lereste isEqualTo [])} do }; _temp_save = +_lereste; - player sideChat "str(count _lereste)"; - player sideChat str(count _lereste); _temp_save resize _step; - player sideChat "str(count _temp_save)"; - player sideChat str(count _temp_save); - diag_log str(typeName _temp_save); - diag_log str(count _temp_save); switch (["write", [_section, format ["%1_%2",_key,_nb_cities_array], _temp_save]] call OO_fnc_inidbi) do { case true: { From db2350c2c10fad56a83c24b2acff499ecfbe87a9 Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sun, 31 Jan 2016 23:10:57 +0100 Subject: [PATCH 20/24] Add: Final phase support --- .../core/fnc/db/load.sqf | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf index 346b5a9f3..9c4b68029 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf @@ -133,12 +133,15 @@ _array_ho = ["read", ["environement", "ho", [] ]] call OO_fnc_inidbi; btc_hideouts pushBack _hideout; } foreach _array_ho; -_ho = btc_hideouts select 0; -_id_inidbi = ["read", ["environement", "ho_sel", 0]] call OO_fnc_inidbi; -{if ((_x getVariable ["id",0]) == _id_inidbi) exitWith {_ho = _x}} forEach btc_hideouts; -btc_hq setVariable ["info_hideout",_ho]; - -if (count btc_hideouts == 0) then {[] execVM "core\fnc\common\final_phase.sqf";}; +if (btc_hideouts isEqualTo []) then { + [] execVM "core\fnc\common\final_phase.sqf"; + btc_hq setVariable ["info_hideout",objNull]; +} else { + _ho = btc_hideouts select 0; + _id_inidbi = ["read", ["environement", "ho_sel", 0]] call OO_fnc_inidbi; + {if ((_x getVariable ["id",0]) isEqualTo _id_inidbi) exitWith {_ho = _x}} forEach btc_hideouts; + btc_hq setVariable ["info_hideout",_ho]; +}; //CACHE player sideChat "Load Cache"; From 95e99800134a2b11a8c65c61ed6db7ded22548d0 Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Mon, 1 Feb 2016 01:02:25 +0100 Subject: [PATCH 21/24] FIX: improve saving big array --- .../core/fnc/db/load.sqf | 24 +++++-------- .../core/fnc/db/save.sqf | 20 ++++++----- .../core/fnc/db/save_array.sqf | 34 +++++++++---------- 3 files changed, 37 insertions(+), 41 deletions(-) diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf index 9c4b68029..32736d0d1 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf @@ -5,16 +5,14 @@ private ["_cities_status","_fobs","_name","_city_status","_array_ho","_data","_h setDate (["read", ["mission_Param", "date", date]] call OO_fnc_inidbi); //CITIES -player sideChat "Load Cities"; -_nb_cities_status = ((["read", ["environement", "nb_cities_status", [0]]] call OO_fnc_inidbi) select 0) - 1; +_nb_cities_status = ((["read", ["cities", "nb_cities_status", [0]]] call OO_fnc_inidbi) select 0) - 1; _cities_status = []; for "_i" from 0 to _nb_cities_status do { - _cities_status append (["read", ["environement", format ["cities_status_%1",_i], [] ]] call OO_fnc_inidbi); + _cities_status append (["read", ["cities", format ["cities_status_%1",_i], [] ]] call OO_fnc_inidbi); }; -_nb_cities_data_units = ["read", ["environement", "nb_cities_data_units", [[],[]] ]] call OO_fnc_inidbi; +_nb_cities_data_units = ["read", ["cities", "nb_cities_data_units", [[],[]] ]] call OO_fnc_inidbi; //diag_log format ["_cities_status: %1",_cities_status]; -player sideChat "Load Cities data units"; { /* _city_status pushBack (_x getVariable "id"); @@ -42,10 +40,9 @@ player sideChat "Load Cities data units"; _element = (_nb_cities_data_units select 1) select ((_nb_cities_data_units select 0) find _id); _data_units = []; - player sideChat str(_element); if (_element > 0) then { for "_i" from 0 to _element do { - _data_units append (["read", ["environement", format ["city_%1_data_units_%2",_id,_i], [] ]] call OO_fnc_inidbi); + _data_units append (["read", ["cities", format ["city_%1_data_units_%2",_id,_i], [] ]] call OO_fnc_inidbi); }; }; { @@ -57,7 +54,6 @@ player sideChat "Load Cities data units"; _city setVariable ["has_ho",(_x select 4)]; _city setVariable ["ho_units_spawned",(_x select 5)]; - diag_log str(_x select 6); _city setVariable ["ieds",(_x select 6)]; if (btc_debug) then {//_debug @@ -72,7 +68,6 @@ player sideChat "Load Cities data units"; } foreach _cities_status; //HIDEOUT -player sideChat "Load HideOuts"; /* _data pushBack (getPos _x); _data pushBack (_x getVariable ["id",0]); @@ -88,7 +83,7 @@ player sideChat "Load HideOuts"; } foreach (_x getVariable ["markers",[]]); _data pushback (_cache_markers); */ -_array_ho = ["read", ["environement", "ho", [] ]] call OO_fnc_inidbi; +_array_ho = ["read", ["cities", "ho", [] ]] call OO_fnc_inidbi; { _pos = (_x select 0); @@ -138,17 +133,16 @@ if (btc_hideouts isEqualTo []) then { btc_hq setVariable ["info_hideout",objNull]; } else { _ho = btc_hideouts select 0; - _id_inidbi = ["read", ["environement", "ho_sel", 0]] call OO_fnc_inidbi; + _id_inidbi = ["read", ["cities", "ho_sel", 0]] call OO_fnc_inidbi; {if ((_x getVariable ["id",0]) isEqualTo _id_inidbi) exitWith {_ho = _x}} forEach btc_hideouts; btc_hq setVariable ["info_hideout",_ho]; }; //CACHE -player sideChat "Load Cache"; btc_cache_cities = + btc_city_all; btc_cache_markers = []; -_array_cache = ["read", ["environement", "cache", [] ]] call OO_fnc_inidbi; +_array_cache = ["read", ["cities", "cache", [] ]] call OO_fnc_inidbi; btc_cache_pos = _array_cache select 0; btc_cache_n = _array_cache select 1; @@ -180,7 +174,7 @@ if (btc_debug) then { }; //REP -btc_global_reputation = ["read", ["environement", "rep", 0 ]] call OO_fnc_inidbi; +btc_global_reputation = ["read", ["cities", "rep", 0 ]] call OO_fnc_inidbi; //FOB _fobs = ["read", ["base", "fobs", [] ]] call OO_fnc_inidbi; @@ -270,4 +264,4 @@ _objs = ["read", ["base", "objs", [] ]] call OO_fnc_inidbi; btc_curator addCuratorEditableObjects [[_l], false]; [_l,_obj] call btc_fnc_log_server_load; } foreach (_x select 3); -} foreach _objs; +} foreach _objs; \ No newline at end of file diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf index fe744b402..7db0bff87 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf @@ -18,6 +18,7 @@ for "_i" from 0 to (count btc_city_all - 1) do { }; hint "saving...2"; //City status +hint "saving City status"; _cities_status = []; _nb_cities_data_units = [[],[]]; { @@ -40,7 +41,7 @@ _nb_cities_data_units = [[],[]]; _x set [7,getPos (_x select 7)]; }; } forEach _data_units; - (_nb_cities_data_units select 1) pushBack ([_data_units,"environement",format ["city_%1_data_units",(_city_status select 0)]] call btc_fnc_db_save_array); + (_nb_cities_data_units select 1) pushBack ([_data_units,"cities",format ["city_%1_data_units",(_city_status select 0)]] call btc_fnc_db_save_array); _city_status pushBack (_x getVariable ["has_ho",false]); _city_status pushBack (_x getVariable ["ho_units_spawned",false]); @@ -49,14 +50,14 @@ _nb_cities_data_units = [[],[]]; _cities_status pushBack _city_status; //diag_log format ["SAVE: %1 - %2",(_x getVariable "id"),(_x getVariable "occupied")]; } foreach btc_city_all; -["write", ["environement", "nb_cities_data_units", _nb_cities_data_units]] call OO_fnc_inidbi; +["write", ["cities", "nb_cities_data_units", _nb_cities_data_units]] call OO_fnc_inidbi; -cities_status = +_cities_status; -_nb_cities_status = [[_cities_status,"environement","cities_status"] call btc_fnc_db_save_array]; -["write", ["environement", "nb_cities_status", _nb_cities_status]] call OO_fnc_inidbi; +_nb_cities_status = [[_cities_status,"cities","cities_status"] call btc_fnc_db_save_array]; +["write", ["cities", "nb_cities_status", _nb_cities_status]] call OO_fnc_inidbi; //HIDEOUT +hint "saving HIDEOUT"; _array_ho = []; { _data = []; @@ -76,11 +77,12 @@ _array_ho = []; diag_log format ["HO %1 DATA %2",_x,_data]; _array_ho pushBack _data; } foreach btc_hideouts; -["write", ["environement", "ho", _array_ho]] call OO_fnc_inidbi; +["write", ["cities", "ho", _array_ho]] call OO_fnc_inidbi; -["write", ["environement", "ho_sel", (btc_hq getVariable ["info_hideout",objNull]) getVariable ["id",0] ]] call OO_fnc_inidbi; +["write", ["cities", "ho_sel", (btc_hq getVariable ["info_hideout",objNull]) getVariable ["id",0] ]] call OO_fnc_inidbi; //CACHE +hint "saving CACHE"; _array_cache = []; _array_cache pushback (getposATL btc_cache_obj); _array_cache pushback (btc_cache_n); @@ -93,10 +95,10 @@ _cache_markers = []; _cache_markers pushBack _data; } foreach btc_cache_markers; _array_cache pushback (_cache_markers); -["write", ["environement", "cache", _array_cache]] call OO_fnc_inidbi; +["write", ["cities", "cache", _array_cache]] call OO_fnc_inidbi; //rep status -["write", ["environement", "rep", btc_global_reputation]] call OO_fnc_inidbi; +["write", ["cities", "rep", btc_global_reputation]] call OO_fnc_inidbi; //FOBS _fobs = []; diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save_array.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save_array.sqf index df88b9e6e..8b339a586 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save_array.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save_array.sqf @@ -1,37 +1,37 @@ -private ["_lereste","_section","_key","_nb_cities_array","_step","_temp_save"]; +private ["_array_to_save","_section","_key","_number_of_array","_step","_temp_save","_size_temp_array"]; -_lereste = _this select 0; +_array_to_save = _this select 0; _section = _this select 1; _key = _this select 2; -_step = count _lereste; -_nb_cities_array = 0; +_step = count _array_to_save; +_number_of_array = 0; -while {!(_lereste isEqualTo [])} do -{ +while {!(_array_to_save isEqualTo [])} do { if (_step isEqualTo 0) exitWith { hint "Error Array too big"; _nb_cities_array ="Error Array too big"; }; - _temp_save = +_lereste; + _temp_save = +_array_to_save; _temp_save resize _step; - switch (["write", [_section, format ["%1_%2",_key,_nb_cities_array], _temp_save]] call OO_fnc_inidbi) do { + _size_temp_array = count (str(_temp_save)); + switch (_size_temp_array < 8100) do { case true: { - _lereste deleteRange [0,_step]; - if (count _lereste < _step) then {_step = count _lereste}; - _nb_cities_array = _nb_cities_array + 1; - }; - case nil: - { - _step = floor(_step/2); + ["write", [_section, format ["%1_%2",_key,_number_of_array], _temp_save]] call OO_fnc_inidbi; + _array_to_save deleteRange [0,_step]; + if (count _array_to_save < _step) then {_step = count _array_to_save}; + _number_of_array = _number_of_array + 1; }; default { - _step = floor(_step/2); + player sideChat str(_size_temp_array/8100); + player sideChat str(_step); + _step = floor(_step/ (_size_temp_array/8100)); + player sideChat str(_step); }; }; }; -_nb_cities_array \ No newline at end of file +_number_of_array \ No newline at end of file From 5c1a2e747e252fb733b83f50c917a2c972e862e9 Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Mon, 8 Feb 2016 20:33:12 +0100 Subject: [PATCH 22/24] FIX: private entry --- =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf | 2 +- =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf index 32736d0d1..795682bfa 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf @@ -1,6 +1,6 @@ if !(isClass(configFile >> "cfgPatches" >> "inidbi2")) exitWith {[[11, "loaded"],"btc_fnc_show_hint"] spawn BIS_fnc_MP;}; -private ["_cities_status","_fobs","_name","_city_status","_array_ho","_data","_ho_markers","_array_cache","_fobs","_array_veh","_cargo","_array_obj","_marker","_ho","_data_units"]; +private ["_cities_status","_name","_array_ho","_array_cache","_fobs","_marker","_ho","_data_units"]; setDate (["read", ["mission_Param", "date", date]] call OO_fnc_inidbi); diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf index 7db0bff87..b4507124b 100644 --- a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf +++ b/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf @@ -2,7 +2,7 @@ if !(isClass(configFile >> "cfgPatches" >> "inidbi2")) exitWith {[[11, "saved"], "delete" call OO_fnc_inidbi; -private ["_cities_status","_fobs","_name","_city_status","_array_ho","_data","_ho_markers","_array_cache","_fobs","_array_veh","_cargo","_array_obj","_marker","_lereste","_nb_cities_array","_step","_temp_save","_data_units"]; +private ["_cities_status","_fobs","_city_status","_array_ho","_data","_ho_markers","_array_cache","_array_veh","_cargo","_array_obj","_marker","_data_units"]; hint "saving..."; [[8],"btc_fnc_show_hint"] spawn BIS_fnc_MP; From 53611619b95fcd076ea63880a565405423970cdb Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sun, 21 Feb 2016 11:13:53 +0100 Subject: [PATCH 23/24] Add: 30 slots migration --- .../core/def/dlg_def.hpp | 0 .../core/def/functions.hpp | 0 .../core/def/mission.sqf | 0 .../core/def/param.hpp | 0 .../core/def/rsc_titles.hpp | 0 .../core/doc.sqf | 0 .../core/fnc/cache/find_pos.sqf | 0 .../core/fnc/cache/hd_cache.sqf | 0 .../core/fnc/cache/init.sqf | 0 .../core/fnc/cache/spawn.sqf | 0 .../core/fnc/city/activate.sqf | 0 .../core/fnc/city/create.sqf | 0 .../core/fnc/city/de_activate.sqf | 0 .../core/fnc/city/init.sqf | 0 .../core/fnc/city/set_clear.sqf | 0 .../core/fnc/civ/addWP.sqf | 0 .../core/fnc/civ/add_weapons.sqf | 0 .../core/fnc/civ/create.sqf | 0 .../core/fnc/civ/get_weapons.sqf | 0 .../core/fnc/civ/populate.sqf | 0 .../core/fnc/civ/traffic_add_WP.sqf | 0 .../core/fnc/civ/traffic_create.sqf | 0 .../core/fnc/civ/traffic_eh.sqf | 0 .../core/fnc/civ/traffic_eh_remove.sqf | 0 .../core/fnc/civ/unit_create.sqf | 0 .../core/fnc/common/check_los.sqf | 0 .../core/fnc/common/clean_up.sqf | 0 .../core/fnc/common/create_composition.sqf | 0 .../core/fnc/common/end_mission.sqf | 0 .../core/fnc/common/final_phase.sqf | 0 .../core/fnc/common/getHouses.sqf | 0 .../core/fnc/common/get_cardinal.sqf | 0 .../core/fnc/common/house_addWP.sqf | 0 .../core/fnc/common/is_engineer.sqf | 0 .../core/fnc/common/marker_debug.sqf | 0 .../core/fnc/common/randomize_pos.sqf | 0 .../core/fnc/common/road_direction.sqf | 0 .../core/fnc/common/set_damage.sqf | 0 .../core/fnc/common/set_owner.sqf | 0 .../core/fnc/common/show_hint.sqf | 0 .../core/fnc/common/task_patrol.sqf | 0 .../core/fnc/common/veh_track_marker.sqf | 0 .../core/fnc/compile.sqf | 0 .../core/fnc/data/add_group.sqf | 0 .../core/fnc/data/get_group.sqf | 0 .../core/fnc/data/spawn_group.sqf | 0 .../core/fnc/db/add_veh.sqf | 0 .../core/fnc/db/delete.sqf | 0 .../core/fnc/db/load.sqf | 0 .../core/fnc/db/request_delete.sqf | 0 .../core/fnc/db/request_save.sqf | 0 .../core/fnc/db/save.sqf | 0 .../core/fnc/db/save_array.sqf | 0 .../core/fnc/deaf/earplugs.sqf | 0 .../core/fnc/deaf/fired_near.sqf | 0 .../core/fnc/deaf/loop.sqf | 0 .../core/fnc/eh/CuratorObjectPlaced.sqf | 0 .../core/fnc/eh/extended_InitPost_EH.hpp | 0 .../core/fnc/eh/extended_PreInit_EH.hpp | 0 .../core/fnc/eh/helo_respawn.sqf | 0 .../core/fnc/eh/player_respawn.sqf | 0 .../core/fnc/eh/unit_init.sqf | 0 .../core/fnc/eh/veh_add_respawn.sqf | 0 .../core/fnc/eh/veh_init.sqf | 0 .../core/fnc/eh/veh_killed.sqf | 0 .../core/fnc/eh/veh_respawn.sqf | 0 .../core/fnc/fob/create.sqf | 0 .../core/fnc/fob/create_s.sqf | 0 .../core/fnc/fob/dismantle.sqf | 0 .../core/fnc/fob/dlg.hpp | 0 .../core/fnc/fob/lb_change.sqf | 0 .../core/fnc/fob/redeploy.sqf | 0 .../core/fnc/gear/add_to_weapon.sqf | 0 .../core/fnc/gear/change_cargo.sqf | 0 .../core/fnc/gear/change_container.sqf | 0 .../core/fnc/gear/check_acc.sqf | 0 .../core/fnc/gear/combo_fill.sqf | 0 .../core/fnc/gear/dlg.hpp | 0 .../core/fnc/gear/get_text.sqf | 0 .../core/fnc/gear/handle.sqf | 0 .../core/fnc/gear/lb_fill.sqf | 0 .../core/fnc/gear/open_dlg.sqf | 0 .../core/fnc/gear/remove_w_item.sqf | 0 .../core/fnc/gear/show_button.sqf | 0 .../core/fnc/ied/allahu_akbar.sqf | 0 .../core/fnc/ied/boom.sqf | 0 .../core/fnc/ied/check.sqf | 0 .../core/fnc/ied/check_for.sqf | 0 .../core/fnc/ied/create.sqf | 0 .../core/fnc/ied/disarm.sqf | 0 .../core/fnc/ied/fired_near.sqf | 0 .../core/fnc/ied/init_area.sqf | 0 .../core/fnc/ied/suicider_active.sqf | 0 .../core/fnc/ied/suicider_create.sqf | 0 .../core/fnc/info/ask.sqf | 0 .../core/fnc/info/ask_reputation.sqf | 0 .../core/fnc/info/cache.sqf | 0 .../core/fnc/info/give_intel.sqf | 0 .../core/fnc/info/has_intel.sqf | 0 .../core/fnc/info/hideout.sqf | 0 .../core/fnc/info/hideout_asked.sqf | 0 .../core/fnc/info/search_for_intel.sqf | 0 .../core/fnc/info/troops.sqf | 0 .../core/fnc/int/action_result.sqf | 0 .../core/fnc/int/add_actions.sqf | 0 .../core/fnc/int/ans_var.sqf | 0 .../core/fnc/int/ask_var.sqf | 0 .../core/fnc/int/change_var.sqf | 0 .../core/fnc/int/key_pressed.sqf | 0 .../core/fnc/int/open_dlg.sqf | 0 .../core/fnc/int/orders.sqf | 0 .../core/fnc/int/orders_behaviour.sqf | 0 .../core/fnc/int/orders_give.sqf | 0 .../core/fnc/int/progress_bar.hpp | 0 .../core/fnc/log/can_tow.sqf | 0 .../core/fnc/log/check_cargo.sqf | 0 .../core/fnc/log/check_cc.sqf | 0 .../core/fnc/log/create.sqf | 0 .../core/fnc/log/create_apply.sqf | 0 .../core/fnc/log/create_change_target.sqf | 0 .../core/fnc/log/create_load.sqf | 0 .../core/fnc/log/create_s.sqf | 0 .../core/fnc/log/dlg.hpp | 0 .../core/fnc/log/get_cc.sqf | 0 .../core/fnc/log/get_rc.sqf | 0 .../core/fnc/log/hook.sqf | 0 .../core/fnc/log/lift_check.sqf | 0 .../core/fnc/log/lift_deploy_ropes.sqf | 0 .../core/fnc/log/lift_destroy_ropes.sqf | 0 .../core/fnc/log/lift_hook.sqf | 0 .../core/fnc/log/lift_hook_fake.sqf | 0 .../core/fnc/log/lift_hud.sqf | 0 .../core/fnc/log/lift_unhook.sqf | 0 .../core/fnc/log/load.sqf | 0 .../core/fnc/log/obj_fall.sqf | 0 .../core/fnc/log/paradrop.sqf | 0 .../core/fnc/log/place.sqf | 0 .../core/fnc/log/place_create_camera.sqf | 0 .../core/fnc/log/place_destroy_camera.sqf | 0 .../core/fnc/log/place_key_down.sqf | 0 .../core/fnc/log/repair_wreck.sqf | 0 .../core/fnc/log/rsc.hpp | 0 .../core/fnc/log/select.sqf | 0 .../core/fnc/log/server_load.sqf | 0 .../core/fnc/log/server_repair_wreck.sqf | 0 .../core/fnc/log/server_unload.sqf | 0 .../core/fnc/log/set_mass.sqf | 0 .../core/fnc/log/tow.sqf | 0 .../core/fnc/log/unhook.sqf | 0 .../core/fnc/log/unload.sqf | 0 .../core/fnc/mil/addWP.sqf | 0 .../core/fnc/mil/check_cap.sqf | 0 .../core/fnc/mil/check_rinf.sqf | 0 .../core/fnc/mil/create_group.sqf | 0 .../core/fnc/mil/create_hideout.sqf | 0 .../core/fnc/mil/create_static.sqf | 0 .../core/fnc/mil/hd_hideout.sqf | 0 .../core/fnc/mil/patrol_addWP.sqf | 0 .../core/fnc/mil/patrol_create.sqf | 0 .../core/fnc/mil/send.sqf | 0 .../core/fnc/mil/set_skill.sqf | 0 .../core/fnc/mil/unit_create.sqf | 0 .../core/fnc/mil/unit_killed.sqf | 0 .../core/fnc/rep/add_eh.sqf | 0 .../core/fnc/rep/call_militia.sqf | 0 .../core/fnc/rep/change.sqf | 0 .../core/fnc/rep/eh_effects.sqf | 0 .../core/fnc/rep/hd.sqf | 0 .../core/fnc/rep/hh.sqf | 0 .../core/fnc/rep/killed.sqf | 0 .../core/fnc/rep/remove_eh.sqf | 0 .../core/fnc/rev/ans_var.sqf | 0 .../core/fnc/rev/apply_treat.sqf | 0 .../core/fnc/rev/ask_var.sqf | 0 .../core/fnc/rev/carry.sqf | 0 .../core/fnc/rev/dlg.hpp | 0 .../core/fnc/rev/drag.sqf | 0 .../core/fnc/rev/effect_pain.sqf | 0 .../core/fnc/rev/effects.sqf | 0 .../core/fnc/rev/examine.sqf | 0 .../core/fnc/rev/examine_result.sqf | 0 .../core/fnc/rev/get_gear.sqf | 0 .../core/fnc/rev/hd.sqf | 0 .../core/fnc/rev/init.sqf | 0 .../core/fnc/rev/init_var.sqf | 0 .../core/fnc/rev/is_medic.sqf | 0 .../core/fnc/rev/load.sqf | 0 .../core/fnc/rev/rsc.hpp | 0 .../core/fnc/rev/set_gear.sqf | 0 .../core/fnc/rev/stateHandler.sqf | 0 .../core/fnc/rev/treat.sqf | 0 .../core/fnc/rev/unc.sqf | 0 .../core/fnc/rev/unit_init.sqf | 0 .../core/fnc/rev/unload.sqf | 0 .../core/fnc/side/abort.sqf | 0 .../core/fnc/side/checkpoint.sqf | 0 .../core/fnc/side/civtreatment.sqf | 0 .../core/fnc/side/create.sqf | 0 .../core/fnc/side/get_city.sqf | 0 .../core/fnc/side/mines.sqf | 0 .../core/fnc/side/request.sqf | 0 .../core/fnc/side/supply.sqf | 0 .../core/fnc/side/tower.sqf | 0 .../core/fnc/side/vehicle.sqf | 0 .../core/fnc/task/create.sqf | 0 .../core/fnc/task/fail.sqf | 0 .../core/fnc/task/set_done.sqf | 0 .../core/img/btc.paa | Bin .../core/img/hideout.jpg | Bin .../core/img/rsc/i_bleeding_1.paa | Bin .../core/img/rsc/i_bleeding_2.paa | Bin .../core/img/rsc/i_bleeding_3.paa | Bin .../core/img/rsc/i_bloss_1.paa | Bin .../core/img/rsc/i_bloss_2.paa | Bin .../core/img/rsc/i_bloss_3.paa | Bin .../core/img/rsc/i_unc.paa | Bin .../core/img/rsc/lift/arrow_down_ca.paa | Bin .../core/img/rsc/lift/arrow_up_ca.paa | Bin .../core/img/rsc/lift/igui_radar_air_ca.paa | Bin .../core/img/rsc/lift/obj.paa | Bin .../core/img/rsc/lift/objective_complete_ca.paa | Bin .../core/img/rsc/lift/objective_incomplete_ca.paa | Bin .../core/init_common.sqf | 0 .../core/init_player.sqf | 0 .../core/init_server.sqf | 0 .../core/sounds/allahu_akbar.ogg | Bin .../core/sounds/sounds.hpp | 0 .../define_mod.sqf | 0 .../description.ext | 0 .../init.sqf | 0 .../mission.sqm | 0 231 files changed, 0 insertions(+), 0 deletions(-) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/def/dlg_def.hpp (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/def/functions.hpp (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/def/mission.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/def/param.hpp (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/def/rsc_titles.hpp (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/doc.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/cache/find_pos.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/cache/hd_cache.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/cache/init.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/cache/spawn.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/city/activate.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/city/create.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/city/de_activate.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/city/init.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/city/set_clear.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/civ/addWP.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/civ/add_weapons.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/civ/create.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/civ/get_weapons.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/civ/populate.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/civ/traffic_add_WP.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/civ/traffic_create.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/civ/traffic_eh.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/civ/traffic_eh_remove.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/civ/unit_create.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/common/check_los.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/common/clean_up.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/common/create_composition.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/common/end_mission.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/common/final_phase.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/common/getHouses.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/common/get_cardinal.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/common/house_addWP.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/common/is_engineer.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/common/marker_debug.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/common/randomize_pos.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/common/road_direction.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/common/set_damage.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/common/set_owner.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/common/show_hint.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/common/task_patrol.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/common/veh_track_marker.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/compile.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/data/add_group.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/data/get_group.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/data/spawn_group.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/db/add_veh.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/db/delete.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/db/load.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/db/request_delete.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/db/request_save.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/db/save.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/db/save_array.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/deaf/earplugs.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/deaf/fired_near.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/deaf/loop.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/eh/CuratorObjectPlaced.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/eh/extended_InitPost_EH.hpp (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/eh/extended_PreInit_EH.hpp (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/eh/helo_respawn.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/eh/player_respawn.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/eh/unit_init.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/eh/veh_add_respawn.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/eh/veh_init.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/eh/veh_killed.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/eh/veh_respawn.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/fob/create.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/fob/create_s.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/fob/dismantle.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/fob/dlg.hpp (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/fob/lb_change.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/fob/redeploy.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/gear/add_to_weapon.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/gear/change_cargo.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/gear/change_container.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/gear/check_acc.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/gear/combo_fill.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/gear/dlg.hpp (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/gear/get_text.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/gear/handle.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/gear/lb_fill.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/gear/open_dlg.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/gear/remove_w_item.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/gear/show_button.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/ied/allahu_akbar.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/ied/boom.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/ied/check.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/ied/check_for.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/ied/create.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/ied/disarm.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/ied/fired_near.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/ied/init_area.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/ied/suicider_active.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/ied/suicider_create.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/info/ask.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/info/ask_reputation.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/info/cache.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/info/give_intel.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/info/has_intel.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/info/hideout.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/info/hideout_asked.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/info/search_for_intel.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/info/troops.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/int/action_result.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/int/add_actions.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/int/ans_var.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/int/ask_var.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/int/change_var.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/int/key_pressed.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/int/open_dlg.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/int/orders.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/int/orders_behaviour.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/int/orders_give.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/int/progress_bar.hpp (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/can_tow.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/check_cargo.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/check_cc.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/create.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/create_apply.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/create_change_target.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/create_load.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/create_s.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/dlg.hpp (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/get_cc.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/get_rc.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/hook.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/lift_check.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/lift_deploy_ropes.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/lift_destroy_ropes.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/lift_hook.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/lift_hook_fake.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/lift_hud.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/lift_unhook.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/load.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/obj_fall.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/paradrop.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/place.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/place_create_camera.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/place_destroy_camera.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/place_key_down.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/repair_wreck.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/rsc.hpp (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/select.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/server_load.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/server_repair_wreck.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/server_unload.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/set_mass.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/tow.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/unhook.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/log/unload.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/mil/addWP.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/mil/check_cap.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/mil/check_rinf.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/mil/create_group.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/mil/create_hideout.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/mil/create_static.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/mil/hd_hideout.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/mil/patrol_addWP.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/mil/patrol_create.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/mil/send.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/mil/set_skill.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/mil/unit_create.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/mil/unit_killed.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rep/add_eh.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rep/call_militia.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rep/change.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rep/eh_effects.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rep/hd.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rep/hh.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rep/killed.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rep/remove_eh.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rev/ans_var.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rev/apply_treat.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rev/ask_var.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rev/carry.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rev/dlg.hpp (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rev/drag.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rev/effect_pain.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rev/effects.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rev/examine.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rev/examine_result.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rev/get_gear.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rev/hd.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rev/init.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rev/init_var.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rev/is_medic.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rev/load.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rev/rsc.hpp (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rev/set_gear.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rev/stateHandler.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rev/treat.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rev/unc.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rev/unit_init.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/rev/unload.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/side/abort.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/side/checkpoint.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/side/civtreatment.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/side/create.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/side/get_city.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/side/mines.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/side/request.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/side/supply.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/side/tower.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/side/vehicle.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/task/create.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/task/fail.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/fnc/task/set_done.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/img/btc.paa (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/img/hideout.jpg (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/img/rsc/i_bleeding_1.paa (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/img/rsc/i_bleeding_2.paa (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/img/rsc/i_bleeding_3.paa (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/img/rsc/i_bloss_1.paa (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/img/rsc/i_bloss_2.paa (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/img/rsc/i_bloss_3.paa (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/img/rsc/i_unc.paa (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/img/rsc/lift/arrow_down_ca.paa (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/img/rsc/lift/arrow_up_ca.paa (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/img/rsc/lift/igui_radar_air_ca.paa (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/img/rsc/lift/obj.paa (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/img/rsc/lift/objective_complete_ca.paa (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/img/rsc/lift/objective_incomplete_ca.paa (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/init_common.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/init_player.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/init_server.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/sounds/allahu_akbar.ogg (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/core/sounds/sounds.hpp (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/define_mod.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/description.ext (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/init.sqf (100%) rename {=BTC=co@22_Hearts_and_Minds.Altis => =BTC=co@30_Hearts_and_Minds.Altis}/mission.sqm (100%) diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/def/dlg_def.hpp b/=BTC=co@30_Hearts_and_Minds.Altis/core/def/dlg_def.hpp similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/def/dlg_def.hpp rename to =BTC=co@30_Hearts_and_Minds.Altis/core/def/dlg_def.hpp diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/def/functions.hpp b/=BTC=co@30_Hearts_and_Minds.Altis/core/def/functions.hpp similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/def/functions.hpp rename to =BTC=co@30_Hearts_and_Minds.Altis/core/def/functions.hpp diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/def/mission.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/def/mission.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/def/mission.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/def/mission.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/def/param.hpp b/=BTC=co@30_Hearts_and_Minds.Altis/core/def/param.hpp similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/def/param.hpp rename to =BTC=co@30_Hearts_and_Minds.Altis/core/def/param.hpp diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/def/rsc_titles.hpp b/=BTC=co@30_Hearts_and_Minds.Altis/core/def/rsc_titles.hpp similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/def/rsc_titles.hpp rename to =BTC=co@30_Hearts_and_Minds.Altis/core/def/rsc_titles.hpp diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/doc.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/doc.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/doc.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/doc.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/cache/find_pos.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/cache/find_pos.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/cache/find_pos.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/cache/find_pos.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/cache/hd_cache.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/cache/hd_cache.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/cache/hd_cache.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/cache/hd_cache.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/cache/init.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/cache/init.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/cache/init.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/cache/init.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/cache/spawn.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/cache/spawn.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/cache/spawn.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/cache/spawn.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/city/activate.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/city/activate.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/city/activate.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/city/activate.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/city/create.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/city/create.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/city/create.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/city/create.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/city/de_activate.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/city/de_activate.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/city/de_activate.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/city/de_activate.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/city/init.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/city/init.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/city/init.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/city/init.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/city/set_clear.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/city/set_clear.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/city/set_clear.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/city/set_clear.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/civ/addWP.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/civ/addWP.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/civ/addWP.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/civ/addWP.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/civ/add_weapons.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/civ/add_weapons.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/civ/add_weapons.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/civ/add_weapons.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/civ/create.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/civ/create.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/civ/create.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/civ/create.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/civ/get_weapons.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/civ/get_weapons.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/civ/get_weapons.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/civ/get_weapons.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/civ/populate.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/civ/populate.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/civ/populate.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/civ/populate.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/civ/traffic_add_WP.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/civ/traffic_add_WP.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/civ/traffic_add_WP.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/civ/traffic_add_WP.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/civ/traffic_create.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/civ/traffic_create.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/civ/traffic_create.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/civ/traffic_create.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/civ/traffic_eh.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/civ/traffic_eh.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/civ/traffic_eh.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/civ/traffic_eh.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/civ/traffic_eh_remove.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/civ/traffic_eh_remove.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/civ/traffic_eh_remove.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/civ/traffic_eh_remove.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/civ/unit_create.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/civ/unit_create.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/civ/unit_create.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/civ/unit_create.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/check_los.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/check_los.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/check_los.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/check_los.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/clean_up.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/clean_up.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/clean_up.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/clean_up.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/create_composition.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/create_composition.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/create_composition.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/create_composition.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/end_mission.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/end_mission.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/end_mission.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/end_mission.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/final_phase.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/final_phase.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/final_phase.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/final_phase.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/getHouses.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/getHouses.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/getHouses.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/getHouses.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/get_cardinal.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/get_cardinal.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/get_cardinal.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/get_cardinal.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/house_addWP.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/house_addWP.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/house_addWP.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/house_addWP.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/is_engineer.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/is_engineer.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/is_engineer.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/is_engineer.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/marker_debug.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/marker_debug.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/marker_debug.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/marker_debug.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/randomize_pos.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/randomize_pos.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/randomize_pos.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/randomize_pos.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/road_direction.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/road_direction.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/road_direction.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/road_direction.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/set_damage.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/set_damage.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/set_damage.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/set_damage.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/set_owner.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/set_owner.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/set_owner.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/set_owner.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/show_hint.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/show_hint.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/show_hint.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/show_hint.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/task_patrol.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/task_patrol.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/task_patrol.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/task_patrol.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/veh_track_marker.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/veh_track_marker.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/common/veh_track_marker.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/common/veh_track_marker.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/compile.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/compile.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/compile.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/data/add_group.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/data/add_group.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/data/add_group.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/data/add_group.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/data/get_group.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/data/get_group.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/data/get_group.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/data/get_group.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/data/spawn_group.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/data/spawn_group.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/data/spawn_group.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/data/spawn_group.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/add_veh.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/db/add_veh.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/add_veh.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/db/add_veh.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/delete.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/db/delete.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/delete.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/db/delete.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/db/load.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/load.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/db/load.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/request_delete.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/db/request_delete.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/request_delete.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/db/request_delete.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/request_save.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/db/request_save.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/request_save.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/db/request_save.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/db/save.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/db/save.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save_array.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/db/save_array.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/db/save_array.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/db/save_array.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/deaf/earplugs.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/deaf/earplugs.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/deaf/earplugs.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/deaf/earplugs.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/deaf/fired_near.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/deaf/fired_near.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/deaf/fired_near.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/deaf/fired_near.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/deaf/loop.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/deaf/loop.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/deaf/loop.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/deaf/loop.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/eh/CuratorObjectPlaced.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/eh/CuratorObjectPlaced.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/eh/CuratorObjectPlaced.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/eh/CuratorObjectPlaced.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/eh/extended_InitPost_EH.hpp b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/eh/extended_InitPost_EH.hpp similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/eh/extended_InitPost_EH.hpp rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/eh/extended_InitPost_EH.hpp diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/eh/extended_PreInit_EH.hpp b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/eh/extended_PreInit_EH.hpp similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/eh/extended_PreInit_EH.hpp rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/eh/extended_PreInit_EH.hpp diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/eh/helo_respawn.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/eh/helo_respawn.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/eh/helo_respawn.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/eh/helo_respawn.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/eh/player_respawn.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/eh/player_respawn.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/eh/player_respawn.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/eh/player_respawn.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/eh/unit_init.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/eh/unit_init.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/eh/unit_init.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/eh/unit_init.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/eh/veh_add_respawn.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/eh/veh_add_respawn.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/eh/veh_add_respawn.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/eh/veh_add_respawn.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/eh/veh_init.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/eh/veh_init.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/eh/veh_init.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/eh/veh_init.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/eh/veh_killed.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/eh/veh_killed.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/eh/veh_killed.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/eh/veh_killed.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/eh/veh_respawn.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/eh/veh_respawn.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/eh/veh_respawn.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/eh/veh_respawn.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/fob/create.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/fob/create.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/fob/create.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/fob/create.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/fob/create_s.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/fob/create_s.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/fob/create_s.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/fob/create_s.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/fob/dismantle.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/fob/dismantle.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/fob/dismantle.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/fob/dismantle.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/fob/dlg.hpp b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/fob/dlg.hpp similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/fob/dlg.hpp rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/fob/dlg.hpp diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/fob/lb_change.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/fob/lb_change.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/fob/lb_change.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/fob/lb_change.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/fob/redeploy.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/fob/redeploy.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/fob/redeploy.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/fob/redeploy.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/gear/add_to_weapon.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/gear/add_to_weapon.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/gear/add_to_weapon.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/gear/add_to_weapon.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/gear/change_cargo.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/gear/change_cargo.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/gear/change_cargo.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/gear/change_cargo.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/gear/change_container.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/gear/change_container.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/gear/change_container.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/gear/change_container.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/gear/check_acc.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/gear/check_acc.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/gear/check_acc.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/gear/check_acc.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/gear/combo_fill.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/gear/combo_fill.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/gear/combo_fill.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/gear/combo_fill.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/gear/dlg.hpp b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/gear/dlg.hpp similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/gear/dlg.hpp rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/gear/dlg.hpp diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/gear/get_text.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/gear/get_text.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/gear/get_text.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/gear/get_text.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/gear/handle.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/gear/handle.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/gear/handle.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/gear/handle.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/gear/lb_fill.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/gear/lb_fill.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/gear/lb_fill.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/gear/lb_fill.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/gear/open_dlg.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/gear/open_dlg.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/gear/open_dlg.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/gear/open_dlg.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/gear/remove_w_item.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/gear/remove_w_item.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/gear/remove_w_item.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/gear/remove_w_item.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/gear/show_button.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/gear/show_button.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/gear/show_button.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/gear/show_button.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/ied/allahu_akbar.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/allahu_akbar.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/ied/allahu_akbar.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/allahu_akbar.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/ied/boom.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/boom.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/ied/boom.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/boom.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/ied/check.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/check.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/ied/check.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/check.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/ied/check_for.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/check_for.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/ied/check_for.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/check_for.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/ied/create.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/create.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/ied/create.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/create.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/ied/disarm.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/disarm.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/ied/disarm.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/disarm.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/ied/fired_near.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/fired_near.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/ied/fired_near.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/fired_near.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/ied/init_area.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/init_area.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/ied/init_area.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/init_area.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/ied/suicider_active.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/suicider_active.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/ied/suicider_active.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/suicider_active.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/ied/suicider_create.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/suicider_create.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/ied/suicider_create.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/ied/suicider_create.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/info/ask.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/info/ask.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/info/ask.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/info/ask.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/info/ask_reputation.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/info/ask_reputation.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/info/ask_reputation.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/info/ask_reputation.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/info/cache.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/info/cache.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/info/cache.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/info/cache.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/info/give_intel.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/info/give_intel.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/info/give_intel.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/info/give_intel.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/info/has_intel.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/info/has_intel.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/info/has_intel.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/info/has_intel.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/info/hideout.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/info/hideout.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/info/hideout.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/info/hideout.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/info/hideout_asked.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/info/hideout_asked.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/info/hideout_asked.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/info/hideout_asked.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/info/search_for_intel.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/info/search_for_intel.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/info/search_for_intel.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/info/search_for_intel.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/info/troops.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/info/troops.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/info/troops.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/info/troops.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/int/action_result.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/int/action_result.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/int/action_result.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/int/action_result.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/int/add_actions.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/int/add_actions.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/int/add_actions.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/int/add_actions.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/int/ans_var.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/int/ans_var.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/int/ans_var.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/int/ans_var.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/int/ask_var.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/int/ask_var.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/int/ask_var.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/int/ask_var.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/int/change_var.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/int/change_var.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/int/change_var.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/int/change_var.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/int/key_pressed.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/int/key_pressed.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/int/key_pressed.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/int/key_pressed.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/int/open_dlg.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/int/open_dlg.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/int/open_dlg.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/int/open_dlg.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/int/orders.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/int/orders.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/int/orders.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/int/orders.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/int/orders_behaviour.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/int/orders_behaviour.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/int/orders_behaviour.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/int/orders_behaviour.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/int/orders_give.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/int/orders_give.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/int/orders_give.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/int/orders_give.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/int/progress_bar.hpp b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/int/progress_bar.hpp similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/int/progress_bar.hpp rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/int/progress_bar.hpp diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/can_tow.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/can_tow.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/can_tow.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/can_tow.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/check_cargo.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/check_cargo.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/check_cargo.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/check_cargo.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/check_cc.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/check_cc.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/check_cc.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/check_cc.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/create.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/create.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/create.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/create.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/create_apply.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/create_apply.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/create_apply.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/create_apply.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/create_change_target.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/create_change_target.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/create_change_target.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/create_change_target.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/create_load.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/create_load.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/create_load.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/create_load.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/create_s.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/create_s.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/create_s.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/create_s.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/dlg.hpp b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/dlg.hpp similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/dlg.hpp rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/dlg.hpp diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/get_cc.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/get_cc.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/get_cc.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/get_cc.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/get_rc.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/get_rc.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/get_rc.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/get_rc.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/hook.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/hook.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/hook.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/hook.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/lift_check.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/lift_check.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/lift_check.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/lift_check.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/lift_deploy_ropes.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/lift_deploy_ropes.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/lift_deploy_ropes.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/lift_deploy_ropes.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/lift_destroy_ropes.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/lift_destroy_ropes.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/lift_destroy_ropes.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/lift_destroy_ropes.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/lift_hook.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/lift_hook.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/lift_hook.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/lift_hook.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/lift_hook_fake.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/lift_hook_fake.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/lift_hook_fake.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/lift_hook_fake.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/lift_hud.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/lift_hud.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/lift_hud.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/lift_hud.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/lift_unhook.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/lift_unhook.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/lift_unhook.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/lift_unhook.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/load.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/load.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/load.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/load.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/obj_fall.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/obj_fall.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/obj_fall.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/obj_fall.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/paradrop.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/paradrop.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/paradrop.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/paradrop.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/place.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/place.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/place.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/place.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/place_create_camera.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/place_create_camera.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/place_create_camera.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/place_create_camera.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/place_destroy_camera.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/place_destroy_camera.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/place_destroy_camera.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/place_destroy_camera.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/place_key_down.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/place_key_down.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/place_key_down.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/place_key_down.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/repair_wreck.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/repair_wreck.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/repair_wreck.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/repair_wreck.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/rsc.hpp b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/rsc.hpp similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/rsc.hpp rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/rsc.hpp diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/select.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/select.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/select.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/select.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/server_load.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/server_load.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/server_load.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/server_load.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/server_repair_wreck.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/server_repair_wreck.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/server_repair_wreck.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/server_repair_wreck.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/server_unload.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/server_unload.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/server_unload.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/server_unload.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/set_mass.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/set_mass.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/set_mass.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/set_mass.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/tow.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/tow.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/tow.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/tow.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/unhook.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/unhook.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/unhook.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/unhook.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/unload.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/unload.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/log/unload.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/log/unload.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/addWP.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/addWP.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/addWP.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/addWP.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/check_cap.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/check_cap.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/check_cap.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/check_cap.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/check_rinf.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/check_rinf.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/check_rinf.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/check_rinf.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/create_group.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/create_group.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/create_group.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/create_group.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/create_hideout.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/create_hideout.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/create_hideout.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/create_hideout.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/create_static.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/create_static.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/create_static.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/create_static.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/hd_hideout.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/hd_hideout.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/hd_hideout.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/hd_hideout.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/patrol_addWP.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/patrol_addWP.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/patrol_addWP.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/patrol_addWP.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/patrol_create.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/patrol_create.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/patrol_create.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/patrol_create.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/send.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/send.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/send.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/send.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/set_skill.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/set_skill.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/set_skill.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/set_skill.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/unit_create.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/unit_create.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/unit_create.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/unit_create.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/unit_killed.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/unit_killed.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/mil/unit_killed.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/mil/unit_killed.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rep/add_eh.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rep/add_eh.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rep/add_eh.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rep/add_eh.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rep/call_militia.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rep/call_militia.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rep/call_militia.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rep/call_militia.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rep/change.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rep/change.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rep/change.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rep/change.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rep/eh_effects.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rep/eh_effects.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rep/eh_effects.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rep/eh_effects.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rep/hd.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rep/hd.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rep/hd.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rep/hd.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rep/hh.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rep/hh.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rep/hh.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rep/hh.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rep/killed.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rep/killed.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rep/killed.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rep/killed.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rep/remove_eh.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rep/remove_eh.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rep/remove_eh.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rep/remove_eh.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/ans_var.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/ans_var.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/ans_var.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/ans_var.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/apply_treat.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/apply_treat.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/apply_treat.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/apply_treat.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/ask_var.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/ask_var.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/ask_var.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/ask_var.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/carry.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/carry.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/carry.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/carry.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/dlg.hpp b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/dlg.hpp similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/dlg.hpp rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/dlg.hpp diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/drag.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/drag.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/drag.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/drag.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/effect_pain.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/effect_pain.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/effect_pain.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/effect_pain.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/effects.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/effects.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/effects.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/effects.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/examine.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/examine.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/examine.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/examine.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/examine_result.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/examine_result.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/examine_result.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/examine_result.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/get_gear.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/get_gear.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/get_gear.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/get_gear.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/hd.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/hd.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/hd.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/hd.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/init.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/init.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/init.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/init.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/init_var.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/init_var.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/init_var.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/init_var.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/is_medic.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/is_medic.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/is_medic.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/is_medic.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/load.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/load.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/load.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/load.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/rsc.hpp b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/rsc.hpp similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/rsc.hpp rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/rsc.hpp diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/set_gear.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/set_gear.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/set_gear.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/set_gear.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/stateHandler.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/stateHandler.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/stateHandler.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/stateHandler.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/treat.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/treat.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/treat.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/treat.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/unc.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/unc.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/unc.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/unc.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/unit_init.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/unit_init.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/unit_init.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/unit_init.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/unload.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/unload.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/rev/unload.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/rev/unload.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/side/abort.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/side/abort.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/side/abort.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/side/abort.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/side/checkpoint.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/side/checkpoint.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/side/checkpoint.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/side/checkpoint.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/side/civtreatment.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/side/civtreatment.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/side/civtreatment.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/side/civtreatment.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/side/create.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/side/create.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/side/create.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/side/create.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/side/get_city.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/side/get_city.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/side/get_city.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/side/get_city.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/side/mines.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/side/mines.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/side/mines.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/side/mines.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/side/request.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/side/request.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/side/request.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/side/request.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/side/supply.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/side/supply.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/side/supply.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/side/supply.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/side/tower.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/side/tower.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/side/tower.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/side/tower.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/side/vehicle.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/side/vehicle.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/side/vehicle.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/side/vehicle.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/task/create.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/task/create.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/task/create.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/task/create.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/task/fail.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/task/fail.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/task/fail.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/task/fail.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/fnc/task/set_done.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/task/set_done.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/fnc/task/set_done.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/task/set_done.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/img/btc.paa b/=BTC=co@30_Hearts_and_Minds.Altis/core/img/btc.paa similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/img/btc.paa rename to =BTC=co@30_Hearts_and_Minds.Altis/core/img/btc.paa diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/img/hideout.jpg b/=BTC=co@30_Hearts_and_Minds.Altis/core/img/hideout.jpg similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/img/hideout.jpg rename to =BTC=co@30_Hearts_and_Minds.Altis/core/img/hideout.jpg diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/i_bleeding_1.paa b/=BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/i_bleeding_1.paa similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/i_bleeding_1.paa rename to =BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/i_bleeding_1.paa diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/i_bleeding_2.paa b/=BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/i_bleeding_2.paa similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/i_bleeding_2.paa rename to =BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/i_bleeding_2.paa diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/i_bleeding_3.paa b/=BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/i_bleeding_3.paa similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/i_bleeding_3.paa rename to =BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/i_bleeding_3.paa diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/i_bloss_1.paa b/=BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/i_bloss_1.paa similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/i_bloss_1.paa rename to =BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/i_bloss_1.paa diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/i_bloss_2.paa b/=BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/i_bloss_2.paa similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/i_bloss_2.paa rename to =BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/i_bloss_2.paa diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/i_bloss_3.paa b/=BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/i_bloss_3.paa similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/i_bloss_3.paa rename to =BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/i_bloss_3.paa diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/i_unc.paa b/=BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/i_unc.paa similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/i_unc.paa rename to =BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/i_unc.paa diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/lift/arrow_down_ca.paa b/=BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/lift/arrow_down_ca.paa similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/lift/arrow_down_ca.paa rename to =BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/lift/arrow_down_ca.paa diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/lift/arrow_up_ca.paa b/=BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/lift/arrow_up_ca.paa similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/lift/arrow_up_ca.paa rename to =BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/lift/arrow_up_ca.paa diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/lift/igui_radar_air_ca.paa b/=BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/lift/igui_radar_air_ca.paa similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/lift/igui_radar_air_ca.paa rename to =BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/lift/igui_radar_air_ca.paa diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/lift/obj.paa b/=BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/lift/obj.paa similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/lift/obj.paa rename to =BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/lift/obj.paa diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/lift/objective_complete_ca.paa b/=BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/lift/objective_complete_ca.paa similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/lift/objective_complete_ca.paa rename to =BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/lift/objective_complete_ca.paa diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/lift/objective_incomplete_ca.paa b/=BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/lift/objective_incomplete_ca.paa similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/img/rsc/lift/objective_incomplete_ca.paa rename to =BTC=co@30_Hearts_and_Minds.Altis/core/img/rsc/lift/objective_incomplete_ca.paa diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/init_common.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/init_common.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/init_common.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/init_common.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/init_player.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/init_player.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/init_player.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/init_player.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/init_server.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/init_server.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/init_server.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/core/init_server.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/sounds/allahu_akbar.ogg b/=BTC=co@30_Hearts_and_Minds.Altis/core/sounds/allahu_akbar.ogg similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/sounds/allahu_akbar.ogg rename to =BTC=co@30_Hearts_and_Minds.Altis/core/sounds/allahu_akbar.ogg diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/core/sounds/sounds.hpp b/=BTC=co@30_Hearts_and_Minds.Altis/core/sounds/sounds.hpp similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/core/sounds/sounds.hpp rename to =BTC=co@30_Hearts_and_Minds.Altis/core/sounds/sounds.hpp diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/define_mod.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/define_mod.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/define_mod.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/define_mod.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/description.ext b/=BTC=co@30_Hearts_and_Minds.Altis/description.ext similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/description.ext rename to =BTC=co@30_Hearts_and_Minds.Altis/description.ext diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/init.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/init.sqf similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/init.sqf rename to =BTC=co@30_Hearts_and_Minds.Altis/init.sqf diff --git a/=BTC=co@22_Hearts_and_Minds.Altis/mission.sqm b/=BTC=co@30_Hearts_and_Minds.Altis/mission.sqm similarity index 100% rename from =BTC=co@22_Hearts_and_Minds.Altis/mission.sqm rename to =BTC=co@30_Hearts_and_Minds.Altis/mission.sqm From af95d588749d8698a812b234acd6f23ed3c75e0e Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Thu, 5 May 2016 23:53:35 +0200 Subject: [PATCH 24/24] FIX: init_server and load old DB --- .../core/fnc/db/load_old.sqf | 335 ++++++++++++++++++ .../core/init_server.sqf | 28 +- 2 files changed, 356 insertions(+), 7 deletions(-) create mode 100644 =BTC=co@30_Hearts_and_Minds.Altis/core/fnc/db/load_old.sqf diff --git a/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/db/load_old.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/db/load_old.sqf new file mode 100644 index 000000000..a92218bfc --- /dev/null +++ b/=BTC=co@30_Hearts_and_Minds.Altis/core/fnc/db/load_old.sqf @@ -0,0 +1,335 @@ + +private ["_name","_cities_status","_array_ho","_ho","_array_cache","_fobs","_fobs_loaded","_vehs","_objs"]; + +_name = worldName; + +setDate (profileNamespace getVariable [format ["btc_hm_%1_date",_name],date]); + +//CITIES +_cities_status = profileNamespace getVariable [format ["btc_hm_%1_cities",_name],[]]; +//diag_log format ["_cities_status: %1",_cities_status]; + +{ +/* + _city_status pushBack (_x getVariable "id"); + + _city_status pushBack (_x getVariable "initialized"); + + _city_status pushBack (_x getVariable "spawn_more"); + _city_status pushBack (_x getVariable "occupied"); + + _city_status pushBack (_x getVariable "data_units"); + + _city_status pushBack (_x getVariable ["has_ho",false]); + _city_status pushBack (_x getVariable ["ho_units_spawned",false]); + _city_status pushBack (_x getVariable ["ieds",[]]); +*/ + + + private ["_id","_city"]; + _id = _x select 0; + _city = btc_city_all select _id; + + _city setVariable ["initialized",(_x select 1)]; + _city setVariable ["spawn_more",(_x select 2)]; + _city setVariable ["occupied",(_x select 3)]; + _city setVariable ["data_units",(_x select 4)]; + _city setVariable ["has_ho",(_x select 5)]; + _city setVariable ["ho_units_spawned",(_x select 6)]; + _city setVariable ["ieds",(_x select 7)]; + + if (btc_debug) then {//_debug + + if (_city getVariable ["occupied",false]) then {(_city getVariable ["marker",""]) setmarkercolor "colorRed";} else {(_city getVariable ["marker",""]) setmarkercolor "colorGreen";}; + (_city getVariable ["marker",""]) setmarkertext format ["loc_%3 %1 %2 - [%4]",(_city getVariable "name"),_city getVariable "type",_id,(_x select 3)]; + + diag_log format ["ID: %1",_id]; + diag_log format ["data_city: %1",_x]; + diag_log format ["LOAD: %1 - %2",_id,(_x select 3)]; + }; +} foreach _cities_status; + +//HIDEOUT +/* + _data pushBack (getPos _x); + _data pushBack (_x getVariable ["id",0]); + _data pushBack (_x getVariable ["rinf_time",0]); + _data pushBack (_x getVariable ["cap_time",0]); + _data pushBack (_x getVariable ["assigned_to",objNull]); + + _cache_markers = []; + { + _data = []; + _data pushback (getMarkerPos _x); + _data pushback (markerText _x); + } foreach (_x getVariable ["markers",[]]); + _data pushback (_cache_markers); +*/ +_array_ho = profileNamespace getVariable [format ["btc_hm_%1_ho",_name],[]]; + +{ + private ["_pos","_hideout","_markers"]; + + _pos = (_x select 0); + + [_pos,(random 360),btc_composition_hideout] call btc_fnc_create_composition; + + _hideout = nearestObject [_pos, "C_supplyCrate_F"]; + clearWeaponCargoGlobal _hideout;clearItemCargoGlobal _hideout;clearMagazineCargoGlobal _hideout; + _hideout setVariable ["id",(_x select 1)]; + _hideout setVariable ["rinf_time",(_x select 2)]; + _hideout setVariable ["cap_time",(_x select 3)]; + _hideout setVariable ["assigned_to",(_x select 4)]; + + _hideout addEventHandler ["HandleDamage", btc_fnc_mil_hd_hideout]; + + _markers = []; + { + _marker = createmarker [format ["%1", (_x select 0)], (_x select 0)]; + _marker setmarkertype "hd_warning"; + _marker setMarkerText (_x select 1); + _marker setMarkerSize [0.5, 0.5]; + _marker setMarkerColor "ColorRed"; + _markers pushBack _marker; + } foreach (_x select 5); + + _hideout setVariable ["markers",_markers]; + + if (btc_debug) then { + //Marker + createmarker [format ["btc_hideout_%1", _pos], _pos]; + format ["btc_hideout_%1", _pos] setmarkertype "mil_unknown"; + format ["btc_hideout_%1", _pos] setMarkerText format ["Hideout %1", btc_hideouts_id]; + format ["btc_hideout_%1", _pos] setMarkerSize [0.8, 0.8]; + }; + + if (btc_debug_log) then {diag_log format ["btc_fnc_mil_create_hideout: _this = %1 ; POS %2 ID %3",_x,_pos,btc_hideouts_id];}; + + btc_hideouts_id = btc_hideouts_id + 1; + btc_hideouts = btc_hideouts + [_hideout]; +} foreach _array_ho; + +_ho = profileNamespace getVariable [format ["btc_hm_%1_ho_sel",_name],objNull]; +btc_hq setVariable ["info_hideout",_ho]; + +if (count btc_hideouts == 0) then {[] execVM "core\fnc\common\final_phase.sqf";}; + +//CACHE + +btc_cache_cities = + btc_city_all; +btc_cache_markers = []; + +_array_cache = profileNamespace getVariable [format ["btc_hm_%1_cache",_name],[]]; + +btc_cache_pos = _array_cache select 0; +btc_cache_n = _array_cache select 1; +btc_cache_info = _array_cache select 2; + +btc_cache_obj = btc_cache_type createVehicle btc_cache_pos; +btc_cache_obj setPosATL (_array_cache select 0); +clearWeaponCargoGlobal btc_cache_obj;clearItemCargoGlobal btc_cache_obj;clearMagazineCargoGlobal btc_cache_obj; +btc_cache_obj addEventHandler ["HandleDamage", btc_fnc_cache_hd_cache]; + +{ + private ["_marker"]; + _marker = createmarker [format ["%1", (_x select 0)], (_x select 0)]; + _marker setmarkertype "hd_unknown"; + _marker setMarkerText (_x select 1); + _marker setMarkerSize [0.5, 0.5]; + _marker setMarkerColor "ColorRed"; + btc_cache_markers = btc_cache_markers + [_marker]; +} foreach (_array_cache select 3); + +if (btc_debug_log) then {diag_log format ["CACHE SPAWNED: ID %1 POS %2",btc_cache_n,btc_cache_pos];}; + +if (btc_debug) then { + player sideChat format ["Cache spawned in %1",btc_cache_pos]; + //Marker + createmarker [format ["%1", btc_cache_pos], btc_cache_pos]; + format ["%1", btc_cache_pos] setmarkertype "mil_unknown"; + format ["%1", btc_cache_pos] setMarkerText format ["Cache %1", btc_cache_n]; + format ["%1", btc_cache_pos] setMarkerSize [0.8, 0.8]; +}; + +//REP +btc_global_reputation = profileNamespace getVariable [format ["btc_hm_%1_rep",_name],0]; + +//FOB +_fobs = profileNamespace getVariable [format ["btc_hm_%1_fobs",_name],[]]; +_fobs_loaded = []; + +{ + private ["_pos"]; + _pos = (_x select 1); + createmarker [(_x select 0), _pos]; + (_x select 0) setMarkerSize [1,1]; + (_x select 0) setMarkerType "hd_flag"; + (_x select 0) setMarkerText (_x select 0); + (_x select 0) setMarkerColor "ColorBlue"; + (_x select 0) setMarkerShape "ICON"; + {createVehicle [_x, _pos, [], 0, "NONE"];} foreach [btc_fob_structure,btc_fob_flag]; + _fobs_loaded pushBack (_x select 0); +} foreach _fobs; + +btc_fobs = _fobs_loaded; + +//VEHICLES +/* _data pushBack (typeOf _x); + _data pushBack (getPos _x); + _data pushBack (getDir _x); + _data pushBack (fuel _x); + _data pushBack (damage _x); + _data pushBack (_x getVariable ["cargo",[]];); +*/ + +{deleteVehicle _x} foreach btc_vehicles; +btc_vehicles = []; + +_vehs = profileNamespace getVariable [format ["btc_hm_%1_vehs",_name],[]]; +/* +{diag_log format ["0: %1",(_x select 0)]; +diag_log format ["1: %1",(_x select 1)]; +diag_log format ["2: %1",(_x select 2)]; +diag_log format ["3: %1",(_x select 3)]; +diag_log format ["4: %1",(_x select 4)]; +diag_log format ["5: %1",(_x select 5)]; +{diag_log format ["5: %1",_x];} foreach (_x select 5)} foreach _vehs; +*/ +{ + private ["_veh","_cont","_weap","_mags","_items"]; + _veh = (_x select 0) createVehicle (_x select 1); + btc_vehicles pushBack _veh; + _veh addEventHandler ["Killed", {_this call btc_fnc_eh_veh_killed}]; + _veh setVariable ["btc_dont_delete",true]; + _veh setDir (_x select 2); + _veh setFuel (_x select 3); + _veh setDamage (_x select 4); + { + private ["_type","_cargo_obj","_obj","_weap_obj","_mags_obj","_items_obj"]; + //{_cargo pushBack [(typeOf _x),[getWeaponCargo _x,getMagazineCargo _x,getItemCargo _x]]} foreach (_x getVariable ["cargo",[]]); + _type = _x select 0; + _cargo_obj = _x select 1; + _obj = _type createVehicle [0,0,0]; + btc_log_obj_created = btc_log_obj_created + [_obj]; + btc_curator addCuratorEditableObjects [[_obj], false]; + clearWeaponCargoGlobal _obj;clearItemCargoGlobal _obj;clearMagazineCargoGlobal _obj; + _weap_obj = _cargo_obj select 0; + if (count _weap_obj > 0) then { + for "_i" from 0 to ((count (_weap_obj select 0)) - 1) do { + _obj addWeaponCargoGlobal[((_weap_obj select 0) select _i),((_weap_obj select 1) select _i)]; + }; + }; + _mags_obj = _cargo_obj select 1; + if (count _mags_obj > 0) then { + for "_i" from 0 to ((count (_mags_obj select 0)) - 1) do { + _obj addMagazineCargoGlobal[((_mags_obj select 0) select _i),((_mags_obj select 1) select _i)]; + }; + }; + _items_obj = _cargo_obj select 2; + if (count _items_obj > 0) then { + for "_i" from 0 to ((count (_items_obj select 0)) - 1) do { + _obj addItemCargoGlobal[((_items_obj select 0) select _i),((_items_obj select 1) select _i)]; + }; + }; + [_obj,_veh] call btc_fnc_log_server_load; + } foreach (_x select 5); + _cont = (_x select 6); + clearWeaponCargoGlobal _veh;clearItemCargoGlobal _veh;clearMagazineCargoGlobal _veh; + _weap = _cont select 0; + if (count _weap > 0) then { + for "_i" from 0 to ((count (_weap select 0)) - 1) do { + _veh addWeaponCargoGlobal[((_weap select 0) select _i),((_weap select 1) select _i)]; + }; + }; + _mags = _cont select 1; + if (count _mags > 0) then { + for "_i" from 0 to ((count (_mags select 0)) - 1) do { + _veh addMagazineCargoGlobal[((_mags select 0) select _i),((_mags select 1) select _i)]; + }; + }; + _items = _cont select 2; + if (count _items > 0) then { + for "_i" from 0 to ((count (_items select 0)) - 1) do { + _veh addItemCargoGlobal[((_items select 0) select _i),((_items select 1) select _i)]; + }; + }; +} foreach _vehs; + +//Objs +/* + if (!isNil {_x getVariable "loaded"}) exitWith {}; + _data = []; + _data pushBack (typeOf _x); + _data pushBack (getPosASL _x); + _data pushBack (getDir _x); + _cargo = []; + {_cargo pushBack (typeOf _x)} foreach (_x getVariable ["cargo",[]]); + _data pushBack _cargo; + _array_obj pushBack _data; + _array_obj pushBack _data; +*/ +//btc_log_obj_created = []; +_objs = profileNamespace getVariable [format ["btc_hm_%1_objs",_name],[]]; +{ + private ["_obj","_cont","_weap","_mags","_items"]; + _obj = (_x select 0) createVehicle (_x select 1); + btc_log_obj_created = btc_log_obj_created + [_obj]; + btc_curator addCuratorEditableObjects [[_obj], false]; + _obj setDir (_x select 2); + _obj setPosASL (_x select 1); + { + /*private "_l"; + _l = _x createVehicle [0,0,0]; + btc_log_obj_created = btc_log_obj_created + [_l]; + btc_curator addCuratorEditableObjects [[_l], false]; + [_l,_obj] call btc_fnc_log_server_load;*/ + //NEW + private ["_type","_cargo_obj","_l","_weap_obj","_mags_obj","_items_obj"]; + //{_cargo pushBack [(typeOf _x),[getWeaponCargo _x,getMagazineCargo _x,getItemCargo _x]]} foreach (_x getVariable ["cargo",[]]); + _type = _x select 0; + _cargo_obj = _x select 1; + _l = _type createVehicle [0,0,0]; + btc_log_obj_created = btc_log_obj_created + [_l]; + btc_curator addCuratorEditableObjects [[_l], false]; + clearWeaponCargoGlobal _l;clearItemCargoGlobal _l;clearMagazineCargoGlobal _l; + _weap_obj = _cargo_obj select 0; + if (count _weap_obj > 0) then { + for "_i" from 0 to ((count (_weap_obj select 0)) - 1) do { + _l addWeaponCargoGlobal[((_weap_obj select 0) select _i),((_weap_obj select 1) select _i)]; + }; + }; + _mags_obj = _cargo_obj select 1; + if (count _mags_obj > 0) then { + for "_i" from 0 to ((count (_mags_obj select 0)) - 1) do { + _l addMagazineCargoGlobal[((_mags_obj select 0) select _i),((_mags_obj select 1) select _i)]; + }; + }; + _items_obj = _cargo_obj select 2; + if (count _items_obj > 0) then { + for "_i" from 0 to ((count (_items_obj select 0)) - 1) do { + _l addItemCargoGlobal[((_items_obj select 0) select _i),((_items_obj select 1) select _i)]; + }; + }; + [_l,_obj] call btc_fnc_log_server_load; + } foreach (_x select 3); + _cont = (_x select 4); + clearWeaponCargoGlobal _obj;clearItemCargoGlobal _obj;clearMagazineCargoGlobal _obj; + _weap = _cont select 0; + if (count _weap > 0) then { + for "_i" from 0 to ((count (_weap select 0)) - 1) do { + _obj addWeaponCargoGlobal[((_weap select 0) select _i),((_weap select 1) select _i)]; + }; + }; + _mags = _cont select 1; + if (count _mags > 0) then { + for "_i" from 0 to ((count (_mags select 0)) - 1) do { + _obj addMagazineCargoGlobal[((_mags select 0) select _i),((_mags select 1) select _i)]; + }; + }; + _items = _cont select 2; + if (count _items > 0) then { + for "_i" from 0 to ((count (_items select 0)) - 1) do { + _obj addItemCargoGlobal[((_items select 0) select _i),((_items select 1) select _i)]; + }; + }; +} foreach _objs; \ No newline at end of file diff --git a/=BTC=co@30_Hearts_and_Minds.Altis/core/init_server.sqf b/=BTC=co@30_Hearts_and_Minds.Altis/core/init_server.sqf index 9058a5653..1a1bbf810 100644 --- a/=BTC=co@30_Hearts_and_Minds.Altis/core/init_server.sqf +++ b/=BTC=co@30_Hearts_and_Minds.Altis/core/init_server.sqf @@ -1,16 +1,30 @@ + +private ["_Initialisation"]; + call compile preprocessFile "core\fnc\city\init.sqf"; +_Initialisation = { + for "_i" from 1 to btc_hideout_n do {[] call btc_fnc_mil_create_hideout;}; + + setTimeMultiplier btc_p_acctime; + + [] execVM "core\fnc\cache\init.sqf"; + + [] spawn {{waitUntil {!isNull _x};_x addMPEventHandler ["MPKilled", {if (isServer) then {_this call btc_fnc_eh_veh_killed};}];} foreach btc_vehicles;}; +}; + if (btc_db_load && isClass(configFile >> "cfgPatches" >> "inidbi2")) then { if ("exists" call OO_fnc_inidbi) then { call compile preprocessFile "core\fnc\db\load.sqf"; } else { - for "_i" from 1 to btc_hideout_n do {[] call btc_fnc_mil_create_hideout;}; - - setTimeMultiplier btc_p_acctime; - - [] execVM "core\fnc\cache\init.sqf"; - - [] spawn {{waitUntil {!isNull _x};_x addMPEventHandler ["MPKilled", {if (isServer) then {_this call btc_fnc_eh_veh_killed};}];} foreach btc_vehicles;}; + if (profileNamespace getVariable [format ["btc_hm_%1_db",worldName],false]) then { + call compile preprocessFile "core\fnc\db\load_old.sqf"; + } else { + [] call _Initialisation; + }; }; +} else { + [] call _Initialisation; +}; {[_x,30,false] spawn btc_fnc_eh_veh_add_respawn;} forEach btc_helo; \ No newline at end of file