PDA

View Full Version : Config.cpp



Koveras
Nov 21 2003, 20:28
can anyone help me with this config? Thanks

// armymenisland
// Made with New World config.cpp creator by Marksman
// beta version

#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 armymenisland
{
units[] = {};
weapons[] = {};
worlds[] = {"armymenisland"};
requiredVersion = 1.30;
};
};
class CfgVehicles{};
class CfgSurfaces
{
class Default {};
};
class CfgEnvSounds {};
class CfgWorlds
{
class DefaultWorld {};
class armymenisland: DefaultWorld
{
access=3;
description="Casa Willy";
icon="\armymen\image.paa";
worldName="\armymen\isola.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[]={6824.36,8773.72,15.00};
ilsDirection[]={0,0.080000,-1};
ilsTaxiIn[]={};
ilsTaxiOff[]={};
centerPosition[]={9735,3964,0};
class Sounds
{
sounds[]={};
};
class Animation
{
vehicles[]={};
};
class Names
{


};
};
};
class CfgWorldList
{
class armymenisland{};
};






the game crashes when i use this...

HunterKiller
Nov 21 2003, 21:58
try removing the fields not used and using a lower case 'A' for animations

Planck
Nov 21 2003, 22:44
Presuming your Island PBO is called armymenisland.pbo and your .wrp file inside your PBO is called armymenisland.wrp, as this part seems to indicate:

class armymenisland ***<--------PBO NAME
{
*** *** units[] = {};
*** *** weapons[] = {};
*** *** worlds[] = {"armymenisland"}; ***<-----------WRP NAME
*** *** requiredVersion = 1.30;
};

Then the following part is incorrect:

class ***armymenisland: DefaultWorld
{
*** *** access=3;
*** *** description="Casa Willy";
*** *** icon="&#92;armymen&#92;image.paa";
*** *** worldName="&#92;armymen&#92;isola.wrp"; ***<---PBO AND WRP NAMES DIFFERENT

You will need to change the bits indicated to reflect the true names of your PBO and WRP files.


Planck