[Starsector Mods][0.95a] Automated Commands

  • Post category:Mods
  • Post comments:0 Comments

Automated Commands
Download link
Chinese link


This is a successor to

This mod adds new hullmods that allow the player to set predefined battle commands for AI-piloted ships in their fleet.
e.g. The Auto retreat command hullmod will force the ship to retreat when below a certain hull integrity level.

The command hullmods cost 0 ordnance points.

Current features

  • Retreat when the ship is below a certain hull integrity level. (90% or 60% or 30%)
  • Retreat when the ship has exceeded its peak performance time.
  • Retreat when the ship is below a certain CR level. (60% or 40% or 0%)
  • Retreat when the ship has no missile left. (the hullmod can only be added to ships with least one missile weapon equipped)

  • Override the personality for non-officered ships (should work for flagship on auto)
  • Vent when flux above 80%. This does not activate while the ship is manually being piloted by the player


Just download the mod and unpack the ZIP file into your mods folder.

Possible next features

Spoiler: click to expand

  • Combat Objective Capture
  • Direct Retreat modifier ?
  • Randomised Personalities for unofficered ships in fleets
  • Version Checker integration ?
  • Escort Orders ?
  • “ALWAYS_PANIC” (and other) hullspec tag
  • Carrier wing stance modifier
  • Focus fire on flagship’s target would be a good one
  • Prioritise attack (ship size)
  • Only use missiles when target ship is fluxed out
  • Automated Hullmods cannot be built in
  • Disable combat log personality assignments in config file


  • hqz (original idea)
  • HELMUT (icons)
  • Histidine (API advice)
  • Wnsmds(Chines Translation)

Wow, very nice! I really needed Autonomous ships back. Can you add the Reckless, Aggressive, etc hullmods back as well?

Would it be possible to add commands to “force” venting flux at certain levels? IE force a “V” press then a “U” press to go back to auto after.
Also, would it be possible to add a command that automatically pressed U (auto mode) at the start of combat? I’d only use that one on the flagship I was piloting, but it would save a lot of button presses.

Other commands I can think of, but not sure if they are possible to achieve is “auto objectives” – IE a “capture” order would make a ship go and capture an objective like a com relay or something in combat. One step further would be “capture objective, then X”, X being search and destroy after capturing, or X being defend that point after capturing.

I know the original had an “escort” command, but that was not something I used because it wasn’t very specific, so would it possible to add a command like “Escort ship number X”, IE if I had a capital ship in position 2 of my fleet, I could tell a DD “Escort ship number 2” and then that DD would automatically escort the 2nd ship of the fleet at the start of combat.

Like FF12 tactics? That would be cool

other commands I think it’d be great to have; force a ship to vent when its at _ flux, for ships who I’ve built to aggressively vent in the enemy’s face & dont want to back off and then vent, and a pair of hullmods one that puts a escort order on it at battle start & another that makes that ship escort another ship (preferring ships with the previous hullmod) at battle start, so if I’ve built a fleet with specialized ships that needs to be grouped I don’t have to manually do it at the start of every battle even if I don’t get particular control over who escorts what

Gah, the one bit I really cared about is the aggression level for unofficered ships! D:

Gah, the one bit I really cared about is the aggression level for unofficered ships! D:

Change your battle doctrine. This (and older mods) were only needed if you wanted per-ship aggression level.

Gah, the one bit I really cared about is the aggression level for unofficered ships! D:

Change your battle doctrine. This (and older mods) were only needed if you wanted per-ship aggression level.

Yeah, and per-ship is exactly what I want!

Well, that and something to make them more missile-happy for my nova ships.

Hey there. I encountered a bug while using this mod.

Spoiler: click to expand
3677386 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain  – java.lang.NullPointerException
   at data.hullmods.BaseAutomatedHullMod.orderRetreat(BaseAutomatedHullMod.java:54)
   at data.hullmods.BaseAutomatedHullMod.advanceInCombat(BaseAutomatedHullMod.java:29)
   at com.fs.starfarer.combat.entities.Ship.advance(Unknown Source)
   at com.fs.starfarer.combat.CombatEngine.advanceInner(Unknown Source)
   at com.fs.starfarer.combat.CombatEngine.advance(Unknown Source)
   at com.fs.starfarer.combat.CombatState.traverse(Unknown Source)
   at com.fs.state.AppDriver.begin(Unknown Source)
   at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher.o00000(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

added AI personality overrides

A saviour, a hero has arrived!
Thank you, oh herald of Ludd and all the helpers you had in this just endeavour.
I will use this Mod for the good of the Persean Sector, microing my fleet did not feel the same with the amount of information and capabilities both Autonomous Ships and Automatic orders added to the game!

Will let you know if there’s any issues related to the mod but I can’t assure you it will be anytome soon since I’ve finally found work and I just won’t have time to play Starsector as much as I did in the past month!

added AI personality overrides

[insert heart.png]

does this mean that I can prioritize militarized kites in my fleet doctrine, then go into my kite & delete all of its variants, build one with torps & expanded missiles and a reckless hullmod & save it as my only variant and get a whole fleet of AI mes? It’s– it’s a thing of beauty. I might cry

its only tested for player fleet

i dont know if it will work for AI fleets
(i havent coded any exclusions for AI fleets but the combat messages / logging might break it (NPE))
also all ai vs ai battles are auto-resolved?

doesnt really concern me since my faction cant defend itself without me anyway lmfao i just wanna be able to pilot my capital ship fleet into a big battle & be dynamically backed up by kites looking to atropos my enemies in the backside while I lock them down. Gonna go stress-test ur mod for u

edit: I updated it the way most mods require, just delete the old folder & put the new one in, & got this when I went to start the game. https://imgur.com/a/eedd8Ii moving the new folder to my desktop, pulling the old one out of recycling bin & putting it back, then putting the new folder over the old one fixed the problem & the new version works now. Just felt like giving a heads up that this mod is a “overwrite old version with new versions” kind of mod & the new version on its own doesnt appear to work, IE people who try this mod for the first time now might not be able to use it
edit edit: the tooltip for all the personality hullmods say theyre cautious

Leave a Reply