Jump to content
Sign in to follow this  
slatts

Config tossing up some errors

Recommended Posts

// BIS basic defines
#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

// type scope
#define private 0
#define protected 1
#define public 2

#define VSoft 0
#define VArmor 1
#define VAir 2

#define CanSeeRadar 1
#define CanSeeEye 2
#define CanSeeOptics 4
#define CanSeeEar 8
#define CanSeeCompass 16
#define CanSeeRadarC CanSeeRadar+CanSeeCompass
#define CanSeeAll 31
#define CanSeePeripheral 32

#define ReadAndWrite 0		//! any modifications enabled
#define ReadAndCreate 1		//! only adding new class members is allowed
#define ReadOnly 2		//! no modifications enabled
#define ReadOnlyVerified 3	//! no modifications enabled, CRC test applied

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

#define WeaponNoSlot		0	// dummy weapons
#define WeaponSlotPrimary	1	// primary weapons
#define WeaponSlotSecondary	4	// secondary weapons
#define WeaponSlotHandGun	2	// HandGun
#define WeaponSlotHandGunItem	16	// HandGun magazines
#define WeaponSlotItem		256	// items
#define WeaponSlotBinocular	4096	// binocular
#define WeaponHardMounted	65536

class CfgPatches {
class MY_NAMED_ADDON {
	units[] = {};
	weapons[] = {};
	requiredVersion = 1.0;
	requiredAddons[] = {"CAWheeled2", "CACharacters2", "CAWeapons","CAWeapons"};
};
};
class CfgVehicles {
class hmmwv;	// External class reference
class midf_rgm32: HMMWV
{
	scope=2;
	model = "\sfp_dc_wheeled\rg-32ltv";
	displayname="RG-32LTAV";
	crew = "IDF1";
	picture = "\sfp_dc_wheeled\data\galten_ca.paa";
	armor = 50;
	memoryPointsGetInDriver = "pos driver";
	memoryPointsGetInDriverDir = "pos driver dir";
	memoryPointsGetInCargo = "pos cargo";
	memoryPointsGetInCargoDir = "pos cargo dir";
	transportsoldier=4;
	selectionBrakeLights = "light_brake";
	selectionBackLights = "light_back";
	wheelCircumference=3.316;
	unitInfoType = UnitInfoShip;
	class Turrets = {};
               };
               class TransportWeapons 
        {
                       weap_xx(Javelin ,1);
               };
               class TransportMagazines
               {
                       mag_xx(Javelin ,1)
               };
};

this config is tossing up a few errors like "= encountered instead of {"

once one is solved another pops up..anyone able to fix it up?

Share this post


Link to post
Share on other sites
class CfgVehicles {
class hmmwv;	// External class reference
class midf_rgm32: HMMWV
{
	scope=2;
	model = "\sfp_dc_wheeled\rg-32ltv";
	displayname="RG-32LTAV";
	crew = "IDF1";
	picture = "\sfp_dc_wheeled\data\galten_ca.paa";
	armor = 50;
	memoryPointsGetInDriver = "pos driver";
	memoryPointsGetInDriverDir = "pos driver dir";
	memoryPointsGetInCargo = "pos cargo";
	memoryPointsGetInCargoDir = "pos cargo dir";
	transportsoldier=4;
	selectionBrakeLights = "light_brake";
	selectionBackLights = "light_back";
	wheelCircumference=3.316;
	unitInfoType = UnitInfoShip;
	class Turrets = {};
               [color="Red"]}; //Remove[/color]
               class TransportWeapons 
        {
                       weap_xx(Javelin ,1);
               };
               class TransportMagazines
               {
                       mag_xx(Javelin ,1)
               };
       [color="Lime"]}; //Add[/color]
};

Share this post


Link to post
Share on other sites

cheer deady ;)

will update if works

---------- Post added at 04:02 PM ---------- Previous post was at 03:44 PM ----------

nope same error

"file sfp_dc_wheeled\sfp_dc_wheeledzconfig.cpp, line 27:/cfgvehicles/midf_rgm32/:'=' encountered instead of '{'

but on there isnt any = on line 28 of the whole thing or the cfgvehicles part

wth?

Share this post


Link to post
Share on other sites

class Turrets = {};

should be

class Turrets {};

There is never a = in a class definition, only in arrays. as example:

weapons[] = {};

Share this post


Link to post
Share on other sites

Missing a semicolon too:

class CfgVehicles {
class hmmwv;	// External class reference
class midf_rgm32: HMMWV
{
	scope=2;
	model = "\sfp_dc_wheeled\rg-32ltv";
	displayname="RG-32LTAV";
	crew = "IDF1";
	picture = "\sfp_dc_wheeled\data\galten_ca.paa";
	armor = 50;
	memoryPointsGetInDriver = "pos driver";
	memoryPointsGetInDriverDir = "pos driver dir";
	memoryPointsGetInCargo = "pos cargo";
	memoryPointsGetInCargoDir = "pos cargo dir";
	transportsoldier=4;
	selectionBrakeLights = "light_brake";
	selectionBackLights = "light_back";
	wheelCircumference=3.316;
	unitInfoType = UnitInfoShip;
	class Turrets {};
               class TransportWeapons 
        {
                       weap_xx(Javelin ,1);
               };
               class TransportMagazines
               {
                       mag_xx(Javelin ,1)[color="Red"];[/color]
               };
       };
};

Share this post


Link to post
Share on other sites

ah cheers guys thanks :)

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  

×