103 ratings
Space Defense Agency
File Size
0.176 MB
Nov 19, 2016 @ 9:15am
Dec 27, 2016 @ 10:34am
21 Change Notes ( view )

Subscribe to download
Space Defense Agency

In 1 collection by folk
Folk's Stellaris Mods
31 items
Allow the Space Defense Agency to operate on your space port for improved local subspace defense.
The AI will use all the features of the addon.

It all started when,
  1. I got annoyed at all these random space monsters jumping into my systems, triggering warning popups, and then just moving on
  2. I noticed the AI was extremely picky about constructing military stations, in fact I played a game up to the ED crisis and no AI empires had any stations at all

I thought, "why can't the spaceport have the subspace snare capability?". I had to make it!

The mod is far from complete, or balanced, but the AI does use all features.

Spaceport Module: Military Hangar
Required Spaceport Level: 5
Allows the Space Defense Agency to station fighters and bombers at this Spaceport. These spacecraft are much more powerful than the ones that come with the spaceship-mounted hangars.

They will immediately take foot in your Spaceport with 2 squadrons, one consisting of 12 fighter-style craft, and one squadron of 4 bomber-style crafts.

They engage any hostiles autonomously at a range slightly higher than that of the stations main weapons.

Spaceport Module: Space Defense Agency
Required Spaceport Level: 5
Required Technology: Defense Platform
Installs an office module on the Spaceport that allows their bureaucrats to work in relative safety. They will install a shield module and attempt to operate a small military station just outside the planets gravitational field.
The military station will be operated by the SDA, and thus has a substantially reduced (-80%) upkeep cost. However, you will not have any control over when it is built or upgraded.

If you have enough SDA Office buildings in your empire, the SDA will upgrade the station from Platform, to Station, to Fortress, (and Battle Fortress with NSC and a Governors Mansion) over time automatically. If the station is destroyed, it will start out as a Platform again.

Building: Space Defense Agency HQ
Requires Planetary Administration
Sets up the main offices of the Space Defense Agency. This allows them to operate an empire-wide wormhole network for automated subspace defense. Any time a hostile military fleet enters owned space, an automated defense fleet will be dispatched immediately.
The fleet consists of drone-craft exclusively. It buys you time to react.

A maximum of 3 hostile fleets will be intercepted at a time.
Only one SDA automated drone fleet can be deployed in a star system at a time. Star systems will not be deployed to until 3 months have passed.

The drone squadron deployment fields structural reinforcement will be automatically adjusted by the SDA HQ staff to be able to sustain a few days worth of bombardment by virtually any hostile fleet composition.

The combined hull points of all deployment portals will be the same regardless of how many of them spawn. It scales the hull reinforcement and divides it per portal. So the only benefit to having more than one portal is the added damage from the additional squadrons.

Building: Space Defense Agency Office
Requires Planetary Administration
Sets up a military facility for local SDA operations. This factility has a number of small bonuses for army recruitment and planetary fortification.
Most importantly, you need 2-4 of these buildings for the SDA spaceport operations to construct the relevant levels of military stations!

Having 2 will allow them to upgrade from Platforms to Stations, having 3 will allow Fortresses, and 4 of them will allow the Battle Fortress, if you have NSC.'
The Battle Fortress upgrade also requires 1 planet with a Governors Mansion (NSC building).

Each SDA office building (no matter how many you have) increases the number of automated drone squads deployed by the HQ by 1 per deployment. These additional squadrons are very weak compared to the one deployed by the HQ.

Spaceport Module: Subspace Inhibitor
Required Spaceport Level: 1
The classic, well-known subspace snare aura, fitted on your Spaceport.

Spaceport Module: Subspace Field Modulator (Allied)
A combination of the military station-mounted shield regeneration aura and nanobot cloud, this powerful subspace field will heal up your fleets in no time.
Note that this aura generates zero graphical indicators, like the ship/stations ones do. It's simply annoying with that circle.

Spaceport Module: Subspace Field Modulator (Hostiles)
A combination of the military station-mounted quantum destabilizer and the shield dampener.
Note that this aura generates zero graphical indicators, like the ship/stations ones do. It's simply annoying with that circle.

