Jump to content
Skye Himalaya

Custom Patch Issues

Recommended Posts

I am fairly certain this would go in this threat but correct me if I'm wrong. I made an account just to get some help with it.

I am making a very simple mod to add 3 patches into the game. I have the .paa's made, the config.cpp, and it's all set up (to what I think would be correctly) and the patches can be selected in the aresenal, however, they show up on the uniform as a random patch that's unrelated to the actual patch I am trying to add.

The patches themselves are 2048/2048, I made them in GIMP, and I exported them as .png's and converted them to .paa's using Arma's Modding Tools.

Any help?

Share this post


Link to post
Share on other sites

Show us your config. And by "show up on the uniform as a random patch" you mean that selecting your insignia in Arsenal causes another to show up on the model immediately, or do you change insignia in unit's Attributes in editor and when previewed, it reverts your setting? Insignias can be randomized or overwritten by unit config iirc, use 

[this, "yourCustomPatch"] call BIS_fnc_setUnitInsignia;

instead

Share this post


Link to post
Share on other sites

A random patch appears in place of the one I want to use, immediately.

 

class CfgPatches {

	class insignia_addon
	{
		units[] = {};
		weapons[] = {};
		requiredAddons[] = {};
		version = "1.0.0";
		author[]= {"SkyHighPurchase"};
		authorUrl = "";
	};

};

class CfgUnitInsignia
{
	
	class bcpatches1
	{
		displayName = "[BC] UKA";
		author = "SkyHighPurchase";
		texture = "uka.paa";
		textureVehicle = "";
	};
	class bcpatches2
	{
		displayName = "[BC] KSS";
		author = "SkyHighPurchase";
		texture = "kss.paa";
		textureVehicle = "";
	};
	class bcpatches3
	{
		displayName = "[BC] VSL";
		author = "SkyHighPurchase";
		texture = "vsl.paa";
		textureVehicle = "";
	};
	class bcpatches4
	{
		displayName = "[BC] Test";
		author = "SkyHighPurchase";
		texture = "test.paa";
		textureVehicle = "";
	};
};

The patches I use are 2048x2048m, here's an imgur link to them, in the event that anything is wrong with the images themselves. https://imgur.com/a/Q1nogRD
 

Share this post


Link to post
Share on other sites
texture = "uka.paa";

Is that the full path to the texture file in your addon?

Share this post


Link to post
Share on other sites

I stuck them alongside the config.cpp after trying atleast two other paths. Originally it was \insignia_addon\icon\uka.paa

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×