Home   Help Search Login Register  

Author Topic: Units Wont Appear Ingame  (Read 1532 times)

0 Members and 1 Guest are viewing this topic.

Offline Pathy

  • Former Staff
  • ****
  • I'm not a F***in llama!
    • Volcbat.
Units Wont Appear Ingame
« on: 15 May 2004, 19:35:27 »
Ok, im trying to get some Colombian Soldiers ingame and working, BUT, i've written the config (and rewritten it), i'm pretty experienced at configs, and theres no errors that occur, so i dont THINK its a config problem, BUT...when i go into the game, try to place a unit, the unit does not appear in the list in the editor  ???

There must be a specific problem that causes this error, but i dont know what it is......

Any help much appreciated.
The configs not a work of art, but its designed just to get the units ingame and see how they look.
Quote
// Basic defines
#define TEast   0
#define TWest   1
#define TGuerrila   2
#define TCivilian   3
#define TSideUnknown   4
#define TEnemy   5
#define TFriendly   6
#define TLogic   7

#define true   1
#define false   0

#define private   0
#define protected   1
#define public   2

#define WeaponNoSlot   0
#define WeaponSlotPrimary   1
#define WeaponSlotSecondary   16
#define WeaponSlotItem   256
#define WeaponSlotBinocular   4096
#define WeaponHardMounted   65536

class CfgPatches
{
   class DRG_ColumbianSoldiers
   {
      units[]={DRG_COLSOL,DRG_COLSOLban,DRG_COLSOLboon,DRG_COLSOLcap,DRG_COLSOLhelmG,DRG_COLSOLhelmC};   
      weapons[]={};   
      requiredVersion = 1.92;   
   };
};
class CfgModels
{
   class Default
   {
      sections[]={};
      sectionsInherit="";
   };
   class Head: Default
   {
      sections[]={"osobnost","brejle"};
   };
   class Man: Default
   {
      sections[]={"head injury","body injury","l arm injury","r arm injury","p arm injury","l leg injury","r leg injury","p leg injury","medic","hlava","krk","zasleh"};
      sectionsInherit="Head";
   };
   class DRG_COLSOLBASE : Man
   {
   };
   class DRG_COLSOLbandana : Man
   {
   };
   class DRG_COLSOLbooni : Man
   {
   };
   class DRG_COLSOLcap : Man
   {
   };
   class DRG_COLSOLhelmG : Man
   {
   };
   class DRG_COLSOLhelmC : Man
   {
   };

};
lass CfgVehicles
{
   class All{};
   class AllVehicles:All{};
   class Land:AllVehicles{};
   class Man:Land{};
   class Soldier:Man{};
   class SoldierWB:Soldier{};
   class DRG_COLSOL: SoldierWB
   {
      displayName="Colombian Soldier (No Headgear)";
      weapons[]={"Throw","Put","M4"};
      magazines[]={"m4","m4","m4","m4","m4","m4","m4","handgrenade","handgrenade"};
      model="\DRG_COLSOL\DRG_COLSOLBASE.p3d";
      wounds[]={""};
      class Reflectors   
      {   
         class Reflector   
         {         
            color[]={1.00000,0.900000,0.900000,1.000000};         
            ambient[]={1.000000,0.9000000,0.9000000,1.000000};         
            position="svetlo";      
            direction="konec svetla";      
            hitpoint="svetlo";      
            selection="svetlo";         
            size=0.700000;      
            brightness=0.001000;      
         };
      };
      
   };
   class DRG_COLSOLban: SoldierWB
   {
      displayName="Colombian Soldier (Bandana)";
      weapons[]={"Throw","Put","M4"};
      magazines[]={"m4","m4","m4","m4","m4","m4","m4","handgrenade","handgrenade"};
      model="\DRG_COLSOL\DRG_COLSOLbandana.p3d";
      wounds[]={""};
      class Reflectors   
      {   
         class Reflector   
         {         
            color[]={1.00000,0.900000,0.900000,1.000000};         
            ambient[]={1.000000,0.9000000,0.9000000,1.000000};         
            position="svetlo";      
            direction="konec svetla";      
            hitpoint="svetlo";      
            selection="svetlo";         
            size=0.700000;      
            brightness=0.001000;      
         };
      };
      
   };
   class DRG_COLSOLcap: SoldierWB
   {
      displayName="Colombian Soldier (Cap)";
      weapons[]={"Throw","Put","M4"};
      magazines[]={"m4","m4","m4","m4","m4","m4","m4","handgrenade","handgrenade"};
      model="\DRG_COLSOL\DRG_COLSOLcap.p3d";
      wounds[]={""};
      class Reflectors   
      {   
         class Reflector   
         {         
            color[]={1.00000,0.900000,0.900000,1.000000};         
            ambient[]={1.000000,0.9000000,0.9000000,1.000000};         
            position="svetlo";      
            direction="konec svetla";      
            hitpoint="svetlo";      
            selection="svetlo";         
            size=0.700000;      
            brightness=0.001000;      
         };
      };
      
   };
   class DRG_COLSOLhelmG: SoldierWB
   {
      displayName="Colombian Soldier (Helmet)";
      weapons[]={"Throw","Put","M4"};
      magazines[]={"m4","m4","m4","m4","m4","m4","m4","handgrenade","handgrenade"};
      model="\DRG_COLSOL\DRG_COLSOLhelmG.p3d";
      wounds[]={""};
      class Reflectors   
      {   
         class Reflector   
         {         
            color[]={1.00000,0.900000,0.900000,1.000000};         
            ambient[]={1.000000,0.9000000,0.9000000,1.000000};         
            position="svetlo";      
            direction="konec svetla";      
            hitpoint="svetlo";      
            selection="svetlo";         
            size=0.700000;      
            brightness=0.001000;      
         };
      };
      
   };
   class DRG_COLSOLhelmC: SoldierWB
   {
      displayName="Colombian Soldier (Helmet Camo'd)";
      weapons[]={"Throw","Put","M4"};
      magazines[]={"m4","m4","m4","m4","m4","m4","m4","handgrenade","handgrenade"};
      model="\DRG_COLSOL\DRG_COLSOLhelmC.p3d";
      wounds[]={""};
      class Reflectors   
      {   
         class Reflector   
         {         
            color[]={1.00000,0.900000,0.900000,1.000000};         
            ambient[]={1.000000,0.9000000,0.9000000,1.000000};         
            position="svetlo";      
            direction="konec svetla";      
            hitpoint="svetlo";      
            selection="svetlo";         
            size=0.700000;      
            brightness=0.001000;      
         };
      };
      
   };
};
« Last Edit: 15 May 2004, 19:53:02 by Pathy »

