It's common occurence that traders / miners get destroyed and you figure it out only after they are destroyed. They travel through crowd of Xenon which camp at a gate , they travel close to pirates etc. AI has no sense for basic survival . A bunch of these situations can be resolved with minimum effort - slight course change, short docking until danger passes etc.
I'm sure this could be fixed with a relatively simple mod, even though it should be part of the core.
Basic logic is that weaker ships should report and run away or do some basic survival as soon as danger is detected in sector they are in or sector they are about to enter, long before there is any danger of being attacked. If you are traveling in a car and you see an enemy military vehicle, do you go closer to it or you turn around and run away as far as possible, screaming "HELP HELP ENEMY ENEMY" ?
Examples, from the top of my head:
1. Civilian ship is in a sector with S/M/L/XL enemies or enemy stations or they are about to enter one. Report immediately and:
- if it's transiting and enemy is not close (distance X) to the travel path - continue and recheck enemy position after 30 seconds and recalculate if action is needed.
- if it's visiting a station in a sector and enemy is not close to travel path and not close to the station - continue and recheck enemy position after 30 seconds and recalculate if action is needed.
- don't undock if enemy is close to a station
- if enemy is relatively close, but can be avoided by a change of course - change the course so that you decrease distance to destination and increase distance to the closest enemy , continue, recheck enemy position after 30 seconds and recalculate if action is needed.
- if enemy is blocking the path and change of course won't help (camping at gate / attacking station) , dock at the closest station, ask player for help and wait for instructions.
- if it's targetted at any moment (not attacked yet) or enemy is close and thus probability of being attacked and destroyed is high, dock at the closest station, ask player for help and wait for instructions.
Larger the ship - longer the "safe" distance to enemies due to low movement speed (it's easier to catch up with larger ship) = docking at the closest station in the most cases. I don't mind spending a few minutes manually flying an L trader out of sector or letting it sit in a dock for a while. It's much better than losing it, as it's way too expensive to get lost to some silly pirates or Xenon. I want to be reported about each case so I could react and prevent disaster.
If it's too complex and difficult to implement all above examples (+ those I haven't mentioned) , I'm sure reporting and docking aren't difficult, even if it was to be for L only, that could be the start, even brute force and minimalistic solutions are better than losing millions of credits and valuable time (the last auto save was 30 minutes or an hour ago, you've lost a few L traders, you are about to rage quit...).
[MOD REQUEST]Basic survival logic - AI
The place to discuss scripting and game modifications for X4: Foundations.
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
Return to “X4: Foundations - Scripts and Modding”
Jump to
- English Forums
- ↳ X4: Foundations
- ↳ X4: Foundations - Spoilers
- ↳ X4: Foundations - Technical Support
- ↳ X4: Foundations - Scripts and Modding
- ↳ Construction Community
- ↳ X Wiki Discussion
- ↳ X Rebirth Universe
- ↳ X Rebirth VR Edition
- ↳ X Rebirth - Technical Support
- ↳ X Rebirth - Scripts and Modding
- ↳ X³: Farnham's Legacy
- ↳ X³: Farnham's Legacy - Scripts and Modding
- ↳ X Trilogy Universe
- ↳ X³: Terran Conflict / Albion Prelude / Farnham's Legacy - Technical Support
- ↳ X³: Terran Conflict / Albion Prelude - Scripts and Modding
- ↳ X³: Reunion, X²: The Threat, X-T and X-BTF - Technical Support
- ↳ X³: Reunion - Scripts and Modding
- ↳ X²: The Threat - Scripts and Modding
- ↳ Creative Universe
- ↳ Off Topic English
- Deutschsprachige Foren
- ↳ X4: Foundations
- ↳ X4: Foundations - Spoilers
- ↳ X4: Foundations - Technische Unterstützung
- ↳ X4: Foundations - Scripts und Modding
- ↳ X Rebirth Universum
- ↳ X Rebirth VR Edition
- ↳ X Rebirth - Technische Unterstützung
- ↳ X Rebirth - Scripts und Modding
- ↳ X³: Farnham's Legacy
- ↳ X³: Farnham's Legacy - Scripts und Modding
- ↳ X Trilogie Universum
- ↳ X³: Terran Conflict / Albion Prelude / Farnham's Legacy - Technische Unterstützung
- ↳ X³: Terran Conflict / Albion Prelude - Scripts und Modding
- ↳ X³: Reunion, X²: Die Bedrohung, X-T und X-BTF - Technische Unterstützung
- ↳ X³: Reunion - Scripts und Modding
- ↳ X²: Die Bedrohung - Scripts und Modding
- ↳ Kreative Zone
- ↳ Off Topic Deutsch
- Forum Français
- ↳ X4: Foundations
- ↳ Support et Aide pour X4: Foundations
- ↳ Script et Modding pour X4: Foundations
- ↳ L'Univers X Rebirth
- ↳ Support et Aide pour X Rebirth
- ↳ Script et Modding pour X Rebirth
- ↳ Support et Aide pour la Trilogie X
- ↳ L'Univers de la Trilogie X
- ↳ Script et Modding pour la Trilogie X
- ↳ Off Topic Français
- Forum Italiano
- ↳ X4: Foundations
- ↳ Supporto Tecnico per X4: Foundations
- ↳ Script e Modding per X4: Foundations
- ↳ L'Universo di X Rebirth
- ↳ Script e Modding per X Rebirth
- ↳ Supporto Tecnico per X Rebirth
- ↳ L'Universo della Trilogia di X
- ↳ Script e Modding per la Trilogia di X
- ↳ Supporto Tecnico per la Trilogia di X
- ↳ Off Topic Italiano
- Polskie Fora
- ↳ Polskie / Polish X-Forum
- ↳ Polskie / Polish Off Topic
- Other Languages
- ↳ Česky / Czech X-Forum
- ↳ Dansk / Danish X-Forum
- ↳ Español / Spanish X-Forum
- ↳ Nederlands / Dutch X-Forum
- ↳ Português / Portuguese X-Forum
- ↳ Русский / Russian X-Forum
- DevNet: General
- ↳ MSCI Reference
- DevNet: X4: Foundations
- ↳ X4: Foundations - Public Beta Feedback
- DevNet: X Rebirth
- ↳ XR - Technical Troubleshooting