[Request] Zone base warning/kill

getting this error in my report over and over again with all the different UID's i have put into dome.sqf

Code:
 7:56:23 Error in expression <["if(getPlayerUID player == '#########')t>
7:56:23  Error position: <"if(getPlayerUID player == '#########')t>
7:56:23  Error Missing ""

this is my mission.sqm

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[]={14242,0.001,14135.2};
                a=500;
                b=500;
                activationBy="WEST";
                repeating=1;
                interruptable=1;
                age="UNKNOWN";
                name="RR dome";
                expCond="(vehicle player) in thislist;";
                expActiv="dome = [] execVM ""dome.sqf"";";
                expDesactiv="terminate RR dome; titleText [""You've left {RR} clan dome"", ""PLAIN DOWN"", 3];";
                class Effects
            {
            };
        };
    };
    class Markers
    {
        items=7;
        class Item0
        {
            position[]={7839.6055,381.33774,8414.7324};
            name="center";
            type="Empty";
        };

and here is my dome.sqf

Code:
// Below, put the UID of player(s) where it says pasteUIDhere that you want to give access to the dome
if ((getPlayerUID player) in ["#########" , "#########" , "#########" , "#########" , "#########" , "#########" , "#########" , "#########"]) exitWith {
titleText ["You have entered Your Base", "PLAIN DOWN", 3];
};
// What happens if unauthorized players get into the dome
titleText ["You are entering restricted area, leave or Die.", "PLAIN DOWN", 3];
sleep 5;
titleText ["Are you blind? GET OUT OR YOU GONNA DIE FOOL", "PLAIN DOWN", 3];
sleep 5;
titleText ["Still not listening, huh? You got a death wish?", "PLAIN DOWN", 3];
sleep 10;
titleText ["You have 10 seconds left or you are going to die", "PLAIN DOWN", 3];
sleep 10;
titleText ["Ok thats it, You...Are...Dead!.", "PLAIN DOWN", 3];
sleep 2;
player setDamage 1;

does this setup look alright? i go were the dome is located but there is nothing that pops up. no warning nothing. i also have TSW running with a dome in the same spot, would this cause any errors? we have tried taking the dome down on tsw but still wont recognize the dome script
 
Hi Zsquad. Ive used your dome on my bliss dayz server and its epic. I am wondering if its possible to have more than one dome in game as several of my regulars would like there bases protected too.
If it is possible would you be kind enough to let me know how.
Many thanks
Termy
 
Here is the code for my mission.sqm.

class Sensors
{
items=1;
class Item0
{
position[]={2269.51,0.002,11974.9};
a=75;
b=75;
rectangular="1";
activationBy="WEST";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="dome";
expCond="(vehicle player) in thislist;";
expActiv="dome = [] execVM ""dome.sqf"";";
expDesactiv="terminate dome; titleText [""May the Force be with you."", ""PLAIN DOWN"", 3];";
class Effects
{
};
};
};

I believe the code is right.

Here is my dome.sqf.

{if ((getPlayerUID player) in ["xxxxxxxxx","xxxxxxxxx"]) exitWith {
titleText ["Welcome to the Jedi Temple.", "PLAIN DOWN", 3];
};
} else {
titleText ["You are entering a restricted area. Leave within 15 seconds or you WILL BE KILLED", "PLAIN DOWN", 3];
sleep 15;
player setDamage 1;
};

The problem I have, is that when people enter....no one actually get killed. Nothing happens. They enter. The "Welcome" message pops up. I have the UIDs set correctly, but something has to be off/missing/coded wrong.

Any help would be great.
 
chris, go here mate, i followed this to the letter and it worked 100%. Ive even got more than 1 dome working.

http://dayz.st/w/Protected_Dome

OK. I've changed both my dome.sqf and mission.sqm by copying the code from the link you provided. I'm uploading the updated PBO to the server now and I will test once I get home from work.

As a last resort, would it be possible to upload your DOME script so I can compare in case this still doesn't work? Like I said the only part that wasn't working earlier was that I had a random player test the script by entering my base, and it told him "Welcome to the Jedi Temple," (which it should only tell me that) but after that, about 2 minutes expired and he was still running around. No death (I have my script set to a 15 second death).

I really hope this works this time.
 
Hi mate. I won't be back till about 9pm tonight, but ill post up my file when I get home.

Sounds good. I never had a chance to test last night because no one joined my server. It seems I have traffic during the day, but not in the evening/night. I already have my UID in place so I need a random spawn to enter the dome to actually see if it's working right.
 
Chris, if you get the message " welcome home" , then it has worked. Also when you leave the area it will tell you so.
But when i get home ill still post you my config.
 
heres my files chris:

// Below, put the UID of player(s) where it says pasteUIDhere that you want to give access to the dome
if ((getPlayerUID player) in ["xxxxxx" , "xxxxxx" , "xxxxxx"]) exitWith {
titleText ["Welcome home", "PLAIN DOWN", 3];
};
// What happens if unauthorized players get into the dome
titleText ["You are entering restricted area, leave.", "PLAIN DOWN", 3];
sleep 5;
titleText ["Are you blind? GET OUT", "PLAIN DOWN", 3];
sleep 5;
titleText ["Still not listening, huh?", "PLAIN DOWN", 3];
sleep 5;
titleText ["You have 5 seconds left", "PLAIN DOWN", 3];
sleep 5;
titleText ["Good night.", "PLAIN DOWN", 3];
sleep 2;
player setDamage 1;

and this is the other:

class Sensors
{
items=2;
class Item0
{
position[]={8156.1401,0.001,21270.801};
a=100;
b=150;
rectangular=1;
activationBy="WEST";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="dome";
expCond="(vehicle player) in thislist;";
expActiv="dome = [] execVM ""dome.sqf"";";
expDesactiv="terminate dome; titleText [""You've left the dome"", ""PLAIN DOWN"", 3];";
class Effects
{
};
};

If you have 1 dome then your items= needs to be 1 not 2.
I hope this helps
 
heres my files chris:

// Below, put the UID of player(s) where it says pasteUIDhere that you want to give access to the dome
if ((getPlayerUID player) in ["xxxxxx" , "xxxxxx" , "xxxxxx"]) exitWith {
titleText ["Welcome home", "PLAIN DOWN", 3];
};
// What happens if unauthorized players get into the dome
titleText ["You are entering restricted area, leave.", "PLAIN DOWN", 3];
sleep 5;
titleText ["Are you blind? GET OUT", "PLAIN DOWN", 3];
sleep 5;
titleText ["Still not listening, huh?", "PLAIN DOWN", 3];
sleep 5;
titleText ["You have 5 seconds left", "PLAIN DOWN", 3];
sleep 5;
titleText ["Good night.", "PLAIN DOWN", 3];
sleep 2;
player setDamage 1;

and this is the other:

class Sensors
{
items=2;
class Item0
{
position[]={8156.1401,0.001,21270.801};
a=100;
b=150;
rectangular=1;
activationBy="WEST";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="dome";
expCond="(vehicle player) in thislist;";
expActiv="dome = [] execVM ""dome.sqf"";";
expDesactiv="terminate dome; titleText [""You've left the dome"", ""PLAIN DOWN"", 3];";
class Effects
{
};
};

If you have 1 dome then your items= needs to be 1 not 2.
I hope this helps


I just logged in to the forum after a couple days away from it. I did indeed copy and paste the code from the link you provided a few days ago. I was able to get a couple people to test out the "dome" and it is in fact working great.

If I wanted to create another dome, would i just create a "dome2.sqf"? I can modify the mission.sqm file with the right "dome2" pointer if this is the way to add another dome.
 
Yes, create a dome2.sqf and modify the mission.sqm like this:

class Sensors
{
items=2;
class Item0
{
position[]={8156.1401,0.001,21270.801};
a=100;
b=150;
rectangular=1;
activationBy="WEST";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="dome";
expCond="(vehicle player) in thislist;";
expActiv="dome = [] execVM ""dome.sqf"";";
expDesactiv="terminate dome; titleText [""You've left the dome"", ""PLAIN DOWN"", 3];";
class Effects
{
};
};
class Item1
{
position[]={7779.1099,0.001,5509.0298};
a=23;
b=23;
activationBy="WEST";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="dome2";
expCond="(vehicle player) in thislist;";
expActiv="dome = [] execVM ""dome2.sqf"";";
expDesactiv="terminate dome; titleText [""You've left the dome"", ""PLAIN DOWN"", 3];";
class Effects
{
};
};
};
};

Like you said, point the execVM to dome2.sqf and you have your second working dome.
GL
 
Yes, create a dome2.sqf and modify the mission.sqm like this:

class Sensors
{
items=2;
class Item0
{
position[]={8156.1401,0.001,21270.801};
a=100;
b=150;
rectangular=1;
activationBy="WEST";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="dome";
expCond="(vehicle player) in thislist;";
expActiv="dome = [] execVM ""dome.sqf"";";
expDesactiv="terminate dome; titleText [""You've left the dome"", ""PLAIN DOWN"", 3];";
class Effects
{
};
};
class Item1
{
position[]={7779.1099,0.001,5509.0298};
a=23;
b=23;
activationBy="WEST";
repeating=1;
interruptable=1;
age="UNKNOWN";
name="dome2";
expCond="(vehicle player) in thislist;";
expActiv="dome = [] execVM ""dome2.sqf"";";
expDesactiv="terminate dome; titleText [""You've left the dome"", ""PLAIN DOWN"", 3];";
class Effects
{
};
};
};
};

Like you said, point the execVM to dome2.sqf and you have your second working dome.
GL

That's what I thought. Sweet. Thanks Termy for verifying what I was thinking!

On another note, has anyone heard of "server_monitor.sqf'"? I'm looking to change the date to August 31st (or whichever date works best for Full Moon Nights) so the moon comes out earlier and is full, for the "Full Moon Nights" feature. Where is the "server_monitor.sqf" located and is that the right place to make the change? Or do I need to be looking for another file?
 
Do you have a dayz. St server? If so you can get the default server.pbo from there. I also have full moon nights on my server. When I get home ill post you the info.
 
Morning,

First of all, I have domes running on my dayz epoch server and they work well...except for one little glitch some of my players just found.

If a player puts on Skin_Bandit2_DZ within their dome, they get the message that they have left the dome. They can then walk into anyones dome without being killed... Have tested on 3 different players and it they all experience the same same result.

Is there a quick fix to this, apart from removing the skin from the server?

Sorry if i missed this else where in the forum.
 
Patch 1.8 has broken my dome script. I understand the script has to go inside the mission.sqm file, but the new mission pbo for 1.8 inside the mission.sqm file only has one line in it, "#include "\z\addons\dayz_code\system\mission\mission.sqm".

Is there something I'm missing or a new location where I can add the sensor into the mission file?
 
Patch 1.8 has broken my dome script. I understand the script has to go inside the mission.sqm file, but the new mission pbo for 1.8 inside the mission.sqm file only has one line in it, "#include "\z\addons\dayz_code\system\mission\mission.sqm".

Is there something I'm missing or a new location where I can add the sensor into the mission file?

The mission PBO should come from your server host file structure. MPmission<<<dayz_mission (for DayZ.st, Bliss) or dayz1_chernarus (HFB Servers, @Reality). That is where the full mission PBO is located. Use an FTP program such as FileZilla to download and upload all files.

Your mission.sqm where the dome script should go would look like this:

Code:
class Sensors
    {
        items=5;                        //I have 5 total dome scripts so always adjust as necessary
        class Item0
        {
            position[]={5013.2856,9.7644138,3565.5691};
            a=80;
            b=45;
            angle=340;
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="dome";
            expCond="(vehicle player) in thislist;";
            expActiv="dome = [] execVM ""dome.sqf"";";
            expDesactiv="terminate dome; titleText [""Stay safe, the Survivors depend on your leadership."", ""PLAIN DOWN"", 3];";
            class Effects
            {
            };
        };

And should be placed right before class Markers. Use Notepad++ search function, and enter class Markers in the search box. The classs Markers block of code is usually not far from the bottom of the mission.sqm.

If you need any more help, email your mission.sqm to [email protected]. I'll take a look at it as time permits.
 
Morning,

First of all, I have domes running on my dayz epoch server and they work well...except for one little glitch some of my players just found.

If a player puts on Skin_Bandit2_DZ within their dome, they get the message that they have left the dome. They can then walk into anyones dome without being killed... Have tested on 3 different players and it they all experience the same same result.

Is there a quick fix to this, apart from removing the skin from the server?

Sorry if i missed this else where in the forum.

Best bet is to ban the Skin_Bandit2_DZ skin from the server by editing your BattlEye filters. I'm not the best when it comes to BattlEye filter editing, so I'd recommend doing some research or asking in another topic thread. Theoretically, you could just ban the skin. I'm not sure where you would look if you wanted to just remove the skin completely.

I'm fairly new to the scripts scene. I can read, pay attention to detail, and analyze, but I know nothing about the coding...as far as processes, making calls, blah blah blah.
 
Morning,

First of all, I have domes running on my dayz epoch server and they work well...except for one little glitch some of my players just found.

If a player puts on Skin_Bandit2_DZ within their dome, they get the message that they have left the dome. They can then walk into anyones dome without being killed... Have tested on 3 different players and it they all experience the same same result.

Is there a quick fix to this, apart from removing the skin from the server?

Sorry if i missed this else where in the forum.

You could try adding a copy of the dome in the exact same spot as your current ones with the condition as
if (typeOf player == "Skin_Bandit2_DZ") then {
dome script here
};
Not really sure why changing skin like that would matter though, you could try adding
or if (typeOf player == "Skin_Bandit2_DZ") then {
to your current dome script.

Try either of those solutions and if they don't fix the problem then message me with your dome script or put it here and I'll try to come up with another solution.
 
Back
Top