Stellaris

Stellaris

355 ratings
AI Spymaster
4
2
2
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
467.923 KB
11 Mar, 2022 @ 10:05pm
22 May, 2022 @ 10:41am
14 Change Notes ( view )
You need DLC to use this item.

Subscribe to download
AI Spymaster

Description
Updated to Stellaris 3.4.3 - Overlord
  • Subject-Overlord relations are now taken into consideration
  • AI will more frequently spy on their Ovelord/Subject when loyalty is negative
  • AI will not spy on their Overlord/Subject when loyalty is high (it may take a while for already assigned spies to be reassigned elsewhere)
  • Diplomatic Incident Operation now has the same restrictions as Smear Campaign: only performed when opinion is negative or worse, no longer performed when opinion is neutral

Main Idea

It is not widely known, but vanilla AI is not able to manage envoys properly.
Most of the time it will shuffle all the envoys through the same spy network task, which would result in many envoys staying unassigned and on cooldown, while doing nothing.

This mod corrects this behaviour, making AI properly distribute envoys between prioritised spy networks.
This also has a positive effect on other AI envoys activities: as AI stops messing up its envoys, they can now spend more time improving/harming relations, boosting diplomatic weight in galactic community or working in federation.

Important Note

While this mod prevents AI from breaking the envoy logic, it may take a while for the AI to correct itself if vanilla logic has already messed up envoys. Hence the new game is recommended instead of loading an older save. But both should work.

Key Features
  • AI will not assign the envoy to the spy network that already has an envoy
  • AI will prioritise spy networks on rivals, crisis and neighbours
  • AI won't spy on empires that are inferior or pathetic relative to them, if there are other priorities (galactic community, federation, relations)
  • As a consequence the homicidal empires (like fanatic purifiers) will always spy on everyone they can (with respect to priorities) as they have no other uses for envoys (except first contacts)
  • AI won't deploy spy networks on empires if no useful progress is possible (maximum infiltration level is too low)


Operations

Vanilla AI is only capable of performing 3 operations: Gather Information, Acquire Asset, Steal Technology
This logic is expanded and AI is now able to perform most of them depending on the circumstances

  • Gather Information: only when the infiltration level is very low - low priority;
  • Spark Diplomatic Incident: against rivals, enemies and neutrals (except crisis and homicidal empires) - medium priority;
  • Prepare Sleeper Cells: used when possible (as effect has a duration);
  • Acquire Assets: until maximum infiltration level reaches 100 - high priority;
  • Extort Favors: against anyone (except crisis and homicidal empires) - low priority;
  • Smear Campaign: against rivals and enemies (except crisis and homicidal empires) - medium priority;
  • Steal Technology: against empire whose technological level is equivalent or better than ours - medium priority;
  • Sabotage Starbase: against enemies and rivals - very high priority;
  • Arm Privateers: against enemies and rivals - very high priority;

Crisis Beacon and Imperium operations are also enabled for AI.

Please, let me know in the comments if AI overuses or underuses some operations.


Compatiblity

Should be compatible with any mod, unless it also modifies the AI logic for espionage.
Files modified:
ai_espionage/operations/00_base_policies.txt
ai_espionage/spynetworks/00_base_strategies.txt
ai_espionage/spynetworks/00_federation_members.txt



[discord.gg]
104 Comments
Danetta  [author] 18 May @ 12:18am 
I think I can also add you as a collaborator so you could update it here.
Danetta  [author] 18 May @ 12:12am 
@"66% trustworthy" yeah you can do that. I might get back to fixing some stuff in the future once stellaris gets more stable. Or you can send me the changes and I will update the mod.
I Darkstar X 14 May @ 11:37am 
<Obligatory 4.* check>
Ascension 8 May @ 12:09pm 
Would be great if you could and are willing. :D
66% trustworthy 8 May @ 6:02am 
So I looked into the code, the mod should still work, only problem might be 4.0 because idk if new action for espionage were added. If yes, I might repost the mod with the new stuff (unless the dev replies in a week or just doesnt want me to repost for any reason)
Ascension 8 May @ 3:39am 
@FailSafe Please report back. 🙏
66% trustworthy 10 Feb @ 7:29am 
@Failsafe does it still work + can it be used in an already started game ?
FailSafe 2 Feb @ 6:46am 
From what I can see in the files the only 'out of date' bit is the modded version not having the code to allow AI to do pre-FTL espionage, which....who cares?

in theory should work otherwise, I'll be testing myself soon enough
JediMindTrix 14 May, 2024 @ 2:13am 
RIP
Sjru 🐲 18 May, 2023 @ 9:02pm 
Update?