Fractal Softworks Forum

Starsector => Mods => Topic started by: Blothorn on February 22, 2019, 10:23:47 PM

Title: [0.9a] Automatic Orders 0.3.2
Post by: Blothorn on February 22, 2019, 10:23:47 PM
Automatic Orders

Download (https://github.com/isturdy/automatic-orders/releases/download/0.3.2/automatic-orders-0.3.2.zip)
Github repository (https://github.com/isturdy/automatic-orders)
Required mods:
LazyLib (http://fractalsoftworks.com/forum/index.php?topic=5444.0)

This is a spiritual successor to the (now outdated) Autonomous Ships mod, providing AI personality overrides and configurable automatic retreats. All settings affect AI-controlled ships (including the player ship, if on autopilot) in the player fleet; ally and enemy ships are unaffected. Each order will only be given once to each ship for each reason: for example, if a ship starts to retreat due to low PPT and you cancel the order AO will respect that, but may still issue a retreat order because of low hull or expended missiles, if those are enabled.

There are two primary sources of configuration:

Mod integration
Most mods should work without configuration, Automatic Orders does have two extendible CSVs for additional configuration:
Title: Re: [0.9a] Automatic Orders
Post by: pringdew on February 24, 2019, 02:18:28 AM
i am going to run this right now and try it out...if i find anything out of the ordinary i will let you know....
Title: Re: [0.9a] Automatic Orders
Post by: Harpuea on February 24, 2019, 08:45:56 AM
I have a homebrew updated version of Autonomous ships running in my game. It is nice to know someone officially updates the mod.

Edit*

Can you also adds the Auto retreat when HP is at a certain percent back? It seems to be missing from this version. It is really helpful to not have to pause the game and look for a tiny frigate that is about to die to issue a retreat. However, I found this to be unreliable in my own homebrew version. It sometimes doesn't register properly or too late. Auto retreat at HP % function also doesn't work with Combat Chatters. Still, it is much better than micro managing dumb AI that doesn't understands and fear death like a normal human crewed ship would. Thanks for the work.
Title: Re: [0.9a] Automatic Orders
Post by: Blothorn on February 24, 2019, 11:23:57 AM
Note that this is a blank-slate implementation, not an update of Autonomous Ships--I drew inspiration from its features, but wanted to take a different direction in the implementation.

There already is auto retreat on hull damage, configured by the settings file--this defaults to 50%, but can be set to any percentage. I know it works with combat chatter--if you can reproduce any oddities please let me know.
Title: Re: [0.9a] Automatic Orders
Post by: pringdew on February 24, 2019, 01:32:48 PM
so far i am not having any problems, its pretty slick, the mod cycles out the damaged ships and i can reinforce the fleet from the ships waiting in the wings...not having to micromanage so much is a hoot...
Title: Re: [0.9a] Automatic Orders
Post by: Hussar on February 25, 2019, 08:16:03 AM
I think you should put up a disclaimer that this mod is potentially save breaking. I know you've tried to mark it as utility but once added to the save file - you can't play without it.

I had experienced save breaking the other day while trying to access Prism Freeport from SCY - the problem had faded away after reactivating the automatic orders mod. But now with the AO, I can't for example do a ForceMarketUpdate command anymore. At all.


As for the mod itself... It's radical, I love elements of it. I would be testing more out of it - if we could add and remove it at will from the save. Though one can definitely appreciate the automatic disengage orders upon taking a certain amount of damage.

If I can give any pointer, if you'd tried to restructure the setting file to not be a one continuous line in notepad - it'd would make it easier to get around the various options. A small thing, call me nitpick'y but user experience matters too.
Title: Re: [0.9a] Automatic Orders
Post by: Euphytose on February 25, 2019, 08:28:20 AM
Use notepad++ and you'll never want to use notepad again.
Title: Re: [0.9a] Automatic Orders
Post by: Hussar on February 25, 2019, 09:07:47 AM
Use notepad++ and you'll never want to use notepad again.

Fair enough. I'll give it a try~
Title: Re: [0.9a] Automatic Orders
Post by: Blothorn on February 25, 2019, 09:38:08 AM
Right--this was originally a utility mod, but ceased to be one when I added hullmods. I'll drop that tag in the patch for ships-with-modules. If you do want a utility version, deleting hull_mods.csv should suffice, and still allow you to use the settings-file thresholds for CR/PPT and damage. (Of course, that change would still be save-breaking.)

I use \n newlines; the latest Notepad, and essentially all other editors, should handle it fine.
Title: Re: [0.9a] Automatic Orders
Post by: Blothorn on February 26, 2019, 08:19:24 AM
0.3.1 released! (https://github.com/isturdy/automatic-orders/releases/download/0.3.1/automatic-orders-0.3.1.zip)
Some minor fixes:
 - Remove the utility tag (incorrect since adding hullmods)
 - Exclude ship modules
 - Allow other mods to extend the missile regen system list
 - Add retreat threshold override hullmods
. - Disregard missile regeneration when deciding whether to retreat due to expending missiles.
Title: Re: [0.9a] Automatic Orders
Post by: BTracer on March 01, 2019, 07:29:06 AM
Small Issue: When in the hull mod screen, using the filtering buttons on the bottom has no effect on items this mod adds. For example if I filter for "Common" your mod items still show up. Hope you understand what I mean, still new to the game and not sure the names of things.

And being new, this mod is a life saver - I have no idea how I'd stay on top of everything with 5 ships let alone 30!!
Title: Re: [0.9a] Automatic Orders
Post by: Blothorn on March 01, 2019, 10:46:12 AM
Huh--I'll look into that. I had originally had them under the "Common" manufacturer/"Automatic Orders" type; I switched the manufacturer in a recent update and I thought it was filtering correctly.
Title: Re: [0.9a] Automatic Orders
Post by: Wyvern on March 05, 2019, 03:16:14 PM
If it helps: I can filter out this mod's hullmods if I exclude both "Automatic Orders" manufacturer and type - either one alone and the mods still show up in the list.  Weird, and almost certainly not intended behavior, but it is at least still something I can work with.
Title: Re: [0.9a] Automatic Orders
Post by: Blothorn on March 05, 2019, 04:16:13 PM
Thanks for catching that! I'll look into that and possibly remove one of the tags.
Title: Re: [0.9a] Automatic Orders
Post by: TimeDiver on March 05, 2019, 04:50:04 PM
Thanks for catching that! I'll look into that and possibly remove one of the tags.
Having been irritated by said issue myself, I got rid of all of the first column instances of the 'Automatic Orders' tags in hull_mods.csv.

This leaves behind just one 'Automatic Orders' category behind, and can be properly excluded from being lumped in with the other categories.
Title: Re: [0.9a] Automatic Orders
Post by: BTracer on March 07, 2019, 08:54:07 AM
First let me say I didn't realize 'Control+Click' was a thing ::) I can get what I want now without you changing anything!

And thanks to TimeDiver, and little testing, I found removing the uiTag column contents gave the desired results with the first row of buttons being the 'overall' category (Everything, Automatic Orders, Common) and the rest of the buttons being a more specific 'type' - and I don't think Automatic Orders needed to be there. So all good now!

Thanks again for a real time and life saver!
Title: Re: [0.9a] Automatic Orders 0.3.2
Post by: Blothorn on March 09, 2019, 09:33:23 PM
Finally got a chance to look into this and removed the uiTags entry from the hullmods. No other changes for 0.3.2--you don't need to update if that wasn't bothering you or you have fixed it locally.
Title: Re: [0.9a] Automatic Orders 0.3.2
Post by: SCC on June 23, 2019, 05:14:36 AM
I like this mod a ton, it's nearly essential to me. Now that II's been updated, you might want to add Titans to your blacklist, like so:
Code
hullid
TSC_Mantlet
ii_titan
ii_titan_armor
ii_titan_elite
ii_titan_targeting
Title: Re: [0.9a] Automatic Orders 0.3.2
Post by: Alphascrub on August 09, 2019, 05:52:24 PM
So is this mod good for 9.1? Sorry It seems like from the comments it is but I'm unsure. I really miss being able to customize how my ships act and the auto retreate feature is freaken great. I didnt realize how much I used this mod to help round how stupid the AI I can be sometimes until I didn't have it. Tired of seeing my destroyers run from frigates or be unwilling to engage anything because they don't have an aggressive trait.
Title: Re: [0.9a] Automatic Orders 0.3.2
Post by: Clibanarius on August 09, 2019, 07:16:18 PM
It's compatible. The only real changes between .9 and .9.1 were in ship prices. If something doesn't have ship prices, it's generally good! I've been using Automatic Orders in my games for a while, no issues.
Title: Re: [0.9a] Automatic Orders 0.3.2
Post by: majorfreak on October 20, 2019, 11:16:36 PM
is there an option in this mod to force ships to use their main batteries on ships instead of fighters?
Title: Re: [0.9a] Automatic Orders 0.3.2
Post by: SCC on October 20, 2019, 11:24:18 PM
This mod doesn't change anything related to autofire. It only places automatic orders on ships and changes individual ships' personality.
Title: Re: [0.9a] Automatic Orders 0.3.2
Post by: xucthclu on December 11, 2019, 06:17:21 AM
Has the mod been updated to blacklist Titans and such?
Title: Re: [0.9a] Automatic Orders 0.3.2
Post by: Chairman Suryasari on February 07, 2020, 03:35:15 PM
Exactly whati need right now  :D
Title: Re: [0.9a] Automatic Orders 0.3.2
Post by: TaylorItaly on February 08, 2020, 11:56:05 AM
May I ask , what the syntax is , if i want two optioins for Retreat ?

  "default_cr_retreat_threshold": "TEN_PERCENT_PPT", :"CRITICAL_MALFUNCTION", is not working....
Title: Re: [0.9a] Automatic Orders 0.3.2
Post by: SaberCherry on October 06, 2020, 03:11:02 PM
I'm having trouble with "Retreat When Missiles Empty".  I'm pretty sure I used it before on a Kite with torpedoes and  it worked, but another ship would always retreat at very the beginning of battle if given that hullmod, even though it was loaded with missiles (however if I deleted the retreat order it would go into combat normally).  It was a ship from a mod and unfortunately I can't remember which one it was but I will try to replicate it.
Title: Re: [0.9a] Automatic Orders 0.3.2
Post by: Jiur on January 17, 2021, 11:22:50 AM
Hi there, loving the mod it's very useful. I do have a request if you don't mind hearing me out.

Would it be possible to implement an automatic order to vent at x% flux levels?
Title: Re: [0.9a] Automatic Orders 0.3.2
Post by: Sanrai on April 04, 2021, 09:31:41 AM
I never realized how much I relied on this mod until it was gone. Please update soon.
Title: Re: [0.9a] Automatic Orders 0.3.2
Post by: Zyalyum on April 13, 2021, 09:36:35 AM
Im not much of a modder myslef, but the Mod currently "works" with 0.95a. Only Version Number is not compatible with the game. You can go to the Mod File, open mod_info.json with notepad++ or other Text Editor and Change the "gameVersion" to the current one.

Haven't had any crashes or bugs with it yet. Hope the official version updates soon. The mod is awesome!
Title: Re: [0.9a] Automatic Orders 0.3.2
Post by: Arcagnello on April 21, 2021, 11:37:41 AM
I concur, patiently waiting to slap this bad boy on my third 0.95 (finally modded) campaign!
Title: Re: [0.9a] Automatic Orders 0.3.2
Post by: tantananan on May 04, 2021, 02:12:02 AM
Im not much of a modder myslef, but the Mod currently "works" with 0.95a. Only Version Number is not compatible with the game. You can go to the Mod File, open mod_info.json with notepad++ or other Text Editor and Change the "gameVersion" to the current one.

Haven't had any crashes or bugs with it yet. Hope the official version updates soon. The mod is awesome!

Have you had more time testing it? A few people on the discord said auto retreat isn't working properly? Have you encountered bugs of your own?
Title: Re: [0.9a] Automatic Orders 0.3.2
Post by: danando123 on May 04, 2021, 06:00:08 PM
New to SS, hoping this will get e 0.95 update :)
Title: Re: [0.9a] Automatic Orders 0.3.2
Post by: shpooky on May 12, 2021, 03:19:30 PM
yes please
Title: Re: [0.9a] Automatic Orders 0.3.2
Post by: JDCollie on May 12, 2021, 09:55:16 PM
Can confirm that the mod "works" with .95 
I haven't personally noticed any issues with auto-retreat, my ships seems to pull back when they are supposed to.
Title: Re: [0.9a] Automatic Orders 0.3.2
Post by: Coil on August 07, 2021, 10:12:46 PM
Can confirm that the mod "works" with .95 
I haven't personally noticed any issues with auto-retreat, my ships seems to pull back when they are supposed to.

Why is works in quotes?