Jump to content
  • 0

Custom Map Markers Help!!


CoxyzHQ

Question

iv created map markers in the Map Editor and exported it but how do i actually install them in my server because i was reading a tutorial and i installed it the way he did but it faild to work 

 

the example of what the markers look like before install 

_this = createMarker ["NW Barracks", [4882.9556, 10267.716, 0]];
_this setMarkerText "NW Barracks";
_this setMarkerShape "RECTANGLE";
_this setMarkerType "SC_flag_0_east";
_this setMarkerColor "ColorRed";
_this setMarkerBrush "Solid";
_marker_0 = _this;

_this = createMarker ["Electro Barracks", [10293.58, 2125.8064, -1.5258789e-005]];
_this setMarkerText "Electro Barracks";
_this setMarkerShape "RECTANGLE";
_this setMarkerType "SC_flag_0_east";
_this setMarkerColor "ColorRed";
_this setMarkerBrush "Solid";
_marker_1 = _this;

_this = createMarker ["Cherno Barracks", [7032.8218, 2728.7549, 3.8146973e-006]];
_this setMarkerText "Cherno Barracks";
_this setMarkerShape "RECTANGLE";
_this setMarkerType "SC_flag_0_east";
_this setMarkerColor "ColorRed";
_this setMarkerBrush "Solid";
_marker_2 = _this;

_this = createMarker ["Novy Lug Barracks", [9574.1719, 11315.81, 4.5776367e-005]];
_this setMarkerText "Novy Lug Barracks";
_this setMarkerShape "RECTANGLE";
_this setMarkerType "SC_flag_0_east";
_this setMarkerColor "ColorRed";
_this setMarkerBrush "Solid";
_marker_3 = _this;

and the tutorial said to install it into mission.sqm like this

		class Item17
		{
			position[]={4882.9556, 10267.716, 0};
			name="NWBarracks";
			text="NW Barracks";
			type="mil_dot";
			colorName="ColorRed";
		};
		class Item18
		{
			position[]={10293.58, 2125.8064, -1.5258789e-005};
			name="ElectroBarracks";
			text="Electro Barracks";
			type="mil_dot";
			colorName="ColorRed";
		};
		class Item19
		{
			position[]={7032.8218, 2728.7549, 3.8146973e-006};
			name="ChernoBarracks";
			text="Cherno Barracks";
			type="mil_dot";
			colorName="ColorRed";
		};
		class Item20
		{
			position[]={9574.1719, 11315.81, 4.5776367e-005};
			name="NovyLugBarracks";
			text="Novy Lug Barracks";
			type="mil_dot";
			colorName="ColorRed";
		};
Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

