bug in server_onplayerdisconnect.sqf. bodyduping !

NeverUsedID

Well-Known Member
Sometimes a player who reconnect will See a dublicate from himself and can loot It.
I found this in the logfile:
Code:
7:55:51 Error in expression <layerObj getVariable["combattimeout",0] - time;
diag_log format["Player UID#%1 C>
17:55:51  Error position: <- time;
diag_log format["Player UID#%1 C>
17:55:51  Error Generic error in expression
17:55:51 File z\addons\dayz_server\compile\server_onPlayerDisconnect.sqf, line 21
17:55:51 Error in expression <layerObj getVariable["combattimeout",0] - time;
diag_log format["Player UID#%1 C>
17:55:51  Error position: <- time;
diag_log format["Player UID#%1 C>
17:55:51  Error Generic error in expression
17:55:51 File z\addons\dayz_server\compile\server_onPlayerDisconnect.sqf, line 21

I removed the complete "if debug" Thing around line 21. will See if It helps
 
Code:
// log disconnect
#ifdef LOGIN_DEBUG
    _characterID = _playerObj getVariable["characterID", "?"];
    _timeout = _playerObj getVariable["combattimeout",0];
    diag_log format["Player UID#%1 CID#%2 %3 as %4, logged off at %5%6",
        getPlayerUID _playerObj, _characterID, _playerObj call fa_plr2str, typeOf _playerObj,
        (getPosATL _playerObj) call fa_coor2str,
        if ((_timeout - time) > 0) then {" while in combat"} else {""}
    ];
#endif

to fix it replace line 18-27 of server_onplayerdisconnect.sqf with that code
 
After applying noone cant connect because it freezes on Waiting for server to start authentication.
 
Problem solved! cpbo created this error. Everything works fine after editing with pbo manager.
 
Hmm this doesn't seem to fix it.

After applying it and running the server, a few users alerted me to the fact it was still happening.

I teleported to them and sure enough there was duped player bodies with lootable stuffs
 
I have it installed and I think it does stop most of it.

But I still get people duping on joining if they're really laggy.
 
Back
Top