MudBone

Custom Icons on Map- Help needed.

5 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.

1 person likes this

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
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

  • Recently Browsing   0 members

    No registered users viewing this page.