[REQUEST] AI being able to take over neutral sectors

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
Warnoise
Posts: 674
Joined: Mon, 7. Mar 16, 23:47

[REQUEST] AI being able to take over neutral sectors

Post by Warnoise » Tue, 26. Nov 19, 01:18

Hi all,

I noticed some stuff in the game that make no sense so I wonder if they can get fixed by a mod:

-AI doesn't take control neutral sectors
-AI doesn't build stations inside allies sectors


I think if the above points are fixed it would add a lot to the dynamism of the game. If any modder out there finds this idea interesting It would be great if he/she thinks about it!

User avatar
RoverTX
Posts: 1426
Joined: Wed, 16. Nov 11, 18:37
x4

Re: [REQUEST] AI being able to take over neutral sectors

Post by RoverTX » Tue, 26. Nov 19, 05:18

The current behavior can cause an issue if a war sector goes neutral then the war breaks and neither side tries to claim the sector.
Last edited by RoverTX on Sat, 30. Nov 19, 17:48, edited 1 time in total.

XTC0R
Posts: 401
Joined: Sat, 1. Dec 18, 19:58
x4

Re: [REQUEST] AI being able to take over neutral sectors

Post by XTC0R » Tue, 26. Nov 19, 10:40

In my game the Argon took over silent witness very early in the game. If I'm not mistaken is was a neutral sector in the beginning which usually the player is looking to take over.
Now the Argon have a defence station there with 70 missile turrets and 70 L beam turrets. Equiped with 3300 missiles.
So I have to build up a huge fleet to take what belongs to my imperium!!!!

User avatar
Shuulo
Posts: 1629
Joined: Mon, 14. Apr 08, 17:03
x4

Re: [REQUEST] AI being able to take over neutral sectors

Post by Shuulo » Tue, 26. Nov 19, 13:11

XTC0R wrote:
Tue, 26. Nov 19, 10:40
In my game the Argon took over silent witness very early in the game. If I'm not mistaken is was a neutral sector in the beginning which usually the player is looking to take over.
Now the Argon have a defence station there with 70 missile turrets and 70 L beam turrets. Equiped with 3300 missiles.
So I have to build up a huge fleet to take what belongs to my imperium!!!!
I dont think that is possible without a mod, which one are you using?

Warnoise
Posts: 674
Joined: Mon, 7. Mar 16, 23:47

Re: [REQUEST] AI being able to take over neutral sectors

Post by Warnoise » Tue, 26. Nov 19, 14:32

RoverTX wrote:
Tue, 26. Nov 19, 05:18
The current behavior can an issue if a war sector goes neutral than the war breaks and neither side tries to claim the sector.
Exactly what happened in my game. When the sector turne neutral there are no attempted invasions anymore on that sector.


I wonder if that behavior is hard coded..

XTC0R
Posts: 401
Joined: Sat, 1. Dec 18, 19:58
x4

Re: [REQUEST] AI being able to take over neutral sectors

Post by XTC0R » Tue, 26. Nov 19, 15:48

Shuulo wrote:
Tue, 26. Nov 19, 13:11
XTC0R wrote:
Tue, 26. Nov 19, 10:40
In my game the Argon took over silent witness very early in the game. If I'm not mistaken is was a neutral sector in the beginning which usually the player is looking to take over.
Now the Argon have a defence station there with 70 missile turrets and 70 L beam turrets. Equiped with 3300 missiles.
So I have to build up a huge fleet to take what belongs to my imperium!!!!
I dont think that is possible without a mod, which one are you using?
I disabled most of the mods with 3.0. But this game was started with 2.60 Beta and I think I was using Mysterials AI mods. So it could be the Argon took the sector when I played with his mods. :gruebel:

User avatar
Shuulo
Posts: 1629
Joined: Mon, 14. Apr 08, 17:03
x4

Re: [REQUEST] AI being able to take over neutral sectors

Post by Shuulo » Tue, 26. Nov 19, 17:20

Warnoise wrote:
Tue, 26. Nov 19, 14:32
RoverTX wrote:
Tue, 26. Nov 19, 05:18
The current behavior can an issue if a war sector goes neutral than the war breaks and neither side tries to claim the sector.
Exactly what happened in my game. When the sector turne neutral there are no attempted invasions anymore on that sector.


I wonder if that behavior is hard coded..
Its not, Mysterials faction fix mod makes it so faction try to capture neutral sectors that border enemies, i strongly suggest to install it.

teleportationwars
Posts: 158
Joined: Fri, 12. Jul 19, 14:03

Re: [REQUEST] AI being able to take over neutral sectors

Post by teleportationwars » Wed, 27. Nov 19, 11:59

Is there interest in making a mod, seperate from faction ai, that would make invasions happen in some configurable way?

User avatar
Shuulo
Posts: 1629
Joined: Mon, 14. Apr 08, 17:03
x4

Re: [REQUEST] AI being able to take over neutral sectors

Post by Shuulo » Thu, 28. Nov 19, 09:32

teleportationwars wrote:
Wed, 27. Nov 19, 11:59
Is there interest in making a mod, seperate from faction ai, that would make invasions happen in some configurable way?
If you put it like that we need more info, how can it be really configured?

teleportationwars
Posts: 158
Joined: Fri, 12. Jul 19, 14:03

Re: [REQUEST] AI being able to take over neutral sectors

Post by teleportationwars » Thu, 28. Nov 19, 09:57

Shuulo wrote:
Thu, 28. Nov 19, 09:32
teleportationwars wrote:
Wed, 27. Nov 19, 11:59
Is there interest in making a mod, seperate from faction ai, that would make invasions happen in some configurable way?
If you put it like that we need more info, how can it be really configured?
Any invasion script would be:
1) listen for a war
2) activate or takeover some jobs
3) listen for the construction of those jobs
4) target some sector
5) at a minimum, ask those jobs to patrol the target sector until all the stations you care about are dead
6) listen for some condition to construct new stations of the invading faction
7) wait for a timer or the end of the war to come to cleanup your jobs and this instance of the script


Configuration could be pretty much anything. The SIrNukes menu stuff is very flexible. Someone could write their own invasion script that operates however they like with however many elements being exposed to changes.

Off the top of my head:
- the rate or conditions required to invade
- the level of force for both the attacker and defender
- the new stations constructed to own the new sector

Its a weekend project for someone who knows a bit of md but if the faction ai is so unreliable there should be some motivation.

Post Reply

Return to “X4: Foundations - Scripts and Modding”