Jump to content
Nortomo

Problems with config uniformClass references maybe?

Recommended Posts

Hello everyone. Lately i started make my first retexture mod (for education), but when i tried to load my unit into the Editor, i get an error

Quote

No entry 'bin\config.bin/cfgWeapons/KLM_uniform/ItemInfo.uniformClass/'

about wrong "uniformClass". This unit appears with equipment and looks like a regular CSAT soldier, but it didnt have a uniform. Unfortunately, i can't understand the game well, and cant find solution.

 

#include "BIS_AddonInfo.hpp"
class CfgPatches
{
	class KAF_Config
	{
		units[] = {"Custom_uniform_mod";};
		weapons[] = {};
		requiredVersion = 0.1;
		requiredAddons[] = {"A3_Characters_F"};
	};
};

class cfgFactionClasses
{
	class KAF
	{
		displayName = "KAF";
		priority = 7;
		side = 2;
	};
};

class cfgVehicles
{
	class I_soldier_F; //base unit
	class Rifleman : I_soldier_F {  
		author = "Nortomo";   //aouthor
		_generalMacro = "I_soldier_F";  //idk
		threat[] = {0.8, 0.1, 0.1};  //priority target for bots infantry and no armored vehicles/ifv's, apc, tanks, armed vehicles/aerial vehicles
		scope = 2;    //availible in editor or not
		displayName = "Rifleman";  //definetily yes
		identityTypes[] = {"LanguageGRE_F", "Head_Asian", "G_HAF_default"};   //bcz chinese is not sound like kalmyk
		genericNames = "NATOMen";   //names of soldiers
		faction = "KAF"; //Kalmyk armed forces
		model = "\a3\characters_f\OPFOR\o_soldier_01.p3d";  //model of csat uniform
		uniformClass = "KLM_uniform";    //something wrong
		hiddenSelections[] = {"Camo", "Insignia"};
		hiddenSelectionsTextures[] = {"KAF\Data\clothing_KLMgreen_CO.paa"}; //, "KAF\Data\clothing_KLMsand_co.paa"
		weapons[] = {"arifle_MX_Black_Hamr_pointer_F", "hgun_Rook40_F", "Throw", "Put"};
		respawnWeapons[] = {"arifle_MX_Black_Hamr_pointer_F", "hgun_Rook40_F", "Throw", "Put"};
		Items[] = {"FirstAidKit", "FirstAidKit"};
		respawnItems[] = {"FirstAidKit", "FirstAidKit"};
		magazines[] = {"30Rnd_65x39_caseless_black_mag", "30Rnd_65x39_caseless_black_mag", "30Rnd_65x39_caseless_black_mag", "30Rnd_65x39_caseless_black_mag", "30Rnd_65x39_caseless_black_mag", "30Rnd_65x39_caseless_black_mag", "16Rnd_9x21_Mag", "16Rnd_9x21_Mag", "16Rnd_9x21_Mag", "HandGrenade", "SmokeShell","SmokeShellGreen", "Chemlight_yellow", "Chemlight_yellow"};
		respawnMagazines[] = {"30Rnd_65x39_caseless_black_mag", "30Rnd_65x39_caseless_black_mag", "30Rnd_65x39_caseless_black_mag", "30Rnd_65x39_caseless_black_mag", "30Rnd_65x39_caseless_black_mag", "30Rnd_65x39_caseless_black_mag", "16Rnd_9x21_Mag", "16Rnd_9x21_Mag", "16Rnd_9x21_Mag", "HandGrenade", "SmokeShell","SmokeShellGreen", "Chemlight_yellow", "Chemlight_yellow"};
		linkedItems[] = {"V_PlateCarrier1_blk", "H_HelmetAggressor_F", "O_NVGoggles_grn_F", "ItamMap", "ItemCompass", "itemWatch", "ItemRadio"};
		respawnLinkedItems[] = {"V_PlateCarrier1_blk", "H_HelmetAggressor_F", "O_NVGoggles_grn_F", "ItamMap", "ItemCompass", "itemWatch", "ItemRadio"};
	};
	//other units
	
};
class cfgWeapons
{
	class ItemCore;
	class UniformItem;
	class Uniform_Base : ItemCore
	{
		class ItemInfo;                   //why
	};
	
	class KLM_uniform : Uniform_Base
	{
		scope = 2;
		displayName = "Kalmyk green uniform";
		picture = "KAF\ui\ui_klm_uniform.paa"; //wrong pic
		model = "\A3\characters_f\OPFOR\o_soldier_01.p3d"; 
		class ItemInfo : UniformItem {  //aaaaaa
			uniformcClass = "Rifleman";
			containerClass = "Supply50";
			mass = 50;
		};
	};
	
	
	

And when i type "arifle_MX_Black_Hamr_F" error appears too, but i don't want laser pointer.
Im so sorry for overcomments in code.
    
    
 

Share this post


Link to post
Share on other sites

I'd suggest changing your unit's classname to use the addon tag standard (that weirdly you use in your UNIFORM class but not your unit class...)

i.e.

class KLM_Rifleman: I_soldier_F

and then change the relevant mcguffin in your uniform define:

		class ItemInfo : UniformItem 
		{  
			uniformcClass = "KLM_Rifleman";
			containerClass = "Supply50";
			mass = 50;
		};

 

As for the weapon error, you'd need to check if that classname even exists - the fact it throws an error implies that it doesn't exist...

  • Confused 1

Share this post


Link to post
Share on other sites
4 hours ago, Jackal326 said:

I'd suggest changing your unit's classname to use the addon tag standard (that weirdly you use in your UNIFORM class but not your unit class...)

i.e.


class KLM_Rifleman: I_soldier_F

and then change the relevant mcguffin in your uniform define:


		class ItemInfo : UniformItem 
		{  
			uniformcClass = "KLM_Rifleman";
			containerClass = "Supply50";
			mass = 50;
		};

 

As for the weapon error, you'd need to check if that classname even exists - the fact it throws an error implies that it doesn't exist...

i'm sorry. I still get error message. 

Share this post


Link to post
Share on other sites

There is typo in your config

uniformcClass = "Rifleman";
No entry 'bin\config.bin/cfgWeapons/KLM_uniform/ItemInfo.uniformClass/' 

Try looking closely and you should see there is one letter typed wrong and game suggested you the correct one 😉

 

 

 

  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites
On 6/5/2020 at 12:36 PM, reyhard said:

There is typo in your config


uniformcClass = "Rifleman";

No entry 'bin\config.bin/cfgWeapons/KLM_uniform/ItemInfo.uniformClass/' 

Try looking closely and you should see there is one letter typed wrong and game suggested you the correct one 😉

 

 

 

*face-palm*

Nice spot Reyhard...I even copied and pasted it and still didn't spot it 😖

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

×