WarPigGames

Custom map markers possible?

4 posts in this topic

I've created an add-on that i packed into a .PBO and put it in my @exileServer/Addons directory (server-side). In the .PBO, I have a config.cpp file with the following in it:

class CfgMarkers
{
	class ExileMilitaryStarIcon
	{
		scope = 2;
		name = "Exile Military Icon (Hardcore)";
		icon = "\x\addons\a3_exile_crates\markers\mission_military_star.paa";
		color[] = {1, 1, 1, 1};
		size = 32;
		shadow = false;
	};
};

In my add-on mission file (i.e. loadMission.sqf)... I create the marker like so:

_markerName = "MilMarker";
_marker = createMarker [_markerName, getPos _container];
_marker setMarkerType "ExileMilitaryStarIcon";
_marker setMarkerText " Container";

As it is loading map, I always get this error:

No Entry 'bin\config.bin\CfgMarkers.ExileMilitaryStarIcon'

I can't imagine the devs in Arma not allowing you to create custom map icons... anyone get a custom icon to work?

Thanks

Share this post


Link to post
Share on other sites
1 hour ago, WarPigGames said:

_marker setMarkerText " Container";

There's a space at the front of container ;)

Also, you can't use custom content that is not part of an existing mod and run it on the server because it will not exist for clients.

 

Share this post


Link to post
Share on other sites
Advertisement

The space before "Container" was intentional and works fine... I just didn't like text touching the icon, so I added a space.

I have seen other servers use custom icons on maps for missions, and I only had Exile as my mod, so I assume it can be done, but was hoping someone who has done it can reply. Thanks for your input.

Share this post


Link to post
Share on other sites

Posted (edited)

In order for the new marker class to be appended to "CfgMarkers" the class has to be in configFile. A marker contains assets, thus the client needs to load them, not the server.

I'm not sure where you have seen this done before, but the person that did it without a mod is a wizard ;) (you'll probably find they used some other hacky way, or the assets where in one of the mods they where using and you didn't know about it) :)

You could make this a simple 'optional' mod for your server though? :D

Edited by Taylor Swift

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.