Jump to content
  • 0

How to change mission marker circle size & type?


mgm

Question

Hey guys,

 

Setup

I'm running Epoch + DZAI + EMS -Defent's re-release.

 

Goal

In the picture below, you can see the "Mission Marker Circle" marking Black Hawk Crash mission site. I would like to make it as big as the red circle I put there in paint.

Can anyone please help me with this? Thanks!

MgmzBK9.jpg

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

Go to: \dayz_server\EMS\Scripts. Open DZMSAddMajMarker.sqf and DZMSAddMinMarker.sqf. Edit the lines in that file to your liking. 

Here is a list of different markers:

https://community.bistudio.com/wiki/File:Arma2_markers1.jpg

 

In your case it would be:

_nul = createMarker ["DZMSMajMarker", DZMSMajCoords];
"DZMSMajMarker" setMarkerColor "ColorRed";
//"DZMSMajMarker" setMarkerShape "ELLIPSE";
//"DZMSMajMarker" setMarkerBrush "Grid";
"DZMSMajMarker" setMarkerType "mil_circle";
"DZMSMajMarker" setMarkerSize [275,275];

//_nil = createMarker ["DZMSMajDot", DZMSMajCoords];
//"DZMSMajDot" setMarkerColor "ColorBlack";
//"DZMSMajDot" setMarkerType "mil_dot";
//"DZMSMajDot" setMarkerText DZMSMajName;

Something along those lines.

Link to comment
Share on other sites

  • 0

Go to: \dayz_server\EMS\Scripts. Open DZMSAddMajMarker.sqf and DZMSAddMinMarker.sqf. Edit the lines in that file to your liking. 

Here is a list of different markers:

https://community.bistudio.com/wiki/File:Arma2_markers1.jpg

 

In your case it would be:

_nul = createMarker ["DZMSMajMarker", DZMSMajCoords];
"DZMSMajMarker" setMarkerColor "ColorRed";
//"DZMSMajMarker" setMarkerShape "ELLIPSE";
//"DZMSMajMarker" setMarkerBrush "Grid";
"DZMSMajMarker" setMarkerType "mil_circle";
"DZMSMajMarker" setMarkerSize [275,275];

//_nil = createMarker ["DZMSMajDot", DZMSMajCoords];
//"DZMSMajDot" setMarkerColor "ColorBlack";
//"DZMSMajDot" setMarkerType "mil_dot";
//"DZMSMajDot" setMarkerText DZMSMajName;

Something along those lines.

 

 

Thank you guys. I've played with the settings now waiting for the mission to pop up so that I can fine tune if need be.

 

 

 

 

 

Defent,

