Jump to content

[HowTo] add Chernarus-Spawnselection


jOoPs

Recommended Posts

 

I don't have that spawnSelection == 9 error anymore but this is still coming up.

18:07:57 Server: Object 16:14 not found (message 70)
18:08:00 Error in expression <rpos "respawn_west"; _distance = _debug distance _position; if (_distance < 2000>
18:08:00 Error position: <distance _position; if (_distance < 2000>
18:08:00 Error 1 elements provided, 3 expected
18:08:00 File z\addons\dayz_server\compile\server_playerSetup.sqf, line 75

Dit you add the spawn selections in your mission.sqm ?

in mission.sqm replace class Markers with that ones...

	class Markers
	{
		items=18;
		class Item0
		{
			position[]={7839.6055,381.33774,8414.7324};
			name="center";
			type="Empty";
		};
		class Item1
		{
			position[]={-7245.377,365.98782,19535.367};
			name="respawn_west";
			type="Empty";
		};
///////////////////////////// spawnselector - begin /////////////////////////////
		class Item2
		{
			position[]={4932,0,1989};
			name="spawn0"; //spawn_balota
			type="Empty";
		};
		class Item3
		{
			position[]={2236,0,1923};
			name="spawn1"; //spawn_kamenka
			type="Empty";
		};
		class Item4
		{
			position[]={8738,0,2122};
			name="spawn2"; //spawn_cherno
			type="Empty";
		};
		class Item5
		{
			position[]={10909,0,2422};
			name="spawn3"; //spawn_elektro
			type="Empty";
		};
		class Item6
		{
			position[]={13510,0,5249};
			name="spawn4"; //spawn_sol
			type="Empty";
		};
		class Item7
		{
			position[]={12048,0,8352};
			name="spawn5"; //spawn_berezino
			type="Empty";
		};
///////////////////////////// spawnselector - end /////////////////////////////
		class Item8
		{
			position[]={6326.4805,304.99265,7809.4888};
			name="Tradercitystary";
			text="Trader City Stary";
			type="mil_circle";
			colorName="ColorBlack";
		};
		class Item9
		{
			position[]={4361.4937,3,2259.9526};
			name="wholesaleSouth";
			text="Wholesaler";
			type="mil_dot";
			colorName="ColorBlack";
		};
		class Item10
		{
			position[]={13532.614,3.0083523,6355.9497};
			name="boatTraderEast";
			text="Wholesaler";
			type="mil_dot";
			colorName="ColorBlack";
		};
		class Item11
		{
			position[]={7989.3354,0.30462033,2900.9946};
			name="BoatDealerSouth";
			text="Boat Dealer";
			type="mil_dot";
			colorName="ColorBlack";
		};
		class Item12
		{
			position[]={12060.471,158.85699,12638.533};
			name="AirVehicles";
			text="Aircraft Dealer";
			type="mil_dot";
			colorName="ColorGreen";
		};
		class Item13
		{
			position[]={1606.6443,289.70795,7803.5156};
			name="BanditDen";
			text="Bandit Camp";
			type="mil_dot";
			colorName="ColorRed";
		};
		class Item14
		{
			position[]={11447.91,317.27109,11364.536};
			name="Klen";
			text="Trader City Klen";
			type="mil_circle";
			colorName="ColorGreen";
		};
		class Item15
		{
			position[]={13441.16,1.1406164,5429.3013};
			name="BoatDealerEast";
			text="Boat Dealer";
			type="mil_dot";
			colorName="ColorBlack";
		};
		class Item16
		{
			position[]={4064.2258,365.13501,11665.938};
			name="TradercityBash";
			text="Trader City Bash";
			type="mil_circle";
			colorName="ColorBlack";
		};
		class Item17
		{
			position[]={12944.227,210.19823,12766.889};
			name="HeroTrader";
			text="Hero Camp";
			type="mil_dot";
			colorName="ColorBlue";
		};
	};
Link to comment
Share on other sites

.zip works ^^ So here is now the player_monitor.fsm file to use together MultiChars (by AxaCop) with Spawnselection (by jOoPs). So here is now the player_monitor.fsm file to use together MultiChars (by AxaCop) with Spawnselection (by jOoPs). Works for all Chars like.... Login -> MultiChar Menu -> Respawn -> Spawnmenu

So when I downloaded and updated all files , I used this FSm file (in zip u provided)in place of the one that came in the ORIGINALZIp , and both scripts should work?  (Select character / Spawn pick)

 

When i did that the server kept looping then saying "wrong dayz version installed" .( I am up to date on server files) I reinstalled PBO's with just character select and i'm able to log back in. (still cant get Both scripts to work same time. 

Any idea's ?

Link to comment
Share on other sites

So when I downloaded and updated all files , I used this FSm file (in zip u provided)in place of the one that came in the ORIGINALZIp , and both scripts should work?  (Select character / Spawn pick)

 

When i did that the server kept looping then saying "wrong dayz version installed" .( I am up to date on server files) I reinstalled PBO's with just character select and i'm able to log back in. (still cant get Both scripts to work same time. 

Any idea's ?

What version is in your player_monitor.fsm? Look around line 1376.

condition=/*%FSM<CONDITION""">*/"(_myEpochAnim != ""1.0.4.2"") || (_myEpoch != ""1.0.4.2"") || (_myEpochB != ""1.0.4.2"") || (_myEpochSfx != ""1.0.4.2"") || (_myEpochDayZ != ""1.0.4.2"")"/*%FSM</CONDITION""">*/;
Link to comment
Share on other sites

 

What version is in your player_monitor.fsm? Look around line 1376.

condition=/*%FSM<CONDITION""">*/"(_myEpochAnim != ""1.0.4.2"") || (_myEpoch != ""1.0.4.2"") || (_myEpochB != ""1.0.4.2"") || (_myEpochSfx != ""1.0.4.2"") || (_myEpochDayZ != ""1.0.4.2"")"/*%FSM</CONDITION""">*/;

I believ that might be the problem. The files that came with Zip are 

 

 condition=/*%FSM<CONDITION""">*/"(_myEpochAnim != ""1.0.3.1"") || (_myEpoch != ""1.0.3.1"") || (_myEpochB != ""1.0.3.1"") || (_myEpochSfx != ""1.0.3.1"")"/*%FSM</CONDITION""">*/;

 

. so if I change to correct version both scripts should work? 

 

I'll reinstall script and we'll see what happens. 

Thanks for the reply 

Link to comment
Share on other sites

sometimes i get this error and player is stuck in loading screen

 

i used Rythron stuff what he posted but i sitll get it :(

 

 1:48:47 Error in expression <nd _findSpot} do {

if (_spawnSelection == 9) then {

if (dayz_spawnselection ==>
 1:48:47   Error position: <== 9) then {

if (dayz_spawnselection ==>
 1:48:47   Error Generic error in expression
 1:48:47 File z\addons\dayz_server\compile\server_playerSetup.sqf, line 203
 1:48:47 Error in expression <nd _findSpot} do {

if (_spawnSelection == 9) then {

if (dayz_spawnselection ==>
 1:48:47   Error position: <== 9) then {

if (dayz_spawnselection ==>
 1:48:47   Error Generic error in expression
 1:48:47 File z\addons\dayz_server\compile\server_playerSetup.sqf, line 203
Link to comment
Share on other sites

I believ that might be the problem. The files that came with Zip are 

 

 condition=/*%FSM<CONDITION""">*/"(_myEpochAnim != ""1.0.3.1"") || (_myEpoch != ""1.0.3.1"") || (_myEpochB != ""1.0.3.1"") || (_myEpochSfx != ""1.0.3.1"")"/*%FSM</CONDITION""">*/;

 

. so if I change to correct version both scripts should work? 

 

I'll reinstall script and we'll see what happens. 

Thanks for the reply 

Link to comment
Share on other sites

it might work but you can't simply change the version number, because since Epoch 1.0.3.1 the file has been changed and extended, so you will need to merge it with the latest file from Epoch itself to get it right or you might experience weird bugs (even if the server starts and you can connect to it). :/

Link to comment
Share on other sites

 

sometimes i get this error and player is stuck in loading screen

 

i used Rythron stuff what he posted but i sitll get it :(

 1:48:47 Error in expression <nd _findSpot} do {

if (_spawnSelection == 9) then {

if (dayz_spawnselection ==>
 1:48:47   Error position: <== 9) then {

if (dayz_spawnselection ==>
 1:48:47   Error Generic error in expression
 1:48:47 File z\addons\dayz_server\compile\server_playerSetup.sqf, line 203
 1:48:47 Error in expression <nd _findSpot} do {

if (_spawnSelection == 9) then {

if (dayz_spawnselection ==>
 1:48:47   Error position: <== 9) then {

if (dayz_spawnselection ==>
 1:48:47   Error Generic error in expression
 1:48:47 File z\addons\dayz_server\compile\server_playerSetup.sqf, line 203

This my github

 

https://github.com/Rythron/

 

I hope it works let me know !

Link to comment
Share on other sites

@Rythron

Have u copy the server_playerSetup.sqf at your dayz_server.pbo? I had also forgotten. After I had inserted the file, everything was going fine.

 

 

To use Spawnselection with MultiChar, i modified the player_monitor.sfm. Both scripts works fine without problems. If someone need the file, he could download my file here.

player_monitor.zip

Link to comment
Share on other sites

@Rythron

Have u copy the server_playerSetup.sqf at your dayz_server.pbo? I had also forgotten. After I had inserted the file, everything was going fine.

 

 

To use Spawnselection with MultiChar, i modified the player_monitor.sfm. Both scripts works fine without problems. If someone need the file, he could download my file here.

we gonna give it a try. with yours.. thx let you know  :)

Link to comment
Share on other sites

@Rythron

Have u copy the server_playerSetup.sqf at your dayz_server.pbo? I had also forgotten. After I had inserted the file, everything was going fine.

 

 

To use Spawnselection with MultiChar, i modified the player_monitor.sfm. Both scripts works fine without problems. If someone need the file, he could download my file here.

we gonna give it a try. with yours.. thx let you know  :)

Can i see your server_playerSetup.sqf

Link to comment
Share on other sites

I only use the server_playerSetup.sqf from the Chernarus-Spawnselection.zip at the first post. Nothing change. Only add the file at the "compile" folder from my dayz_server.pbo

Okidoki checking it now ! 

I saw i had the wrong file in my server.pbo  :D

Link to comment
Share on other sites

@Rythron

Have u copy the server_playerSetup.sqf at your dayz_server.pbo? I had also forgotten. After I had inserted the file, everything was going fine.

 

 

To use Spawnselection with MultiChar, i modified the player_monitor.sfm. Both scripts works fine without problems. If someone need the file, he could download my file here.

Link to comment
Share on other sites

Random selection will stuck you on loading screen on next relog. There is something wrong in the server_playerSetup.sqf. It gives that "if (dayz_spawnselection ==> Error position: <== 9) then {" error and all your githubs has the same server_playerSetup.sqf file from OP. Is this really working for you? How populated your servers are or are you just using this alone on some test server? Error seems to be happening only sometimes.

Link to comment
Share on other sites

@Rythron

 

My player_monitor.fsm is the customisated for use Spawn selection and MultiChar ^^ so it didn't work with your configuration. sry, i only upload this for users who're interested by not espacially for your problem.

 

----

 

hmm... someone know how it works, if i have some more spawn Points, how to add this at random spawn?

Using the 6 fix spawn Points will be ok, but i think about to use more spawn points at the random spawn Option.

 

does it work, if i use for example 12 spawn Points, that i edit the Server_playerSetup.sqf at this part..

while {_findSpot} do {
	_counter = 0;
	while {_counter < 20 and _findSpot} do {
	// switched to floor
	if (_spawnSelection == 9) then {
		// random spawn location selected, lets get the marker and spawn in somewhere
		if (dayz_spawnselection == 1) then { _mkr = "spawn" + str(floor(random 6)); } else { _mkr = "spawn" + str(floor(random 5)); };
	} else {
		// spawn is not random, lets spawn in our location that was selected
		_mkr = "spawn" + str(_spawnSelection);
	};

with this changes?

	// random spawn location selected, lets get the marker and spawn in somewhere
	if (dayz_spawnselection == 1) then { _mkr = "spawn" + str(floor(random 12)); } else { _mkr = "spawn" + str(floor(random 12)); };

I only think about it. Not really test it at my Server. I like to ask befor i change something ^^

Edited by joe_candy
Link to comment
Share on other sites

Random selection will stuck you on loading screen on next relog. There is something wrong in the server_playerSetup.sqf. It gives that "if (dayz_spawnselection ==> Error position: <== 9) then {" error and all your githubs has the same server_playerSetup.sqf file from OP. Is this really working for you? How populated your servers are or are you just using this alone on some test server? Error seems to be happening only sometimes.

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