Jump to content
  • 0

{ESS HELP}


EliTe Alien

Question

5 answers to this question

Recommended Posts

  • 0

Paste your dayz_server\compile\server_playerSetup.sqf and dayz_server\compile\server_playerSetup.sqf. Your init.sqf looks fine. I am guessing you did not follow step #5 or step #6 in the install correct.

 

Step 5

In dayz_server\compile\server_playerSetup.sqf find this block.

if (_randomSpot) then {
private["_counter","_position","_isNear","_isZero","_mkr"];
if (!isDedicated) then {
  endLoadingScreen;
};

//Spawn modify via mission init.sqf
if(isnil "spawnArea") then {
  spawnArea = 1500;
};
if(isnil "spawnShoremode") then {
  spawnShoremode = 1;
};

//
_spawnMC = actualSpawnMarkerCount;

//spawn into random
_findSpot = true;
_mkr = "";
while {_findSpot} do {
  _counter = 0;
  while {_counter < 20 && _findSpot} do {
   // switched to floor
   _mkr = "spawn" + str(floor(random _spawnMC));
   _position = ([(getMarkerPos _mkr),0,spawnArea,10,0,2000,spawnShoremode] call BIS_fnc_findSafePos);
   _isNear = count (_position nearEntities ["Man",100]) == 0;
   _isZero = ((_position select 0) == 0) && ((_position select 1) == 0);
   //Island Check  //TeeChange
   _pos   = _position;
   _isIsland = false;  //Can be set to true during the Check
   for [{_w=0},{_w<=150},{_w=_w+2}] do {
    _pos = [(_pos select 0),((_pos select 1) + _w),(_pos select 2)];
    if(surfaceisWater _pos) exitWith {
     _isIsland = true;
    };
   };
  
   if ((_isNear && !_isZero) || _isIsland) then {_findSpot = false};
   _counter = _counter + 1;
  };
};
_isZero = ((_position select 0) == 0) && ((_position select 1) == 0);
_position = [_position select 0,_position select 1,0];
if (!_isZero) then {
  //_playerObj setPosATL _position;
  _worldspace = [0,_position];
};
};

Replace that whole block with

if (_randomSpot) then {
   if (!isDedicated) then {endLoadingScreen;};
   _debug = getMarkerpos "respawn_west";
   _worldspace = [0,[_debug select 0,_debug select 1,0.3]];
};

 

Step 6

In dayz_server\compile\server_playerSetup.sqf. Find this line.

dayzPlayerLogin2 = [_worldspace,_state];

Replace with

dayzPlayerLogin2 = [_worldspace,_state,_randomSpot];

 

If these are not done correct that might just cause your problem.

Link to comment
Share on other sites

  • 0

Ah, I think I miss understood the instructions. 

 

I replaced 

if (_randomSpot) then {
private["_counter","_position","_isNear","_isZero","_mkr"];
if (!isDedicated) then {
  endLoadingScreen;
};

With 

if (_randomSpot) then {
   if (!isDedicated) then {endLoadingScreen;};
   _debug = getMarkerpos "respawn_west";
   _worldspace = [0,[_debug select 0,_debug select 1,0.3]];
};
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...