Jump to content
Sign in to follow this  
milano

help finding the error in personnel.hpp

Recommended Posts

I don't think I need to post this in the MERCs Campaign thread because I broke it and am trying to figure out what I have done wrong to do what I want or what I am missing. Basically I am trying to have all the Mercenaries use CUP weapons. After I have changed their potential equipment. I go to start the game with the launcher, click on Play, click on Campaigns and it crashes. I get the error of --

Config: some input after EndOfFile.

I have isolated the file to personnel.hpp. It didn't take long, I edited it. And it does work when I replace the personnel.hpp file. I searched the internet and learned about arma.rpt I assume the below are the problem lines --

22:06:41 File Campaigns\IP_CMP_MERCS\cfg\shop\personnel.hpp, line 11: '/ShopPersonnel/B_CTRG_soldier_M_medic_F.handWeapon': Missing ';' prior '}'

22:06:41 File Campaigns\IP_CMP_MERCS\cfg\shop\personnel.hpp, line 32: '/B_CTRG_soldier_AR_A_F.handWeapon': Missing ';' prior '}'

Here are some lines of code (for lack of a better word) --

class ShopPersonnel

{

// British Knights Player Team

class B_CTRG_soldier_M_medic_F

{

backpack = "B_AssaultPack_mcamo";

costRate = 0;

equipment = "Marksman Rifle, Handgun, Hand Grenades, First Aid Kits, Medi Kit, Headgear, Vest, Backpack";

description = "British Knights Combat Medic / Marksman";

handgrenadeCount = 2;

handMagCount = 3;

handWeapon = {"CUP_hgun_Colt1911","CUP_hgun_SA61","CUP_hgun_Compact","CUP_hgun_Duty","CUP_hgun_Glock17","CUP_hgun_M9","CUP_hgun_Makarov","CUP_hgun_MicroUzi","CUP_hgun_PB6P9_snds","CUP_hgun_Phantom","CUP_hgun_SA61","CUP_hgun_TaurusTracker455_gold","CUP_hgun_TaurusTracker455","hgun_P07_F"};

headgearPool[] = {"", "H_HelmetSpecB", "H_HelmetB_camo", "H_HelmetSpecB_paint1", "H_HelmetSpecB_paint2", "H_HelmetSpecB_blk", "H_Booniehat_mcamo", "H_Cap_khaki_specops_UK", "H_MilCap_mcamo", "H_Bandanna_mcamo"};

identity = "EPA_B_James";

items[] = {"FirstAidKit","FirstAidKit","FirstAidKit","FirstAidKit","FirstAidKit","FirstAidKit","FirstAidKit","FirstAidKit","FirstAidKit","FirstAidKit","Medikit"};

primMagCount = 10;

primWeaponPool[] = {"srifle_EBR_MRCO_pointer_F","CUP_arifle_Mk20","CUP_arifle_xm8_sharpshooter","CUP_srifle_DMR","CUP_srifle_LeeEnfield","CUP_srifle_M110_ANPAS13c2","CUP_srifle_M110","CUP_srifle_Mk12SPR","CUP_srifle_SVD","srifle_EBR_SOS_F","srifle_EBR_ARCO_pointer_F","RH_mk12mod1", "RH_samr", "RH_ar10", "Ej_m110", "Ej_m24d"};

uniform = "U_C_WorkerCoveralls";

unique = 1; // One time use only

secMagazines[] = {"smokeGrenade", "smokeGrenade", "smokeGrenadeRed", "smokeGrenadeGreen"};

secWeapon = "";

show = 2; // Stage B

vestPool[] = {"V_PlateCarrierL_CTRG", "V_PlateCarrierH_CTRG"};

};

class B_CTRG_soldier_AR_A_F

{

backpack = "B_Carryall_mcamo"; ................... blah blah on and on....

So am I not seeing the " Missing ';' prior '}' "? Or have they too much equipment to choose from and the lines ought not ever "wrap around"? I've never done this before and am just trying to figure it out without being a bother, but that's not working well right now either. Thank you very much.

Share this post


Link to post
Share on other sites

Every instance of

= {

should be

[] = {

if it's not already like that.

The error log isn't always accurate.

backpack = "B_AssaultPack_mcamo";
costRate = 0;
equipment = "Marksman Rifle, Handgun, Hand Grenades, First Aid Kits, Medi Kit, Headgear, Vest, Backpack";
description = "British Knights Combat Medic / Marksman";
handgrenadeCount = 2;
handMagCount = 3;
handWeapon[color="#FF0000"][b][][/b][/color] = {"CUP_hgun_Colt1911","CUP_hgun_SA61","CUP_hgun_Com pact","CUP_hgun_Duty","CUP_hgun_Glock17","CUP_hgun _M9","CUP_hgun_Makarov","CUP_hgun_MicroUzi","CUP_h gun_PB6P9_snds","CUP_hgun_Phantom","CUP_hgun_SA61" ,"CUP_hgun_TaurusTracker455_gold","CUP_hgun_Taurus Tracker455","hgun_P07_F"};
headgearPool[color="#006400"][][/color] = {"", "H_HelmetSpecB", "H_HelmetB_camo", "H_HelmetSpecB_paint1", "H_HelmetSpecB_paint2", "H_HelmetSpecB_blk", "H_Booniehat_mcamo", "H_Cap_khaki_specops_UK", "H_MilCap_mcamo", "H_Bandanna_mcamo"};
identity = "EPA_B_James";
items[color="#006400"][][/color] = {"FirstAidKit","FirstAidKit","FirstAidKit","FirstA idKit","FirstAidKit","FirstAidKit","FirstAidKit"," FirstAidKit","FirstAidKit","FirstAidKit","Medikit" };
primMagCount = 10;
primWeaponPool[color="#006400"][][/color] = {"srifle_EBR_MRCO_pointer_F","CUP_arifle_Mk20","CU P_arifle_xm8_sharpshooter","CUP_srifle_DMR","CUP_s rifle_LeeEnfield","CUP_srifle_M110_ANPAS13c2","CUP _srifle_M110","CUP_srifle_Mk12SPR","CUP_srifle_SVD ","srifle_EBR_SOS_F","srifle_EBR_ARCO_pointer_F"," RH_mk12mod1", "RH_samr", "RH_ar10", "Ej_m110", "Ej_m24d"};
uniform = "U_C_WorkerCoveralls";
unique = 1; // One time use only
secMagazines[color="#006400"][][/color] = {"smokeGrenade", "smokeGrenade", "smokeGrenadeRed", "smokeGrenadeGreen"};
secWeapon = "";
show = 2; // Stage B
vestPool[color="#006400"][][/color] = {"V_PlateCarrierL_CTRG", "V_PlateCarrierH_CTRG"};
};

I'm assuming the '[]' was missing from 'handWeapon', and every copy/paste you did afterwards is incorrect. Both of your errors mention 'handWeapon'.

Edited by BadHabitz

Share this post


Link to post
Share on other sites

That was it thank you!!

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  

×