Leone

  • Guest
Re:Units Wont Appear Ingame
« Reply #1 on: 16 May 2004, 15:03:38 »
Add "access=2" into the config of each unit.

Offline Pathy

  • Former Staff
  • ****
  • I'm not a F***in llama!
    • Volcbat.
Re:Units Wont Appear Ingame
« Reply #2 on: 17 May 2004, 08:14:16 »
Ahhh that would make sense, i will try that. Thank you! (even if it doesn't work)

Offline Pathy

  • Former Staff
  • ****
  • I'm not a F***in llama!
    • Volcbat.
Re:Units Wont Appear Ingame
« Reply #3 on: 17 May 2004, 16:04:24 »
Afraid that doesnt work......thanks anyway. :(

Offline Pathy

  • Former Staff
  • ****
  • I'm not a F***in llama!
    • Volcbat.
Re:Units Wont Appear Ingame
« Reply #4 on: 17 May 2004, 16:13:53 »
Latest attempt, still not working

Quote
// some basic defines
#define TEast 0
#define TWest 1
#define TGuerrila 2
#define TCivilian 3
#define TSideUnknown 4
#define TEnemy 5
#define TFriendly 6
#define TLogic 7

#define true 1
#define false 0

// type scope
#define private 0
#define protected 1
#define public 2

#define WeaponNoSlot            0// dummy weapons
#define WeaponSlotPrimary      1// primary weapons
#define WeaponSlotSecondary   16// secondary weapons
#define WeaponSlotItem         256// items
#define WeaponSlotBinocular   4096// binocular
#define WeaponHardMounted      65536

class CfgPatches
{
   class DRG_COLSOL
   {
      units[]={DRG_COLSOL,DRG_COLSOLban,DRG_COLSOLboon,DRG_COLSOLcap,DRG_COLSOLhelmG,DRG_COLSOLhelmC};   
      weapons[]={};   
      requiredVersion = 1.92;   
   };
};
class CfgModels
{
   class Default
   {
      sections[]={};
      sectionsInherit="";
   };
   class Head: Default
   {
      sections[]={"osobnost","brejle"};
   };
   class Man: Default
   {
      sections[]={"head injury","body injury","l arm injury","r arm injury","p arm injury","l leg injury","r leg injury","p leg injury","medic","hlava","krk","zasleh"};
      sectionsInherit="Head";
   };
   class DRG_COLSOLBASE : Man
   {
   };
   class DRG_COLSOLBandana : Man
   {
   };
   class DRG_COLSOLboonie : Man
   {
   };
   class DRG_COLSOLcap : Man
   {
   };
   class DRG_COLSOLhelmG : Man
   {
   };
   class DRG_COLSOLhelmC : Man
   {
   };

};
lass CfgVehicles
{
   class All{};
   class AllVehicles:All{};
   class Land:AllVehicles{};
   class Man:Land{};
   class Soldier:Man{};
   class SoldierWB:Soldier{};
   class DRG_COLSOL: SoldierWB
   {
      displayName="Colombian Soldier (No Headgear)";
      weapons[]={"Throw","Put","M4"};
      magazines[]={"m4","m4","m4","m4","m4","m4","m4","handgrenade","handgrenade"};
      model="\DRG_COLSOL\DRG_COLSOLBASE.p3d";
      wounds[]={""};
      vehicleClass="Men";
         scope=2;
        side=1;
      access=2;

      
      
   };
   class DRG_COLSOLban: SoldierWB
   {
      displayName="Colombian Soldier (Bandana)";
      weapons[]={"Throw","Put","M4"};
      magazines[]={"m4","m4","m4","m4","m4","m4","m4","handgrenade","handgrenade"};
      model="\DRG_COLSOL\DRG_COLSOLbandana.p3d";
      wounds[]={""};
      vehicleClass="Men";
         scope=2;
         side=1;
      access=2;

   
      
   };
   class DRG_COLSOLcap: SoldierWB
   {
      displayName="Colombian Soldier (Cap)";
      weapons[]={"Throw","Put","M4"};
      magazines[]={"m4","m4","m4","m4","m4","m4","m4","handgrenade","handgrenade"};
      model="\DRG_COLSOL\DRG_COLSOLcap.p3d";
      wounds[]={""};
      vehicleClass="Men";
         scope=2;
         side=1;
      access=2;

      
      
   };
   class DRG_COLSOLhelmG: SoldierWB
   {
      displayName="Colombian Soldier (Helmet)";
      weapons[]={"Throw","Put","M4"};
      magazines[]={"m4","m4","m4","m4","m4","m4","m4","handgrenade","handgrenade"};
      model="\DRG_COLSOL\DRG_COLSOLhelmG.p3d";
      wounds[]={""};
      vehicleClass="Men";
         scope=2;
         side=1;
      access=2;

      
      
   };
   class DRG_COLSOLhelmC: SoldierWB
   {
      displayName="Colombian Soldier (Helmet Camo'd)";
      weapons[]={"Throw","Put","M4"};
      magazines[]={"m4","m4","m4","m4","m4","m4","m4","handgrenade","handgrenade"};
      model="\DRG_COLSOL\DRG_COLSOLhelmC.p3d";
      wounds[]={""};
      vehicleClass="Men";
         scope=2;
      access=2;
      
      
   };
};

Leone

  • Guest
Re:Units Wont Appear Ingame
« Reply #5 on: 18 May 2004, 07:35:25 »
Quote
lass CfgVehicles
 :o

Missing a "c"?

Offline Pathy

  • Former Staff
  • ****
  • I'm not a F***in llama!
    • Volcbat.
Re:Units Wont Appear Ingame
« Reply #6 on: 18 May 2004, 08:12:32 »
Well spotted! You must have eagle eyes lol, i cant find errors unless i get a message telling me roughtly where it is!





OK annoyingly enough it makes no difference. When i have more time tonight i will muck around, but.....

Leone

  • Guest
Re:Units Wont Appear Ingame
« Reply #7 on: 18 May 2004, 12:01:48 »
You changed this:

Quote
class CfgPatches
{
   class DRG_ColumbianSoldiers
   {

to this:

Quote
class CfgPatches
{
   class DRG_COLSOL
   {

I'd go back to the first one again. Anything else you might need to get soldiers in-game is out of my skills  ???

Offline Pathy

  • Former Staff
  • ****
  • I'm not a F***in llama!
    • Volcbat.
Re:Units Wont Appear Ingame
« Reply #8 on: 18 May 2004, 12:06:19 »
Ok when i get home i will use the 1st one again and fix the errors pointed out. Thanks for your help Leone.  :)