Adding Map Markers

Hi

I'm looking to add map markers to my server but not 100% sure how,

These are the locations of where I want them (Made this in map editor to quickly get the areas).

Code:
_this = createMarker ["", [1840.1766, 8619.5752, -3.0517578e-005]];
_this setMarkerShape "ELLIPSE";
_this setMarkerType "Warning";
_this setMarkerBrush "Solid";
_this setMarkerSize [100, 100];
_marker_0 = _this;
 
_this = createMarker ["", [4666.3037, 8641.3789]];
_this setMarkerShape "ELLIPSE";
_this setMarkerType "Warning";
_this setMarkerBrush "Solid";
_this setMarkerSize [100, 100];
_marker_6 = _this;
 
_this = createMarker ["", [1663.2982, 5114.6597]];
_this setMarkerShape "ELLIPSE";
_this setMarkerType "Warning";
_this setMarkerBrush "Solid";
_this setMarkerSize [100, 100];
_marker_8 = _this;
 
_this = createMarker ["", [7898.2148, 4408.0791, 0]];
_this setMarkerShape "ELLIPSE";
_this setMarkerType "Warning";
_this setMarkerBrush "Solid";
_this setMarkerSize [100, 100];
_marker_10 = _this;
 
_this = createMarker ["", [8128.5659, 9186.123]];
_this setMarkerShape "ELLIPSE";
_this setMarkerType "Warning";
_this setMarkerBrush "Solid";
_this setMarkerSize [100, 100];
_marker_15 = _this;
 
_this = createMarker ["", [2773.2803, 12914.169]];
_this setMarkerShape "ELLIPSE";
_this setMarkerType "Warning";
_this setMarkerBrush "Solid";
_this setMarkerSize [100, 100];
_marker_17 = _this;
 
_this = createMarker ["", [6444.583, 14393.235]];
_this setMarkerShape "ELLIPSE";
_this setMarkerType "Warning";
_this setMarkerBrush "Solid";
_this setMarkerSize [100, 100];
_marker_19 = _this;
 
_this = createMarker ["", [3675.9795, 7491.9883]];
_this setMarkerShape "ELLIPSE";
_this setMarkerType "Warning";
_this setMarkerBrush "Solid";
_this setMarkerSize [100, 100];
_marker_21 = _this;
Any idea's? Thanks
 
Hi

I'm looking to add map markers to my server but not 100% sure how,

These are the locations of where I want them (Made this in map editor to quickly get the areas).

Code:
_this = createMarker ["", [1840.1766, 8619.5752, -3.0517578e-005]];
_this setMarkerShape "ELLIPSE";
_this setMarkerType "Warning";
_this setMarkerBrush "Solid";
_this setMarkerSize [100, 100];
_marker_0 = _this;
 
_this = createMarker ["", [4666.3037, 8641.3789]];
_this setMarkerShape "ELLIPSE";
_this setMarkerType "Warning";
_this setMarkerBrush "Solid";
_this setMarkerSize [100, 100];
_marker_6 = _this;
 
_this = createMarker ["", [1663.2982, 5114.6597]];
_this setMarkerShape "ELLIPSE";
_this setMarkerType "Warning";
_this setMarkerBrush "Solid";
_this setMarkerSize [100, 100];
_marker_8 = _this;
 
_this = createMarker ["", [7898.2148, 4408.0791, 0]];
_this setMarkerShape "ELLIPSE";
_this setMarkerType "Warning";
_this setMarkerBrush "Solid";
_this setMarkerSize [100, 100];
_marker_10 = _this;
 
_this = createMarker ["", [8128.5659, 9186.123]];
_this setMarkerShape "ELLIPSE";
_this setMarkerType "Warning";
_this setMarkerBrush "Solid";
_this setMarkerSize [100, 100];
_marker_15 = _this;
 
_this = createMarker ["", [2773.2803, 12914.169]];
_this setMarkerShape "ELLIPSE";
_this setMarkerType "Warning";
_this setMarkerBrush "Solid";
_this setMarkerSize [100, 100];
_marker_17 = _this;
 
_this = createMarker ["", [6444.583, 14393.235]];
_this setMarkerShape "ELLIPSE";
_this setMarkerType "Warning";
_this setMarkerBrush "Solid";
_this setMarkerSize [100, 100];
_marker_19 = _this;
 
_this = createMarker ["", [3675.9795, 7491.9883]];
_this setMarkerShape "ELLIPSE";
_this setMarkerType "Warning";
_this setMarkerBrush "Solid";
_this setMarkerSize [100, 100];
_marker_21 = _this;
Any idea's? Thanks