I don't know how to balance this, or what to do with it. But from what I can tell, this feature is quite unique on the workshop.
Please feel free to give me suggestions, ideas, or any kind of feedback. I see this as a good proof-of-concept and place to start, but it certainly feels lacking. Especially the SDA module, it seems like, for example; it should cost some influence, it might impact happiness/ethic diversion on the planet in some manner, it might need some random events. Perhaps you should only be able to have 1x of them.

Anything can be done, please let me know what you think :-)

The logo is ripped from the US DoD's Missile Defense Agency.
And yes, I know "defense" is a controversial spelling of the word, hehe.

Please check out my other addons!

And many others :-)
< >
fleetmastermichael Jan 15 @ 4:26pm 
awsome i bin hoping for somthing like this
Rythin-Fenrir Dec 23, 2016 @ 5:31pm 
Okay, thanks a bunch. Honestly it's okay if it doesn't work, because I've got NSC installed as well
folk  [author] Dec 23, 2016 @ 2:39pm 
So whoops, when I uploaded the last version I accidentally removed the SDA cooldown entirely. I put it back now and adjusted it to 270 days per-system and per-fleet.

I won't have time to do any real coding for the next few days, but will take a look at the Citadels mod after christmas.
folk  [author] Dec 23, 2016 @ 2:00am 
@Kythia I will take a look at the cooldown indeed.
@Rythin-Fenrir No, I have not tried the Citadels mod. I can take a quick look though and see about compatibility.
Rythin-Fenrir Dec 22, 2016 @ 7:16pm 
Will this mod be compatible with the Citadels mod? I know you made it work with NSC's Battle Fortresses, but the Citadels mod is what i'm currently using.
Kythia Dec 21, 2016 @ 4:21pm 
A year would be far more sensible I think. In a perfect world, the SDA would use some kind of ammo that the player has to rebuild/restock first, but that's probably out of the question.
folk  [author] Dec 21, 2016 @ 4:15pm 
What would you consider appropriate? I am playing my first game of Stellaris now in 2 months and am just 2 hours in, so SDA hasn't kicked in yet, and in any case I wont play much more. So it's hard for me to judge these things.
Kythia Dec 21, 2016 @ 4:00pm 
Btw... the SDA is still annoying as hell with its 3 months respawn cycle. What happens is basically that I go attack a planet, take care of the SDA, move to the shipyard, get bothered by the SDA a second time on arrival, take care of them again, then I kill the shipyard while the AI starts attacking something of mine, and when I want to return home after killing the shipyard to take care of the invaders, the SDA pops up a third time and delays me ... again.

Its okay to do this once, but by the third time it gets really annoying. Time goes by fast in this game, so maybe up the respawn delay some more?
folk  [author] Dec 21, 2016 @ 3:48pm 
Indeed, you are absolutely correct, it is purely numbers. And there's not much modders can do about it.
We also cant create ship designs dynamically with preferred components. Well, I have found a way, but it's extremely difficult to do.
Nor can we determine what components are equipped on other ships.
And we can't determine what anything costs. So I can instantly spawn a corvette for someone, but I can't subtract the actual cost of the ship, I can only guess.

If you use the autobuild addon that creates mining and research stations now, that's what it does. The addon just takes 100 minerals per station, or whatever it is. Also, it doesnt build them, it parks the ship over the planet and waits 80 days, then the station instantly spawns.

I can make an AI that actually has a more complicated decision tree, but it would be such a huge undertaking that I'm not willing to do it. And if I did, it would have to cheat with regards to a few things.
Kythia Dec 21, 2016 @ 2:56pm 
Well, "everything" is a weird term. I hate the lack of diplomacy and intelligence in a game that begs you to roleplay an empire in it. Its all just a number's game without any plan or vision for the AI.

This becomes especially obvious when an AI declares war. It just juggles numbers. For example, when I reloaded an earlier savegame after an AI declared war on me and gave it Active Sensor Link for 10 years, it didn't attack me again, simply because the treaty raises its Trust-value towards me. Being able to see all my fleets and planets didn't do the AI any good at all, *unless* it had used that intelligence to properly counter my ship setups and be smart about picking targets.

But instead it just juggled the numbers and decided to leave me alone instead. There is absolutly no intelligence, just a number crunching script. I find that very sad in the year 2016. There are only two games I know that have an AI worth calling Artificial Intelligence, AI War and Z.