Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); In-development patch notes for Starsector 0.98a (2/8/25)

Author Topic: How to break Legion AI  (Read 1240 times)

Grievous69

  • Admiral
  • *****
  • Posts: 3126
    • View Profile
How to break Legion AI
« on: February 28, 2024, 01:43:12 PM »

I almost went and reported this as a bug but honestly don't know anymore, maybe it's a loadout thing. Anyway here's the build that breaks the AI completely
Spoiler
[close]
So just to explain, it initially had 6 Light Autocannons (so only 2 Vulcans on the far sides) but I switched it since I thought it was a PD issue, AI being scared and all that.

If you're at your pc, just copy my build, officer is aggressive but I honestly don't think it matters. Elite Helmsmanship, Missile Spec, Gunnery Implants, Damage Control and Impact Mitigation. I also doubt the skill play a role here. Just run a simulation versus an Onslaught or use it in battles to see how it's behaving. Think it's faster to reproduce it and see than for me to explain.

But I will explain for those that can't test things right now. So what happens is the Legion tries to fight diagonally, a lot. Thankfully it still has most weapons in range of the target, but it looks silly and it moves slower this way, not to mention horrible positioning to chase with Burn Drive. I thought Light Autocannons confused it but it does this even at long range. And it becomes REALLY timid, it backpedals from everything and doesn't want to fight, just hovers idling. Again, this is an aggressive officer... Not even Eliminate orders convince it much.

It's so easily reproduceable it almost feels intended, but there's no reason for a ship to behave like this, even if I put Light Autocannons on the sides, hell I've had multiple Railgun Legions. If Alex can't see this in person, I'll capture it the next time I witness it (probably tomorrow), but I think it's more valuable to give the exact recipe for this funky thing.

Btw I know AI does the turn thingy to spread damage on armor but 1) this happens with intact armor and 2) it does it way more often than the mentioned behaviour.

EDIT: Uploading to YT right now, video will be posted soon.

EDIT 2: THE VIDEO
It just hovers at zero flux doing nothing, I've never seen that AI behaviour before.
« Last Edit: February 28, 2024, 02:03:54 PM by Grievous69 »
Logged
Please don't take me too seriously.

Thaago

  • Global Moderator
  • Admiral
  • *****
  • Posts: 7764
  • Harpoon Affectionado
    • View Profile
Re: How to break Legion AI
« Reply #1 on: February 28, 2024, 02:23:44 PM »

That looks a lot like a bug to me - its a reasonable loadout that really should be pointing at the enemy. I feel like I've seen a bit of suspicious 'not pointing at the enemy' behavior lately, but nothing that clear. If I come up with something reproducible I'll add it here.
Logged

Goumindong

  • Admiral
  • *****
  • Posts: 1906
    • View Profile
Re: How to break Legion AI
« Reply #2 on: February 28, 2024, 02:38:48 PM »

What do weapon groups look like?

Maybe it’s trying to orient its target in the center of its selected non-autofire weapon. If this is the HAG then it’s going to be off center there. If it’s the mark Ix it will be the other way.
Logged

vuntron

  • Ensign
  • *
  • Posts: 5
    • View Profile
Re: How to break Legion AI
« Reply #3 on: February 28, 2024, 06:49:50 PM »

I've noticed a lot of jiggling with escort destroyers, most notably on Hammerhead with rear PD lasers, they rotate very quickly in place to try to intercept missiles and fighters super early at the cost of their main guns missing, especially burst shots like maulers. My gut says there's something going on, I have a little writeup about it I haven't posted cuz I wasn't sure if it's totally anecdotal. For no good reason, I suspect the AI is very PD-focused right now and wants to give its PD weapons maximum potential at the cost of main gun effectiveness.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 25130
    • View Profile
Re: How to break Legion AI
« Reply #4 on: February 28, 2024, 08:15:11 PM »

Spoiler
I almost went and reported this as a bug but honestly don't know anymore, maybe it's a loadout thing. Anyway here's the build that breaks the AI completely
Spoiler
[close]
So just to explain, it initially had 6 Light Autocannons (so only 2 Vulcans on the far sides) but I switched it since I thought it was a PD issue, AI being scared and all that.

If you're at your pc, just copy my build, officer is aggressive but I honestly don't think it matters. Elite Helmsmanship, Missile Spec, Gunnery Implants, Damage Control and Impact Mitigation. I also doubt the skill play a role here. Just run a simulation versus an Onslaught or use it in battles to see how it's behaving. Think it's faster to reproduce it and see than for me to explain.