Since you're the developer of the package I'm trying to edit [EMS], (I'll use my OP powers & stretch the thread a bit BTW) could you please tell me:

 

Question #1: would it be a problem if I set the DZMSMajorMin & DZMSMinorMin values to 60 seconds?

This is to be done on a test server and for test purposes only so that I can quickly fine tune settings without waiting 10.8 minutes between missions.

 

Question #2: As a separate question, likewise, would it be a problem if I set the same values to 3 minutes,  on a production server with players?

Testing & if anything breaks, reverting back is always an option but I'm worried about things building up slowly and breaking in the middle of the night when  multple missions run side by side along with increased user traffic etc.

 

I guess what I am trying to ask is - would it break anything behind the scenes? Deoes the server require more than 3 minutes (on a busy server) to do it's own cleanup

 

Thanks.

// The Minumum time in seconds before a major mission will run.
// At least this much time will pass between major missions. Default = 960 (10.8 Minutes)
DZMSMajorMin = 960;

// Maximum time in seconds before a major mission will run.
// A major mission will always run before this much time has passed. Default = 2900 (33.33 Minutes)
DZMSMajorMax = 2900;

// Time in seconds before a minor mission will run.
// At least this much time will pass between minor missions. Default = 960 (10 Minutes)
DZMSMinorMin = 960;

// Maximum time in seconds before a minor mission will run.
// A minor mission will always run before this much time has passed. Default = 1730;(16.5 Minutes)
DZMSMinorMax = 1730;
Link to comment
Share on other sites

  • 0

 

Question #1: would it be a problem if I set the DZMSMajorMin & DZMSMinorMin values to 60 seconds?

This is to be done on a test server and for test purposes only so that I can quickly fine tune settings without waiting 10.8 minutes between missions.

 

Question #2: As a separate question, likewise, would it be a problem if I set the same values to 3 minutes,  on a production server with players?

Testing & if anything breaks, reverting back is always an option but I'm worried about things building up slowly and breaking in the middle of the night when  multple missions run side by side along with increased user traffic etc.

 

I guess what I am trying to ask is - would it break anything behind the scenes? Does the server require more than 3 minutes (on a busy server) to do it's own cleanup

 

Thanks.

 

 

Setting the timers too low will make the missions run when players are trying to log in after a restart, which could cause issues, but otherwise the missions would spawn 60 seconds after the last mission is captured, which other than being too much loot (IMO), it should be fine.

 

3 minutes on a production server would be better than 60 seconds on a production server.

 

Just make sure you do have a minimum and maximum time for the mission to spawn. I don't believe the min and max can be set to within so many seconds of each other.

 

Also be aware that major missions have more crates, therefore more loot, so they should take longer to run.

Link to comment
Share on other sites

  • 0

Pretty much what TheVampire said. I never really went far below the default minimum setting. However, I do change the maximum setting instead. I think that makes it easier for me to regulate how often missions spawn. Currently people are asking me why no mission spawns (~50+ mins after restart). So it may require more tuning. When I test it on my test server, I usually set the settings for all timers to 5. I've not seen any problems with it. The missions tend to spawn within a few seconds of me joining and allows me to check if they work in reasonable phase. 
 

Link to comment
Share on other sites

  • 0

Setting the timers too low will make the missions run when players are trying to log in after a restart, which could cause issues, but otherwise the missions would spawn 60 seconds after the last mission is captured, which other than being too much loot (IMO), it should be fine.

 

3 minutes on a production server would be better than 60 seconds on a production server.

 

Just make sure you do have a minimum and maximum time for the mission to spawn. I don't believe the min and max can be set to within so many seconds of each other.

 

Also be aware that major missions have more crates, therefore more loot, so they should take longer to run.

 

 

Pretty much what TheVampire said. I never really went far below the default minimum setting. However, I do change the maximum setting instead. I think that makes it easier for me to regulate how often missions spawn. Currently people are asking me why no mission spawns (~50+ mins after restart). So it may require more tuning. When I test it on my test server, I usually set the settings for all timers to 5. I've not seen any problems with it. The missions tend to spawn within a few seconds of me joining and allows me to check if they work in reasonable phase. 

 

Alright I will set it to 60 seconds for dev machine & 180 seconds for the player machine then. I'll tweak if it appears necessary....

 

 

 

 

Defent,

Following the tips above I modified the files a bit. 

I have the following content in files, recompiled dayz_server.pbo, restarted server, and still the same (original EMS markers).

Do I need to do something else or did I do something wrong?

 

e.g.: is thas size TOO BIG & hence config file completely ignored?

/*
	Adds a marker for Major Missions. Only runs once.
	DZMSMarkerLoop.sqf keeps this marker updated.
	Usage: [coordinates,missionname]
*/
private["_nul","_nil"];
DZMSMajCoords = _this select 0;
DZMSMajName = _this select 1;

_nul = createMarker ["DZMSMajMarker", DZMSMajCoords];
"DZMSMajMarker" setMarkerColor "ColorRed";
"DZMSMajMarker" setMarkerShape "ELLIPSE";
"DZMSMajMarker" setMarkerBrush "Grid";
"DZMSMajMarker" setMarkerSize [1750,1750];
_nil = createMarker ["DZMSMajDot", DZMSMajCoords];
"DZMSMajDot" setMarkerColor "ColorBlue";
"DZMSMajDot" setMarkerType "dot";
"DZMSMajDot" setMarkerText DZMSMajName;
/*
	Adds a marker for Major Missions. Only runs once.
	DZMSMarkerLoop.sqf keeps this marker updated.
	Usage: [coordinates,missionname]
*/
private["_nul","_nil"];
DZMSMinCoords = _this select 0;
DZMSMinName = _this select 1;

_nul = createMarker ["DZMSMinMarker", DZMSMinCoords];
"DZMSMinMarker" setMarkerColor "ColorGreen";
"DZMSMinMarker" setMarkerShape "ELLIPSE";
"DZMSMinMarker" setMarkerBrush "Grid";
"DZMSMinMarker" setMarkerSize [1250,1250];
_nil = createMarker ["DZMSMinDot", DZMSMinCoords];
"DZMSMinDot" setMarkerColor "ColorBlue";
"DZMSMinDot" setMarkerType "mil_dot";
"DZMSMinDot" setMarkerText DZMSMinName;

EDIT

 

OK, got it! It turns out one's supposed to update in two locations, for each type.

You edit it major (as per above) which draws it on the screen initially but also need to do the same in the other file (MarkerLoop) which keeps deleting  & redrawing (i.e.: refreshing).

So 2 locations for major + 2 locations for minor = in total 4 locations need to be modified.

 

 

Look at this beauty!

MuHkc4j.png

Link to comment
Share on other sites

  • 0

Guys,

 

Markers are either Major or Minor - if I read this correctly there is no third flavour.

Both have a big circle (general mission area) and a small circle (target in the mission area).

 

If I wanted to add varying types of markers (e.g.: Flag for vehicle missions;   'Destroy' icon for kill-em-all missions and so on), is the following all I need to do?

  1. In the Major|Mission file (SM1.sqf), call >>    ExecVM MyNewDZMSAddMajMarker             (also update deleteMarker "DZMSMajMarker"; bit at the bottom)
  2. Then obviously go create       MyNewDZMSAddMajMarker  file        = basically copy & paste what you already did and modify icon shape according to my taste.

 

Thanks in advance.

Link to comment
Share on other sites

  • 0

Guys,

 

Markers are either Major or Minor - if I read this correctly there is no third flavour.

Both have a big circle (general mission area) and a small circle (target in the mission area).

 

If I wanted to add varying types of markers (e.g.: Flag for vehicle missions;   'Destroy' icon for kill-em-all missions and so on), is the following all I need to do?

  1. In the Major|Mission file (SM1.sqf), call >>    ExecVM MyNewDZMSAddMajMarker             (also update deleteMarker "DZMSMajMarker"; bit at the bottom)
  2. Then obviously go create       MyNewDZMSAddMajMarker  file        = basically copy & paste what you already did and modify icon shape according to my taste.

 

Thanks in advance.

 

You would need a new script to add the marker, and then modify MarkerLoop to refresh the marker.

Link to comment
Share on other sites

  • 0

UPDATE:

I have tweaked the files a little bit, now I have different sized & colored markers Major & Minor missions. Here is a screenshot:

 

BJmLegD.jpg

 

 

 

If anyone is interested, below are the files, just take backups & overwrite your existing files...

 

/*
DZMSAddMajMarker.sqf

	Adds a marker for Major Missions. Only runs once.
	DZMSMarkerLoop.sqf keeps this marker updated.
	Usage: [coordinates,missionname]
*/
private["_nul","_nil"];
DZMSMajCoords = _this select 0;
DZMSMajName = _this select 1;

_nul = createMarker ["DZMSMajMarker", DZMSMajCoords];
"DZMSMajMarker" setMarkerColor "ColorRed";
"DZMSMajMarker" setMarkerShape "ELLIPSE";
"DZMSMajMarker" setMarkerBrush "Solid";
"DZMSMajMarker" setMarkerSize [800,800];
_nil = createMarker ["DZMSMajDot", DZMSMajCoords];
"DZMSMajDot" setMarkerColor "ColorBlack";
"DZMSMajDot" setMarkerType "mil_dot";
"DZMSMajDot" setMarkerText DZMSMajName;
/*
DZMSAddMinMarker.sqf

	Adds a marker for Major Missions. Only runs once.
	DZMSMarkerLoop.sqf keeps this marker updated.
	Usage: [coordinates,missionname]
*/
private["_nul","_nil"];
DZMSMinCoords = _this select 0;
DZMSMinName = _this select 1;

_nul = createMarker ["DZMSMinMarker", DZMSMinCoords];
"DZMSMinMarker" setMarkerColor "ColorBlue";
"DZMSMinMarker" setMarkerShape "ELLIPSE";
"DZMSMinMarker" setMarkerBrush "Solid";
"DZMSMinMarker" setMarkerSize [600,600];
_nil = createMarker ["DZMSMinDot", DZMSMinCoords];
"DZMSMinDot" setMarkerColor "ColorBlack";
"DZMSMinDot" setMarkerType "mil_dot";
"DZMSMinDot" setMarkerText DZMSMinName;
/*
DZMSMarkerLoop.sqf 

	Marker Resetter by Vampire
	Marker Resetter checks if a Mission is running and resets the marker for JIPs
*/
private["_run","_nul","_nil"];

diag_log format ["[DZMS]: Mission Marker Loop for JIPs Starting!"];

//Lets start the timer
_run = true;
while {_run} do
{
	sleep 25; //Sleep 25 seconds
	//If the marker exists (meaning the mission is active) lets delete it and re-add it
	if (!(getMarkerColor "DZMSMajMarker" == "")) then {
		deleteMarker "DZMSMajMarker";
		deleteMarker "DZMSMajDot";
		//Re-Add the markers
		_nul = createMarker ["DZMSMajMarker", DZMSMajCoords];
		"DZMSMajMarker" setMarkerColor "ColorRed";
		"DZMSMajMarker" setMarkerShape "ELLIPSE";
		"DZMSMajMarker" setMarkerBrush "Solid";
		"DZMSMajMarker" setMarkerSize [800,800];
		_zap = createMarker ["DZMSMajDot", DZMSMajCoords];
		"DZMSMajDot" setMarkerColor "ColorBlack";
		"DZMSMajDot" setMarkerType "mil_dot";
		"DZMSMajDot" setMarkerText DZMSMajName;
	};
	//Lets do the same for the minor mission
	if (!(getMarkerColor "DZMSMinMarker" == "")) then {
		deleteMarker "DZMSMinMarker";
		deleteMarker "DZMSMinDot";
		//Re-Add the markers
		_nil = createMarker ["DZMSMinMarker", DZMSMinCoords];
		"DZMSMinMarker" setMarkerColor "ColorBlue";
		"DZMSMinMarker" setMarkerShape "ELLIPSE";
		"DZMSMinMarker" setMarkerBrush "Solid";
		"DZMSMinMarker" setMarkerSize [600,600];
		_zip = createMarker ["DZMSMinDot", DZMSMinCoords];
		"DZMSMinDot" setMarkerColor "ColorBlack";
		"DZMSMinDot" setMarkerType "mil_dot";
		"DZMSMinDot" setMarkerText DZMSMinName;
	};
	//Now we wait another 25 seconds
};

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Discord

×
×
  • Create New...