Children of a Dead Earth

Children of a Dead Earth

Not enough ratings
Stock AI replacement and expansion
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
32.890 KB
19 Sep, 2020 @ 1:16pm
27 Oct, 2021 @ 3:55am
5 Change Notes ( view )

Subscribe to download
Stock AI replacement and expansion

In 1 collection by Echo
AI
2 items
Description
This mod changes the stock AI military doctrines to increase the campaign difficulty and reduce lag somewhat, and provides broadside and nose forward variants for each AI military doctrine.

Changes that apply to all AI military doctrines are:
  • Combat Doctrine
    • Drone Doctrine
      • Weapon Destroyed Order: Homing
      • Target Out Of Range Order: Broadside
      • Enemy Missiles Inbound Order: Broadside
    • Missile Doctrine
      • Enemy Missiles Inbound Order: Homing
    • Weapons Doctrine
      • Ignore Range If Over Ammo Threshold: 99% or 100%
      • Ignore Range For Launchers: true
    • Flare Doctrine
      • Anti Flare Order: Nose Forward
      • Only Against Uncrewed Enemies: true

Additional changes for Aggressive Military Doctrines:
  • Missile Launch Doctrine
    • Attack Wing Size: 50
    • Wings In Flight Needed: 7
    • Stagger Distance: 320 km

Additional changes for Cunning Military Doctrines:
  • Missile Launch Doctrine
    • Attack Wing Size: 50
    • Wings In Flight Needed: 7
    • Stagger Distance: 2850 km

Additional changes for Ranged Military Doctrines:
  • Missile Intercept Doctrine
    • Intercept Missiles: true
  • Combat Doctrine
    • Capital Ship Doctrine
      • Targets Out Of Range Order: Broadside
    • Weapons Doctrine
      • Ignore Range Only When Threats Are Firing: false

This mod is not compatible with FPS-friendly Stock AI.

Credits:
9 Comments
Echo  [author] 24 Oct, 2021 @ 8:55am 
Updated Aggressive and Cunning Military Doctrines, which most likely will prevent Sillyship Siloship self-destruct in Vesta Overkill and Dusk Over Triton.
Echo  [author] 20 Dec, 2020 @ 3:35am 
@Taehl
> and change drone's Target In Range Order to Broadside

Sorry, I meant to say Nose Forward there.

@AtomHeartDragon Thanks for the information, I never played with fixed weapons myself. I had, however, the same problem you described in regards to misplaced modules. I was able to solve it by manually changing the relevant value in the exported design. In my case it was a vertical misplacement only, so it wasn't hard to figure out which value to tweak; otherwise some trial and error might be required (you should backup your original/broken design).
AtomHeartDragon  [author] 19 Dec, 2020 @ 4:56pm 
> Ships and drones change their orientation based on the longest-range weapon mostly (if not only)

Corrolary: fixed weapons are prioritized even if they are shorter range.

Also, check if drone blueprints didn't get corrupted on saving and the forward pointing guns are not pointing sideways.
This seems to result from floating point precision differences when handling component position and unfortinately there doesn't seem to be a single, reliable workaround.
Echo  [author] 10 Dec, 2020 @ 12:54am 
> having frontal sloped armor, and having no side thrusters

Ships and drones change their orientation based on the longest-range weapon mostly (if not only), it doesn't matter if they have sloped, flat or no nose armor at all. I don't know how ships and drones orient themselves if they have only side thrusters.

So, here are the only two ways I know to fix that:
1) remove the turret from your longest-range weapon
2) make your own AI (with a different name, please), change drone's Target Out Of Range Order to either Homing or Nose Forward depending on how aggressive that particular AI is / your taste, and change drone's Target In Range Order to Broadside

Let me know if you need help with the second option. Cheers!
Echo  [author] 10 Dec, 2020 @ 12:53am 
> This seems to make all of my drones perform really badly - they'll try to line up sideways to their targets in spite of having their longest-rang gun facing forward

In other words, that gun is turreted. Stock drones have fixed weapons, that is why their Target Out Of Range Order was changed to Broadside in this mod. I reckon you had the same problem whenever the enemy got in range of your drone's weapon too, since all stock drone's Target In Range Order is Broadside.

> using a nose-forward AI package

I wrote in the description: "Changes that apply to all AI military doctrines are: -> Drone Doctrine -> Target Out Of Range Order: Broadside". "all AI military doctrines" includes the nose-forward ones.
Taehl 9 Dec, 2020 @ 6:58am 
This seems to make all of my drones perform really badly - they'll try to line up sideways to their targets in spite of having their longest-rang gun facing forward, using a nose-forward AI package, having frontal sloped armor, and having no side thrusters. :steamsad:
Echo  [author] 29 Nov, 2020 @ 2:09am 
@GabrielD Thanks!

@LoSboccacc
I found that value to be a sweet spot between conventional cannons not causing lag on my computer (50 projectiles/gun in 1.67 s) and most of the EM weapons not hitting the 99% cap too soon (1000 projectiles/gun in, worst case scenario, 33.33 s).

The most commonly found weapon on stock designs, the Autofire Railgun, can shoot 1000 projectiles/gun in 64.4 s. The Sniper Coilgun can fire 100 projectiles/gun in 53.6 s.

The times above might not be 100% accurate because the game engine has a refresh rate of 30 Hz, which caps weapons reload at 33.3 ms.

Conventional guns have low muzzle velocity, so they are more likely to cause lag than to hit your ships when the enemy ignores range.
LoSboccacc 28 Nov, 2020 @ 11:20pm 
> Ignore Range If Over Ammo Threshold:99-100%

why not something like 70-80% for the aggressive/reckless/ranged doctrines?
GabD 28 Oct, 2020 @ 10:57am 
That definitely answers a need.