But I will explain for those that can't test things right now. So what happens is the Legion tries to fight diagonally, a lot. Thankfully it still has most weapons in range of the target, but it looks silly and it moves slower this way, not to mention horrible positioning to chase with Burn Drive. I thought Light Autocannons confused it but it does this even at long range. And it becomes REALLY timid, it backpedals from everything and doesn't want to fight, just hovers idling. Again, this is an aggressive officer... Not even Eliminate orders convince it much.

It's so easily reproduceable it almost feels intended, but there's no reason for a ship to behave like this, even if I put Light Autocannons on the sides, hell I've had multiple Railgun Legions. If Alex can't see this in person, I'll capture it the next time I witness it (probably tomorrow), but I think it's more valuable to give the exact recipe for this funky thing.

Btw I know AI does the turn thingy to spread damage on armor but 1) this happens with intact armor and 2) it does it way more often than the mentioned behaviour.

EDIT: Uploading to YT right now, video will be posted soon.

EDIT 2: THE VIDEO
It just hovers at zero flux doing nothing, I've never seen that AI behaviour before.
[close]

Yikes, definitely a bug, fixed this up. Really appreciate all the details, that really matters and made it a lot easier for me to reproduce this - thank you!

Basically it was thinking that it was a broadside loadout because... the specific placement of the turrets on the Legion, combined with the range of the weapons, and the range it was checking its optimal firepower angle against, made it "miss" some of the turrets but not others.
Logged

Wyvern

  • Admiral
  • *****
  • Posts: 3970
    • View Profile
Re: How to break Legion AI
« Reply #5 on: February 28, 2024, 08:32:55 PM »

Huh, now that you mention it- that almost is a broadside loadout. Or, at the very least, one where not quite pointing directly at the target is a reasonably correct call, due to the rear autocannon turrets being unable to fire straight ahead.

Got to be something weird going on with weapon groups too, though, because I can't get the described behavior to replicate myself.

I'm curious if the behavior would be better if you swap the rear autocannons and vulcans - i.e., autocannons in the back-most side turrets, and vulcans one notch further forwards.
Logged
Wyvern is 100% correct about the math.

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 25130
    • View Profile
Re: How to break Legion AI
« Reply #6 on: February 28, 2024, 08:46:02 PM »

I just did auto-generate for the weapon groups and that did the trick. This may require an officer with GI, not sure.

The rear light AC's were my first thought, too, but removing them didn't actually make a difference!
Logged

Wyvern

  • Admiral
  • *****
  • Posts: 3970
    • View Profile
Re: How to break Legion AI
« Reply #7 on: February 28, 2024, 08:47:34 PM »

Fascinating. Yeah, I took it for a test-run via mission, so no officer. That probably makes the difference then.
Logged
Wyvern is 100% correct about the math.

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 25130
    • View Profile
Re: How to break Legion AI
« Reply #8 on: February 28, 2024, 08:56:14 PM »

Yeah, my sense is that it's a really weird "range of weapon combined with placement of slot hits/misses a threshold" type of thing.
Logged

Grievous69

  • Admiral
  • *****
  • Posts: 3126
    • View Profile
Re: How to break Legion AI
« Reply #9 on: February 28, 2024, 11:09:46 PM »

Yeah I just went with auto groups for this build, seems good enough. And like I sad, in the beginning in had LACs in the front small slots, that still didn't stop it from doing the funky turn.

And glad Alex already fixed it, kinda funny that a skill that increases range somehow messed this up.
Logged
Please don't take me too seriously.

Nettle

  • Admiral
  • *****
  • Posts: 801
  • making humorous maneuvers
    • View Profile
Re: How to break Legion AI
« Reply #10 on: March 11, 2024, 05:16:58 AM »

I was recently playing around with Centurion and found several builds that result in broadside behavior, even though it is perfectly capable of firing all of its forward turrets while facing the target. I'll post one of the builds that result in this behavior. Broadside Centurion does become a lot more timid than regular Centurion, which promted me to post about it. Moving the needler to one of the forward turrets "balances" the build, and it reverts back to normal behavior; however, placing it on either the left or right middle turret makes it broadside.

UPD: Actually, nevermind about "moving the needler to one of the forward turrets", I was able to get broadside behavior with the needler in any of the four forward-facing turrets with auto-assigned weapon groups. I have no idea what is going on here.



Click images to expand
« Last Edit: March 11, 2024, 05:29:46 AM by Nettle »
Logged
I can't wait to get curb-stomped.

(Honestly, I'm really looking forward to this.)

Princess of Evil

  • Admiral
  • *****
  • Posts: 1017
  • Balance is not an endpoint, but a direction.
    • View Profile
Re: How to break Legion AI
« Reply #11 on: March 11, 2024, 05:20:28 AM »

Truth be told this ship absolutely looks like a diagonal broadsider to me.
Logged
Proof that you don't need to know any languages to translate, you just need to care.