Need help with adding protective dome area for bases.

deadly fishes

New Member
Hey guys! I've been trying to add a protective dome area to my admin base.

It won't let me log into the server when I followed these instructions:

http://dayz.st/w/Protected_Dome


I added the text it told me to add to the mission.pbo file and I made a file named dome.sqf like it said.

When I try to get into the server it just says "Wait for Host" and does not load in or anything.

Anyone have any ideas?

I'm not interested in the new admin menu or anything like that do make protective domes, as I already have a good custom admin menu so I don't want anything to conflict with it.

Thanks!
 
Thanks, I'll have to do it later I need to go to bed now, BUT read this post I made, it has been driving me nuts all day that some players can't get the blood bag to work.

Someone said after I changed to the recent PBO (the one i uploaded in the thread) it started working, but another player said it still didnt work for them...

-____-

I'll see if I can upload that change to you tomorrow

Thanks so much

Heres my thread
http://opendayz.net/threads/self-bloodbag-script-problems.10233/
 
Hmm, I am trying this too and have the same problem (Wait for Host).

In my mission.sqm, I notice that there are already a few "class Markers" listed. At the begining of the string it says:

Code:
class Markers
    {
        items=7;

Then I count 7 "class Item" lines (starting with "class Item0" and ending in "class item7".

So, since there are already 7 items, should'nt I change

Code:
class Markers
    {
        items=7;

to

Code:
class Markers
    {
        items=8;

and then change

Code:
class Markers
{
items=0;
class Item1
{
position[]={5448.5063,155.89714,12571.155};
name="dome";
text="Text to display on the map here";
type="waypoint";
colorName="ColorRed";
};
};

to

Code:
};
        class Item7
        {
            position[]={11477.646,317.32016,11347.531};
            name="dome";
            text="Admin's Base - KEEP OUT";
            type="waypoint";
            colorName="ColorRed";
        };

Well, I have tried it both ways and either way I get the "Waiting for Host" screen.
 
Hmm, I am trying this too and have the same problem (Wait for Host).

In my mission.sqm, I notice that there are already a few "class Markers" listed. At the begining of the string it says:

Code:
class Markers
    {
        items=7;

Then I count 7 "class Item" lines (starting with "class Item0" and ending in "class item7".

So, since there are already 7 items, should'nt I change

Code:
class Markers
    {
        items=7;

to

Code:
class Markers
    {
        items=8;

and then change

Code:
class Markers
{
items=0;
class Item1
{
position[]={5448.5063,155.89714,12571.155};
name="dome";
text="Text to display on the map here";
type="waypoint";
colorName="ColorRed";
};
};

to

Code:
};
        class Item7
        {
            position[]={11477.646,317.32016,11347.531};
            name="dome";
            text="Admin's Base - KEEP OUT";
            type="waypoint";
            colorName="ColorRed";
        };

Well, I have tried it both ways and either way I get the "Waiting for Host" screen.


Whoa! You definitely don't want to change

Code:
class Markers
{
items=0;
class Item1
{
position[]={5448.5063,155.89714,12571.155};
name="dome";
text="Text to display on the map here";
type="waypoint";
colorName="ColorRed";
};
};

to

Code:
};
        class Item7
        {
            position[]={11477.646,317.32016,11347.531};
            name="dome";
            text="Admin's Base - KEEP OUT";
            type="waypoint";
            colorName="ColorRed";
        };

By doing that, you are completely removing the Markers class altogether. You can't delete the line: class Markers

Creating this dome is pretty simple and only requires a Sensor item and the dome sqf file. You can certainly add a marker if you want it identified on your map, but it isn't necessary.

Here is what you need to do:

In mission.sqm, add this code in your class Sensors section:

Code:
class Item1 
        {
            position[]={X,Z,Y};
            a=200;
            b=200;
            activationBy="ANY";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="dome";
            expCond="(vehicle player) in thislist;";
            expActiv="dome = [] execVM ""dome.sqf"";";
            expDesactiv="terminate dome; titleText [""You have left the Admin Dome."", ""PLAIN DOWN"", 3];";
            class Effects
            {
             
            };
        };

In the above code, adjust the following lines:
class Item1 - change the 1 to the next number Item number in the Sensors section
position[]={X,Z,Y} - change X,Z,Y to the appropriate world position
a=200
b=200 - the numbers in a and b are the total size of the dome

IN THE EVENT THAT YOU DO NOT have a class Sensors section already in your mission.sqm, just add the following code right above the class Markers line. ONLY add this line if you do NOT have a class Sensors section in your mission.sqm. This code will be added in place of the code above.

Code:
class Sensors
    {
        items=1;
        class Item0
        {
            position[]={401.33044,-10,4591.9839};
            a=200;
            b=200;
            activationBy="ANY";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="dome";
            expCond="(vehicle player) in thislist;";
            expActiv="dome = [] execVM ""dome.sqf"";";
            expDesactiv="terminate dome; titleText [""You have left the Admin Dome."", ""PLAIN DOWN"", 3];";
            class Effects
                  {
                  };
        };
    };

Adjust the position, a, and b sections.

Now, in your dome.sqf file that should be in your Mission PBO, add the following:

Code:
// Dome
if ((getPlayerUID player) in ["########","########"]) exitWith {
titleText ["Welcome to the Admin Dome!", "PLAIN DOWN", 3];
};
// Everyone Else
titleText ["This dome is an Admin-only area, please leave immediately.", "PLAIN DOWN", 3];
sleep 5;
titleText ["If you do not turn back you will be killed.", "PLAIN DOWN", 3];
sleep 5;
titleText ["You have 10 seconds!", "PLAIN DOWN", 3];
sleep 5;
titleText ["You must leave now!", "PLAIN DOWN", 3];
sleep 5;
titleText ["You were warned!", "PLAIN DOWN", 3];
sleep 3;
player setDamage 1;

Make sure to change the ######## in the top line to the character IDs that you want to allow into the base. Everyone else will have 10 seconds to leave or they will die.

If you also want to add a map marker for this location, just add a new item to your class Markers section:

Code:
class Item7
        {
            position[]={401.33044,0,4591.9839};
            name="dome";
            text="Admin Dome";
            type="waypoint";
            colorName="ColorRed";
        };

This can obviously be customized. Make sure to change classItem7 to whatever number is next in line in your Markers section, and also make sure to change the items=# line below the class Markers line to your total number of Marker items.

Hope this helps. It works perfectly for me.
 
Ok, heres what I have now in mission.sqm (starting from the last part of "class Vehicles" all the way down to the botom):
Code:
                };
                class Item99
                {
                    position[]={-18725.248,379.55328,25889.797};
                    azimut=-17.0839;
                    id=95;
                    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 Sensors
    {
        items=1;
        class Item0
        {
            position[]={11477.646,317.32016,11347.531};
            a=350;
            b=350;
            activationBy="ANY";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="dome";
            expCond="(vehicle player) in thislist;";
            expActiv="dome = [] execVM ""dome.sqf"";";
            expDesactiv="terminate dome; titleText [""You have left the Admin Dome."", ""PLAIN DOWN"", 3];";
            class Effects               
                  };
        };
    };
    class Markers
    {
        items=8;
        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";
        };
        class Item7
        {
            position[]={11477.646,317.32016,11347.531};
            name="dome";
            text="Admin's Base - KEEP OUT";
            type="waypoint";
            colorName="ColorRed";
        };   
    };
};
class Intro
{
    addOns[]=
    {
        "chernarus"
    };
    addOnsAuto[]=
    {
        "chernarus"
    };
    randomSeed=6913869;
    class Intel
    {
        startWeather=0.25;
        forecastWeather=0.25;
        year=2008;
        month=10;
        day=11;
        hour=9;
        minute=20;
    };
};
class OutroWin
{
    addOns[]=
    {
        "chernarus"
    };
    addOnsAuto[]=
    {
        "chernarus"
    };
    randomSeed=4081731;
    class Intel
    {
        startWeather=0.25;
        forecastWeather=0.25;
        year=2008;
        month=10;
        day=11;
        hour=9;
        minute=20;
    };
};
class OutroLoose
{
    addOns[]=
    {
        "chernarus"
    };
    addOnsAuto[]=
    {
        "chernarus"
    };
    randomSeed=4975929;
    class Intel
    {
        startWeather=0.25;
        forecastWeather=0.25;
        year=2008;
        month=10;
        day=11;
        hour=9;
        minute=20;
    };
};
};

I noticed that there was an extra open bracket in the code that both you and the tutorial have, but I don't know why its there. You can see it here, right under "class Effects"
Code:
class Sensors
    {
        items=1;
        class Item0
        {
            position[]={401.33044,-10,4591.9839};
            a=200;
            b=200;
            activationBy="ANY";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="dome";
            expCond="(vehicle player) in thislist;";
            expActiv="dome = [] execVM ""dome.sqf"";";
            expDesactiv="terminate dome; titleText [""You have left the Admin Dome."", ""PLAIN DOWN"", 3];";
            class Effects
                  {
                  };
        };
    };

So I have tried it both with and without that extra open bracket, but no help either way. Still stuck at Waiting for Host.

Any known conflicts with Base Building, Debug Monitor, House Lighting, Auto Refuel, or Animated Crash Sites? I have all those added.
 
Your sensors starts too early. I see that you have two closing brackets right before your class Sensors line, but there needs to be four. See coded below (copy of my code starting from same point as yours above):

Code:
};
                class Item99
                {
                    position[]={-18725.248,379.55328,25889.797};
                    azimut=-17.0839;
                    id=95;
                    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 Sensors
    {
        items=2;
        class Item0
        {

Without all four of those closing brackets, you are still within class Groups (look waaaaay back toward the top of your file). I recommend Notepad++ or another similar program that will help you identify which brackets are closing which. It's easier to identify them.

Also, the "extra" bracket that you mentioned under class Effects you removed should be put back. You left the closing bracket for it but removed the open bracket. Here is an example of how that can look (or you can leave it blank because the dome.sqf already takes care of it):
Code:
class Effects
            {
                titleType="TEXT";
                titleEffect="PLAIN DOWN";
                title="You are entering a restricted zone.";
            };

I actually have the above example still in my actual server code, but the dome.sqf handles the information.
 
Aleksander,

Yep, you are correct. I made the changes you suggested and it works just fine now. Woohoo!
My base is now secure! Thanks for you help man!
 
alright guys I've been messing with this script for that past few days and can not get past the "Waiting for Host". I have tried what you have been posting Alek and I just don't know if I'm overlooking it.

May mission file is
Code:
    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 Sensors
{
items=1;
class Item0
{
position[]={###########};
a=100;
b=100;
activationBy="ANY";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="dome";
expCond="(vehicle player) in thislist;";
expActiv="dome = [] execVM ""dome.sqf"";";
expDesactiv="terminate dome; titleText [""Dome exit message."", ""PLAIN DOWN"", 3];";
class Effects
{
    titleType="TEXT";
                titleEffect="PLAIN DOWN";
                title="You are entering a restricted zone.";
                };
        };
};

I'm beating my head against my desk trying to figure this out so any help would be greatly appreciated.
 
We are also on this so we need a Baseprotection with several warnings and with a porting option if the player dont leave this area.
But it seems were also stuck on this.if we find a solution ,we will post it here.

send from my Galaxy S2 using tapatalk
 
please post your mission file can't help if we dont see whats wrong.

@wildjoker327 can you post your actual mission file?
 
Thx i will upload it asap when coming home from work

send from my Galaxy S2 using tapatalk
 
nevermind I over looked a line that I had added in at the bottom of my sqm I found it and deleted it

is there a way to adjust the height of the dome? I'm just worried about people in Helis
 
I'm pretty sure you will always receive suicide bombers.
i get the same problem wait at host. I added correctly.
 
I'm pretty sure you will always receive suicide bombers.
i get the same problem wait at host. I added correctly.

I have added a fix for dive bombers. I put up a smaller dome inside the dome and it deletes the vehicle that tried to enter leaving the would be dive bomber to plummet to the ground no chute :) Working on a less cruel method of stopping them by teleporting them away. Currently working on putting the uids into the database so adding / subtracting names can be done without a server restart.
 
Back
Top