Sign in to follow this  
MudBone

Custom Icons on Map- Help needed.

9 posts in this topic

I'm trying to add some custom icons to our mission that will appear on the map.  I understand that they need to be client side (so in the mission) but I'm unsure how to call them for display as markers.

 

For example Zupas Capture Points calls for an Exile icon as such:

_ZCP_CM_dot             setMarkerType "ExileMissionCapturePointIcon";

ExileMissionCapturePointIcon is located in the @Exile mod directory.  Funny thing is the icon referenced above isn't named "ExileMissionCapturePointIcon".

What I need help with is how to call my custom icons from my mission file. 

Share this post


Link to post
Share on other sites
On 19.09.2016 at 9:06 PM, MudBone said:

I'm trying to add some custom icons to our mission that will appear on the map.  I understand that they need to be client side (so in the mission) but I'm unsure how to call them for display as markers.

 

For example Zupas Capture Points calls for an Exile icon as such:

_ZCP_CM_dot             setMarkerType "ExileMissionCapturePointIcon";

ExileMissionCapturePointIcon is located in the @Exile mod directory.  Funny thing is the icon referenced above isn't named "ExileMissionCapturePointIcon".

What I need help with is how to call my custom icons from my mission file. 

I may be wrong, but  _ZCP_CM_dot is just an variable containing markerType named ExileMissionCapturePointIcon. Its just name of the type not of the icon

 

For reference check mission.sqm inside YOURMAP.pbo in mpmissions folder

 

There are some of the lines with markertype. Think it will clarify my suggestion

 

Share this post


Link to post
Share on other sites
Advertisement
4 hours ago, ☢Джони Базука☢ said:

I may be wrong, but  _ZCP_CM_dot is just an variable containing markerType named ExileMissionCapturePointIcon. Its just name of the type not of the icon

 

For reference check mission.sqm inside YOURMAP.pbo in mpmissions folder

 

There are some of the lines with markertype. Think it will clarify my suggestion

 

What I learned is that every icon is referenced in the Exile mod (@Exile). For example:

 

    class ExileMissionStrongholdIcon {
        scope = 0;
        name = "Exile Stronghold Icon";
        icon = "exile_assets\texture\marker\stronghold_ca.paa";
        color = {1, 1, 1, 1};
        size = 32;
        shadow = 0;
        markerClass = "ExileEvents";
        showEditorMarkerColor = 0;
    };

 

This is from the config.bin. @Exile>addons>exile_client.pbo>config.bin

The only way I believe I could add my custom icons would be to include them in the mission.pbo somehow with the same type of referencing above so that every player had the icons locally when they download the mission. If this is possible I don't know. The other option is to create a mod which everyone would have to download and that's not practical for a single server.

  • Like 1

Share this post


Link to post
Share on other sites
1 minute ago, MudBone said:

What I learned is that every icon is referenced in the Exile mod (@Exile). For example:

 

    class ExileMissionStrongholdIcon {
        scope = 0;
        name = "Exile Stronghold Icon";
        icon = "exile_assets\texture\marker\stronghold_ca.paa";
        color = {1, 1, 1, 1};
        size = 32;
        shadow = 0;
        markerClass = "ExileEvents";
        showEditorMarkerColor = 0;
    };

 

This is from the config.bin. @Exile>addons>exile_client.pbo>config.bin

The only way I believe I could add my custom icons would be to include them in the mission.pbo somehow with the same type of referencing above so that every player had the icons locally when they download the mission. If this is possible I don't know. The other option is to create a mod which everyone would have to download and that's not practical for a single server.

Think you are right. I saw some servers with custom icons and there was no any custom addons on it... If you will find a simple solution post your results for community)

I will add it to my server later... I'm on testing custom contaminated zones stage now... I decided to set aside icons and other decor stuff for later...

Share this post


Link to post
Share on other sites

In description.ext

class CfgMarkerClasses
{
	class Test_marker
	{
		displayName = "This is a marker";
	};
};

class CfgMarkers
{
	class Test_marker
	{
		scope = 0;
		name = "This is a marker";
		icon = ""; //\A3\ui_f\data\map\VehicleIcons\iconparachute_ca.paa
		color[] = {0.7,0.93,0,1};
		size = 16;
		shadow = 1;
		markerClass = "Test_marker";
		showEditorMarkerColor = 0;
	};
};

This is untested config, but it should allow you to custom markers. :P MarkerClass must match the entry in CfgMarkerClasses. 

Share this post


Link to post
Share on other sites
On 22.9.2016 at 6:23 PM, WolfkillArcadia said:

In description.ext


class CfgMarkerClasses
{
	class Test_marker
	{
		displayName = "This is a marker";
	};
};

class CfgMarkers
{
	class Test_marker
	{
		scope = 0;
		name = "This is a marker";
		icon = ""; //\A3\ui_f\data\map\VehicleIcons\iconparachute_ca.paa
		color[] = {0.7,0.93,0,1};
		size = 16;
		shadow = 1;
		markerClass = "Test_marker";
		showEditorMarkerColor = 0;
	};
};

This is untested config, but it should allow you to custom markers. :P MarkerClass must match the entry in CfgMarkerClasses. 

Is this already the marker basically or would I have to place it somewhere else?

Share this post


Link to post
Share on other sites

12:04:40 Warning Message: No entry 'bin\config.bin/CfgMarkers.Test_marker'.
12:04:40 Warning Message: No entry '.icon'.
12:04:40 Warning Message: '/' is not a value
12:04:40 Warning Message: No entry '.size'.
12:04:40 Warning Message: '/' is not a value

 

I could be terrible wrong but i don't think that's working thru description.ext.

It uses the same syntax and structure as the Config.cpp file, but supports
only a limited number of the full set of Config.cpp classes. Many, such as CfgVehicles, won't work.

https://community.bistudio.com/wiki/Description.ext

https://feedback.bistudio.com/T81713

https://forums.bistudio.com/forums/topic/176610-custom-designed-markers-for-map/?do=findComment&comment=2770497

https://forums.bistudio.com/forums/topic/127333-custom-marker-for-mission/?do=findComment&comment=2106938

Edited by WURSTKETTE

Share this post


Link to post
Share on other sites

I'm trying to use this to update the mission icons for Bigfoot's ship wreck and am having no luck.

I added the marker class to the config file for the bigfoot mod and called the class in the createshipwreckmarker.sqf.  When I launch I'm getting no icon at all.

Share this post


Link to post
Share on other sites

I have read all over that a mod is required to add custom map markers? Yet, its fairly easy to add watermark graphics, flags and custom billboards to the mission file that can be seen by every client? Why is it that the same cannot be done for custom mission map marker icons?

Edited by geekm0nkey

Share this post


Link to post
Share on other sites
Advertisement

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.