Jump to content

How to make Custom map content [ Tutorial & Ongoing Support ]


Poncho

Recommended Posts

Hey thx for the fast replay.

 

So i have to make a new folder in the mission.pbo called buildings and put the mission file in it ?!

 

system\system_monitor.sqf <<< this one with the new code ?! 

 

after it i should add the next line to my init.sqf and it should work ?

 

call compile preProcessFileLineNumbers "\z\addons\dayz_server\Buildings\chernanew.sqf";

Link to comment
Share on other sites

  • 2 weeks later...

THANKYOU for the trader city edit tip!!

I was scratching my head over how I was going to customise the trader cities when I couldn't see them!

 

Also until I read this I was putting all my custom map additions into the mission file that players downloaded, now I'm packing them into the PBO to save on mission file size, thanks!

 

And finally, THE ROADS!! dear god I was going MAD trying to line roads and Runways up as they seemed to have no correlation in the 3D map to their 2D positions :)

Link to comment
Share on other sites

Well, the server just doesn't found the file, i think the message is clear.

 

Check in your dayz_server.pbo if you have a folder "Buildings" (sensitive, so make sure it is "Buildings" and not "buildings"), and your checkpoint.sqf should be on this folder

Link to comment
Share on other sites

In your mission.sqf linked, remove all entry with createunit.

 

Like this one

{
  _this = _group_0 createUnit ["BAF_Soldier_AA_W", [8353.2637, 2995.0378, -5.9982181], [], 0, "CAN_COLLIDE"];
  _unit_1 = _this;
  _this setUnitAbility 0.60000002;
  if (true) then {_group_0 selectLeader _this;};
  if (true) then {selectPlayer _this;};
  if (true) then {setPlayable _this;};
};

or this one

_unit_6 = objNull;
if (true) then
{
  _this = _group_0 createUnit ["Drake", [8389.415, 2963.0432, -9.5192692e-005], [], 0, "CAN_COLLIDE"];
  _unit_6 = _this;
  _this setDir -55.651173;
  _this setUnitAbility 0.60000002;
  if (false) then {_group_0 selectLeader _this;};
};

etc...

Link to comment
Share on other sites

Why your line call compile preProcessFileLineNumbers "\z\addons\dayz_server\Buildings\checkpoint.sqf"; is in the server_monitor.sqf ?

 

God damit.

 

You should put

 

call compile preProcessFileLineNumbers "\z\addons\dayz_server\Buildings\checkpoint.sqf";

 

in the server_functions.sqf at the very bottom

 

Like that :

    (.........................)
    diag_log format["SAFE UNLOCKED: ID:%1 UID:%2 BY %3(%4)", _objectID, _objectUID, (name _player), (getPlayerUID _player)];
};
 
server_setLocalObjVars = {
        private ["_obj","_holder","_weapons","_magazines","_backpacks","_player","_objectID","_objectUID"];
 
        _obj = _this select 0;
        _holder = _this select 1;
        _player = _this select 2;
 
        _objectID       = _obj getVariable["ObjectID","0"];
        _objectUID      = _obj getVariable["ObjectUID","0"];
 
        _weapons =              getWeaponCargo _obj;
        _magazines =    getMagazineCargo _obj;
        _backpacks =    getBackpackCargo _obj;
       
        deleteVehicle _obj;
 
        _holder setVariable ["WeaponCargo", _weapons];
        _holder setVariable ["MagazineCargo", _magazines];
        _holder setVariable ["BackpackCargo", _backpacks];
       
        diag_log format["SAFE LOCKED: ID:%1 UID:%2 BY %3(%4)", _objectID, _objectUID, (name _player), (getPlayerUID _player)];
};

//INSERT YOUR LINE HERE
call compile preProcessFileLineNumbers "\z\addons\dayz_server\Buildings\checkpoint.sqf";

And remove the old line in the server_monitor.sqf ><

 

And be sure to rename your mission.sqf to checkpoint.sqf and place it on the "Buildings" folder

Link to comment
Share on other sites

How do I place roads?

Place your road approximatly where you wanteing them.

Put a wreck of car for exemple side of it.

Select both and then roatate or move them both by using the wreck car circle.

 

That's a long way when you wanting to place many road but that's the only way to do it.

You can only move or rotated road by using this kind of things

Link to comment
Share on other sites

Place your road approximatly where you wanteing them.

Put a wreck of car for exemple side of it.

Select both and then roatate or move them both by using the wreck car circle.

 

That's a long way when you wanting to place many road but that's the only way to do it.

You can only move or rotated road by using this kind of things

I mean where do I find the actual roads that I can place?

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
×
×
  • Create New...