Paste that code into file "markers.sqf". That's just an example, name it whatever you'd like.
In the bottom of your "init.sqf" in your "mission.pbo" add;
Code:
[] ExecVM "markers.sqf"
Save it. Package it. Run it.
I can't guarantee it will work but that should. Let me know and if it doesn't I'll help you further. :)
 
I haven't tried that yet,

as every guide like thing doesn't relate to it in this way,

I do this for map edited parts though and I'm thankful for the support :)

I want a warning area for iron domes :|
 
I haven't tried that yet,

as every guide like thing doesn't relate to it in this way,

I do this for map edited parts though and I'm thankful for the support :)

I want a warning area for iron domes :|

I was wrong, not that simple. You'll get a server hang if you do it this way. Let me figure out how I had it. Sorry about that!
 
As far as I know, you need a name for each marker, and each name has to be unique:

Code:
_this = createMarker ["Insert name here", [1840.1766, 8619.5752, -3.0517578e-005]];

I haven't ever tried making a nameless marker before so I don't know if this needs to be done. Another potential problem is the use of the Warning marker type. For some reason, DayZ has quite a few marker types banned so they may not show up on the map at all. I've never used a Warning type before so I can't say for sure if there will be problems. Personally, I use the Flag type.

Other than that, your (OP's) way is exactly the way that I set up my markers, and the execVM method should work.
 
As far as I know, you need a name for each marker, and each name has to be unique:

Code:
_this = createMarker ["Insert name here", [1840.1766, 8619.5752, -3.0517578e-005]];

I haven't ever tried making a nameless marker before so I don't know if this needs to be done. Another potential problem is the use of the Warning marker type. For some reason, DayZ has quite a few marker types banned so they may not show up on the map at all. I've never used a Warning type before so I can't say for sure if there will be problems. Personally, I use the Flag type.

Other than that, your (OP's) way is exactly the way that I set up my markers, and the execVM method should work.

Do you have
Code:
if (isServer) then {
at the top? Just curious.
 
That's something I forgot to say. I don't have the isServer check but because (in my case) the script that calls the script containing the markers is run by the server only. The only problem with this method is that the markers will disappear forever to the player(s) who relog.

Since the OP wants to have these markers always visible to players, the "local" versions of the commands should be used so that each client creates their own markers that only they can see. In this case, an isServer check would not be needed, except to prevent the server from creating markers. So, the changes required would be:

createMarker >> createMarkerLocal
setMarkerType >> setMarkerTypeLocal
...

etc - simply add "Local" to the end of each command for the local version. You may need to adjust your BattlEye filters to allow the markers to be created clientside, however.
 
That's something I forgot to say. I don't have the isServer check but because (in my case) the script that calls the script containing the markers is run by the server only. The only problem with this method is that the markers will disappear forever to the player(s) who relog.

Since the OP wants to have these markers always visible to players, the "local" versions of the commands should be used so that each client creates their own markers that only they can see. In this case, an isServer check would not be needed, except to prevent the server from creating markers. So, the changes required would be:

createMarker >> createMarkerLocal
setMarkerType >> setMarkerTypeLocal
...

etc - simply add "Local" to the end of each command for the local version. You may need to adjust your BattlEye filters to allow the markers to be created clientside, however.

Which would be in the script.txt file, no?
 
Code:
    class Markers
    {
        items=13;
        class Item0
        {
            position[]={4078.8516,30.836605,4757.7241};
            name="center";
            type="Empty";
        };
        class Item1
        {
            position[]={960.92853,5.9915962,9237.6279};
            name="respawn_west";
            type="Empty";
        };
        class Item2
        {
            position[]={2085.0869,12.754358,5500.8735};
            name="spawn0";
            type="Empty";
        };
        class Item3
        {
            position[]={1355.4587,13.228598,315.10571};
            name="spawn1";
            type="Empty";
        };
        class Item4
        {
            position[]={4549.9399,2.847357,912.68982};
            name="spawn2";
            type="Empty";
        };
        class Item5
        {
            position[]={8880.2793,4.9778252,1703.156};
            name="spawn3";
            type="Empty";
        };
        class Item6
        {
            position[]={579.80536,15.394942,5547.1782};
            name="spawn4";
            type="Empty";
        };
        class Item7
        {
            position[]={3249.5935,6.3452759,2555.6763};
            name="spawn5";
            type="Empty";
        };
        class Item8
        {
            position[]={6143.4604,6.6867952,2753.012};
            name="spawn6";
            type="Empty";
        };
        class Item9
        {
            position[]={1268.5149,14.039586,2857.6775};
            name="spawn7";
            type="Empty";
        };
        class Item10
        {
            position[]={8295.4883,8.9126549,8667.2041};
            name="spawn8";
            type="Empty";
        };
        class Item11
        {
            position[]={9071.9766,14.249757,7322.6162};
            name="spawn9";
            type="Empty";
        };
        class Item12
        {
            position[]={6898.7329,6.2468476,3970.9077};
            name="spawn10";
            type="Empty";
        };
        class Item13
        {
            position[]={3368.4897,8039.4604};
            name="CastleAculto";
            text="Aculto Caslte";
            type="Camp";
            colorName="ColorBlack";
        };
        class Item14
        {
            position[]={3072.2759,8076.4429};
            name="AbandonedOutpost";
            text="Abandoned Outpost";
            type="Headquarters";
            colorName="ColorRed";
        };
        class Item15
        {
            position[]={3276.3301,3617.7593};
            name="FOBFoxtrot";
            text="FOB Foxtrot";
            type="Headquarters";
            colorName="ColorRed";
        };
        class Item16
        {
            position[]={6641.5107,3477.6257};
            name="PMC";
            text="Abandoned PMC HQ";
            type="Defend";
            colorName="ColorOrange";
        };
        class Item17
        {
            position[]={6320.7217,3910.9985};
            name="Armory";
            text="Abandonded Armory";
            type="Headquarters";
            colorName="ColorRed";
        };
        class Item18
        {
            position[]={8582.7051,513.36304};
            name="Tango";
            text="FOB Tango";
            type="Headquarters";
            colorName="ColorRed";
        };
        class Item19
        {
            position[]={7372.8213,1852.2626};
            name="FieldHosp";
            text="USMC Field Hospital";
            type="Vehicle";
            colorName="ColorBlack";
        };
        class Item20
        {
            position[]={7667.6074,1647.5299};
            name="MilInd";
            text="Abandoned Military Warehouse";
            type="Defend";
            colorName="ColorYellow";
        };
        class Item21
        {
            position[]={6859.3291,6146.9453};
            name="Holdout";
            text="Survior Holdout";
            type="Defend";
            colorName="ColorWhite";
        };
        class Item22
        {
            position[]={8575.3232,8881.4082, 0};
            name="Complex";
            text="Unkown Complex";
            type="Defend";
            colorName="ColorWhite";
        };
        class Item23
        {
            position[]={4803.7944,9975.6973};
            name="xG";
            text= "Explicit Gaming's Lingor Server";
            type= "Vehicle";
            colorName="ColorBlack";
        };
        class Item24
        {
            position[]={4799.5132,9622.3652};
            name="teamspeak";
            text="ExplicitGaming.clancoms.com:1404";
            type="Vehicle";
            colorName="ColorBlack";
        };
    };
};
Still not showing up on my map. :c
 
I tested some of the cfgMarkers from the enclosed link.

Working:
CommandTeam
Move
Faction_US [looks nice with ColorWhite]
Attack

Not working:
Faction_USMC
Faction_RU
Faction_CDF [really wanted that one to work]
Town
City
Flag1
hd_flag
 
I tested some of the cfgMarkers from the enclosed link.

Working:
CommandTeam
Move
Faction_US [looks nice with ColorWhite]
Attack

Not working:
Faction_USMC
Faction_RU
Faction_CDF [really wanted that one to work]
Town
City
Flag1
hd_flag

All the ones I have in there I tested using the 2D editor with DayZ enabled. They should work but Ill try changing them and seeing what happens.
 
Still not showing up on my map. :c

Their not showing up because your co-ords are wrong. You only have x,x when you should have x,x,x if I'm not mistaken?

Anyway, on your last set of co-ords you have this:
4799.5132,9622.3652

When it should look like this:
4799.513,0,9622.365

Here is my last line as an working example:
class Item10
{
position[]={12671.721,0,9068.639};
name="SURVIVORCOMPOUND";
text="Survivor Compound";
type="Faction_US";
colorName="ColorWhite";
};
};
 
Their not showing up because your co-ords are wrong. You only have x,x when you should have x,x,x if I'm not mistaken?

Anyway, on your last set of co-ords you have this:
4799.5132,9622.3652

When it should look like this:
4799.513,0,9622.365

Here is my last line as an working example:
class Item10
{
position[]={12671.721,0,9068.639};
name="SURVIVORCOMPOUND";
text="Survivor Compound";
type="Faction_US";
colorName="ColorWhite";
};
};
Hmmm, that would make a lot of sense. I'll test that as well. I appreciate all your help.
 
Back
Top