Jump to content
  • 0

Markers not working?


Desire

Question

I basically went into my mission.sqm and added my own marker, but it doesn't seem to be working. Anyone know why?

 

here is the code.

	class Markers
	{
		items=18;
		class Item0
		{
			position[]={7839.6055,381.33774,8414.7324};
			name="center";
			type="Empty";
		};
		class Item1
		{
			position[]={-7245.377,365.98782,19535.367};
			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[]={6326.4805,304.99265,7809.4888};
			name="Tradercitystary";
			text="Trader City Stary";
			type="mil_circle";
			colorName="ColorBlack";
		};
		class Item8
		{
			position[]={4361.4937,3,2259.9526};
			name="wholesaleSouth";
			text="Wholesaler";
			type="mil_dot";
			colorName="ColorBlack";
		};
		class Item9
		{
			position[]={13532.614,3.0083523,6355.9497};
			name="boatTraderEast";
			text="Wholesaler";
			type="mil_dot";
			colorName="ColorBlack";
		};
		class Item10
		{
			position[]={7989.3354,0.30462033,2900.9946};
			name="BoatDealerSouth";
			text="Boat Dealer";
			type="mil_dot";
			colorName="ColorBlack";
		};
		class Item11
		{
			position[]={12060.471,158.85699,12638.533};
			name="AirVehicles";
			text="Aircraft Dealer";
			type="mil_dot";
			colorName="ColorGreen";
		};
		class Item12
		{
			position[]={1606.6443,289.70795,7803.5156};
			name="BanditDen";
			text="Bandit Camp";
			type="mil_dot";
			colorName="ColorRed";
		};
		class Item13
		{
			position[]={11447.91,317.27109,11364.536};
			name="Klen";
			text="Trader City Klen";
			type="mil_circle";
			colorName="ColorGreen";
		};
		class Item14
		{
			position[]={13441.16,1.1406164,5429.3013};
			name="BoatDealerEast";
			text="Boat Dealer";
			type="mil_dot";
			colorName="ColorBlack";
		};
		class Item15
		{
			position[]={4064.2258,365.13501,11665.938};
			name="TradercityBash";
			text="Trader City Bash";
			type="mil_circle";
			colorName="ColorBlack";
		};
		class Item16
		{
			position[]={12944.227,210.19823,12766.889};
			name="HeroTrader";
			text="Hero Camp";
			type="mil_dot";
			colorName="ColorBlue";
		};
		class Item17
		{
			position[]={6991.15,5362.56,0};
			name="CarSafeSpot";
			text="Vehicle Safe Spot";
			type="mil_dot";
			colorName="ColorGreen";
		};
	};

Item17 is my custom one.

Link to comment
Share on other sites

Recommended Posts

  • 0

Hi,

 

the position of markers is a bit different..

{posX, PosZ, PosY}

I don't know, why it actually has PoZ, maybe for a trigger or something.. Anyway, try changing it:

 

class Item17
		{
			position[]={6991.15,0,5362.56};
			name="CarSafeSpot";
			text="Vehicle Safe Spot";
			type="mil_dot";
			colorName="ColorGreen";
		};
Link to comment
Share on other sites

  • 0

 

Hi,

 

the position of markers is a bit different..

{posX, PosZ, PosY}

I don't know, why it actually has PoZ, maybe for a trigger or something.. Anyway, try changing it:

 

class Item17
		{
			position[]={6991.15,0,5362.56};
			name="CarSafeSpot";
			text="Vehicle Safe Spot";
			type="mil_dot";
			colorName="ColorGreen";
		};

I tried doing this 

		class Item17
		{
			position[]={6979.23,0,0.00109863};
			name="CarSafeSpot";
			text="Vehicle Safe Spot";
			type="mil_dot";
			colorName="ColorGreen";
		};
	};

Still doesn't work ;o

Link to comment
Share on other sites

  • 0

I tried doing this 

		class Item17
		{
			position[]={6979.23,0,0.00109863};
			name="CarSafeSpot";
			text="Vehicle Safe Spot";
			type="mil_dot";
			colorName="ColorGreen";
		};
	};

