Jump to content
  • 0

Epoch v1.0.5.1 Safe Deleting Contents.


Snackbar_Jones

Question

3 answers to this question

Recommended Posts

  • 0

Yes, I received even more errors with that release.

 

in server_functions.sqf

_index = dayz_CLBase find _iClass;
_weights = dayz_CLChances select _index;
_cntWeights = count _weights;
		
_index = floor(random _cntWeights);
_index = _weights select _index;
_itemType = _itemTypes select _index;
				

Caused errors due to recycling of _index variable.

 

Modified to change _index = floor declaration to be

_index1 = floor(random _cntWeights);
_index2 = _weights select _index1;
_itemType = _itemTypes select _index2;

Without this change _itemType will throw an error.

 

This appears in crash_spawner.sqf, supply_drop.sqf, and server_functions.sqf

 

The result is that supply drops consist of ammo only, no spawn items are generated in world, no helo crashes appear.

 

Comparing RC1.0.5.2 server_functions to 1.0.5.1 I may just try to comment out the line throwing the _PUID error, it's possible since I'm running a bastard hybrid of the mod that the function call to FNC_GetPlayerUID is not actually present in my build.

 

1.0.5.1 code

server_logUnlockLockEvent = {
	private["_player", "_obj", "_objectID", "_objectUID", "_statusText", "_status"];
	_player = _this select 0;
	_obj = _this select 1;
	_status = _this select 2;
	if (!isNull(_obj)) then {
		_objectID = _obj getVariable["ObjectID", "0"];
		_objectUID = _obj getVariable["ObjectUID", "0"];
		_statusText = "UNLOCKED";
		if (_status) then {
			[_obj, "gear"] call server_updateObject;
			_statusText = "LOCKED";
		};
		diag_log format["SAFE %5: ID:%1 UID:%2 BY %3(%4)", _objectID, _objectUID, (name _player), (getPlayerUID _player), _statusText];
	};

RC2 1.0.5.2

server_logUnlockLockEvent = {
	private["_player", "_obj", "_objectID", "_objectUID", "_statusText", "_PUID", "_status"];
	_player = _this select 0;
	_obj = _this select 1;
	_status = _this select 2;
	if (!isNull(_obj)) then {
		_objectID = _obj getVariable["ObjectID", "0"];
		_objectUID = _obj getVariable["ObjectUID", "0"];
		_statusText = "UNLOCKED";
		if (_status) then {
			[_obj, "gear"] call server_updateObject;
			_statusText = "LOCKED";
		};
		_PUID = [_killer] call FNC_GetPlayerUID;
		diag_log format["SAFE %5: ID:%1 UID:%2 BY %3(%4)", _objectID, _objectUID, (name _player), _PUID, _statusText];
	};

Glenn I appreciate using you as a sounding board. I'll give it a try a bit later today and report back.

Link to comment
Share on other sites

  • 0

I ended up reverting back to 1.0.5.1

 

The files that were throwing the errors I changed the vars to remove the errors, it doesn't look like any other functionality was lost. I am still having my users safe contents deleted at restart.

 

Thinking this is a bug as it's been present for awhile and seems hit and miss.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...