Are you absolutely certain that your script is working? I have now spent approximately two weeks searching for a Khaak invasion without ever finding one. And yes, I have used the latest version, saved and loaded, reinitialized script caches, etc. The closest I have come to seeing a Khaak invasion was when I found a Khaak station in a Split sector. However, there were no Khaak ships in the sector, just the station.
I am not an expert in X3 scripting, but I think that there is a bug in the script al.khaak.timer:
Code: Select all
$Search = find station in galaxy: startsector=$KnownSector class or type=Kha'ak Station race=Kha'ak flags=null refobj=null serial=omega max.jumps=160
if not $Search -> exists
...
else
end
return null
The problem with this code is that a Khaak station (apparently) is not considered as being hostile and will therefore not be destroyed. In the sector where I found the Khaak station absolutely no ships cared about it. The local sector defense just keep patroling, ignoring the station completely. There is therefore, must likely, an abandoned Khaak station somewhere in my game, which I cannot find, and until I destroy that Khaak station, there will not be any more Khaak invasions.
An easy fix to this problem would be to destroy the Khaak station in the else part of the if-statement, so that an invasion will take place the next time the script is called.