Had to truncate the attached code :( it's half of it but enough to get the idea.
Is it possible to consider using a templated format of the below to simplify changing factions and tokenising the actual unit classnames? Benefits would be ability to change the faction groups ALiVE uses without editing anything majorly. I tested this method and it works perfectly. What is more, I can delete or add lines to the groups to change the format of groups very very easily, without even Arma open. You can leverage that to adjust how the force sizes work or to swap out vehicles or units very simply, without PBO distribution and without changing the mission since it edits the BLU_F and OPF_F on the fly, and ALiVE simply goes with it.
Make sense?
class CfgGroups { class West { name = $STR_A3_CfgGroups_West0; side = TWest; class BLU_F { name = $STR_A3_CfgGroups_West_BLU_F0; class Infantry { name = $STR_A3_CfgGroups_West_BLU_F_Infantry0; class BUS_InfSquad8 { name = $STR_A3_CfgGroups_West_BLU_F_Infantry_BUS_InfSquad0; side = TWest; faction = BLU_F; class Unit0 {side = TWest; vehicle = rhsusf_army_ucp_squadleader; rank = "SERGEANT";}; class Unit1 {side = TWest; vehicle = rhsusf_army_ucp_riflemanat; rank = "CORPORAL";}; class Unit2 {side = TWest; vehicle = rhsusf_army_ucp_grenadier; rank = "CORPORAL";}; class Unit3 {side = TWest; vehicle = rhsusf_army_ucp_riflemanat; rank = "PRIVATE";}; class Unit4 {side = TWest; vehicle = rhsusf_army_ucp_rifleman; rank = "PRIVATE";}; class Unit5 {side = TWest; vehicle = rhsusf_army_ucp_medic; rank = "CORPORAL";}; class Unit6 {side = TWest; vehicle = rhsusf_army_ucp_autorifleman; rank = "CORPORAL";}; class Unit7 {side = TWest; vehicle = rhsusf_army_ucp_machinegunner; rank = "PRIVATE";}; }; class BUS_InfSquad16 { name = $STR_A3_CfgGroups_West_BLU_F_Infantry_BUS_InfSquad0; side = TWest; faction = BLU_F; class Unit0 {side = TWest; vehicle = rhsusf_army_ucp_squadleader; rank = "SERGEANT";}; class Unit1 {side = TWest; vehicle = rhsusf_army_ucp_riflemanat; rank = "CORPORAL";}; class Unit2 {side = TWest; vehicle = rhsusf_army_ucp_grenadier; rank = "CORPORAL";}; class Unit3 {side = TWest; vehicle = rhsusf_army_ucp_autorifleman; rank = "CORPORAL";}; class Unit4 {side = TWest; vehicle = rhsusf_army_ucp_autorifleman; rank = "PRIVATE";}; class Unit5 {side = TWest; vehicle = rhsusf_army_ucp_riflemanat; rank = "CORPORAL";}; class Unit6 {side = TWest; vehicle = rhsusf_army_ucp_medic; rank = "PRIVATE";}; class Unit7 {side = TWest; vehicle = rhsusf_army_ucp_machinegunner; rank = "PRIVATE";}; class Unit8 {side = TWest; vehicle = rhsusf_army_ucp_grenadier; rank = "CORPORAL";}; class Unit9 {side = TWest; vehicle = rhsusf_army_ucp_machinegunner; rank = "PRIVATE";}; class Unit10 {side = TWest; vehicle = rhsusf_army_ucp_rifleman; rank = "PRIVATE";}; class Unit11 {side = TWest; vehicle = rhsusf_army_ucp_riflemanat; rank = "CORPORAL";}; class Unit12 {side = TWest; vehicle = rhsusf_army_ucp_medic; rank = "PRIVATE";}; class Unit13 {side = TWest; vehicle = rhsusf_army_ucp_rifleman; rank = "PRIVATE";}; class Unit14 {side = TWest; vehicle = rhsusf_army_ucp_rifleman; rank = "CORPORAL";}; class Unit15 {side = TWest; vehicle = rhsusf_army_ucp_rifleman; rank = "PRIVATE";}; }; [i]example continues for the rest of the faction and then the blue faction.[/i]