Jump to content
Sign in to follow this  
Cloughy

More Help with a Config File please.

Recommended Posts

here is my config file. (I use VS 2005 to edit them if that makes any difference)

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

/*###############################################

# GC UAZ NO LIGHTS        #

# #

#   #

# #

# #

# #

###############################################*/

#define ReadAndWrite 0

#define ReadAndCreate 1

#define ReadOnly 2

#define ReadOnlyVerified 3

#define true 1

#define false 0

#define private 0

#define protected 1

#define public 2

#define VSoft 0

#define VArmor 1

#define VAir 2

#define LockNo 0

#define LockCadet 1

#define LockYes 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

class CfgPatches{

class GC_UAZS{

units[] = {"UAZMG-GC"};

requiredAddons[] = {};

requiredVersion = 1.0;

};

};

class CfgVehicleClasses

{

class GC_UAZS{displayName = "GC UAZs";};

};

class CfgVehicles{

class UAZMG; // External class reference

class UAZMG-GC:UAZMG

{

  vehicleclass = "GC_UAZS";

displayName = "GC-UAZ MG (No Headlights)";

class Reflectors {

class Left {

color[] = {0.9, 0.8, 0.8, 1.0};

ambient[] = {0.0, 0.0, 0.0, 0};

position = "L svetlo";

direction = "konec L svetla";

hitpoint = "L svetlo";

selection = "L svetlo";

size = 0;

brightness = 0; };

class Right {

color[] = {0.9, 0.8, 0.8, 1.0};

ambient[] = {0, 0, 0, 0};

position = "P svetlo";

direction = "konec P svetla";

hitpoint = "P svetlo";

selection = "P svetlo";

size = 0;

brightness = 0;

}; };

aggregateReflectors[] = {"Left", "Right"};

};

get the following error im my rpt file,

ErrorMessage: File gc-uaz\config.cpp, line 16: /CfgVehicles/: '-' encountered instead of '{'

I cannot find prob, what am i doing wrong.

Cheers

GC

Share this post


Link to post
Share on other sites

You cannot use '-' in classnames and unit names, use an underscore instead.

Planck

Share this post


Link to post
Share on other sites

Cheers For that, got it running.

Now all i need to do is make the White Headlight texture not light up when light is on, i managed to make the light object not there, but headlight still lights.

Would i need to create a new action to overwrite the base one which turns them on?

Cheers

GC

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  

×