Did you make sure to increase the item count? For you I'd assume

    class Markers
    {
        items=21;

Edit: Damn you for posting while I was typing, lol. Though it should be 21 as class 0 counts towards the total.

Link to comment
Share on other sites

  • 0

Did you make sure to increase the item count? For you I'd assume

    class Markers
    {
        items=21;

Edit: Damn you for posting while I was typing, lol. Though it should be 21 as class 0 counts towards the total.

haha yeah I almost missed that myself :P

Link to comment
Share on other sites

  • 0

 

In this part
class Markers
{
items=17;     <<---
class Item0
 
Change the number to 21 this just tells the server there are 20 items inside the marker brackets

 

so what you are saying is that it need to be like this? 

                class Item21
		{
			position[]={4882.9556, 10267.716, 0};
			name="NWBarracks";
			text="NW Barracks";
			type="mil_dot";
			colorName="ColorRed";
		};
		class Item22
		{
			position[]={10293.58, 2125.8064, -1.5258789e-005};
			name="ElectroBarracks";
			text="Electro Barracks";
			type="mil_dot";
			colorName="ColorRed";
		};
		class Item23
		{
			position[]={7032.8218, 2728.7549, 3.8146973e-006};
			name="ChernoBarracks";
			text="Cherno Barracks";
			type="mil_dot";
			colorName="ColorRed";
		};
		class Item24
		{
			position[]={9574.1719, 11315.81, 4.5776367e-005};
			name="NovyLugBarracks";
			text="Novy Lug Barracks";
			type="mil_dot";
			colorName="ColorRed";
		};
Link to comment
Share on other sites

  • 0

No, right under

class Markers

Its asking how many items all together in the list which by default is 17 see below

items=17;     <<---

All you have to do is change this number to 21

 

You had all of the below correct the first time

class Item21 <- change back to 17 
        {
            position[]={4882.9556, 10267.716, 0};
            name="NWBarracks";
            text="NW Barracks";
            type="mil_dot";
            colorName="ColorRed";
        };
        class Item22 <- change back to 18 
        {
            position[]={10293.58, 2125.8064, -1.5258789e-005};
            name="ElectroBarracks";
            text="Electro Barracks";
            type="mil_dot";
            colorName="ColorRed";
        };
        class Item23 <- change back to 19 
        {
            position[]={7032.8218, 2728.7549, 3.8146973e-006};
            name="ChernoBarracks";
            text="Cherno Barracks";
            type="mil_dot";
            colorName="ColorRed";
        };
        class Item24 <- change back to 20
        {
            position[]={9574.1719, 11315.81, 4.5776367e-005};
            name="NovyLugBarracks";
            text="Novy Lug Barracks";
            type="mil_dot";
            colorName="ColorRed";
        };
Link to comment
Share on other sites

  • 0

 

No, right under

class Markers

Its asking how many items all together in the list which by default is 17 see below

items=17;     <<---

All you have to do is change this number to 21

 

You had all of the below correct the first time

class Item21 <- change back to 17 
        {
            position[]={4882.9556, 10267.716, 0};
            name="NWBarracks";
            text="NW Barracks";
            type="mil_dot";
            colorName="ColorRed";
        };
        class Item22 <- change back to 18 
        {
            position[]={10293.58, 2125.8064, -1.5258789e-005};
            name="ElectroBarracks";
            text="Electro Barracks";
            type="mil_dot";
            colorName="ColorRed";
        };
        class Item23 <- change back to 19 
        {
            position[]={7032.8218, 2728.7549, 3.8146973e-006};
            name="ChernoBarracks";
            text="Cherno Barracks";
            type="mil_dot";
            colorName="ColorRed";
        };
        class Item24 <- change back to 20
        {
            position[]={9574.1719, 11315.81, 4.5776367e-005};
            name="NovyLugBarracks";
            text="Novy Lug Barracks";
            type="mil_dot";
            colorName="ColorRed";
        };

still didnt work ill post my entire Class Markers section 

	class Markers
	{
		items=21;
		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[]={4882.9556, 10267.716, 0};
			name="NWBarracks";
			text="NW Barracks";
			type="mil_dot";
			colorName="ColorRed";
		};
		class Item18
		{
			position[]={10293.58, 2125.8064, -1.5258789e-005};
			name="ElectroBarracks";
			text="Electro Barracks";
			type="mil_dot";
			colorName="ColorRed";
		};
		class Item19
		{
			position[]={7032.8218, 2728.7549, 3.8146973e-006};
			name="ChernoBarracks";
			text="Cherno Barracks";
			type="mil_dot";
			colorName="ColorRed";
		};
		class Item20
		{
			position[]={9567.58,11311.5,-0.0742493};
			name="NovyLugBarracks";
			text="Novy Lug Barracks";
			type="mil_dot";
			colorName="ColorRed";
		};
Link to comment
Share on other sites

  • 0

 

still didnt work ill post my entire Class Markers section 

	class Markers
	{
		items=21;
		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[]={4882.9556, 10267.716, 0};
			name="NWBarracks";
			text="NW Barracks";
			type="mil_dot";
			colorName="ColorRed";
		};
		class Item18
		{
			position[]={10293.58, 2125.8064, -1.5258789e-005};
			name="ElectroBarracks";
			text="Electro Barracks";
			type="mil_dot";
			colorName="ColorRed";
		};
		class Item19
		{
			position[]={7032.8218, 2728.7549, 3.8146973e-006};
			name="ChernoBarracks";
			text="Cherno Barracks";
			type="mil_dot";
			colorName="ColorRed";
		};
		class Item20
		{
			position[]={9567.58,11311.5,-0.0742493};
			name="NovyLugBarracks";
			text="Novy Lug Barracks";
			type="mil_dot";
			colorName="ColorRed";
		};

I just noticed... You need to change up coordinates. Normally in other stuff they go x,y,z... in this you'll need to do it x,z,y.

 

example, change

        class Item17
        {
            position[]={4882.9556, 10267.716, 0};

to

        class Item17
        {
            position[]={4882.9556, 0, 10267.716};

Here is a complete change for you... Just posted that as reference for future.

        class Item17
        {
            position[]={4882.9556, 0, 10267.716};
            name="NWBarracks";
            text="NW Barracks";
            type="mil_dot";
            colorName="ColorRed";
        };
        class Item18
        {
            position[]={10293.58, -1.5258789e-005, 2125.8064};
            name="ElectroBarracks";
            text="Electro Barracks";
            type="mil_dot";
            colorName="ColorRed";
        };
        class Item19
        {
            position[]={7032.8218, 3.8146973e-006, 2728.7549};
            name="ChernoBarracks";
            text="Cherno Barracks";
            type="mil_dot";
            colorName="ColorRed";
        };
        class Item20
        {
            position[]={9567.58, -0.0742493, 11311.5};
            name="NovyLugBarracks";
            text="Novy Lug Barracks";
            type="mil_dot";
            colorName="ColorRed";
        };

Hope that helps. Just be sure Items is still 21.

Link to comment
Share on other sites

  • 0

I just noticed... You need to change up coordinates. Normally in other stuff they go x,y,z... in this you'll need to do it x,z,y.

 

example, change

        class Item17
        {
            position[]={4882.9556, 10267.716, 0};

to

        class Item17
        {
            position[]={4882.9556, 0, 10267.716};

Here is a complete change for you... Just posted that as reference for future.

        class Item17
        {
            position[]={4882.9556, 0, 10267.716};
            name="NWBarracks";
            text="NW Barracks";
            type="mil_dot";
            colorName="ColorRed";
        };
        class Item18
        {
            position[]={10293.58, -1.5258789e-005, 2125.8064};
            name="ElectroBarracks";
            text="Electro Barracks";
            type="mil_dot";
            colorName="ColorRed";
        };
        class Item19
        {
            position[]={7032.8218, 3.8146973e-006, 2728.7549};
            name="ChernoBarracks";
            text="Cherno Barracks";
            type="mil_dot";
            colorName="ColorRed";
        };
        class Item20
        {
            position[]={9567.58, -0.0742493, 11311.5};
            name="NovyLugBarracks";
            text="Novy Lug Barracks";
            type="mil_dot";
            colorName="ColorRed";
        };

Hope that helps. Just be sure Items is still 21.

wow thats strange but that you so much ill go and see if it works  :)

Link to comment
Share on other sites

  • 0

Yah, you have to keep a close eye on a lot of these things when adding new stuff because the format from one script to another can change ever so slightly and you'll end up giving yourself a headache over the littlest things, lol. Anywho let me know if it worked, though I'm like 99% certain that is all you need to fix it.

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
  • Advertisement
  • Discord

×
×
  • Create New...