Jump to content
  • 0

Few problems, take a look


dy3rx

Question

Okay so vehicles inventory will safe, but they relocate to an old position once the player logs out or dies, I have not modified updateobject or vehiclepublish at all, but i do get errors in my server monitor but its only when no player is in the server, after that it goes away.after adding indestructable bases, here below are my sqfs that i listed.

 

server monitor - http://pastebin.com/amgqSVey

updateobject - http://pastebin.com/ayF5bC9Q

publishvehicle - http://pastebin.com/affFapMH

 

please help

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 0

server_updateobjects seems to be wrong

replace yours:

_object_position = {
	private["_position","_worldspace","_fuel","_key"];
		_position = getPosATL _object;
		_worldspace = [
			round(direction _object),
			_position
		];
		_fuel = 0;
		if (_object isKindOf "AllVehicles") then {
			_fuel = fuel _object;
		};
		_key = format["CHILD:305:%1:%2:%3:",_objectID,_worldspace,_fuel];
		_key call server_hiveWrite;
};

 

with this one

_object_position = {
	private ["_position","_worldspace","_fuel","_key"];
	_position = getPosATL _object;
	_worldspace = [
		round (getDir _object),
		_position
	];
	_fuel = if (_object isKindOf "AllVehicles") then { fuel _object } else { 0 };
	_key = format ["CHILD:305:%1:%2:%3:", _objectID, _worldspace, _fuel];
	_key call server_hiveWrite;
};

 

i see you have plotmanagement, did you checked it for correct installation?!?

Link to comment
Share on other sites

  • 0

what does this do

 

            if ((typeOf _object) in dayz_allowedObjects) then {

                _object setVariable["memDir",_dir,true];
 

 

in server_monitor, mine didint have it? but my old server files did

Link to comment
Share on other sites

  • 0

Put this:

 

if ((typeOf _object) in dayz_allowedObjects) then {
                _object setVariable["memDir",_dir,true];

Above this:

 

//#########################REMOVED FOR INDESTRUCTIBLE ITEMS#########################

 

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...