Jump to content
  • 0

Vehicle position not saving on server restart


tarune

Question

Hi. 

we're trying to get our private dayz epoch server to work with custom scripts and custom buildings. We had everything working properly(vehicle position was saved on restart) until we added custom map content. After this, every time we restart the server, vehicles are moved back to their original location from the server start. We tried increasing the max vehicle limit, tried resetting our SQL and we still have the same problem. Any ideas?

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

osted 29 December 2013 - 09:34 AM

prosims, on 28 Dec 2013 - 10:04 PM, said:snapback.png

Enjoy your trip Fuchs! have a nice hoildays! I have a question.

 

If I insert these lines (see below) in  dayz_server\compile\server_updateObject.sqf as you say in the description of version 0.2.6 https://github.com/T...-Mission-System

 

if (_object getVariable "Sarge" == 1) exitWith {};

if (!_parachuteWest and !(locked _object)) then {
//if (_objectID == "0" && _uid == "0") then
if (_objectID == "0" && _uid == "0" && (vehicle _object getVariable ["Sarge",0] != 1)) then

 

Items which you place in cars, tents, etc are not saved in sql database. The positions of the cars do not save as well. I have to remove these lines in order to get it working back. Any mistake here?

 

Is it bad if I leave the missiona working without these lines? (I do not understand what these lines are responsible for)

 

I had the same problem untill i found out that i at first misunderstood the part on how to change the server_updateObject.sqf.

 

In the install instructions is says:

Around line 22 look for this:

{
diag_log(format["Non-string Object: ID %1 UID %2", _objectID, _uid]);
//force fail
_objectID = "0";
_uid = "0";
}; 

Insert this after it:

if (_object getVariable "Sarge" == 1) exitWith {};

if (!_parachuteWest and !(locked _object)) then {
//if (_objectID == "0" && _uid == "0") then
if (_objectID == "0" && _uid == "0" && (vehicle _object getVariable ["Sarge",0] != 1)) then

but actually you only need to insert the line that says: 

if (_object getVariable "Sarge" == 1) exitWith {};

Then change the following:

if (!_parachuteWest and !(locked _object)) then {
    if (_objectID == "0" && _uid == "0") then
    {
        _object_position = getPosATL _object;
    _isNotOk = true;
    };
};

to

if (!_parachuteWest and !(locked _object)) then {
    //if (_objectID == "0" && _uid == "0") then
    if (_objectID == "0" && _uid == "0" && (vehicle _object getVariable ["Sarge",0] != 1)) then
    {
        _object_position = getPosATL _object;
    _isNotOk = true;
    };
};

Well that atleast fixed the problem for me, so if that's not your problem then i don't know, but atleast i might have helped someone who misunderstood the instructions as i did  :)

 

 

HERE IS THE LINK FOR THE ORIGINAL POST, ITS MUCH MORE EASY TO READ: 

 

- Give the guy a like if it helped ;)

 

 

 

----------------------------------------------------- I Only Copy and pasted what the Epic guy "ThaThing" wrote in the thread!!!----------------------------------------------------------------------

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...