PDA

View Full Version : Config problems



Wmdaniel
Jul 25 2007, 11:05
Okay, When ever I press preview on my mission editor with my add-on in the map, ARMA crashes to desktop.
Heres the code

Quote[/b] ]#define true 1
#define false 0

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

#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 VSoft 0
#define VArmor 1
#define VAir 2

#define LockNo 0
#define LockCadet 1
#define LockYes 2

#define ReadAndWrite 0
#define ReadAndCreate 1
#define ReadOnly 2
#define ReadOnlyVerified 3

class CfgPatches
{
class X29
{
units[] = {X29};
weapons[] = {};
requiredVersion = 1.04;
};
};


// CfgModels /////////////////////////////
class CfgModels
{
class Default {};
class vehicle: default {};

class X29: vehicle
{
sectionsInherit="Vehicle";
sections[]={"vrtule staticka","vrtule blur"};
};

};

class CfgVehicles
{
class All {};
class AllVehicles: All {};
class Air: AllVehicles {};
class Plane: Air {};
class A10: Plane {};

class X29: A10
{
scope=public;
side=TGuerrila;
displayName="X29";
model="\X29\X29";

accuracy=0.30;
gearRetracting = true;
nameSound="plane";

soundEngine[]={"Vehicles\plane",db-10,1}; // Cessna sound
soundEnviron[]={"Objects\noise",db-60,1.0}; // Cessna sound
soundServo[]={"Vehicles\gun_elevate",db-40,0.4}; // Cessna sound



maneuvrability=30.0;
maxSpeed=2000;
armor=50;
ejectSpeed[]={0,0,0};
flapsFrictionCoef = 0.5;
cost=20000;


transportSoldier=1;
crew = "SoldierWPilot";
driverAction = "Mi17_Pilot";

extCameraPosition[]={0,10,-22}; // 0,5,-30 is standard Air class

// Radar stuff
irTarget=true;
irScanRange = 2000;
irScanGround = true;

// Weapon and ammo
weapons[]={}; // none
magazines[]={}; // none
};
};
Thanks in advance.

.kju [PvPscene]
Jul 25 2007, 13:50
hm can you check your arma.rpt for any error messages please.

a few suggestions though:


Quote[/b] ]units[] = {"X29"}; // in CfgPatches

class inheritance should be defined like this in ArmA:

Quote[/b] ]class CfgModels
{
class vehicle;
class X29: vehicle
{
sectionsInherit="Vehicle";
sections[]={"vrtule staticka","vrtule blur"};
};

same here:


Quote[/b] ]class CfgVehicles
{
class A10;
class X29: A10

Wmdaniel
Jul 25 2007, 14:13
this is what I found when I load up the X-29

Quote[/b] ]w:\c\Poseidon\lib\pactext.cpp(1607) : Bad DXT1 mipmap size
Warning Message: Cannot load mipmap x29\paa\camo-desert-3.paa

.kju [PvPscene]
Jul 25 2007, 18:25
what are the dimensions of camo-desert-3.paa ?