PDA

View Full Version : Config Problems



b_ringer25
Nov 7 2005, 12:25
I would like to have 5 names instead of the 1 I have but everything I have tried has not worked.  Help.  If someone can show me.

This is my config

#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 // 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 Iraq
  {
     units[] = {};
     weapons[] = {};
     worlds[] = {"Iraq"};
     requiredVersion = 1.30;
  };
};
class CfgVehicles{};
class CfgSurfaces
{
  class Default {};
};
class CfgEnvSounds {};
class CfgWorlds
{
  class DefaultWorld {};
  class  Iraq: DefaultWorld
  {
     access=3;
     description="Iraq";
     icon="\Iraq\Iraq.jpg";
     worldName="\Iraq\Iraq.wrp";
     plateFormat="ML$ - #####";
     plateLetters="ABCDEGHIKLMNOPRSTVXZ";
     startTime="7:30";
     startDate="10/4/82";
     startWeather=0.400000;
     startFog=0.000000;
     forecastWeather=0.400000;
     forecastFog=0.000000;
     seagullPos[]={8897,4349,100};
     ilsPosition[]={0,0,0};
     ilsDirection[]={0,0.080000,1};
     ilsTaxiIn[]={};
     ilsTaxiOff[]={};
     centerPosition[]={9735,3964,0};
     class Sounds
     {
        sounds[]={};
     };
     class Animation
     {
        vehicles[]={};
     };
     class Names
     {
        class Alas
        {  
           name="Breaching Area";
           position[]={6205,2080,50};
        };
     };
  };
};
class CfgWorldList
{
  class  Iraq{};
};

Planck
Nov 7 2005, 15:00
You just need to add each different name individually under class Names.......thus:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
class Names
{

class Name1
{
name=&#34;Name One&#34;;
position&#91;&#93;={x,y,z};
};

class Name2
{
name=&#34;Name Two&#34;;
position&#91;&#93;={x,y,z};
};

class Name3
{
name=&#34;Name Three&#34;;
position&#91;&#93;={x,y,z};
};
etc
etc
etc
}
[/QUOTE]

Planck

b_ringer25
Nov 7 2005, 17:20
didn&#39;t help. this is what it looks like currently

#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 // 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 Iraq
{
units[] = {};
weapons[] = {};
worlds[] = {"Iraq"};
requiredVersion = 1.30;
};
};
class CfgVehicles{};
class CfgSurfaces
{
class Default {};
};
class CfgEnvSounds {};
class CfgWorlds
{
class DefaultWorld {};
class Iraq: DefaultWorld
{
access=3;
description="Iraq";
icon="&#92;Iraq&#92;Iraq.jpg";
worldName="&#92;Iraq&#92;Iraq.wrp";
plateFormat="ML&#036; - #####";
plateLetters="ABCDEGHIKLMNOPRSTVXZ";
startTime="7:30";
startDate="10/4/82";
startWeather=0.400000;
startFog=0.000000;
forecastWeather=0.400000;
forecastFog=0.000000;
seagullPos[]={8897,4349,100};
ilsPosition[]={0,0,0};
ilsDirection[]={0,0.080000,1};
ilsTaxiIn[]={};
ilsTaxiOff[]={};
centerPosition[]={9735,3964,0};
class Sounds
{
sounds[]={};
};
class Animation
{
vehicles[]={};
};
class Names
{
class Breaching Area
{
name="Breaching Area";
position[]={6205,2080,50};
};

class Name2
{
name="Iraq";
position[]={6400,6400,50};
};

class Name3
{
name="Saudi Arabia";
position[]={6400,1125,50};
};
};
};
};
class CfgWorldList
{
class Iraq{};
};

Planck
Nov 7 2005, 18:04
AFAIK you cannot have spaces in classnames.

So....

class Breaching Head ............will not work

Try....
class Breaching_Head ..........instead.


Planck