RS30002 28 Posted March 27, 2022 Hi all....wanted to do a quik 'n derrty scruffle between legacy Vietnamese marines and PLAN marines.....managed to define the Viet ones okay, but have a hiccup with the PLAN ones. If i do this setvariable ["faction", "PLAN_faction"] in the module init it complains that the combo isn't valid.... class Independent { name = $STR_A3_CfgGroups_Guer0; side = Independent; class IND_F { name = $STR_A3_CfgGroups_Independent_IND_F0; class Infantry { name = $STR_A3_CfgGroups_Independent_IND_F0; class BUS_InfSquad8 { name = $STR_A3_CfgGroups_Independent_IND_F_Infantry_BUS_InfSquad0; side = Independent; faction = IND_F; class Unit0 {side = Independent; vehicle = PLAN_Soldier_SL; rank = "SERGEANT";}; class Unit1 {side = Independent; vehicle = PLAN_Soldier_AT89B; rank = "CORPORAL";}; class Unit2 {side = Independent; vehicle = PLAN_Soldier_GL; rank = "CORPORAL";}; class Unit3 {side = Independent; vehicle = PLAN_Soldier_mk; rank = "PRIVATE";}; class Unit4 {side = Independent; vehicle = PLAN_Soldier_HMG; rank = "PRIVATE";}; class Unit5 {side = Independent; vehicle = PLAN_Soldier_medic; rank = "CORPORAL";}; class Unit6 {side = Independent; vehicle = PLAN_Soldier_AT89B; rank = "CORPORAL";}; class Unit7 {side = Independent; vehicle = PLAN_Soldier_MG; rank = "PRIVATE";}; }; }; }; }; }; This is the part of the cfgGroups that isn't working...same complaint as above when play starts Thanks in advance for any insights 🙂 Share this post Link to post Share on other sites
UnDeaD. 82 Posted March 27, 2022 Hi, I'm not experienced with config defines but my first guess would be to put the unit/vehicle classnames into quotes. Hope that solves it. 1 Share this post Link to post Share on other sites
RS30002 28 Posted March 27, 2022 17 minutes ago, UnDeaD. said: Hi, I'm not experienced with config defines but my first guess would be to put the unit/vehicle classnames into quotes. Hope that solves it. Nah, it's not that This works for example class CfgGroups { class East { name = $STR_A3_CfgGroups_East0; side = TEast; class OPF_F { name = $STR_A3_CfgGroups_East_OPF_F0; class Infantry { name = $STR_A3_CfgGroups_East_OPF_F_Infantry0; class BUS_InfSquad8 { name = $STR_A3_CfgGroups_East_OPF_F_Infantry_BUS_InfSquad0; side = TEast; faction = OPF_F; class Unit0 {side = TEast; vehicle = vn_o_men_nva_marine_01; rank = "SERGEANT";}; class Unit1 {side = TEast; vehicle = vn_o_men_nva_marine_14; rank = "CORPORAL";}; class Unit2 {side = TEast; vehicle = vn_o_men_nva_marine_02; rank = "CORPORAL";}; class Unit3 {side = TEast; vehicle = vn_o_men_nva_marine_07; rank = "PRIVATE";}; class Unit4 {side = TEast; vehicle = vn_o_men_nva_marine_10; rank = "PRIVATE";}; class Unit5 {side = TEast; vehicle = vn_o_men_nva_marine_08; rank = "CORPORAL";}; class Unit6 {side = TEast; vehicle = vn_o_men_nva_marine_11; rank = "CORPORAL";}; class Unit7 {side = TEast; vehicle = vn_o_men_nva_marine_05; rank = "PRIVATE";}; }; 1 Share this post Link to post Share on other sites
Larrow 2823 Posted March 27, 2022 1 hour ago, Rok Stuhne said: class Independent { Should be... Class Indep Note capitalisation! it is important as spawnAI module switches on String when passing config, which is case sensitive. 1 hour ago, Rok Stuhne said: class Unit0 {side = Independent; vehicle = PLAN_Soldier_SL; rank = "SERGEANT";}; Should be... class Unit0 { side = 2; //Needs to be number of side 0 east, 1 west, 2 indep etc vehicle = "PLAN_Soldier_SL"; //should be a string of class name rank = "SERGEANT"; }; 1 Share this post Link to post Share on other sites
RS30002 28 Posted March 27, 2022 40 minutes ago, Larrow said: class Unit0 { side = 2; //Needs to be number of side 0 east, 1 west, 2 indep etc vehicle = "PLAN_Soldier_SL"; //should be a string of class name rank = "SERGEANT"; }; Aight, many thanks got it to work now. This is the code that works now, not sure i understand the two different naming conventions, ie Viet units dont need "" around their names but CCP units do.... Works nicely tho 🙂 class CfgGroups { class East { name = $STR_A3_CfgGroups_East0; side = TEast; class OPF_F { name = $STR_A3_CfgGroups_East_OPF_F0; class Infantry { name = $STR_A3_CfgGroups_East_OPF_F_Infantry0; class BUS_InfSquad8 { name = $STR_A3_CfgGroups_East_OPF_F_Infantry_BUS_InfSquad0; side = TEast; faction = OPF_F; class Unit0 {side = TEast; vehicle = vn_o_men_nva_marine_01; rank = "SERGEANT";}; class Unit1 {side = TEast; vehicle = vn_o_men_nva_marine_14; rank = "CORPORAL";}; class Unit2 {side = TEast; vehicle = vn_o_men_nva_marine_02; rank = "CORPORAL";}; class Unit3 {side = TEast; vehicle = vn_o_men_nva_marine_07; rank = "PRIVATE";}; class Unit4 {side = TEast; vehicle = vn_o_men_nva_marine_10; rank = "PRIVATE";}; class Unit5 {side = TEast; vehicle = vn_o_men_nva_marine_08; rank = "CORPORAL";}; class Unit6 {side = TEast; vehicle = vn_o_men_nva_marine_11; rank = "CORPORAL";}; class Unit7 {side = TEast; vehicle = vn_o_men_nva_marine_05; rank = "PRIVATE";}; }; class BUS_InfSquad16 { name = $STR_A3_CfgGroups_East_OPF_F_Infantry_BUS_InfSquad0; side = TEast; faction = OPF_F; class Unit0 {side = TEast; vehicle = vn_o_men_nva_marine_01; rank = "SERGEANT";}; class Unit1 {side = TEast; vehicle = vn_o_men_nva_marine_14; rank = "CORPORAL";}; class Unit2 {side = TEast; vehicle = vn_o_men_nva_marine_10; rank = "CORPORAL";}; class Unit3 {side = TEast; vehicle = vn_o_men_nva_marine_11; rank = "CORPORAL";}; class Unit4 {side = TEast; vehicle = vn_o_men_nva_marine_06; rank = "PRIVATE";}; class Unit5 {side = TEast; vehicle = vn_o_men_nva_marine_07; rank = "CORPORAL";}; class Unit6 {side = TEast; vehicle = vn_o_men_nva_marine_08; rank = "PRIVATE";}; class Unit7 {side = TEast; vehicle = vn_o_men_nva_marine_04; rank = "PRIVATE";}; class Unit8 {side = TEast; vehicle = vn_o_men_nva_marine_02; rank = "CORPORAL";}; class Unit9 {side = TEast; vehicle = vn_o_men_nva_marine_05; rank = "PRIVATE";}; class Unit10 {side = TEast; vehicle = vn_o_men_nva_marine_07; rank = "PRIVATE";}; class Unit11 {side = TEast; vehicle = vn_o_men_nva_marine_14; rank = "CORPORAL";}; class Unit12 {side = TEast; vehicle = vn_o_men_nva_marine_08; rank = "PRIVATE";}; class Unit13 {side = TEast; vehicle = vn_o_men_nva_marine_12; rank = "PRIVATE";}; class Unit14 {side = TEast; vehicle = vn_o_men_nva_marine_14; rank = "CORPORAL";}; class Unit15 {side = TEast; vehicle = vn_o_men_nva_marine_13; rank = "PRIVATE";}; }; class BUS_InfTeam_AT { name = $STR_A3_CfgGroups_East_OPF_F_Infantry_BUS_InfTeam_AT0; side = TEast; faction = OPF_F; class Unit0 {side = TEast; vehicle = vn_o_men_nva_marine_01; rank = "SERGEANT";}; class Unit1 {side = TEast; vehicle = vn_o_men_nva_marine_07; rank = "CORPORAL";}; class Unit2 {side = TEast; vehicle = vn_o_men_nva_marine_14; rank = "PRIVATE";}; class Unit3 {side = TEast; vehicle = vn_o_men_nva_marine_14; rank = "PRIVATE";}; }; }; class Motorized { name = $STR_A3_CfgGroups_East_OPF_F_Motorized0; class BUS_MotInf_AT { name = $STR_A3_CfgGroups_East_OPF_F_Motorized_BUS_MotInf_AT0; side = TEast; faction = OPF_F; class Unit0 {side = TEast; vehicle = vn_o_wheeled_btr40_mg_03_nvam; rank = "SERGEANT";}; }; class BUS_MotInf_GMG { name = $STR_A3_CfgGroups_East_OPF_F_Motorized_BUS_MotInf_Team0; side = TEast; faction = OPF_F; class Unit0 {side = TEast; vehicle = vn_o_wheeled_btr40_mg_01_nvam; rank = "SERGEANT";}; class Unit1 {side = TEast; vehicle = vn_o_men_nva_marine_14; rank = "CORPORAL";}; class Unit2 {side = TEast; vehicle = vn_o_men_nva_marine_13; rank = "PRIVATE";}; class Unit3 {side = TEast; vehicle = vn_o_men_nva_marine_04; rank = "PRIVATE";}; }; class BUS_MotInf_HMG { name = $STR_A3_CfgGroups_East_OPF_F_Motorized_BUS_MotInf_Team0; side = TEast; faction = OPF_F; class Unit0 {side = TEast; vehicle = vn_o_wheeled_btr40_mg_02_nvam; rank = "SERGEANT";}; class Unit1 {side = TEast; vehicle = vn_o_men_nva_marine_02; rank = "CORPORAL";}; class Unit2 {side = TEast; vehicle = vn_o_men_nva_marine_14; rank = "PRIVATE";}; }; }; class Mechanized { name = $STR_A3_CfgGroups_East_OPF_F_Mechanized0; class BUS_MechInfSquad { name = $STR_A3_CfgGroups_East_OPF_F_Mechanized_BUS_MechInfSquad0; side = TEast; faction = OPF_F; class Unit0 {side = TEast; vehicle = vn_o_wheeled_z157_01_nvam; rank = "CORPORAL";}; class Unit1 {side = TEast; vehicle = vn_o_men_nva_marine_01; rank = "SERGEANT";}; class Unit2 {side = TEast; vehicle = vn_o_men_nva_marine_13; rank = "CORPORAL";}; class Unit3 {side = TEast; vehicle = vn_o_men_nva_marine_05; rank = "CORPORAL";}; class Unit4 {side = TEast; vehicle = vn_o_men_nva_marine_07; rank = "PRIVATE";}; class Unit5 {side = TEast; vehicle = vn_o_men_nva_marine_09; rank = "PRIVATE";}; class Unit6 {side = TEast; vehicle = vn_o_men_nva_marine_14; rank = "CORPORAL";}; class Unit7 {side = TEast; vehicle = vn_o_men_nva_marine_10; rank = "PRIVATE";}; class Unit8 {side = TEast; vehicle = vn_o_men_nva_marine_14; rank = "PRIVATE";}; }; }; }; }; class Indep { name = $STR_A3_CfgGroups_Independent0; side = 2; class IND_F { name = $STR_A3_CfgGroups_Independent_IND_F0; class Infantry { name = $STR_A3_CfgGroups_Independent_IND_F0; class BUS_InfSquad8 { name = $STR_A3_CfgGroups_Independent_IND_F_Infantry_BUS_InfSquad0; side = 2; faction = IND_F; class Unit0 {side = 2; vehicle = "PLAN_Soldier_SL"; rank = "SERGEANT";}; class Unit1 {side = 2; vehicle = "PLAN_Soldier_AT89B"; rank = "CORPORAL";}; class Unit2 {side = 2; vehicle = "PLAN_Soldier_GL"; rank = "CORPORAL";}; class Unit3 {side = 2; vehicle = "PLAN_Soldier_mk"; rank = "PRIVATE";}; class Unit4 {side = 2; vehicle = "PLAN_Soldier_HMG"; rank = "PRIVATE";}; class Unit5 {side = 2; vehicle = "PLAN_Soldier_medic"; rank = "CORPORAL";}; class Unit6 {side = 2; vehicle = "PLAN_Soldier_AT89B"; rank = "CORPORAL";}; class Unit7 {side = 2; vehicle = "PLAN_Soldier_MG"; rank = "PRIVATE";}; }; }; }; }; }; Share this post Link to post Share on other sites
Larrow 2823 Posted March 27, 2022 8 minutes ago, Rok Stuhne said: side = TEast; vehicle = vn_o_men_nva_marine_01; Most likely the only reason this works( even though incorrect ) if TEast and vn_o_men_nva_marine_01 are not defined somewhere is... getNumber( blah >> blah >> blah >> "side" ) will default too zero as TEast is undefined. zero is East. getText( blah >> blah >> blah >> "vehicle" ) likely config passer goes I have no idea what vn_o_men_nva_marine_01 is so ill just stringify it and return it. Actually, you can see this just by writing in the description.ext of a blank mission. side = TEast; vehicle = vn_o_men_nva_marine_01; Then view it in the configViewer you will see the passer has stringified both entries. GetNumber of a string value defaults to zero which just happens to be East. GetText just returns the string that the passer has already defined due to undefined symbol. 1 Share this post Link to post Share on other sites
RS30002 28 Posted March 27, 2022 16 minutes ago, Larrow said: Most likely the only reason this works( even though incorrect ) if TEast and vn_o_men_nva_marine_01 are not defined somewhere is... getNumber( blah >> blah >> blah >> "side" ) will default too zero as TEast is undefined. zero is East. getText( blah >> blah >> blah >> "vehicle" ) likely config passer goes I have no idea what vn_o_men_nva_marine_01 is so ill just stringify it and return it. Actually, you can see this just by writing in the description.ext of a blank mission. side = TEast; vehicle = vn_o_men_nva_marine_01; Then view it in the configViewer you will see the passer has stringified both entries. GetNumber of a string value defaults to zero which just happens to be East. GetText just returns the string that the passer has already defined due to undefined symbol. Feeling silly now....i did spot the lack of "" while trying to figure it out on my own and the first topic responder mentioned it too, but i discounted it on the fact it worked without the "" so far. Oh well, i'll know for next time Share this post Link to post Share on other sites