Jump to content

Graphical Spawn Select for Taviana


Darce

Recommended Posts

Thought I'd share the Spawn select routine I use on my server.  It's much the same as the other spawn select scripts floating around, just prettier :)

 

https://github.com/Gezzunder/Spawn-select

 

Hope it's useful.

 

I am trying this with less spawn options and i have a huge problem with random selection.

I had to change the line where it says about option 13 to this:

if (drnspawn == 13) then {drnsspawn = floor (random (count _DRNLocs));};

so i can select a random number between 0-7.

The problem is that when i select button 13, _DRNloc  always returns NULL !!

And its driving me crazy......... What is wrong with this : ?????

waitUntil { drnspawn != -1};
if (drnspawn == 13) then {drnsspawn = floor (random (count _DRNLocs));};
_DRNloc = _DRNLocs select drnspawn;

I think you should have the same problem when you select random.

 

EDIT: 

Dude, T_T......    2h i've been going about this....you got a mistake in your brackets.  Its drnspawn not drnsspawn (double s).

Link to comment
Share on other sites

Great release :)

 

Apart from the coordinates is there anything that actully makes this Taviana specific ? could i use it on another map if i updated the locations ?

You would also have to change the dialog.hpp and image file but the principle would be the same.

Link to comment
Share on other sites

ITS NOT WORKING FOR ME i HAVE A FEW POSSIBLE ISSUES ?

sorry caps..

ok 

1. directions say Then, at the bottom of the description.ext

include "addons\DRNdialogs.hpp"

should be 

#include "addons\DRNdialogs.hpp" 

correct ?

 

2. spawn shore have to be set to 0 or 1 ??

 

3. paraspawn have to be on or off ???

 

do all the  files go in addons ??

DRNSpawn.sqf
DRNdialogs.hpp
mapTavi.paa
 
 
 
Link to comment
Share on other sites

 

ITS NOT WORKING FOR ME i HAVE A FEW POSSIBLE ISSUES ?

sorry caps..

ok 

1. directions say Then, at the bottom of the description.ext

include "addons\DRNdialogs.hpp"

should be 

#include "addons\DRNdialogs.hpp" 

correct ?

 

2. spawn shore have to be set to 0 or 1 ??

 

3. paraspawn have to be on or off ???

 

do all the  files go in addons ??

DRNSpawn.sqf
DRNdialogs.hpp
mapTavi.paa
 
 
 

 

Correct it needs to be #includes, the readme seems to think that "#" means "Put this in really big letters" :/

 

Not sure about the Halo spawn and shore mode settings, but that would make sense (I have them both off)

Link to comment
Share on other sites

all file in addons folder 

my description.ext 

http://pastebin.com/WyK1WpNa

 

maybe i use playerspawn script  or Server Welcome Credits script  that why script don't work ?

I also use a credits script, not sure about the playerspawn script you're talking about.  Something is preventing the dialog from being triggered it seems.  Are there no clues in your arma2oaserver.rpt?

 

What should be happening is that a new player (or a dead one respawning) get's put somewhere on the map by the playermonitor.fsm (in dayzcode.pbo).  It uses dayzPlayerLogin2 as a flag to let everything know it's a fresh spawn.

My script detects this, at the end of the ini, then blacks out the screen, displays the pretty map and the button press tells the DRNspawn script where the player wants to move to.  It's why you'll get a 'bogus' location when the dialog is first displayed.

 

Only time you should have issues would be if you have reduced the standard teleport limits (in the variables.sqf), the default values don't trigger the anti-teleport on my server.

Link to comment
Share on other sites

Doesnt work for me either.

 

First i guess my infistar would block this.

But then i tryed it on a fresh server (standart epoch server and mission files) and it didnt work.

 

I guess you forget one change you made.

 

And i cant find anythig in the logs. The server find the files etc. but doesnt start them.

Link to comment
Share on other sites

Apologies gents, I did miss a step.

 

Line 236 in server_playerSetup.sqf (within your server.pbo under compiles) needs to be modified to read

dayzPlayerLogin2 = [_worldspace,_state,_randomSpot];  (add the ",_randomSpot" into the array)

 

It's the _randomspot part of the array being not null which triggers the script.

 

Let me know if that works or not.

Link to comment
Share on other sites

  • 2 weeks later...

still not working for me  :(

I spawn in placen then map comes up I click on spawn point it dissapears and Im still in same spot ???

I DO not have the screenshot.jpg in the addons. thats ok right ?

 

my init.sqf has these parameters

 

spawnShoremode = 1; // Default = 1 (on shore)

spawnArea = 1500; // Default = 1500

dayz_paraSpawn = false;

 

and 

waitUntil {!isNil ("PVDZE_plr_LoginRecord")}; if (dayzPlayerLogin2 select 2) then { [] execVM "addons\DRNSpawn.sqf"; };

 

description.ext

#include "addons\DRNdialogs.hpp"

 

server_playerSetup.sqf 

 

dayzPlayerLogin2 = [_worldspace,_state,_randomSpot]; 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
×
×
  • Create New...