Doing the "Strange Things Going On in the Archipelago" sidequest, I'd got to the bit where you deliver the letter to Padre Domingues, then he wants you to go to Bridgetown to meet the Montanez. There were a couple of messages in "error.log" which drew my attention to these lines in "quests_side.c", case "prepare_for_barkue":
These are presumably meant to ensure that the Animist ships at Barbados are hostile to you even if you're flying a pirate flag. The problem is that "Dark Mystery_Man_04" and "Dark Mystery_Man_05" don't exist! I tested this by exiting worldmap near Barbados with a pirate flag, and sure enough, the Montanez and two Animist ships spawned near me and only the Montanez was hostile.
Replace those lines with:
The Animist captains are "Mystery_Man_04" and "Mystery_Man_05" (no "Dark"
). With that in place, I ran the same test and this time the Animists were properly hostile.
Hint: don't use auto-aim when fighting this battle. Montanez is hostile too, so auto-aim will target it as well as the Animists. You do not want to sink the ship you're supposed to be protecting, even if it's trying to sink you...
Code:
Characters[GetCharacterIndex("Dark Mystery_Man_04")].recognized = true; // PB: Ensure they're hostile!
Characters[GetCharacterIndex("Dark Mystery_Man_05")].recognized = true; // PB: Ensure they're hostile!
Replace those lines with:
Code:
Characters[GetCharacterIndex("Mystery_Man_04")].recognized = true;
Characters[GetCharacterIndex("Mystery_Man_05")].recognized = true;

Hint: don't use auto-aim when fighting this battle. Montanez is hostile too, so auto-aim will target it as well as the Animists. You do not want to sink the ship you're supposed to be protecting, even if it's trying to sink you...