Forum Jump :

Author Message


Posts: 1
Rank:


Level: Member

Country: pl
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2020-01-14 17:12        
     
I Made a custom Warlords mission with the factions I created with Drongo's Config Generator, no error messages or anything but the INDFOR units don't spawn.
INDFOR faction config.cpp:
class cfgPatches
{
  class G_G
  {
    units[]={"G_G"};
    weapons[]={"G_arifle_AKM_F"};
    requiredVersion=0.1;
    requiredAddons[]={"A3_Weapons_F_Items","A3_Weapons_F","A3_Weapons_F_Exp_Rifles_AKM","A3_Characters_F_Exp","A3_Characters_F_Orange_Vests","A3_Characters_F_Exp_Civil"};
  };
};

class cfgFactionClasses
{
  class G_G
  {
    icon="";
    displayName="G";
    side=2;
    priority=1;
  };
};


class cfgWeapons
{
  class arifle_AKM_F;

  class G_arifle_AKM_F: arifle_AKM_F
  {
    displayName="AKM 7.62 mm";
    scope=1;
    class LinkedItems
    {
    };
  };

};

class cfgVehicles
{
  class C_Man_casual_3_F;

  class G_G: C_Man_casual_3_F
  {
    faction="G_G";
    side=2;
    displayName="G";
    uniformClass="U_C_Man_casual_3_F";
    weapons[]={"G_arifle_AKM_F","Put","Throw"};
    respawnWeapons[]={"G_arifle_AKM_F","Put","Throw"};
    items[]={"FirstAidKit"};
    respawnItems[]={"FirstAidKit"};
    magazines[]={"30Rnd_762x39_Mag_Green_F","30Rnd_762x39_Mag_Green_F","30Rnd_762x39_Mag_Green_F","30Rnd_762x39_Mag_Green_F","30Rnd_762x39_Mag_Green_F","HandGrenade","HandGrenade"};
    respawnMagazines[]={"30Rnd_762x39_Mag_Green_F","30Rnd_762x39_Mag_Green_F","30Rnd_762x39_Mag_Green_F","30Rnd_762x39_Mag_Green_F","30Rnd_762x39_Mag_Green_F","HandGrenade","HandGrenade"};
    linkedItems[]={"ItemMap","ItemCompass","ItemWatch","ItemRadio","V_Pocketed_olive_F"};
    respawnLinkedItems[]={"ItemMap","ItemCompass","ItemWatch","ItemRadio","V_Pocketed_olive_F"};
    backpack="";
  };

};
class cfgGroups
{  
  class INDEP
  {
    name="Independent";
    class G
    {
      name="G";

      class Infantry
      {
        name="Infantry";

        class G_R_G
        {
          name="G";
          faction="G_G";
          side=2;
          class Unit0
          {
            side=2;
            vehicle="G_G";
            rank="SERGEANT";
            position[]={0,-0,0};
          };
          class Unit1
          {
            side=2;
            vehicle="G_G";
            rank="CORPORAL";
            position[]={0,-5,0};
          };
          class Unit2
          {
            side=2;
            vehicle="G_G";
            rank="CORPORAL";
            position[]={0,-10,0};
          };
          class Unit3
          {
            side=2;
            vehicle="G_G";
            rank="PRIVATE";
            position[]={0,-15,0};
          };
          class Unit4
          {
            side=2;
            vehicle="G_G";
            rank="PRIVATE";
            position[]={0,-20,0};
          };
          class Unit5
          {
            side=2;
            vehicle="G_G";
            rank="PRIVATE";
            position[]={0,-25,0};
          };
          class Unit6
          {
            side=2;
            vehicle="G_G";
            rank="PRIVATE";
            position[]={0,-30,0};
          };
          class Unit7
          {
            side=2;
            vehicle="G_G";
            rank="PRIVATE";
            position[]={0,-35,0};
          };
          class Unit8
          {
            side=2;
            vehicle="G_G";
            rank="PRIVATE";
            position[]={0,-40,0};
          };
          class Unit9
          {
            side=2;
            vehicle="G_G";
            rank="PRIVATE";
            position[]={0,-45,0};
          };
          class Unit10
          {
            side=2;
            vehicle="G_G";
            rank="PRIVATE";
            position[]={0,-50,0};
          };
        };
      };
      class Motorized
      {
        name="Motorized";

      };
      class Mechanized
      {
        name="Mechanized";

      };
      class Armored
      {
        name="Armored";

      };
      class SpecOps
      {
        name="Special Forces";

      };
      class Support
      {
        name="Support Infantry";

      };
      class Airborne
      {
        name="Airborne";

      };
      class Air
      {
        name="Air";

      };
    };
  };
};
Mission's description.ext:
#include "\A3\Missions_F_Warlords\defaultDescription.inc"
#include "\A3\Missions_F_Warlords\cfgMissionParams.inc"

class Header
{
	gameType = Warlords;
	minPlayers = 1;
	maxPlayers = 32;
};
class CfgWLRequisitionPresets
{
    class MyWLAssetList
    {
        class WEST
        {
            class Infantry
            {
                class H_H
                {
                    cost = 100;
                    requirements[]={};
                };
            };
            class Vehicles
            {
                class C_Offroad_01_F
                {
                    cost = 100;
                    requirements[]={};
                };
            };
        };
        class EAST
        {
            class Infantry
            {
                class J_J
                {
                    cost = 100;
                    requirements[]={};
                };
            };
            class Vehicles
            {
                class C_Offroad_01_F
                {
                    cost = 100;
                    requirements[]={};
                };
            };
		};
    };
};