Jump to content
Sign in to follow this  
Guest major gandhi

Runway light config problem!!!

Recommended Posts

Guest major gandhi

I'm trying to make a runway light addon, but I aways get an error ingame saying thta ofp has problem loading the addon. Here's the config:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">#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

class CfgPatches

{

class BWMOD_mapobj

{

units[] = {};

weapons[] = {};

worlds[] = {};

requiredVersion = 1.85;

};

};

class CfgNonAIVehicles

{

class StreetLamp {};

class airfieldlight: StreetLamp

{

scope=1;

model="\BWMOD_Mapobj\AirLight.p3d";

colorDiffuse[]={1,0,0};

colorAmbient[]={1,0,0};

brightness=.06;

armorBulb=0;

};

};

};

can you see any failures in there?

Share this post


Link to post
Share on other sites

maybe if you did this instead

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

class CfgNonAIVehicles

{

class Default {};

class StreetLamp: Default {};

class airfieldlight: StreetLamp

Share this post


Link to post
Share on other sites

Hmmm...........I think you have 1 too many '};' at the end.

Not 100% sure but, maybe you need to have a CfgModels section when you have CfgNonAIVehicles?

But as I said, I'm not sure.

Planck

Share this post


Link to post
Share on other sites
Hmmm...........I think you have 1 too many '};' at the end.

Not 100% sure but, maybe you need to have a CfgModels section when you have CfgNonAIVehicles?

But as I said, I'm not sure.

Planck

or maybe you should change

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

to

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

Share this post


Link to post
Share on other sites

Streetlamps need to use the CfgNonAIVehicles, they won't work as streetlamps otherwise.

Planck

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×