Do you know how they are generated? If they're generated using the "Ambush" and related functions, they should now all be forced into the same AI groups.
But if they're generated in a way that bypasses that, then the "add soldiers to group" code needs to be there too.
If it isn't, then that could indeed happen.
The first two soldiers who accompany you to the beach are pre-defined in "PROGRAM\Storyline\Assassin\characters\init\TempQuest.c", where they are assigned to group "DUTCH_SOLDIERS". As far as I can make out, this is what happens:
case "batalha_praiabis": "SoldatD1" and "SoldatD2" are placed on the beach. Dialog with "SoldatD2" triggers case "batalha_praiabis2".
case "batalha_praiabis2": "SoldatD1" and "SoldatD2" are set to "officertype". Four pirates are spawned by 'LAi_CreateFantomCharacter' and assigned to group "SOLDIER_CHICO". Battle is declared between "SOLDIER_CHICO" and "LAI_GROUP_PLAYER", and the end of the battle triggers case "nouv_vague".
case "nouv_vague": "SoldatD1" and "SoldatD2" are again set to "officertype". Four more pirates are spawned by 'LAi_CreateFantomCharacter' and assigned to group "SOLDIER_CHICO_2". Four Dutch soldiers are also spawned and assigned to group "SOLDIER_GOVERNOR". (Remember, "SoldatD1" and "SoldatD2" are in group "DUTCH_SOLDIERS", though setting them to "officertype" may have overridden that, otherwise why would they join in the fight between "SOLDIER_CHICO" and "LAI_GROUP_PLAYER" earlier?) Berend de Voor, an officer with whom you have had previous dealings and who is also defined in "TempQuest.c", is placed in the area with the new soldiers and also assigned to group "SOLDIER_GOVERNOR". And PChar, i.e. you, also goes to group "SOLDIER_GOVERNOR"! Battle is declared between "SOLDIER_CHICO_2" and "SOLDIER_GOVERNOR". The end of the battle triggers case "fimdabatalha".
case "fimdabatalha": Ship "Diablo" is placed by the shore. Dialog with Berend de Voor triggers case "Diablo_Douwesen".
I don't see anything which takes PChar out of group "SOLDIER_GOVERNOR". And I'm not sure why one group of soldiers are in group "DUTCH_SOLDIERS" while the others are in "SOLDIER_GOVERNOR". They should all be fighting enemy group "SOLDIER_CHICO_2" at case "nouv_vague". But I wonder if putting the entire second group of soldiers plus Berend de Voor into "LAI_GROUP_PLAYER", then having the second battle between "SOLDIER_CHICO_2" and "LAI_GROUP_PLAYER", might solve the problem.
What it won't solve is the problem that I'm currently dividing attention between "Tales of a Sea Hawk" and "Ardent", and don't have time to play through "Assassin" again to test this!
