Darce Posted January 21, 2014 Report Share Posted January 21, 2014 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. Hisperin 1 Link to comment Share on other sites More sharing options...
Richie Posted January 21, 2014 Report Share Posted January 21, 2014 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 ? Link to comment Share on other sites More sharing options...
Sandbird Posted January 21, 2014 Report Share Posted January 21, 2014 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). Darce 1 Link to comment Share on other sites More sharing options...
Darce Posted January 21, 2014 Author Report Share Posted January 21, 2014 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 More sharing options...
Darce Posted January 21, 2014 Author Report Share Posted January 21, 2014 EDIT: Dude, T_T...... 2h i've been going about this....you got a mistake in your brackets. Its drnspawn not drnsspawn (double s). Bugger me. You're right, a hold over from an earlier version. Fixed in the git. Cheers Link to comment Share on other sites More sharing options...
axekie Posted January 21, 2014 Report Share Posted January 21, 2014 i don't know why don't work in my server still random spawn without select screen my init.sqfhttp://pastebin.com/RY57kUc6 Link to comment Share on other sites More sharing options...
Darce Posted January 22, 2014 Author Report Share Posted January 22, 2014 i don't know why don't work in my server still random spawn without select screen my init.sqfhttp://pastebin.com/RY57kUc6 Check to ensure your description.ext includes the DRNdialogs.hpp and that the pathing is correct. Check your server_rpt to see if there are any syntax errors, I'm a shocking typist :) Link to comment Share on other sites More sharing options...
axekie Posted January 22, 2014 Report Share Posted January 22, 2014 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 ? Link to comment Share on other sites More sharing options...
NorthyPark Posted January 22, 2014 Report Share Posted January 22, 2014 Holy Plane! Nice! loveeeeee it :wub: Link to comment Share on other sites More sharing options...
calamity Posted January 22, 2014 Report Share Posted January 22, 2014 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 More sharing options...
Darce Posted January 22, 2014 Author Report Share Posted January 22, 2014 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 More sharing options...
Darce Posted January 22, 2014 Author Report Share Posted January 22, 2014 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 More sharing options...
calamity Posted January 22, 2014 Report Share Posted January 22, 2014 has anyone got this working ?? Link to comment Share on other sites More sharing options...
Hisperin Posted January 23, 2014 Report Share Posted January 23, 2014 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 More sharing options...
Darce Posted January 23, 2014 Author Report Share Posted January 23, 2014 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 More sharing options...
Hisperin Posted January 23, 2014 Report Share Posted January 23, 2014 Yep that works for me. The Spawn selection pops up. But sometimes i just stay spawned on ortok ? Edit: To prevent this try spawn shore= 0 Link to comment Share on other sites More sharing options...
Hisperin Posted January 23, 2014 Report Share Posted January 23, 2014 It seems if shorespawn mode is on he trys to find a position on shore, even without spawn random. Correct me if i am wrong. Link to comment Share on other sites More sharing options...
NorthyPark Posted January 23, 2014 Report Share Posted January 23, 2014 Works like a charm now! thx :D Link to comment Share on other sites More sharing options...
axekie Posted January 24, 2014 Report Share Posted January 24, 2014 Now works Thank you for nice script :D Link to comment Share on other sites More sharing options...
NorthyPark Posted February 3, 2014 Report Share Posted February 3, 2014 is there a chance you can make this for the new map's like Napf and saurland? :) that would blow my mind ;) Link to comment Share on other sites More sharing options...
calamity Posted February 3, 2014 Report Share Posted February 3, 2014 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 ??? Link to comment Share on other sites More sharing options...
calamity Posted February 3, 2014 Report Share Posted February 3, 2014 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 More sharing options...
flakvest Posted February 4, 2014 Report Share Posted February 4, 2014 OK so I still spawn on the shore but I see some people say they got it working. Does spawnshoremode need to be set to 0 or was there something else you had to do to get it working? Link to comment Share on other sites More sharing options...
calamity Posted February 4, 2014 Report Share Posted February 4, 2014 I found it in server_playerSetup.sqf dayzPlayerLogin2 = [_worldspace,_state,_randomSpot]; still does not work for me so I could be wrong. I spawn in game then map comes up then I pick spawn point but nothing happends Link to comment Share on other sites More sharing options...
flakvest Posted February 4, 2014 Report Share Posted February 4, 2014 Ok I got it working by changing spawnShoremode = 1; to this spawnShoremode = 0; In init.sqf Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now