Jump to content
Sign in to follow this  
mjolnir66

Config.cpp some input after Endoffile error

Recommended Posts

I'm trying to write an enhanced config file for StalkerGBs units, and every time I try and launch with my config, I get the some input after endoffile error.

RPT comes up with this:

13:03:47 File stkr_britmtp_cfg\config.cpp, line 3: '/CfgPatches/STKR_BritMTP.units': Missing ';' prior '}'
13:03:47 File stkr_britmtp_cfg\config.cpp, line 4: '/CfgPatches.weapons': Missing ';' prior '}'
13:03:47 File stkr_britmtp_cfg\config.cpp, line 6: '.requiredAddons': Missing ';' prior '}'

and the 3 lines in question:

class CfgPatches {

class STKR_BritMTP
{
	units = {"STKR_BritMTP_R", "STKR_BritMTP_LSW", "STKR_BritMTP_AT", "STKR_BritMTP_G", "STKR_BritMTP_O", "STKR_BritMTP_SL", "STKR_BritMTP_TL", "STKR_BritMTP_AR", "STKR_BritMTP_AHR", "STKR_BritMTP_FAC", "STKR_BritMTP_RO", "STKR_BritMTP_SCT", "STKR_BritMTP_MED", "STKR_BritMTP_ENG", "STKR_BritMTP_EXP", "STKR_BritMTP_RPR", "STKR_BritMTP_UAV", "STKR_PackCom", "STKR_Predator", "STKR_Predator_AT", "STKR_PredatorBow", "STKR_MLode", "STKR_MLode_LMG", "STKR_MLode_GPMG", "STKR_MLode_Med", "STKR_MLode_ENG", "STKR_MLode_EXP", "STKR_BritMTP_R_NS", "STKR_BritMTP_BR", "STKR_BritMTP_LSW_NS", "STKR_BritMTP_AT_NS", "STKR_BritMTP_HAT", "STKR_BritMTP_HAT_NS", "STKR_BritMTP_AD", "STKR_BritMTP_AD_NS", "STKR_BritMTP_CGAT", "STKR_BritMTP_CGHE", "STKR_BritMTP_RO_NS", "STKR_BritMTP_FAC_NS", "STKR_BritMTP_G_NS", "STKR_BritMTP_O_NS", "STKR_BritMTP_SL_NS", "STKR_BritMTP_TL_NS", "STKR_BritMTP_MED_NS", "STKR_BritMTP_ENG_NS", "STKR_BritMTP_RPR_NS", "STKR_BritMTP_EXP_NS", "STKR_BritMTP_R_AMMOAR", "STKR_BritMTP_R_AMMOAR_NS", "STKR_BritMTP_R_AMMOMG", "STKR_BritMTP_R_AMMOMG_NS", "STKR_BritMTP_R_AMMOLAT", "STKR_BritMTP_R_AMMOLAT_NS", "STKR_BritMTP_R_AMMOHAT", "STKR_BritMTP_R_AMMOHAT_NS", "STKR_BritMTP_R_AMMOCGHE", "STKR_BritMTP_R_AMMOCGHE_NS", "STKR_BritMTP_R_AMMOCGAT", "STKR_BritMTP_R_AMMOCGAT_NS", "STKR_BritMTP_R_AMMOLAD", "STKR_BritMTP_R_AMMOLAD_NS", "STKR_BritMTP_UAV_NS", "STKR_BritMTP_338","STKR_Predator_HAT","STKR_Predator_AD","STKR_Predator_CGHE","STKR_Predator_CGAT"};
	weapons = {"STKR_UBACS", "STKR_UBACS_KNEE", "STKR_UBACS_GLV", "STKR_Osprey_R", "STKR_Osprey_G", "STKR_Osprey_SL", "STKR_MK7", "STKR_MK7_Scrim", "STKR_MK7_ScrimB", "STKR_HMNVS", "STKR_L129A1_ACOG", "STKR_UBACS_ROLL", "STKR_Osprey_MG"};
	requiredVersion = 0.900000;
	requiredAddons = {"CUP_Weapons_L85", "CUP_Weapons_L110", "CUP_Weapons_L7A2", "CUP_Weapons_Glock17", "CUP_Weapons_NLAW", "STKR_L129A1"};
	magazines = {};
	ammo = {};
};
};

Anyone see whats wrong with it?

Share this post


Link to post
Share on other sites

Units, Weapons and Units are arrays so they need to be defined as such , just add a set of square brackets after them.

units[] = {};

weapons[] = {};

requiredAddons[] = {};

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  

×