Still doesn't work ;o

 

{posX, PosZ, PosY}

 

position[]={6991.15,0,5362.56};

Link to comment
Share on other sites

  • 0

What SchwEde was trying to say is you don't have to add new markers to your mission.sqm. Do the following:

 

Create a file called "marker.sqf" and put in this code:

	_this = createMarker ["CarSafeSpot", [6991.15,5362.56,0]];
	_this setMarkerColor "ColorGreen";
	_this setMarkerType "mil_dot";
	_this setMarkerText "Vehicle Safe Spot";	

Place that file in your mission file, such as in a "custom" or "addons" folder. I use "custom" on my server and created a folder called "markers" inside of it. In init.sqf, I have added this:

[] execVM "custom\markers\marker.sqf";

The above execVM code goes underneath this code in the init.sqf:

dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");

Then, whenever you want to add a new marker on your map, you follow the above format so you don't have to edit your mission.sqm.

Link to comment
Share on other sites

  • 0

in your init paste this at the end:

[] execVM "markers.sqf";

then just create a file and create your own markers there in it:

//Custom Markers

//Marker 0

_marker0 = createMarker ["UniqueMarkerName", [9687.8271, 13563.765, 0]];
_marker0 setMarkerText "DisplayOnMap";
_marker0 setMarkerType "Dot";
_marker0 setMarkerColor "ColorBlue";
_marker0 setMarkerBrush "Solid";


_marker1 = createMarker ["AnotherUniqeName1", [11224, 13563.765, 0]];
_marker1 setMarkerText "TextOnMap";
_marker1 setMarkerType "Dot";
_marker1 setMarkerColor "ColorRed";
_marker1 setMarkerBrush "Solid";

make as many markers in there as you like

 

EDIT: BetterDeadThenZed ninjaed me ^^

I was on mobile so couldnt give any usefull code ;)

Link to comment
Share on other sites

  • 0

Alright, that sounds like it would work well! How do I add more than 1 though? By the way, thanks so much for your guys help, I really appreciate it.

 

Just add multiple entries, such as:

	_this = createMarker ["CarSafeSpot", [6991.15,5362.56,0]];
	_this setMarkerColor "ColorGreen";
	_this setMarkerType "mil_dot";
	_this setMarkerText "Vehicle Safe Spot";

	_this = createMarker ["CarSafeSpot2", [4991.15,4362.56,0]];
	_this setMarkerColor "ColorGreen";
	_this setMarkerType "mil_dot";
	_this setMarkerText "Vehicle Safe Spot";
Link to comment
Share on other sites

  • 0

BetterDeadThanZed I did what you said, and the Vehicle Safe Spot shows up on the map.  However when I try to add mine they don't show up.  Here are coordinates from infistar  

 

[45.0658,[11145.9,7871.79,2.10403]]  heli refuel

[45.0658,[1787.54,4995.2,2.11079]] small military compound

[45.0658,[1117.96,2370.56,2.11596]]   Tikhaya

 

Here is one example what I added

 

_this = createMarker ["CarSafeSpot", [11145.9,7871.79,0]];
    _this setMarkerColor "ColorGreen";
    _this setMarkerType "mil_dot";
    _this setMarkerText "heli refuel";  

 

I left off the 45.0658 since I did not see anything like that on yours.  I also tried it this way 11145.9,7871.79,2.10403 but then tried adding a 0 after .79

 

Any help would be awesome thanks

Link to comment
Share on other sites

  • 0

sampson.. in-game coordinates are normally xyZ, but for markers you have to use xZy, Numbers represent meters. X = from left to right, Z = altitude (always 0 since we dont care) and Y is bottom to top.

 

0,0,0 would represent bottom-left corner. And something like 15000,0,15000 would represent point close to top-right on cherno map (approx)... so 15km right, 15km up, 0 altitude.

 

So in your case:

