Modifying Survivor Spawn Locations

This worked great for me on Taviana, I added 12 different spawn locations and it works all the time.

Make sure you do use the single player editor and not the editor with ALT+E because when I used that and copied the coords I always ended up spawning on the same mountain in the middle of nowhere.

Thanks for this! The old Tavi spawns were so annoying where everybody always spawned at Beylov.
 
Theres a few things you need to do, but the main points that should get you up and running.

Create a mod folder with your map @zombiesmap

Inside that folder should be your map zombiesmap.pbo

Create a mod folder for the dayz files @DayZ (as you would for a normal install of DayZ)

Next you want to download a server install and set it up inside a COPY of your arma 2 OA folder (there are plenty of tutorials around to show that) - call the folder something like MyServer (anything will do).

Inside MyServer\MPMissions create a new mission folder called

dayz_1.zombiesmap

so...

MyServer\MPMissions\dayz_1.zombiesmap

Copy over the mission.sqm, init.sqf and description.sqf from dayz_1.Chernarus to dayz_1.zombiesmap

Edit the copied over mission.sqm file and add your addon to the existing addons:


addOns[]=
{
"zombiesmap",
"ca_modules_animals",
"dayz_code",
"dayz_weapons",
"dayz_equip",
"dayz_vehicles",


Next open the server.cfg file and change as follows:

class Missions { class DayZ { template = dayz_1.zombiesmap; difficulty = "Veteran"; }; };

In your server startup file change the world and mod folders:

start .\Expansion\beta\arma2oaserver.exe -mod=@DayZ;@zombiesmap;@hive -name=cfgdayz -config=cfgdayz\server.cfg -cfg=cfgdayz\arma2.cfg -profiles=cfgdayz -world=zombiesmap -exThreads=0 -maxMem=1024

Note the above is an example, it depends on the server (that example is using pwnoz0rs build).

After that you want to make sure you have @zombiesmap and @dayz in both the root of your server and the Arma 2 OA installation folder.

Set your launch options for starting the arma 2 game:

-mod=@zombiesmap;@DayZ

That should be enough to get you up and running with your map and the DayZ mission running. If you use the same buildings as Chernarus then you will get loot and zombies spawn, if not, and you are using new buildings it gets a little more complicated, but I will go into that soon.
Not tried this yet but soon about to, how does this work with custom maps that arent supported in the database, will it throw a hissy fit or will it just not spawn in vehicles etc / write data to the database for the custom map ?
 
Code:
class Item0
        {
            if ((getPlayerUID player) in ["100131590","100974662"]) then;
            position[]={11419.7216,0,11393.8};
            name="Admin Spawn";
            type="Empty";
            Else;
            {
                class Item1
                {
                    position[]={7839.6055,381.33774,8414.7324};
                    name="center";
                    type="Empty";
                };
This is obv not working just something ive been trying to play around with.

Any ideas?
 

Seven

Moderator
Staff member
you can't put sqf code into c++. Plus that fact that, that doesn't follow any syntax at all. You want to look at player_spawn2.sqf
 
been looking and having a bash with very little exp with these things

Code:
    if ((getPlayerUID player) in ["71687942","104251078","104965382","100974662","94188102","94833350"]);
            _isZero = ((_position select 0) == 0) and ((_position select 1) == 0);
    _position = [_position select 0,_position select 1,0];
        if (!_isZero) then {
        _worldspace = {6439,0,14165};
        };
    };
 
Anyone know how to fix so you dont spawn in the house in Novy?
And I want to have spawns near Berezino, do i then have to add respawn_east?
 
OK so a small disclaimer: This works with the HALO spawn script I posted on the forums. I have yet to test it for regular spawns, so you guys will have to try it out and let me know. I never once spawned in Novy and did spawn at my new locations.

For the purpose of this tutorial, I will be adding in 1 new spawn point. As it is pretty straight forward after that if you want more.

The numbers here are examples only. Follow it and get the correct positions you want.


On with it!

1. Start ARMA 2: OA 2D Editor
2. Anywhere you want to make a spawn, place a Single Unit.
3. Save the Mission as "NameWhateverYouWant" Export to Multiplayer Missions.

Navigate to your missions directory (ex. C:\Users\User\Documents\ArmA 2\missions (or mpmissions)\NameWhateverYouWant)

Open the mission.sqm file.

Find:
Code:
    class Groups
    {
        items=1;
        class Item0
        {
            side="WEST";
            class Vehicles
            {
                items=1;
                class Item0
                {
                    position[]={13454.612,5.503756,5224.3975};
                    id=0;
                    side="WEST";
                    vehicle="USMC_Soldier";
                    leader=1;
                    skill=0.60000002;
                };
            };
        };

Copy Only The Position(and paste it somewhere safe)
Code:
position[]={13454.612,5.503756,5224.3975};
Now open your DayZ Mission File.
dayz_X.chernarus.pbo>>mission.sqm
(X Represents your Instance ID)

Find:
Code:
        class Item6
        {
            position[]={13510.764,0.44504455,5249.3027};
            name="spawn4";
            type="Empty";
        };
Copy that and paste it right underneath it. Change the Item6 to Item7 as well as "spawn4" to "spawn5" etc.
Remember that position you copied from above? Paste here as well.
Like so:
Code:
        class Item7
        {
            position[]={13454.612,5.503756,5224.3975};
            name="spawn5";
            type="Empty";
        };

Now change the total number of items to X+1. X representing however many you had before + the new one you added. I cant remember what the default DayZ number is so here is an example:
Code:
    class Markers
    {
        items=1;
Change to:
Code:
    class Markers
    {
        items=2;
So on and so forth.

Now you have to change the server_playerSetup.sqf to add these to the random spawn.

dayz_server.pbo>>compile>>server_playerSetup.sqf

Find:
Code:
            _mkr = "spawn" + str(round(random 4));
Change "random 4" to however many spawns you have total. DO NOT count center or respawn_west. Only "spawnX". In our example we added 1 new spawn. so ours would be "random 5" Like so:
Code:
            _mkr = "spawn" + str(round(random 5));


I believe this will work for standard spawns, but I am not sure. Let me know how it works out for you.
 
Like I said. I haven't tested it for regular spawns. But it worked with the HALO Spawn. I added 2 new spawns to the east coast and haven't seen Novy Since.

Just saying give it a try.
 
This may seem like a rather stupid question but I'll ask anyways.
Is this method used only to change the current spawn points on a map? Or can it be used to add points in addition to the originals?
 
It defaults to the wilderness plains on DayZst using 1.7.7.1 ... someone double check this please?

Code:
    class Markers
    {
        items=7;
        class Item0
        {
            position[]={6311.085, 7721.3115, -300.9949};
            name="center";
            type="Empty";
        };
        class Item1
        {
            position[]={1901.7036, 12448.035, -243};
            name="respawn_west";
            type="Empty";
        };
        class Item2
        {
            position[]={13988.793, 11207.276, -0.00045776367};
            name="spawn0";
            type="Empty";
        };
        class Item3
        {
            position[]={13399.932, 5496.9468};
            name="spawn1";
            type="Empty";
        };
        class Item4
        {
            position[]={11644.269, 3233.5034, -1.9370513};
            name="spawn2";
            type="Empty";
        };
        class Item5
        {
            position[]={8699.9639, 2259.9888, -2.9713647};
            name="spawn3";
            type="Empty";
        };
        class Item6
        {
            position[]={1630.3701, 2213.3789, -1.9073486e-006};
            name="spawn4";
            type="Empty";
        };
    };
 
Did anyone actually get this working successfully?

Im trying to remove coast locations and have a bit of variety around the map i.e. more spawns up North.

Everytime I set my locations in Arma2 editor and copy the locations into the mission.sqm file, I spawn in the debug planes...

Any ideas?

Cheers
 

Andrew_S90

Valued Member!
Staff member
//////////////////////////////////////
I found out how to do this successfully and its actually very easy and cool.
On my new mod I am playing around with spawn points and its actually very easy!

To change the spawn points the coordinates like this
Code:
        class Item0
        {
            position[]={7839.6055,381.33774,8414.7324};
            name="center";
            type="Empty";
        };
        class Item1
        {
            position[]={-18697.58,379.53012,25815.256};
            name="respawn_west";
            type="Empty";
        };
        class Item2
        {
            position[]={4932.3345,0.39950246,1989.1094};
            name="spawn0";
            type="Empty";
        };
        class Item3
        {
            position[]={2236.0391,0.63119155,1923.3735};
            name="spawn1";
            type="Empty";
        };
        class Item4
        {
            position[]={8738.1328,0.45720705,2122.1082};
            name="spawn2";
            type="Empty";
        };
        class Item5
        {
            position[]={10909.267,0.57597214,2422.3096};
            name="spawn3";
            type="Empty";
        };
        class Item6
        {
            position[]={13510.764,0.44504455,5249.3027};
            name="spawn4";
            type="Empty";
        };

The points you want your players to spawn at, the coordinates selected as seen here
position[]={13510.764,0.44504455,5249.3027}

HAVE TO BE... IN THE WATER

You have to have the coordinates in the water otherwise it will not work! and you will get a debug spawn/novy spawn!
Usually to the point where the player starts "swimming"
Is where you want your coordinate!

I have not tested this at ponds yet but I know it works for the ocean on any part of Map!

Hope this helps!

Andrew

(P.S please reply here if you get this working on your own!)

//////////////////////////////////////
 

falconsan

Well-Known Member
Hello,

must be any pbo be changed? eg. DayZ_server.pbo? i have modified my mission.sqm but i am only spawn at the same position. Other users have the same problem. spawning in the middle of nowhere at the same position. this is my mission.sqm:
Code:
version=11;
class Mission
{
        addOns[]=
        {
                "sauerland",
                "ca_modules_animals",
                "dayz_code",
                "dayz_weapons",
                "dayz_equip",
                "dayz_vehicles",
                "cacharacters_pmc",
                "ca_modules_functions"
        };
        addOnsAuto[]=
        {
                "dayz_weapons",
                "ca_modules_functions",
                "sauerland"
        };
        randomSeed=11171215;
        class Intel
        {
                briefingName="DayZ";
                briefingDescription="DayZ Alpha";
                startWeather=0.067362607;
                forecastWeather=0.52341133;
                year=2008;
                month=10;
                day=1;
                hour=12;
        };
        class Groups
        {
                items=2;
                class Item0
                {
                        side="WEST";
                        class Vehicles
                        {
                                items=100;
                                class Item0
                                {
                                 
                                        .
                                        .
                                        . HERE ARE THE  100 of class Items like
                                      class Item0
                                      {
                                          position[]={-18709.713,379.10086,25923.943};
                                          azimut=-17.0839;
                                          id=11;
                                          side="WEST";
                                          vehicle="Survivor1_DZ";
                                          player="PLAY CDG";
                                          skill=0.60000002;
                                          init="this enableSimulation false;this allowDammage false;this disableAI 'FSM';this disableAI 'ANIM';this disableAI 'MOVE';";
                                    };
                                        .
                                        .
                                };
                };
                class Item1
                {
                        side="LOGIC";
                        class Vehicles
                        {
                                items=1;
                                class Item0
                                {
                                        position[]={708.96582,35.858719,3533.1272};
                                        id=50;
                                        side="LOGIC";
                                        vehicle="FunctionsManager";
                                        leader=1;
                                        lock="UNLOCKED";
                                        skill=0.60000002;
                                };
                        };
                };
        };
        class Markers
        {
                items=7;
                class Item0
                {
                        position[]={11129.766,220.04549,13524.596};
                        name="center";
                        type="Empty";
                };
                class Item1
                {
                        position[]={2342.1287,299.85269,13942.207};
                        name="respawn_west";
                        type="Empty";
                };
                class Item2
                {
                        position[]={9470.1436,48.279968,22372.945};
                        name="spawn0";
                        type="Empty";
                };
                class Item3
                {
                    position[]={16838.486,357.53174,22233.359};
                        name="spawn1";
                        type="Empty";
                };
                class Item4
                {            position[]={18454.141,371,22066.053};
                        name="spawn2";
                        type="Empty";
                };
                class Item5
                {          position[]={19122.197,181.7726,14402.648};
                        name="spawn3";
                        type="Empty";
                };
                class Item6
                {
                            position[]={6817.6475,175.35385,6536.6685};
                        name="spawn4";
                        type="Empty";
                };
        };
};
class Intro
{
        addOns[]=
        {
                "sauerland"
        };
        addOnsAuto[]=
        {
                "sauerland"
        };
        randomSeed=6913869;
        class Intel
        {
                startWeather=0.25;
                forecastWeather=0.25;
                year=2008;
                month=10;
                day=11;
                hour=9;
                minute=20;
        };
};
class OutroWin
{
        addOns[]=
        {
                "sauerland"
        };
        addOnsAuto[]=
        {
                "sauerland"
        };
        randomSeed=4081731;
        class Intel
        {
                startWeather=0.25;
                forecastWeather=0.25;
                year=2008;
                month=10;
                day=11;
                hour=9;
                minute=20;
        };
};
class OutroLoose
{
        addOns[]=
        {
                "sauerland"
        };
        addOnsAuto[]=
        {
                "sauerland"
        };
        randomSeed=4975929;
        class Intel
        {
                startWeather=0.25;
                forecastWeather=0.25;
                year=2008;
                month=10;
                day=11;
                hour=9;
                minute=20;
        };
};
I have no more idea...

Must be _randomSpot = false; in the server_playerLogin.sqf or server_playerSetup.sqf set to true?

My Brain stucks!

regrads
falconsan
 
Top