From b5f3f306de9e989a1106333e6feeb97f2e73a3d0 Mon Sep 17 00:00:00 2001 From: oiad Date: Thu, 18 Jan 2018 22:37:38 +1300 Subject: [PATCH] Fix publicVariableEval kicks from RNG fail RNG can be a cruel mistress. Fixes: Value Restriction #121 "PVDZE_veh_Publish2" = [[99,[4763.93,7521.36,-0.000228882]],"CSJ_GyroCover",false,"ItemKeyBlack958",,"iN4r7X7Psetsq"] Thanks @AirwavesMan --- CHANGE LOG 1.0.6.3.txt | 1 + SQF/dayz_server/compile/server_playerSetup.sqf | 3 +-- SQF/dayz_server/compile/server_verifySender.sqf | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGE LOG 1.0.6.3.txt b/CHANGE LOG 1.0.6.3.txt index 78cf4052f..690563300 100644 --- a/CHANGE LOG 1.0.6.3.txt +++ b/CHANGE LOG 1.0.6.3.txt @@ -4,6 +4,7 @@ [FIXED] Combo locks could be duplicated by two players removing them at the same time (564e3da) [FIXED] Bush b_corylus.p3d allowed chopping down for wood like a tree (42e519a) [FIXED] Player could shoot during unconscious wake up animation (634a01a) +[FIXED] publicVariableEval kicks from the evil RNG god @oiad @AirwavesMan [UPDATED] Spawning of Zombies and Loot in Safe Zones can now be toggled, disabled by default, see configVariables.sqf/DZE_SafeZoneZombieLoot (6248add, 141b25e) @oiad @_Lance_ [UPDATED] Added notification when status icons are disabled diff --git a/SQF/dayz_server/compile/server_playerSetup.sqf b/SQF/dayz_server/compile/server_playerSetup.sqf index ddd983888..17ece4894 100644 --- a/SQF/dayz_server/compile/server_playerSetup.sqf +++ b/SQF/dayz_server/compile/server_playerSetup.sqf @@ -221,7 +221,6 @@ _randomInput = toArray "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234 for "_i" from 0 to 12 do { _randomKey set [count _randomKey, (_randomInput call BIS_fnc_selectRandom)]; }; -_randomKey = toString _randomKey; _findIndex = dayz_serverPUIDArray find _playerID; if (_findIndex > -1) then { dayz_serverClientKeys set [_findIndex, [_clientID,_randomKey]]; @@ -248,4 +247,4 @@ if (count _inventory > 2) then { [_playerID,_characterID,1,(_playerObj call fa_plr2str),((_worldspace select 1) call fa_coor2str)] call dayz_recordLogin; PVDZ_plr_Login1 = null; -PVDZ_plr_Login2 = null; \ No newline at end of file +PVDZ_plr_Login2 = null; diff --git a/SQF/dayz_server/compile/server_verifySender.sqf b/SQF/dayz_server/compile/server_verifySender.sqf index 0f270ce95..b299002c3 100644 --- a/SQF/dayz_server/compile/server_verifySender.sqf +++ b/SQF/dayz_server/compile/server_verifySender.sqf @@ -26,10 +26,10 @@ _exitReason = switch true do { case (_index < 0): { format["%1 error: PUID NOT FOUND ON SERVER. PV ARRAY: %2",_function,_params] }; - case (((dayz_serverClientKeys select _index) select 0 != owner _player) or ((dayz_serverClientKeys select _index) select 1 != _clientKey)): { + case (((dayz_serverClientKeys select _index) select 0 != owner _player) or !([((dayz_serverClientKeys select _index) select 1),_clientKey] call BIS_fnc_areEqual)): { format["%1 error: CLIENT AUTH KEY INCORRECT OR UNRECOGNIZED. PV ARRAY: %2",_function,_params] }; default {""}; }; -_exitReason \ No newline at end of file +_exitReason