[11145.9,7871.79,0]... you are telling engine to set marker at 11km to right (X), 7,8km altitude (Z) and 0 (Y) would put it on bottom of the map.

 

Correct coordinates would be:

[11145.9,0,7871.79]

 

Anything behind decimal is just centimeters and milimeters, so feel free to round them numbers up.

Link to comment
Share on other sites

  • 0

Worst case scenario - add this to bottom of your init.sqf (Remove when done adding markers!)

This code will basically output coords to your screen every 1 second that you can directly put into your mission.sqm

[] spawn = {
	while {true} do {
		private "_pos";
		_pos = getPosATL player;
		hintSilent format ["[%1,0,%2]",(_pos select 0),(_pos select 1)];
		sleep 1;
	};
};
Link to comment
Share on other sites

  • 0

Ok so I tried what you said and the heli refuel is on the bottom are of the map.  That's because the coordinate I said the Z was 0.  I have tired changing it and am getting no luck with it moving.  Here are the infistar coordinate's 

 

11145.9,7871.79,2.10403

According you what you put it should be this way

 

11145.9,2.10403,7871.79 which is what I have in the marker file.  However it still puts it close to the bottom of the map.

Link to comment
Share on other sites

  • 0

When placing a marker on the map via an sqf file like I described, the correct format for the coordinates for that heli refuel would be as such:

11145.9,7871.79,2.10403

The third number is the elevation above the ground. You could set that to zero, but it doesn't matter. If you are adding markers via the mission.sqm, it would be like this:

11145.9,2.10403,7871.79
Link to comment
Share on other sites

  • 0

BetterDeadThanZed I got the heli refuel working correctly, along with your vehicle safe spot, since yours was just copy and paste.

 

However The other 2 i'm trying to add does not even show up on the map.  Any ideas?

 

_this = createMarker ["smallmilitarycompound", [1786.79,5021.61,0.00152588]]];
    _this setMarkerColor "ColorGreen";
    _this setMarkerType "mil_dot";
    _this setMarkerText "small military compound";    

_this = createMarker ["Tikhaya", [1179.47,2398.05,0.0014348]]];
    _this setMarkerColor "ColorGreen";
    _this setMarkerType "mil_dot";
    _this setMarkerText "Tikhaya";

 

Thanks alot for the help so far guys.

Link to comment
Share on other sites

  • 0

BetterDeadThanZed I got the heli refuel working correctly, along with your vehicle safe spot, since yours was just copy and paste.

 

However The other 2 i'm trying to add does not even show up on the map.  Any ideas?

 

_this = createMarker ["smallmilitarycompound", [1786.79,5021.61,0.00152588]]];

    _this setMarkerColor "ColorGreen";

    _this setMarkerType "mil_dot";

    _this setMarkerText "small military compound";    

_this = createMarker ["Tikhaya", [1179.47,2398.05,0.0014348]]];

    _this setMarkerColor "ColorGreen";

    _this setMarkerType "mil_dot";

    _this setMarkerText "Tikhaya";

 

Thanks alot for the help so far guys.

 

Too many brackets. This is the correct code:

_this = createMarker ["smallmilitarycompound", [1786.79,5021.61,0.00152588]];
    _this setMarkerColor "ColorGreen";
    _this setMarkerType "mil_dot";
    _this setMarkerText "small military compound";    

_this = createMarker ["Tikhaya", [1179.47,2398.05,0.0014348]];
    _this setMarkerColor "ColorGreen";
    _this setMarkerType "mil_dot";
    _this setMarkerText "Tikhaya";
Link to comment
Share on other sites

  • 0

I've kind of gotten markers working.  The circle appears, is the right size and color, but the text never is displayed.  As far as I can tell, everything is correct.  Here's my file.  Did I miss something?

 

_marker = createMarker ["KirkIsland",[6555.25, 13133.2, 0]];


