Jump to content
Karolus

Custom faction problems related to cfgFactionClasses and CfgVehicleClasses

Recommended Posts

I have made custom faction, everything seems to work fine, except two things:

1. Even though units appear in Eden editor under custom faction name, they do not appear based on custom CfgVehicleClasses; instead it seems they inherit classes from units they are based on;

2. Also custom faction and its units completly not appear in Zeus.

 

 

class CfgPatches
{
    class LAF_UNITS 
    {
        units[] = 
		{
		LITHSOF1_Operator, 
		LITHSOF1_Operator_solid, 
		LITHSOF1_SquadLeader, 
		LITHSOF1_Support, 
		LITHSOF1_rifleman, 
		LITHSOF1_AT, 
		LITHSOF1_engineer, 
		LITHSOF1_explosiveSpec, 
		LITHSOF1_medic, 
		LITHSOF1_Designated_Marksman, 
		LITHSOF1_sniper, 
		LITHSOF1_spotter, 
		LITHSOF2_Operator_desert,
		LITHSOF2_SquadLeader_desert, 
		LITHSOF2_rifleman_desert, 
		LITHSOF2_AT_desert, 
		LITHSOF2_engineer_desert, 
		LITHSOF2_explosiveSpec_desert, 
		LITHSOF2_medic_desert,
		LITHSOF2_support_desert, 
		LITHSOF2_Designated_Marksman_desert, 
		LITHSOF2_Sniper_desert, 
		LITHSOF2_Spotter_desert, 
		LITHSOF3_Operator_new_camo, 
		LAF_Rifleman, 
		LAF_AT_MAAWS, 
		LAF_AT_Javelin, 
		LAF_Designated_Marksman, 
		LAF_Engineer, 
		LAF_ExplosiveSpec, 
		LAF_Medic, 
		LAF_SquadLeader, 
		LAF_Support, 
		LAF_Driver,
		LAF_Officer,
		LAF_Officer2,
		LAF_Pilot_plane, 
		LAF_Pilot_heli,
		LAF_Mi8_Air, 
		LAF_Heli_Light_Air, 
		LAF_L39_Air,
		LAF_HMMWV1_Wheeled, 
		LAF_HMMWV1M2_Wheeled, 
		LAF_HMMWV2_Wheeled, 
		LAF_HMMWV2M2_Wheeled, 
		LAF_M113,
		LAF_Zamak_covered_w
		};
        weapons[] = {};
        requiredVersion = 0.1;
        requiredAddons[] = 
		{
		a3_characters_F, 
		a3_characters_f_beta, 
		a3_characters_f_gamma, 
		a3_characters_f_bootcamp, 
		a3_characters_F_EPB, 
		a3_soft_f_beta,
		a3_air_f, 
		a3_ui_f, 
		a3_weapons_f,
		rhsusf_weapons,
		rhsusf_weapons2,
		rhsusf_weapons3,
		rhs_weapons,
		rhs_weapons2,
		rhs_weapons3, 
		rhsusf_infantry, 
		rhs_infantry, 
		rhs_infantry2, 
		rhs_c_troops, 
		rhsusf_hmmwv, 
		rhsusf_m113,
		rhsusf_c_m113,
		rhs_a2port_air,		
		LAF_balaclavas, 
		LAF_Carryall_Bag, 
		LAF_backpack_small,
		};
    };
	
};
class cfgFactionClasses
{
 class LAF //Faction Calling Name
 {
  displayName = "Lithuanian Armed Forces"; //Faction name in-game
  icon = "LAF\Data\UI\LAF_logo.paa"; //Path to texture next to the faction name in editor "PBOname\filename.paa"
  priority = 1; //How far down it is on the menu
  side = 1; // 1 Blufor 2 opfor 3 independant i think.
 };
};
class CfgVehicleClasses
{
 class LITHSOF1_Units //Name of unit group e.g Air, Infantry, Armour
 {
	displayName = "Men (LITHSOF Woodland)";
	priority = 1;
 };
 class LITHSOF2_Units
 {
	displayName = "Men (LITHSOF Desert)";
	priority = 2;
 };
  class LITHSOF3_Units
 {
	displayName = "Men (LITHSOF New Camo)";
	priority = 3;
 };
 
   class LAF1_Units
 {
	displayName = "Men";
	priority = 4;
 };

 class LAF_air
 {
	 displayName = "Air";
	 priority = 5;
 };
 
  class LAF_Wheeled
 {
	 displayName = "Cars, APCs";
	 priority = 6;
 };
};

 

Unit example (relevant part of script):

 

    class LITHSOF1_Operator: I_soldier_F //Unit Class name: Class getting info from
    {
        side = 1; 
        faction = "LAF";
        backpack = "";
        vehicleclass = "LITHSOF1_Units";
        genericNames="SOPNames";
        author = "Karolus";
        _generalMacro = "LITHSOF1_Operator";
        scope = 2;
        scopeCurator = 2;
        scopeArsenal = 2;
        displayName = "Operator";
    };

 

This unit, for example, in editor appears under "Men", instead of "Men (LITHSOF Woodland)". And same goes for every unit, almost all of them are merged under "Men", except snipers, which inherit information from I_Sniper_F, and appears under "Special forces". One of helicopter appear under "Helicopter", other on "Helicopters", etc.

 

Also, as you can see, I have written unit classnames under cfgPatches, as its required to work with Zeus, also scopeCurator = 2 is written under every unit i wanted to appear in Zeus, but whole faction and its units do not appear in Zeus. I have read that this problem was related to custom faction classname in the past and if I wanted it to appear in Zeus, i had to use vanilla classname as NATO, for example. But it appears that mods like RHS works just fine in Zeus with custom faction classnames, so i don't understand where the problem is.

 

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

×