https://i.imgur.com/e9s0nZe.png
Here we see a teladi AI fleet besieging a xenon shipyard. the destroyers are sitting around the station, blasting away. every single M/S ship that was with them, flew into the station and was wiped out. there was no need for them to do that, the destroyers could have just destroyed the station without the sacrifice.
I feel like we need to sit down and hash out a ruleset that prevents AI from doing this, while also remaining intelligent. the simple answer is: make it so S/M ships dont fly close to enemy stations. What should they do instead then when there are no other enemies? stay still outside of range? what if a L or X/L is attacking the station, but is being harassed by enemy S/M ships. should the friendly S/M ships be able to fly close then?
also there may be other scenarios where attacking with S/Ms is preferrable. for example, if those ships were equipped with torpedoes, or if there are so many that they can overwhelm the station. I'm hoping this thread can turn into a real piece of feedback that can improve the game and give more satisfying in AI. I've come up with a stating point, and so far I have:
1. S/M ships should stay away from station turrets, unless they can combine their strength to an overwhelming degree without distractions. this will implicitly allow ships to siege stations without turrets. turrets with slow projectiles should also be taken into account.
2. S/M ships should pursue enemy S/M ships but give up pursuit after a short delay if targeted by station turrets.
3. damaged S/M ships should be more wary of getting close to stations and highly damaged ships should retreat and go back to an equipment dock to repair.
4. S/M ships should use friendly L/XL for cover and feel safer getting close to stations while staying roughly behind these ships (behind is the rough arc that exists on the opposite vector from the L/XL ship to the station).
5. while in a seige but not attacking stations but having nothing else to do, S/M ships should patrol in the area behind L/XL ships
6. There should be a command for the player to force attack stations and station turrets.
Edit: as I say this, the teladi destroyers are, one by one, flying past the station in close proximity and subsequently being blown up instantly. I think egosoft could stand to do some work on L/XL ship AI as well, but lets just focus on one thing per thread.
what foolproof changes can be made to the AI to prevent this?
Moderator: Moderators for English X Forum
-
- Posts: 61
- Joined: Tue, 27. Nov 18, 04:42
what foolproof changes can be made to the AI to prevent this?
Last edited by Terre on Mon, 23. Sep 24, 08:16, edited 1 time in total.
Reason: Images posted directly to the forums should not be greater than 640x480 or 100kb, oversize image now linked
Reason: Images posted directly to the forums should not be greater than 640x480 or 100kb, oversize image now linked
-
- Posts: 126
- Joined: Mon, 12. Nov 07, 05:48
Re: what foolproof changes can be made to the AI to prevent this?
The ships need to be aware of the station's DPS filtered by the attacker's rangefipmip wrote: ↑Mon, 23. Sep 24, 03:37 also there may be other scenarios where attacking with S/Ms is preferrable. for example, if those ships were equipped with torpedoes, or if there are so many that they can overwhelm the station. I'm hoping this thread can turn into a real piece of feedback that can improve the game and give more satisfying in AI. I've come up with a stating point, and so far I have:
Pheonix - 10k / 9k / 5k / 2k (main guns / L Plasma / M Plasma / M Pulse)
Osprey - 5k / 2k (M Plasma / M Pulse)
So the station might have:
2k range - 10k dps
5k range - 9k dps
9k range - 4k dps
10k range - 0 dps
So then each ship calculates from longest range to shortest...
At Range x, is (Ship HP / Station DPS * Ship DPS) > Station HP ?
If NO - treat station range as a collision avoidance sphere of range X
If YES - continue evaluating shorter ranges.
If the M/S ships are in a group/fleet - sum the Ship HP and Ship DPS and run all as a group
-
- Posts: 61
- Joined: Tue, 27. Nov 18, 04:42
Re: what foolproof changes can be made to the AI to prevent this?
I mean this could work but it has to take into account the positioning of the remainder of the fleet. furthermore, it doesnt take into account the ability for fighters to apply that dps, or the sightlines of turrets, or the fact that fighters will be picked off. and thus lower their combined dps.Phezzan wrote: ↑Mon, 23. Sep 24, 06:08The ships need to be aware of the station's DPS filtered by the attacker's rangefipmip wrote: ↑Mon, 23. Sep 24, 03:37 also there may be other scenarios where attacking with S/Ms is preferrable. for example, if those ships were equipped with torpedoes, or if there are so many that they can overwhelm the station. I'm hoping this thread can turn into a real piece of feedback that can improve the game and give more satisfying in AI. I've come up with a stating point, and so far I have:
Pheonix - 10k / 9k / 5k / 2k (main guns / L Plasma / M Plasma / M Pulse)
Osprey - 5k / 2k (M Plasma / M Pulse)
So the station might have:
2k range - 10k dps
5k range - 9k dps
9k range - 4k dps
10k range - 0 dps
So then each ship calculates from longest range to shortest...
At Range x, is (Ship HP / Station DPS * Ship DPS) > Station HP ?
If NO - treat station range as a collision avoidance sphere of range X
If YES - continue evaluating shorter ranges.
If the M/S ships are in a group/fleet - sum the Ship HP and Ship DPS and run all as a group
anyway with regards to the main thread, i was thinking of a more elegant solution. we could introduce a new command: seige station. this command will cause ships to circle a station at a defined distance, attacking reinforcing ships or station defenders, but not the station itself. they will also allow defenders to escape if they fly towards the station and not follow, but will chase for a decent distance if they fly away from the station. they will also avoid flying into other stations. This command can be the default command an AI fleet uses on their S/M ships. As for L/XL ships, if using the command they will exibit similar behaviour, circling the station but it probably isnt preferable to use. using a normal attack command should cause them to attack like they are in the OP picture, but egosoft needs to look at the repositioning behavior that causes them to suicide into the station.
-
- Posts: 719
- Joined: Wed, 4. Jan 12, 22:23
Re: what foolproof changes can be made to the AI to prevent this?
Just offering an alternative solution - in the case devs are wary of adding more items to a ship's GUI command list, is to expand on the Fire Authorization Override (FAO) list.
Topics like Object Type, Size, Purpose, etc., witch already exist in the Alerts page of Global Orders, should be integrated into the FAO options.
Doing this opens up so much for subordinate behaviors and not have to expand the command list, and can cover this scenario. Example: Create FAO for default aggression, but set:
Topics like Object Type, Size, Purpose, etc., witch already exist in the Alerts page of Global Orders, should be integrated into the FAO options.
Doing this opens up so much for subordinate behaviors and not have to expand the command list, and can cover this scenario. Example: Create FAO for default aggression, but set:
- Object Type = Ship
- Size = XS, S, and/or M (L and/or XL - optional)
- Purpose = Fight
Last edited by Duncaroos on Tue, 24. Sep 24, 14:21, edited 1 time in total.
Playing X4+All_DLC on:
CPU: Ryzen 5 5600X; RAM: 4x8GB DDR4 3200MHz; GPU: GTX 1070 8GB, Driver v536.23, DirectX 12.0; OS: Win10 Home 22H2 (19045.4780); Monitor: Single Acer S232HL 1920x1080
Duncaroo's Empire Logistics Tool (v0.23 Beta) - {{Vanilla Economy - Direct link}} {{Economy Overhaul Mod Version - Direct link}}
CPU: Ryzen 5 5600X; RAM: 4x8GB DDR4 3200MHz; GPU: GTX 1070 8GB, Driver v536.23, DirectX 12.0; OS: Win10 Home 22H2 (19045.4780); Monitor: Single Acer S232HL 1920x1080
Duncaroo's Empire Logistics Tool (v0.23 Beta) - {{Vanilla Economy - Direct link}} {{Economy Overhaul Mod Version - Direct link}}
-
- Posts: 719
- Joined: Wed, 4. Jan 12, 22:23
Re: what foolproof changes can be made to the AI to prevent this?
This sounds a lot like coordinate attack, but Im guessing this is more of a "coordinate defence" command for supporting fleets that are attacking.
Perhaps using the Point Defence as a base could be tweaked or enhanced for this siege support?
Playing X4+All_DLC on:
CPU: Ryzen 5 5600X; RAM: 4x8GB DDR4 3200MHz; GPU: GTX 1070 8GB, Driver v536.23, DirectX 12.0; OS: Win10 Home 22H2 (19045.4780); Monitor: Single Acer S232HL 1920x1080
Duncaroo's Empire Logistics Tool (v0.23 Beta) - {{Vanilla Economy - Direct link}} {{Economy Overhaul Mod Version - Direct link}}
CPU: Ryzen 5 5600X; RAM: 4x8GB DDR4 3200MHz; GPU: GTX 1070 8GB, Driver v536.23, DirectX 12.0; OS: Win10 Home 22H2 (19045.4780); Monitor: Single Acer S232HL 1920x1080
Duncaroo's Empire Logistics Tool (v0.23 Beta) - {{Vanilla Economy - Direct link}} {{Economy Overhaul Mod Version - Direct link}}
-
- Posts: 33
- Joined: Thu, 8. Aug 24, 22:41
Re: what foolproof changes can be made to the AI to prevent this?
The AI overhead for some of these suggestions would slow down the game in large combat situations to a crawl
May I suggest simple rules and conditional triggers?
We can set minimum range to target. Capital ships have to displace, reacquire and reengage if they are closer than say 7000 meters from a base with no targets. Fighters 1000 meters
If shields drop below a set value, say 50%, automatically do a 180 and boost out of there
May I suggest simple rules and conditional triggers?
We can set minimum range to target. Capital ships have to displace, reacquire and reengage if they are closer than say 7000 meters from a base with no targets. Fighters 1000 meters
If shields drop below a set value, say 50%, automatically do a 180 and boost out of there
-
- Posts: 1356
- Joined: Tue, 28. Nov 23, 15:38
Re: what foolproof changes can be made to the AI to prevent this?
Those kind of questions can't really be answered without seeing game's source code. AI at the moment is very basic, many thing could use an improvement, but it is unknown whether an improviement is POSSIBLE without looking under the hood first.
-
- Posts: 1052
- Joined: Mon, 18. Nov 13, 18:03
Re: what foolproof changes can be made to the AI to prevent this?
Inefficient attacks on chokepoints are by design. The attacking fleets are supposed to get wiped. This is just conflicting with the player's natural desire to avoid casualties.
Since the NPCs are not supposed to survive the best solution would probably a checkbox toggle only for the player. Attack station yes/no
Since the NPCs are not supposed to survive the best solution would probably a checkbox toggle only for the player. Attack station yes/no
-
- Moderator (English)
- Posts: 28247
- Joined: Thu, 15. May 03, 20:57
Re: what foolproof changes can be made to the AI to prevent this?
As Hector0x alluded to, it's most likely by design that ships get destroyed. Without ship destruction and replacement, the whole game economy would grind to a halt. It's what drives the economy. So eliminating that behaviour could have severe consequences on the game as a whole. Be careful what you wish for! 

Have a great idea for the current or a future game? You can post it in the [L3+] Ideas forum.
X4 is a journey, not a destination. Have fun on your travels.
X4 is a journey, not a destination. Have fun on your travels.