"KirkIsland" setMarkerType "warning";
"KirkIsland" setMarkerAlpha 0.9;
"KirkIsland" setMarkerShape "ELLIPSE";
"KirkIsland" setMarkerText "Bad things Happen Here";
"KirkIsland" setMarkerColor "ColorRed";
"KirkIsland" setMarkerSize [500, 500];

 

I assume setMarkerAlpha controls the transparency?  I'm going to try different values but Bohemia isn't too clear about any of the setMarker parameters.

Link to comment
Share on other sites

  • 0

Interesting, mine's XYZ on the Taviana map (Overpochins)  [6555.25, 13133.2, 0] and it works perfectly except that the text never shows up, as I had asked about in my post on the previous page.  Mine's done through a marker.sqf file and even places multiple markers - just no text.

Link to comment
Share on other sites

  • 0

Interesting, mine's XYZ on the Taviana map (Overpochins)  [6555.25, 13133.2, 0] and it works perfectly except that the text never shows up, as I had asked about in my post on the previous page.  Mine's done through a marker.sqf file and even places multiple markers - just no text.

 

Markers.sqf works differently, there it is XYZ. Also you'll have to make sure to set the Text of the Marker, if not using mission.sqm:

 

"MarkerName" setMarkerText "Text";

//Example:
"TraderCityStary" setMarkerText "Trader City Stary";
Link to comment
Share on other sites

  • 0

That's exactly the format I'm using - but no text.

 

_marker = createMarker ["KirkIsland",[6555.25, 13133.2, 0]];
"KirkIsland" setMarkerType "warning";
"KirkIsland" setMarkerAlpha 0.9;
"KirkIsland" setMarkerShape "ELLIPSE";
"KirkIsland" setMarkerText "Bad things Happen Here";
"KirkIsland" setMarkerColor "ColorRed";
"KirkIsland" setMarkerSize [500, 500];

Link to comment
Share on other sites

  • 0

That's exactly the format I'm using - but no text.

 

_marker = createMarker ["KirkIsland",[6555.25, 13133.2, 0]];

"KirkIsland" setMarkerType "warning";

"KirkIsland" setMarkerAlpha 0.9;

"KirkIsland" setMarkerShape "ELLIPSE";

"KirkIsland" setMarkerText "Bad things Happen Here";

"KirkIsland" setMarkerColor "ColorRed";

"KirkIsland" setMarkerSize [500, 500];

 

Yeah, it's pretty hard to have a Text stretched to 500x500 ^^ did you ever Press CTRL and Scroll with your mouse wheel? At some stage the text is that blurry, you can't even see it anymore.

 

_marker = createMarker ["KirkIsland",[6555.25, 13133.2, 0]];
"KirkIsland" setMarkerType "warning";
"KirkIsland" setMarkerAlpha 0.9;
"KirkIsland" setMarkerShape "ELLIPSE";
"KirkIsland" setMarkerColor "ColorRed";
"KirkIsland" setMarkerSize [500, 500];

_marker = createMarker ["KirkIsland2",[6555.25, 13133.2, 0]];
"KirkIsland2" setMarkerType "warning";
"KirkIsland2" setMarkerAlpha 0.9;
"KirkIsland2" setMarkerShape "Icon";
"KirkIsland2" setMarkerText "Bad things Happen Here";
"KirkIsland2" setMarkerColor "ColorRed";
Link to comment
Share on other sites

  • 0

I am having problems with my markers anyone point out what I am doing wrong please.

 

//MARKING LIKE MISSIONS

_marker = createMarker ["CircleOnMap",[1312.72,4112.0,0]];
_marker setMarkerColor "ColorRed";
_marker setMarkerShape "ELLIPSE";
_marker setMarkerAlpha 0.9;
_marker setMarkerSize [100, 100];

 

//DOT IN MIDDLE OF ABOVE
_dot = createMarker ["DotInCircle",[1312.72,4112.0,0]];
_dot setMarketColor "ColorBlack";
_dot setMarkerType "mil_dot";
_dot setMarkerText "Release Me";

 

I am looking at putting marker on the map like one that is shown when missions appear.

 

Thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Discord

×
×
  • Create New...