Jump to content

Custom Buildings for Linux/sauerland?


Atsutake

Recommended Posts

Good evening,

 

is it possible to use custom buildings for linux (debian) server on Sauerland Map?

 

I already tried and read this whole thread:

 

Tried out all kind of combinations (dayz_server\server_functions.sqf or server_monitor.sqf | dayz_epoch_25.sauerland\init.sqf) or an execution.sqf with execVM or call compile preprocessFileNumbers

 

However, none worked for me and I use data from jahangir's tutorial.

 

I just want to add these 2 buildings to test it out.

_vehicle_0 = objNull;
if (true) then
{
   _this = createVehicle ["MAP_Mil_House", [3580.2959, 24913.725, -1.5258789e-005], [], 0, "CAN_COLLIDE"];
   _vehicle_0 = _this;
   _this setDir 302.07849;
   _this setPos [3580.2959, 24913.725, -1.5258789e-005];
};

_vehicle_1 = objNull;
if (true) then
{
   _this = createVehicle ["Land_Mil_House", [3513.8071, 24898.416, 1.5258789e-005], [], 0, "CAN_COLLIDE"];
   _vehicle_1 = _this;
   _this setDir 35.379547;
   _this setPos [3513.8071, 24898.416, 1.5258789e-005];
};

If anyone successfully added them to the map, please tell me how.

Link to comment
Share on other sites

Ok, i show you my files in epochserver\@dayz_epoch_server\addons\dayz_server.pbo:

 

dayz_server\init\server_functions.sqf (last lines)

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];
	};
};

execVM "\z\addons\dayz_server\buildings\militaryone.sqf";

dayz_server\buildings\militaryone.sqf:

if (isServer) then {

_milhouse_0 = objNull;
if (true) then
{
   _this = createVehicle ["MAP_Mil_House", [3580.2959, 24913.725, -1.5258789e-005], [], 0, "CAN_COLLIDE"];
   _milhouse_0 = _this;
   _this setDir 302.07849;
   _this setPos [3580.2959, 24913.725, -1.5258789e-005];
};

_milhouse_1 = objNull;
if (true) then
{
   _this = createVehicle ["Land_Mil_House", [3513.8071, 24898.416, 1.5258789e-005], [], 0, "CAN_COLLIDE"];
   _milhouse_1 = _this;
   _this setDir 35.379547;
   _this setPos [3513.8071, 24898.416, 1.5258789e-005];
};

};

the last file i m not sure if it is correct... is the mission.sqf

dayz_server\missions\DayZ_Epoch_25.sauerland\mission.sqf

beginning:

_vehicle_27 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Misc_Cargo1E_EP1", [24774.123, 21743.719, -6.1035156e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_27 = _this;
  _this setPos [24774.123, 21743.719, -6.1035156e-005];
};

_vehicle_28 = objNull;
if (true) then
{
  _this = createVehicle ["Misc_Cargo1B_military", [24753.67, 21727.393, 6.1035156e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_28 = _this;
  _this setDir 89.235222;
  _this setPos [24753.67, 21727.393, 6.1035156e-005];
};

_vehicle_29 = objNull;
if (true) then
{
  _this = createVehicle ["Misc_Cargo1Bo_military", [24742.969, 21765.781, 9.1552734e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_29 = _this;
  _this setDir 190.70085;
  _this setPos [24742.969, 21765.781, 9.1552734e-005];
};

_vehicle_30 = objNull;
if (true) then
{
  _this = createVehicle ["Land_Misc_Cargo1Eo_EP1", [24756.422, 21749.088, 0.00018310547], [], 0, "CAN_COLLIDE"];
  _vehicle_30 = _this;
  _this setDir -120.50433;
  _this setPos [24756.422, 21749.088, 0.00018310547];
};

_vehicle_34 = objNull;
if (true) then
{
  _this = createVehicle ["Misc_Cargo1B_military", [24752.213, 21758.996, -0.034812283], [], 0, "CAN_COLLIDE"];
  _vehicle_34 = _this;
  _this setDir -47.392124;
  _this setPos [24752.213, 21758.996, -0.034812283];
};

ending:

_vehicle_1480 = objNull;
if (true) then
{
  _this = createVehicle ["Misc_cargo_cont_net3", [2445.7886, 3894.7576, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_1480 = _this;
  _this setDir -95.426903;
  _this setPos [2445.7886, 3894.7576, -3.0517578e-005];
};

_vehicle_1482 = objNull;
if (true) then
{
  _this = createVehicle ["FoldChair", [2446.5603, 3898.8323], [], 0, "CAN_COLLIDE"];
  _vehicle_1482 = _this;
  _this setDir 103.76042;
  _this setPos [2446.5603, 3898.8323];
};

_vehicle_1483 = objNull;
if (true) then
{
  _this = createVehicle ["FoldTable", [2444.9607, 3899.1589, 3.0517578e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_1483 = _this;
  _this setDir -92.448402;
  _this setPos [2444.9607, 3899.1589, 3.0517578e-005];
};

_unit_173 = objNull;
if (true) then
{
  _this = createAgent ["GUE_Soldier_MG", [2446.0735, 3899.76], [], 0, "CAN_COLLIDE"];
  _unit_173 = _this;
  _this setDir -97.42749;
  _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;  ";
  _this setUnitAbility 0.60000002;
_this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;};

processInitCommands;

I did not change this original mission.sqf!

this is where i got the original dayz_server.pbo from: https://github.com/denisio/Dayz-Epoch-Linux-Server/tree/master/%40dayz_epoch_server/addons

 

Maybe sth about MaxVehicleLimit & dynamic_verhicle.sqf? Or at epochserver\cache\objects\ in there are many .sqf-Files with one Line ["PASS","2304"] the number is always different. (no clue what they could mean)

 

Solved it.

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