Autonomous Ships
Download link (http://download.trancecode.org.s3.amazonaws.com/starsector/autonomous-ships/autonomous-ships-0.4.1.zip)
Description
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. (3 different thresholds that can be customized)
- Retreat when the ship has no missile left. (the ship will only retreat if it has at least one missile weapon slot)
- Retreat when the ship has exceeded its peak performance time.
- Retreat when the ship is below a certain CR level. (60% or 40%)
- Retreat when the ship doesn't have any order to follow.
- Attack the nearest fighter wing when the ship doesn't have any order to follow.
Installation
Just download the mod and unpack the ZIP file into your mods folder. This mod requires the LazyLib (http://fractalsoftworks.com/forum/index.php?topic=5444.0) mod.
Extra information
Spoiler
- To customize the retreat command hull integrity thresholds, edit data/config/autonomous-ships.json.
- The commands won't work in the simulator nor if the flagship is on autopilot.
- The source code is packaged with each release. There is also a repository on Github (https://github.com/herve-quiroz/autonomous-ships).
- The mod supports Version Checker (http://fractalsoftworks.com/forum/index.php?topic=8181.0).
Possible next features
Spoiler
- Escort?
- Capture all navigation points?
Credits
Version history
Spoiler
0.4.1 (http://download.trancecode.org.s3.amazonaws.com/starsector/autonomous-ships/autonomous-ships-0.4.1.zip)- Fixed a crash with the "attack fighter" command.
0.4.0 (http://download.trancecode.org.s3.amazonaws.com/starsector/autonomous-ships/autonomous-ships-0.4.0.zip)- New command: retreat when the ship has no order to follow.
- New command: attack the nearest fighter wing when the ship has no other order to follow.
- Changed the icons for the hullmods, using a new set of icons from HELMUT.
0.3.1 (http://download.trancecode.org.s3.amazonaws.com/starsector/autonomous-ships/autonomous-ships-0.3.1.zip)- Added support for Version Checker.
0.3.0 (http://download.trancecode.org.s3.amazonaws.com/starsector/autonomous-ships/autonomous-ships-0.3.0.zip)- New command: retreat when exceeded peak performance time.
- New commands: retreat when below 40% or 60% CR.
- Changed the icons for the hullmods again, this time using the ones made by HELMUT.
0.2.0 (http://download.trancecode.org.s3.amazonaws.com/starsector/autonomous-ships/autonomous-ships-0.2.0.zip)- New command: retreat when no missiles left.
- Changed the icons for the hullmods.
0.1.0 (http://download.trancecode.org.s3.amazonaws.com/starsector/autonomous-ships/autonomous-ships-0.1.0.zip)- Initial release.
- New commands: auto retreat below hull integrity level. (3 levels)
Just got an error mid-battle:
Spoiler
java.lang.NullPointerException
at com.fs.starfarer.combat.tasks.CombatTaskManager.giveAssignment(Unknown Source)
at org.tc.autonomous.AutonomousCommandsPlugin.advance(AutonomousCommandsPlugin.java:135)
at com.fs.starfarer.title.C.o0oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO$Oo.o00000(Unknown Source)
at com.fs.starfarer.combat.A.B.o00000(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$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Also, sometimes the Target Fighters command gets spammed dozens of times on the message bar; so many that they get stacked on top of each other and reaches the bottom of the screen. It seems to happen if the ship's targeted wing is destroyed; though I'm not exactly sure on the correct triggers, it only seems to happen once per battle.