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

"encountered instead of" Problem

Recommended Posts

Hey there! so yap, I screwed something again and cannot find the problem, pretty much what im good at xd

so here is our problem:

---------------------------

File len_cdf_marines\config.cpp, line 554: Config: '"' encountered instead of ','

---------------------------

And from line 500 down here is the config.cpp

};

 class LEN_Soldier_Militia_EP1 : LEN_UN_CDF_Soldier_base_EP1 {
	model = "\len_cdf_marines\Militiaman_ww";
	Icon = "\Ca\characters2\data\icon\i_officer_CA.paa";
  	accuracy = 3.9;
  	scope = 2;
  	displayName = "Militia Officer";
	vehicleClass = "FAC_Mili";
  	weapons[] = {"LeeEnfield","Throw","Put","ItemMap","ItemCompass","ItemWatch","ItemRadio", "ACE_Earplugs"};
  	magazines[] = {"ACE_10Rnd_77x56_T_SMLE","ACE_10Rnd_77x56_T_SMLE","ACE_10Rnd_77x56_T_SMLE","ACE_10Rnd_77x56_T_SMLE","ACE_10Rnd_77x56_T_SMLE","ACE_10Rnd_77x56_T_SMLE","HandGrenade_East","HandGrenade_East", "SmokeShellOrange"};
  	respawnWeapons[] = {"LeeEnfield","Throw","Put","ItemMap","ItemCompass","ItemWatch","ItemRadio", "ACE_Earplugs"};
  	respawnmagazines[] = {"ACE_10Rnd_77x56_T_SMLE","ACE_10Rnd_77x56_T_SMLE","ACE_10Rnd_77x56_T_SMLE","ACE_10Rnd_77x56_T_SMLE","HandGrenade_East"};
	faction = "FAC";
	side = 2;
	canCarryBackpack = 1;
 };

class LEN_UN_CDF_Marine_Light_EP1 : LEN_UN_CDF_Soldier_base_EP1 {
	model = "\len_cdf_marines\UN_CDF_Light";
	accuracy = 3.4;	// accuracy needed to recognize type of this target
	camouflage = 1.4;	// how dificult to spot - bigger - better spotable
	sensitivity = 0.5 *1.8;	// sensor sensitivity
	cost = 20000;
	portrait = "\Ca\characters\data\portraits\comBarHead_bluFor_cdf_ca";
	scope = public;
	displayName = "Militia Riflemen";
	vehicleClass = "FAC_Mili";
	weapons[] = {"LeeEnfield", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "ACE_Earplugs"};
	magazines[] = {"ACE_10Rnd_77x56_T_SMLE", "ACE_10Rnd_77x56_T_SMLE", "ACE_10Rnd_77x56_T_SMLE", "ACE_10Rnd_77x56_T_SMLE", "ACE_10Rnd_77x56_T_SMLE", "ACE_10Rnd_77x56_T_SMLE" "SmokeShellOrange", "HandGrenade_East"};
	respawnWeapons[] = {"LeeEnfield", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "ACE_Earplugs"};
	respawnMagazines[] = {"ACE_10Rnd_77x56_T_SMLE", "ACE_10Rnd_77x56_T_SMLE", "ACE_10Rnd_77x56_T_SMLE","HandGrenade_East"};
	faction = "FAC";
	side = 2;
	canCarryBackpack = 1;
};

	class LEN_UN_CDF_Marine_Light_EP2 : LEN_UN_CDF_Soldier_base_EP1 {
	model = "\len_cdf_marines\UN_CDF_Light";
	accuracy = 3.4;	// accuracy needed to recognize type of this target
	camouflage = 1.4;	// how dificult to spot - bigger - better spotable
	sensitivity = 0.5 *1.8;	// sensor sensitivity
	cost = 20000;
	portrait = "\Ca\characters\data\portraits\comBarHead_bluFor_cdf_ca";
	scope = public;
	displayName = "Militia Medic";
	vehicleClass = "FAC_Mili";
	attendant=true;
	Icon = "\Ca\characters2\data\icon\i_medic_CA.paa";
	weapons[] = {"LeeEnfield", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "ACE_Earplugs"};
	magazines[] = {"ACE_10Rnd_77x56_T_SMLE", "ACE_10Rnd_77x56_T_SMLE", "ACE_10Rnd_77x56_T_SMLE", "ACE_10Rnd_77x56_T_SMLE", "ACE_10Rnd_77x56_T_SMLE", "ACE_10Rnd_77x56_T_SMLE", "SmokeShellOrange", "HandGrenade_East"};
	respawnWeapons[] = {"LeeEnfield", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "ACE_Earplugs"};
	respawnMagazines[] = {"ACE_10Rnd_77x56_T_SMLE", "ACE_10Rnd_77x56_T_SMLE", "ACE_10Rnd_77x56_T_SMLE", "HandGrenade_East"};
	faction = "FAC";
	side = 2;
	canCarryBackpack = 1;
};
	class LEN_UN_CDF_Marine_Light_EP3 : LEN_UN_CDF_Soldier_base_EP1 {
	model = "\len_cdf_marines\UN_CDF_Light";
	accuracy = 3.4;	// accuracy needed to recognize type of this target
	camouflage = 1.4;	// how dificult to spot - bigger - better spotable
	sensitivity = 0.5 *1.8;	// sensor sensitivity
	cost = 20000;
	portrait = "\Ca\characters\data\portraits\comBarHead_bluFor_cdf_ca";
	scope = public;
	displayName = "Militia AT Specialist";
	vehicleClass = "FAC_Mili";
	weapons[] = {"LeeEnfield", "ACE_M72A2", "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "ACE_Earplugs"};
	magazines[] = {"ACE_10Rnd_77x56_T_SMLE", "ACE_10Rnd_77x56_T_SMLE", "ACE_10Rnd_77x56_T_SMLE", "ACE_10Rnd_77x56_T_SMLE", "ACE_10Rnd_77x56_T_SMLE", "ACE_10Rnd_77x56_T_SMLE", "SmokeShellOrange", "HandGrenade_East"};
	respawnWeapons[] = {"LeeEnfield", "ACE_M72A2",  "Throw", "Put", "ItemMap", "ItemCompass", "ItemWatch", "ItemRadio", "ACE_Earplugs"};
	respawnMagazines[] = {"ACE_10Rnd_77x56_T_SMLE", "ACE_10Rnd_77x56_T_SMLE", "ACE_10Rnd_77x56_T_SMLE","HandGrenade_East"};
	faction = "FAC";
	side = 2;
	canCarryBackpack = 1;
};
};
};

((this is only half of it, problem appeared after I added more units))

Could anyone point me out to the problem? :)

Edited by Sakai

Share this post


Link to post
Share on other sites

First thing i noticed is missing comma in between:

"ACE_10Rnd_77x56_T_SMLE" "SmokeShellOrange"

Anyway, if this is not the typo you are searching for, then maybe you should post the whole config.

Share this post


Link to post
Share on other sites

That fixed that lol thanks, wouldn't suspect weaponry config for that so didnt look there xD

However now we got this...

---------------------------

Config : some input after EndOfFile.

---------------------------

Share this post


Link to post
Share on other sites
Delete the last };

That fixed it :)

The reason I did not delete it is because in notepad++ it shown me that it wasnt locked...

Thanks a bunch you two!

Share this post


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

×