Following up on the reports in the 1.5.8 and 1.5.9 threads regarding raiding no longer occurring: I have linked a Gothones Grand Campaign save file (https://limewire.com/d/RAlrr#76YKJuUnWB) demonstrating the issue and tracked down the exact cause in the script files.
How to Reproduce:
1. Load the attached Gothones save (or start a new 310 BCE Grand Campaign as the Gothones).
2. Set an army with raiding capability to the Raid posture next to valid neutral/hostile border regions and end the turn across multiple turns.
3. No raid ever triggers (neither success nor failure messages, and adjacent regions are never given the raided status). This affects both land raids and naval/pirate raids for all factions.
Root Cause in Data/Scripts/Host.bsf:
In Host_RaidRegions() (Host.bsf, lines 1640-1646), there is an unguarded callback check ported from Kingdoms:
Code: Select all
// This group can't specifically raids this region (e.g. KO against Christians)
if (targetID > 0)
{
if (CallFunctionInScenario("Event_CB_OnCheckingRaid", groupID, targetID) == FALSE)
{
targetID = 0
}
}
Guarding that block with if (SYS_IS_AMK) (or inverting the callback so FALSE is the allow-raid default) resolves the issue.
