Jump to content
Sign in to follow this  
demonized

BAF cfgGroups not working with BIS_fnc_spawnGroup [SOLVED]

Recommended Posts

Solution found in post 4.

Not working code:

[getMarkerPos "spawn", west, (configFile >> "CfgGroups" >> "West" >> "BIS_BAF" >> "Infantry" >> "BAF_Section_MTP")] call BIS_fnc_spawnGroup;

cfgGroup page:

- NOTE: Apply suffix of either _W or _MTP to set the units to be in Woodland DPM or Multi-Terrain Pattern respectively.

_DDPM can be applied to the infantry groups ONLY (excluding snipers) so as to create them in Desert DPM

tried all kinds variations:

("BAF_Section", "BAF_Section_W", "BAF_Section_DDPM", "BAF_Section_MTP")

still it wont spawn BAF cfgGroups.

I have condition waiting for functions module in my trigger, and also have a BAF unit on map before atempting spawn.

Spawning other factions groups work fine.

Are there something special to maybe west "West" for BAF cfgGroups like there is for resistance "Guerilla"?

I am stomped at this issue for now, i know i can spawn them using unit array instead of cfgGroups, but i cant get the BAF cfgGroup to work.

Edit:

cant get the east TK cfgGroups to spawn either, have the cfgGroup names from above link changed in official patch 1.59?

I am using A2 CO + full BAF/PMC official patch 1.59.

Need to do more research on this error, but im pretty sure ive typed in everything correct.

Edited by Demonized
found solution

Share this post


Link to post
Share on other sites

Does this happen with BAF only? Try it with PMC just for testing purposes

Share this post


Link to post
Share on other sites

Conclusion BAF cfgGroups do not work in patch 1.59 Arma2 CO with full BAF and PMC dlc.

Solution found, post 4.

Functions module placed on map.

3 units (west,east,resistance) placed on map with probability 0% to provide center.

radio trigger with condition, so we make sure Function module is initialised.

this AND !isNil "BIS_fnc_init"

ran a script creating all vanilla cfgGroups, printed results to rpt file with info used in spawning.

Line used to spawn cfgGroups with:

_grp1 = [getMarkerPos _this, 1, (configFile >> "CfgGroups" >> 2 >> 3 >> "Infantry" >> 4)] call BIS_fnc_spawnGroup;

1,2,3 and 4 is values used from left to right in below .rpt file

here is list of working and not working cfgGroups from .rpt file:

