Use formatText in mission check

Avoids format character limit
closes #1905
This commit is contained in:
ebayShopper
2017-03-11 20:41:27 -05:00
parent 2ec5390b70
commit c19a138804
3 changed files with 13 additions and 8 deletions

View File

@@ -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.

View File

@@ -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;

View File

@@ -1,3 +1,4 @@
//new
1=(BanditW?1|Camo1|Sniper1|Soldier1|Survivor([123]|W2))_DZ
1 !"Blood_Trail_DZ" !"WeaponHolder"
1 !"Blood_Trail_DZ" !"WeaponHolder"
5 "HeliHEmpty"