From c19a138804bee2700b39d76511c4f496ca6d89ba Mon Sep 17 00:00:00 2001 From: ebayShopper Date: Sat, 11 Mar 2017 20:41:27 -0500 Subject: [PATCH] Use formatText in mission check Avoids format character limit closes #1905 --- CHANGE LOG 1.0.6.2.txt | 2 +- SQF/dayz_server/init/mission_check.sqf | 16 ++++++++++------ Server Files/Battleye/deleteVehicle.txt | 3 ++- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/CHANGE LOG 1.0.6.2.txt b/CHANGE LOG 1.0.6.2.txt index 4e4e34473..c5f59defb 100644 --- a/CHANGE LOG 1.0.6.2.txt +++ b/CHANGE LOG 1.0.6.2.txt @@ -5,6 +5,6 @@ [NOTE] Fixes below are included in the mission file and server pbo as part of server package 1.0.6.1A (March 10th 2017) [FIXED] Fixed food and drink going down 10x faster from melee and other "working" actions. [FIXED] Glitch where group icons scaled very large momentarily while moving off screen. -[FIXED] Possible mission file exploit +[NEW] Added temporary check for mission file overwrite exploit. This can be removed after Bohemia patches it. [INFO] See Documents\CHANGE LOG 1.0.6.txt for the full list of 1.0.5.1 --> 1.0.6 changes. \ No newline at end of file diff --git a/SQF/dayz_server/init/mission_check.sqf b/SQF/dayz_server/init/mission_check.sqf index d7ab49dad..3136eb4db 100644 --- a/SQF/dayz_server/init/mission_check.sqf +++ b/SQF/dayz_server/init/mission_check.sqf @@ -1,10 +1,14 @@ -//Temporary block for A2OA mission override exploit. +//Temporary check for A2OA mission override exploit. //This bug should be fixed in the next EOL patch. //Put this code at the bottom of dayz_server\init\server_functions.sqf -//List all of the files in your mission. For example, you may need to add 'custom\variables.sqf', etc. -//DEFAULT VALUES ARE FOR DayZ_Epoch_11.Chernarus HOTFIX 1.0.6.1A -_files = ['description.ext','init.sqf','mission.sqm','rules.sqf','server_traders.sqf','DZE_Hotfix_1.0.6.1A\groups\init.sqf','DZE_Hotfix_1.0.6.1A\groups\groupTags.sqf','DZE_Hotfix_1.0.6.1A\groups\groupMarkers.sqf','DZE_Hotfix_1.0.6.1A\init\compiles.sqf','DZE_Hotfix_1.0.6.1A\system\progress_monitor.sqf']; +//List of files in your mission to check. For example, you may need to add 'custom\variables.sqf' etc. +//Remove any you aren't using +_files = [ + 'description.ext','init.sqf','mission.sqm','rules.sqf','server_traders.sqf', + 'DZE_Hotfix_1.0.6.1A\groups\init.sqf','DZE_Hotfix_1.0.6.1A\groups\groupTags.sqf','DZE_Hotfix_1.0.6.1A\groups\groupMarkers.sqf', + 'DZE_Hotfix_1.0.6.1A\init\compiles.sqf','DZE_Hotfix_1.0.6.1A\system\progress_monitor.sqf' +]; _list = []; { @@ -17,7 +21,7 @@ _list = []; //Check mission integrity on all clients _temp = "HeliHEmpty" createVehicle [0,0,0]; -_temp setVehicleInit format[" +_temp setVehicleInit (str formatText[" if (isServer) exitWith {}; _list = []; @@ -44,6 +48,6 @@ _temp setVehicleInit format[" {(findDisplay _x) closeDisplay 2;} count [0,8,12,18,46,70]; }; }; -",_files,_list]; +",_files,_list]); processInitCommands; \ No newline at end of file diff --git a/Server Files/Battleye/deleteVehicle.txt b/Server Files/Battleye/deleteVehicle.txt index e8133b1c7..a0220cb04 100644 --- a/Server Files/Battleye/deleteVehicle.txt +++ b/Server Files/Battleye/deleteVehicle.txt @@ -1,3 +1,4 @@ //new 1=(BanditW?1|Camo1|Sniper1|Soldier1|Survivor([123]|W2))_DZ -1 !"Blood_Trail_DZ" !"WeaponHolder" \ No newline at end of file +1 !"Blood_Trail_DZ" !"WeaponHolder" +5 "HeliHEmpty" \ No newline at end of file