"------------------------------------------------WORKING--------------------------------------------------"
"--------------------------------------------------------------------------------------------------"
"[GUER,"Guerrila","PMC_BAF","PMC_VIP_Bodyguard"]"
"[GUER,"Guerrila","PMC_BAF","PMC_Field_Security_Patrol"]"
"[GUER,"Guerrila","PMC_BAF","PMC_Field_Security_Team"]"
"[GUER,"Guerrila","PMC_BAF","PMC_Security_Detail"]"
"[GUER,"Guerrila","PMC_BAF","PMC_Security_Specialists"]"
"[GUER,"Guerrila","PMC_BAF","PMC_Field_Support_Team"]"
"[GUER,"Guerrila","PMC_BAF","PMC_Team_Sword"]"
"[GUER,"Guerrila","BIS_TK_GUE","TK_GUE_Group"]"
"[GUER,"Guerrila","BIS_TK_GUE","TK_GUE_GroupWeapons"]"
"[GUER,"Guerrila","BIS_TK_GUE","TK_GUE_Patrol"]"
"[GUER,"Guerrila","BIS_TK_GUE","TK_GUE_ATTeam"]"
"[GUER,"Guerrila","BIS_TK_GUE","TK_GUE_AATeam"]"
"[GUER,"Guerrila","BIS_TK_GUE","TK_GUE_SniperTeam"]"
"[EAST,"East","BIS_TK_INS","TK_INS_Group"]"
"[EAST,"East","BIS_TK_INS","TK_INS_Patrol"]"
"[EAST,"East","BIS_TK_INS","TK_INS_AATeam"]"
"[EAST,"East","BIS_TK_INS","TK_INS_ATTeam"]"
"[EAST,"East","BIS_TK","TK_InfantrySquad"]"
"[EAST,"East","BIS_TK","TK_InfantrySection"]"
"[EAST,"East","BIS_TK","TK_InfantrySectionAT"]"
"[EAST,"East","BIS_TK","TK_InfantrySectionAA"]"
"[EAST,"East","BIS_TK","TK_InfantrySectionMG"]"
"[EAST,"East","BIS_TK","TK_SniperTeam"]"
"[EAST,"East","BIS_TK","TK_SpecialPurposeSquad"]"
"[EAST,"East","BIS_TK","TK_InfantrySquad"]"
"[EAST,"East","BIS_TK","TK_InfantrySection"]"
"[EAST,"East","BIS_TK","TK_InfantrySectionAT"]"
"[EAST,"East","BIS_TK","TK_InfantrySectionAA"]"
"[EAST,"East","BIS_TK","TK_InfantrySectionMG"]"
"[EAST,"East","BIS_TK","TK_SniperTeam"]"
"[EAST,"East","BIS_TK","TK_SpecialPurposeSquad"]"
"[WEST,"West","BIS_CZ","ACR_InfantryPatrol"]"
"[WEST,"West","BIS_CZ","ACR_SpecialForcesTeam"]"
"[WEST,"West","BIS_US","US_RifleSquad"]"
"[WEST,"West","BIS_US","US_WeaponsSquad"]"
"[WEST,"West","BIS_US","US_Team"]"
"[WEST,"West","BIS_US","US_TeamMG"]"
"[WEST,"West","BIS_US","US_TeamAT"]"
"[WEST,"West","BIS_US","US_TeamSupport"]"
"[WEST,"West","BIS_US","US_HeavyATTeam"]"
"[WEST,"West","BIS_US","US_SniperTeam"]"
"[WEST,"West","BIS_US","US_DeltaForceTeam"]"
"[GUER,"Guerrila","GUE","GUE_InfSquad"]"
"[GUER,"Guerrila","GUE","GUE_InfSquad_Assault"]"
"[GUER,"Guerrila","GUE","GUE_InfSquad_Weapons"]"
"[GUER,"Guerrila","GUE","GUE_InfTeam_1"]"
"[GUER,"Guerrila","GUE","GUE_InfTeam_2"]"
"[GUER,"Guerrila","GUE","GUE_InfTeam_AT"]"
"[GUER,"Guerrila","GUE","GUE_GrpInf_TeamAA"]"
"[GUER,"Guerrila","GUE","GUE_GrpInf_TeamSniper"]"
"[GUER,"Guerrila","GUE","GUE_MilitiaSquad"]"
"[EAST,"East","INS","INS_InfSquad"]"
"[EAST,"East","INS","INS_InfSquad_Weapons"]"
"[EAST,"East","INS","INS_InfSection_AT"]"
"[EAST,"East","INS","INS_InfSection_AA"]"
"[EAST,"East","INS","INS_SniperTeam"]"
"[EAST,"East","INS","INS_MilitiaSquad"]"
"[EAST,"East","RU","RU_InfSquad"]"
"[EAST,"East","RU","RU_InfSection"]"
"[EAST,"East","RU","RU_InfSection_AT"]"
"[EAST,"East","RU","RU_InfSection_AA"]"
"[EAST,"East","RU","RU_InfSection_MG"]"
"[EAST,"East","RU","RU_SniperTeam"]"
"[EAST,"East","RU","RUS_ReconTeam"]"
"[EAST,"East","RU","MVD_AssaultTeam"]"
"[WEST,"West","CDF","CDF_InfSquad"]"
"[WEST,"West","CDF","CDF_InfSquad_Weapons"]"
"[WEST,"West","CDF","CDF_InfSection_AT"]"
"[WEST,"West","CDF","CDF_InfSection_AA"]"
"[WEST,"West","CDF","CDF_InfSection_MG"]"
"[WEST,"West","CDF","CDF_InfSection_Patrol"]"
"[WEST,"West","CDF","CDF_SniperTeam"]"
"[WEST,"West","USMC","USMC_InfSquad"]"
"[WEST,"West","USMC","USMC_FireTeam"]"
"[WEST,"West","USMC","USMC_FireTeam_MG"]"
"[WEST,"West","USMC","USMC_FireTeam_AT"]"
"[WEST,"West","USMC","USMC_FireTeam_Support"]"
"[WEST,"West","USMC","USMC_HeavyATTeam"]"
"[WEST,"West","USMC","USMC_SniperTeam"]"
"[WEST,"West","USMC","USMC_FRTeam"]"
"[WEST,"West","USMC","USMC_FRTeam_Razor"]"
"------------------------------------------------NOT WORKING--------------------------------------------------"
"--------------------------------------------------------------------------------------------------"
"[WEST,"West","BIS_BAF","BAF_SnipersN_DDPM"]"
"[WEST,"West","BIS_BAF","BAF_Snipers_DDPM"]"
"[WEST,"West","BIS_BAF","BAF_HAT_DDPM"]"
"[WEST,"West","BIS_BAF","BAF_AT_DDPM"]"
"[WEST,"West","BIS_BAF","BAF_MG_DDPM"]"
"[WEST,"West","BIS_BAF","BAF_Support_DDPM"]"
"[WEST,"West","BIS_BAF","BAF_Fireteam_DDPM"]"
"[WEST,"West","BIS_BAF","BAF_Section_DDPM"]"
"[WEST,"West","BIS_BAF","BAF_SnipersN_MTP"]"
"[WEST,"West","BIS_BAF","BAF_Snipers_MTP"]"
"[WEST,"West","BIS_BAF","BAF_HAT_MTP"]"
"[WEST,"West","BIS_BAF","BAF_AT_MTP"]"
"[WEST,"West","BIS_BAF","BAF_MG_MTP"]"
"[WEST,"West","BIS_BAF","BAF_Support_MTP"]"
"[WEST,"West","BIS_BAF","BAF_Fireteam_MTP"]"
"[WEST,"West","BIS_BAF","BAF_Section_MTP"]"
"[WEST,"West","BIS_BAF","BAF_SnipersN_W"]"
"[WEST,"West","BIS_BAF","BAF_Snipers_W"]"
"[WEST,"West","BIS_BAF","BAF_HAT_W"]"
"[WEST,"West","BIS_BAF","BAF_AT_W"]"
"[WEST,"West","BIS_BAF","BAF_MG_W"]"
"[WEST,"West","BIS_BAF","BAF_Support_W"]"
"[WEST,"West","BIS_BAF","BAF_Fireteam_W"]"
"[WEST,"West","BIS_BAF","BAF_Section_W"]"
"[WEST,"West","BIS_BAF","BAF_SnipersN"]"
"[WEST,"West","BIS_BAF","BAF_Snipers"]"
"[WEST,"West","BIS_BAF","BAF_HAT"]"
"[WEST,"West","BIS_BAF","BAF_AT"]"
"[WEST,"West","BIS_BAF","BAF_MG"]"
"[WEST,"West","BIS_BAF","BAF_Support"]"
"[WEST,"West","BIS_BAF","BAF_Fireteam"]"
"[WEST,"West","BIS_BAF","BAF_Section"]"

