Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
eagledude4

; instead of {?

Recommended Posts

When I try and launch my game, I get an error saying "";" encountered instead of "{"" on line 18, which would be:

class CfgVehicles {

I've made a ton of configs before, and the only thing different this time is I included displayName and model in the base vehicle class. I don't believe I left any extra open or closing brackets, so what's the deal?

The whole code:

// Ported and configured by Jordan Hachey aka eagledude4

class CfgPatches {
class Ladder {
	units[] = {};
	weapons[] = {};
	requiredAddons[] = {};
	requiredVersion = 1;
};
};

class CfgVehicleClasses {
class BC_Objects {
	displayName = "Bay City Objects";
};
};

class CfgVehicles {
   class NonStrategic;	// External class reference

   class House : NonStrategic;

   class ViewTower2 : House;

class Ladder : ViewTower2 {
	scope = public;
	vehicleClass = "BC_Objects";
       displayName = "Step Ladder";
       model = "\bc_objects\bc_ladder\ladder.p3d";
	side = TCivilian;
	armor = 9999;
	cost = 600;
	accuracy = 1000;
	destrType = 1;
	mapSize = 5;
};
};

Share this post


Link to post
Share on other sites

May be I`m wrong, because i have no config expirences... buuut shouldn`t it look like this:

class House : NonStrategic {};
class ViewTower2 : House {};

:confused:

Share this post


Link to post
Share on other sites

Use rapify with lint check/eliteness my mikero

class CfgPatches
{
class BC_Ladder
{
	units[] = {"BC_Ladder"};
	weapons[] = {};
	requiredVersion = 0.1;
	requiredAddons[] = {};//missing dependency to config ViewTower2 is from
};
};
class CfgVehicleClasses
{
class BC_Objects
{
	displayName = "Bay City Objects";
};
};
class CfgVehicles
{
class NonStrategic;
class House: NonStrategic {};
class ViewTower2: House {};//should be reduced to 'class ViewTower2;' once requiredAddons is fixed
class BC_Ladder: ViewTower2
{
	scope = 2;
	displayName = "Step Ladder";
	vehicleClass = "BC_Objects";
	model = "\bc_objects\bc_ladder\ladder.p3d";
	side = 3;//TCivilian;
	armor = 9999;
	cost = 600;
	accuracy = 1000;
	destrType = 1;
	mapSize = 5;
};
};

Share this post


Link to post
Share on other sites

Thanks for the replies, but changing the cfgpatches wasn't necessary to resolve the issue.

I just had to change:

class NonStrategic;

class House: NonStrategic {};

class ViewTower2: House {};//should be reduced to 'class ViewTower2;' once requiredAddons is fixed

class BC_Ladder: ViewTower2;

to

class ViewTower2;

class BC_Ladder : ViewTower2; 

Edited by eagledude4

Share this post


Link to post
Share on other sites
but changing the cfgpatches wasn't necessary

But changing cfgpatches is highly recommended for other reasons including adding the tag will avoid major conflicts later

Share this post


Link to post
Share on other sites
Sign in to follow this  

×