Jump to content
Sign in to follow this  
G.Drunken

Problem with custom units in Zeus

Recommended Posts

The problem started with me trying to create a new custom RHS tank ( to be more accurate T-72B (obr. 1984g) and (obr. 1985g) , by removing the commander shield, removing the RHS decals and changing the crew commander to match the rest of the crew ( also includes custom made crew ). I've used the ALiVE ORBAT Tool to export the unit config of each tank mentioned (from Russia (TV), OPFOR) and change the config to fit my needs. The mod also includes helicopters from RHSAFRF and a vanilla jet from AAF.

The main problem are the tanks, the rest ( helicopters and jets ) work fine. No matter what I do, they are all in the editor listed properly, but once I enter the game and open up Zeus, only the helicopters and the jets tabs are displayed in the custom faction ( on all 3 sides, NATO, OPFOR and INDEP ). The tanks are gone.

Before I copy-paste the parts of the config ( just the OPFOR part ), I will say that:

I've placed the Game Master in-game and selected the option "All Addons ( including unofficial ones)" ,
"scopeCurator=2" is also in each of the class regarding custom RHS tanks ,
Units in CfgPatches also contain the classnames of these custom tanks and everything is in correct order and was checked multiple times.

This is the code:
 

class CfgPatches

{
	class IV
	
	{
		author="STA|G.DrunkeN";
		version=0.1;
		units[]=
		{
			"T72_LoB_Rubber_OPFOR",
			"T72_LoB_Rubber_ERA_OPFOR",
			"MI24P_CAMO2_STARLESS_OPFOR",
            "YAF_Galeb_OPFOR"
		};
		weapons[]={};
		magazines[]={};
		ammo[]={};
		requiredVersion=1.64;
		requiredAddons[]=
		{
			"rhs_main",
			"rhs_c_vehiclesounds",
			"rhs_c_t72"
		};
		
	};
	
};

class CfgFactionClasses

{
	class DrunkeNs_Arsenal_OPFOR
	{
		displayName="DrunkeN's Arsenal";
		priority=3;
		side=0;
		icon="\mod\data\icon_co.paa";
	};
  
};

class CBA_Extended_EventHandlers_base;

class CfgVehicles

{	
	class Components;
	class TransportPylonsComponent;
	class Pylons;
	class Pylons1;
	class Pylons2;
	class Pylons3;
	class Pylons4;
	class Pylons5;
	class Pylons6;
	class Pylons7;

	// OPFOR //
	
	class rhs_t72ba_tv;
    class rhs_t72ba_tv_OCimport_01 : rhs_t72ba_tv 
	{
		scope = 0;	
		class EventHandlers; 
		class Turrets;
		class AnimationSources;	
	};
  
    class rhs_t72ba_tv_OCimport_02 : rhs_t72ba_tv_OCimport_01 
	{ 
        class EventHandlers; 
        class Turrets : Turrets 
		{
            class MainTurret;
        };
		class AnimationSources : AnimationSources
		{
			class hide_com_shield
			{
				source="user";
				initPhase = 1;
				animPeriod=0.001;
			};
		};	
    };
  
	class rhs_t72ba_tv_OCimport_03 : rhs_t72ba_tv_OCimport_02
	{
		class EventHandlers;		
        class Turrets : Turrets 
		{
            class MainTurret : MainTurret
			{
				class Turrets : Turrets
				{
					class CommanderOptics;
					class CommanderMG;
				};
			};
		};
		class AnimationSources : AnimationSources
		{
			class hide_com_shield
			{
				source="user";
				initPhase = 1;
				animPeriod=0.001;
			};
		};
    };
	
	class T72_LoB_Rubber_OPFOR : rhs_t72ba_tv_OCimport_03
	{
		author = "STA|G.DrunkeN";
		scope=2;
		scopeCurator=2;
		crew="MI_Crewman";
		side=0;
		faction="DrunkeNs_Arsenal_OPFOR";
		displayName="Lion of Babylon w/ rubber";
		HiddenSelectionsTextures[]=
		{
			"\mod\data\LoB\rhs_t72b_01b_co.paa",
			"\mod\data\LoB\rhs_t72b_02a_co.paa",
			"\mod\data\LoB\rhs_t72b_03_co.paa",
			"\mod\data\LoB\rhs_t72b_04_co.paa",
			"\mod\data\LoB\rhs_t72b_05_co.paa"
		};
		class Turrets : Turrets
		{
            class MainTurret : MainTurret
			{
				class Turrets : Turrets
				{
					class CommanderOptics : CommanderOptics
					{
						gunnerType = "Mi_Crewman_Commander"; 
					};
					class CommanderMG : CommanderMG
					{
						gunnerType = "Mi_Crewman_Commander"; 
					};
				};
			};
        };
		class EventHandlers : EventHandlers {
            class CBA_Extended_EventHandlers : CBA_Extended_EventHandlers_base {};

            class ALiVE_orbatCreator {
                init = "if (local (_this select 0)) then {_onSpawn = {sleep 0.3; _unit = _this select 0;};_this spawn _onSpawn;(_this select 0) addMPEventHandler ['MPRespawn', _onSpawn];}; RHSDecalsOff = true;";
            };

        };

        // custom attributes (do not delete)
        ALiVE_orbatCreator_owned = 1;

	};

	class rhs_t72bb_tv;
    class rhs_t72bb_tv_OCimport_01 : rhs_t72bb_tv 
	{
		scope = 0; 
		class EventHandlers; 
		class Turrets;
		class AnimationSources;	
	};
    class rhs_t72bb_tv_OCimport_02 : rhs_t72bb_tv_OCimport_01 
	{ 
        class EventHandlers; 
        class Turrets : Turrets 
		{
            class MainTurret;
        };
		class AnimationSources : AnimationSources
		{
			class hide_com_shield
			{
				source="user";
				initPhase = 1;
				animPeriod=0.001;
			};
		};
    };
	class rhs_t72bb_tv_OCimport_03 : rhs_t72bb_tv_OCimport_02
	{
		class EventHandlers; 
        class Turrets : Turrets 
		{
            class MainTurret : MainTurret
			{
				class Turrets : Turrets
				{
					class CommanderOptics;
					class CommanderMG;
				};
			};
		};
		class AnimationSources : AnimationSources
		{
			class hide_com_shield
			{
				source="user";
				initPhase = 1;
				animPeriod=0.001;
			};
		};
    };
	
	class T72_LoB_Rubber_ERA_OPFOR : rhs_t72bb_tv_OCimport_03
	{
		author = "STA|G.DrunkeN";
		scope=2;
		scopeCurator=2;
		crew="MI_Crewman";
		side=0;
		faction="DrunkeNs_Arsenal_OPFOR";
		displayName="Lion of Babylon w/ rubber (ERA)";
		HiddenSelectionsTextures[]=
		{
			"\mod\data\LoB\rhs_t72b_01b_co.paa",
			"\mod\data\LoB\rhs_t72b_02a_co.paa",
			"\mod\data\LoB\rhs_t72b_03_co.paa",
			"\mod\data\LoB\rhs_t72b_04_co.paa",
			"\mod\data\LoB\rhs_t72b_05_co.paa"
		};
		class Turrets : Turrets
		{
            class MainTurret : MainTurret
			{
				class Turrets : Turrets
				{
					class CommanderOptics : CommanderOptics
					{
						gunnerType = "Mi_Crewman_Commander"; 
					};
					class CommanderMG : CommanderMG
					{
						gunnerType = "Mi_Crewman_Commander"; 
					};
				};
			};
        };
		class EventHandlers : EventHandlers {
            class CBA_Extended_EventHandlers : CBA_Extended_EventHandlers_base {};

            class ALiVE_orbatCreator {
                init = "if (local (_this select 0)) then {_onSpawn = {sleep 0.3; _unit = _this select 0;};_this spawn _onSpawn;(_this select 0) addMPEventHandler ['MPRespawn', _onSpawn];}; RHSDecalsOff = true;";
            };

        };

        // custom attributes (do not delete)
        ALiVE_orbatCreator_owned = 1;

	};

	class RHS_Mi24P_vdv;
	class MI24P_CAMO2_STARLESS_OPFOR : RHS_Mi24P_vdv
	{
		author = "STA|G.DrunkeN";
		scope=2;
		scopeCurator=2;
		crew="rhs_pilot_combat_heli";
		side=0;
		faction="DrunkeNs_Arsenal_OPFOR";
		displayName="Mi-24P";
		HiddenSelectionsTextures[]=
		{
			"\mod\data\Mi24\mi24p_001_camo2_co.paa",
			"\rhsafrf\addons\rhs_a2port_air\mi35\data\camo\mi24p_002_camo1_co.paa",
			"rhsafrf\addons\rhs_a2port_air\Mi17\data\camo\mi8_det_g_camo1_co.paa"
		};
		class EventHandlers
        {
		};
	};	

	class I_Plane_Fighter_03_dynamicLoadout_F;
	class YAF_Galeb_OPFOR : I_Plane_Fighter_03_dynamicLoadout_F
	{
		author = "STA|G.DrunkeN";
		scope=2;
		scopeCurator=2;
		crew="rhs_pilot";
		side=0;
		faction="DrunkeNs_Arsenal_OPFOR";
		displayName="G-4 Super Galeb (YAF)";
		HiddenSelectionsTextures[]=
		{
			"\mod\data\YAF_Galeb\L-159_0_co.paa",
			"\mod\data\YAF_Galeb\L-159_1_co.paa"
		};
		class EventHandlers
        {
		};
		class Components: Components
		{
			class TransportPylonsComponent: TransportPylonsComponent
			{
				class pylons: Pylons
				{
					class pylons1: Pylons1
					{
						attachment = "PylonRack_1Rnd_AAA_missiles";
					};
					class pylons2: Pylons2
					{
						attachment = "PylonRack_12Rnd_missiles";
					};
					class pylons3: Pylons3
					{
						attachment = "PylonRack_12Rnd_missiles";
					};
					class pylons4: Pylons4
					{
						attachment = "PylonWeapon_300Rnd_20mm_shells";
					};
					class pylons5: Pylons5
					{
						attachment = "PylonRack_12Rnd_missiles";
					};
					class pylons6: Pylons6
					{
						attachment = "PylonRack_12Rnd_missiles";
					};
					class pylons7: Pylons7
					{
						attachment = "PylonRack_1Rnd_AAA_missiles";
					};
				};
			};
		};
	};
};

I have no idea why square brackets and classes look weird in this code box... anyways. As I said, helicopters and jets are in the zeus, the tanks are not.

Any help is appreciated. I want to publish what's left of my work and be done with it.

Share this post


Link to post
Share on other sites

Well, I solved the issue.

The issue was in the crew the vehicle contained. The crew was custom made, but I didn't include it in the Zeus.

If the crew is not available in the Zeus, the vehicle containing THAT crew will not appear as well.

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
Sign in to follow this  

×