Anyone have any other info on BAF cfgGroups please share.

Edit: if someone knows how i can extract information from cfgGroups infantery section (getting the list of all the cfgGroups of a faction) that would be very much appreciated.

Example what i want to achieve, but do not have correct code for:

(list of all BIS_BAF cfgGroups) = getInfo (configFile >> "CfgGroups" >> "West" >> BIS_BAF >> "Infantry");

Edited by Demonized
Added edit:

Share this post


Link to post
Share on other sites

ONLY when spawning BAF cfgGroups normal approach with BIS_fnc_spawnGroup will NOT work like example below:

[getMarkerPos "spawn", west, (configFile >> "CfgGroups" >> "West" >> "BIS_BAF" >> "Infantry" >> "BAF_Section_MTP")] call BIS_fnc_spawnGroup;

Correct usage is:

from wiki, "BIS_BAF" is wrong above, it should be "BIS_BAF_MTP"

Note1: "BIS_BAF_MTP" is used for all the 3 camo types (_W, _DDPM, _MTP)!!!!

Note2: faction commands still return "BIS_BAF", above is only when spawning cfgGroups with BIS_fnc_spawnGroup.

"Infantry" is not wrong, but is used differently based on camo type:

"Infantry" followed by cfgGroup names with _MTP suffix, note: only _MTP works here. (Multi-Terrain camo)

grp1 = [getMarkerPos "spawn", West, (configFile >> "CfgGroups" >> "West" >> "BIS_BAF_MTP" >> [i]"Infantry"[/i] >> [b]"BAF_Fireteam_MTP"[/b])] call BIS_fnc_spawnGroup;

"Infantry_DDPM" followed by cfgGroup names with _DDPM suffix, note: only _DDPM works here. (desert camo)

grp1 = [getMarkerPos "spawn", West, (configFile >> "CfgGroups" >> "West" >> "BIS_BAF_MTP" >> [i]"Infantry_DDPM"[/i] >> [b]"BAF_Fireteam_DDPM"[/b])] call BIS_fnc_spawnGroup;

"Infantry_W" followed by cfgGroup names with _W suffix, note: only _W works here. (woodland camo)

grp1 = [getMarkerPos "spawn", West, (configFile >> "CfgGroups" >> "West" >> "BIS_BAF_MTP" >> [i]"Infantry_W"[/i] >> [b]"BAF_Fireteam_W"[/b])] call BIS_fnc_spawnGroup;

Note: cfgGroup names used is same as on wiki, but with added _W or _MTP or _DDPM after it to create the different camos, using without any of the 3 above will not work.

Only infantry cfgGroups was tested, vehicle cfgGroups untested.

Edit: "BAF_SnipersN_DDPM" and "BAF_Snipers_DDPM" will not work, but _MTP or _W suffix of these will work, but only when using relevant "Infantry" or "Infantry_W".

Added info to cfgGroup wiki page.

Edited by Demonized
added edit on Snipers.

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  

×