Constrictor
Member
Edit: I run DayZ Vanilla 1.8.0.3 was able to resolve the issue of "objects not being removable after restart" by using Rosska's Tent Fix for 1.8.0.3:
http://opendayz.net/threads/fix-tent-saving-issues-for-1-8-reality-hive.14107/
FYI: This may be an issue with the server_monitor / server_updateObject code from DayZ.ST providers.
Specifically I did this:
In: server_updateObject.sqf
Find this code:
Change it to this code:
In server_monitor.sqf
Find this code:
And change it to this code:
If you are using a tent placement mod, you may need to change the code above to read:
http://opendayz.net/threads/fix-tent-saving-issues-for-1-8-reality-hive.14107/
FYI: This may be an issue with the server_monitor / server_updateObject code from DayZ.ST providers.
Specifically I did this:
In: server_updateObject.sqf
Find this code:
Code:
_object_killed = {
_object setDamage 1;
call _object_damage;
};
Change it to this code:
Code:
_object_killed = {
[_ObjectID,_UID] call server_deleteObj;
};
In server_monitor.sqf
Find this code:
Code:
if (_damage < 1) then { // create object
// for tents: non colliding position
_entity = createVehicle [_class, _point, [], 0,
if (_class=="TentStorage") then {"NONE"} else {"CAN_COLLIDE"}
];
_entity setVariable ["ObjectID", _ObjectID, true];
_entity setVariable ["CharacterID", _CharacterID, true];
_entity setVariable ["lastUpdate",time];
_entity setDamage _damage;
if (_class == "TentStorage" || _class == "CamoNet_DZ") then {
_entity addMPEventHandler ["MPKilled",{_this call vehicle_handleServerKilled;}];
};
Code:
if (_damage < 1) then { // create object
diag_log("Spawned: " + str(_idKey) + " " + _type);
// for tents: non colliding position
_object = createVehicle [_type, _pos, [], 0,
if (_type=="TentStorage") then {"NONE"} else {"CAN_COLLIDE"}
];
_object setVariable ["lastUpdate",time];
// Don't set objects for deployables to ensure proper inventory updates
if (_ownerID == "0") then {
_object setVariable ["ObjectID", str(_idKey), true];
} else {
_object setVariable ["ObjectUID", str(_idKey), true];
};
_object setVariable ["CharacterID", _ownerID, true];
if (_type == "TentStorage" || _type == "CamoNet_DZ") then {
_object addMPEventHandler ["MPKilled",{_this call vehicle_handleServerKilled;}];
};
_object setdir _dir;
_object setDamage _damage;
If you are using a tent placement mod, you may need to change the code above to read:
Code:
// for tents: non colliding position
_object = createVehicle [_type, _pos, [], 0, "CAN_COLLIDE"];
_object setVariable ["lastUpdate",time];
Last edited: