[Question] AI rebuild key stantions (Wharfs, Shipyards)

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

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

cole2839
Posts: 108
Joined: Tue, 4. Dec 18, 01:43
x4

Re: [Question] AI rebuild key stantions (Wharfs, Shipyards)

Post by cole2839 »

carmaster wrote: Fri, 4. Jan 19, 17:43
cole2839 wrote: Fri, 4. Jan 19, 17:39
carmaster wrote: Fri, 4. Jan 19, 17:37

That's because the AI pathfinding gets completely messed up when trying to approach a macro with no physics collider, it has nothing to do with whether the station is repairable or not.
The result is the same. The station doesn't come back, ever...
The result is NOT the same because the moment they fix the pathfinding, the stations WILL be repaired.
Assuming that is the case, and assuming they fix the bug then we'll have to see if you are correct. Until then, the situation is you can pretty much destroy any station except Kha'ak installations. This includes Warfs and Shipyards.

And to answer the OPs original question, yes the Warfs and Shipyards come back right now if you don't mod build storage to be destroyable.

Originally you told the OP they don't come back. Go back and check your post.
aftokinito
Posts: 229
Joined: Sun, 30. Mar 08, 17:29
x4

Re: [Question] AI rebuild key stantions (Wharfs, Shipyards)

Post by aftokinito »

cole2839 wrote: Fri, 4. Jan 19, 17:49
carmaster wrote: Fri, 4. Jan 19, 17:43
cole2839 wrote: Fri, 4. Jan 19, 17:39

The result is the same. The station doesn't come back, ever...
The result is NOT the same because the moment they fix the pathfinding, the stations WILL be repaired.
Assuming that is the case, and assuming they fix the bug then we'll have to see if you are correct. Until then, the situation is you can pretty much destroy any station except Kha'ak installations. This includes Warfs and Shipyards.

And to answer the OPs original question, yes the Warfs and Shipyards come back right now if you don't mod build storage to be destroyable.

Originally you told the OP they don't come back. Go back and check your post.
Maybe YOU should go back and check, I've been telling the same thing over and over with different words.
cole2839
Posts: 108
Joined: Tue, 4. Dec 18, 01:43
x4

Re: [Question] AI rebuild key stantions (Wharfs, Shipyards)

Post by cole2839 »

carmaster wrote: Wed, 2. Jan 19, 10:12 No, both the AI and the player can only build using the "factory" buildset. All the stations that don't use that buildset are built by the god engine when the universe is generated. God spawned stations are supposed to be damageable but indestructible, so something weird definitely happened in your save.
Seems to indicate they won't rebuild since you say NO as the first word in the sentence when the OP asked if the stations rebuild.


:gruebel:
aftokinito
Posts: 229
Joined: Sun, 30. Mar 08, 17:29
x4

Re: [Question] AI rebuild key stantions (Wharfs, Shipyards)

Post by aftokinito »

cole2839 wrote: Fri, 4. Jan 19, 18:05
carmaster wrote: Wed, 2. Jan 19, 10:12 No, both the AI and the player can only build using the "factory" buildset. All the stations that don't use that buildset are built by the god engine when the universe is generated. God spawned stations are supposed to be damageable but indestructible, so something weird definitely happened in your save.
Seems to indicate they won't rebuild since you say NO as the first word in the sentence when the OP asked if the stations rebuild.


:gruebel:
My point was that the AI will not rebuild the buildmodules in any case.
cole2839
Posts: 108
Joined: Tue, 4. Dec 18, 01:43
x4

Re: [Question] AI rebuild key stantions (Wharfs, Shipyards)

Post by cole2839 »

carmaster wrote: Fri, 4. Jan 19, 18:09
cole2839 wrote: Fri, 4. Jan 19, 18:05
carmaster wrote: Wed, 2. Jan 19, 10:12 No, both the AI and the player can only build using the "factory" buildset. All the stations that don't use that buildset are built by the god engine when the universe is generated. God spawned stations are supposed to be damageable but indestructible, so something weird definitely happened in your save.
Seems to indicate they won't rebuild since you say NO as the first word in the sentence when the OP asked if the stations rebuild.


:gruebel:
My point was that the AI will not rebuild the buildmodules in any case.
I doubt the build module was destroyed unless the OP modded his game. If he did mod his game, then the stations won't rebuild because of the build module being destroyed.

So in either case, my answer is correct.
aftokinito
Posts: 229
Joined: Sun, 30. Mar 08, 17:29
x4

Re: [Question] AI rebuild key stantions (Wharfs, Shipyards)

Post by aftokinito »

cole2839 wrote: Fri, 4. Jan 19, 18:11
carmaster wrote: Fri, 4. Jan 19, 18:09
cole2839 wrote: Fri, 4. Jan 19, 18:05

Seems to indicate they won't rebuild since you say NO as the first word in the sentence when the OP asked if the stations rebuild.


:gruebel:
My point was that the AI will not rebuild the buildmodules in any case.
I doubt the build module was destroyed unless the OP modded his game. If he did mod his game, then the stations won't rebuild because of the build module being destroyed.

So in either case, my answer is correct.
Your conclusion is correct as of 1.50 but your premises are not.
BlackRain
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 7465
Joined: Mon, 15. Dec 03, 18:53
x4

Re: [Question] AI rebuild key stantions (Wharfs, Shipyards)

Post by BlackRain »

aftokinito wrote: Fri, 4. Jan 19, 17:43
cole2839 wrote: Fri, 4. Jan 19, 17:39
carmaster wrote: Fri, 4. Jan 19, 17:37

That's because the AI pathfinding gets completely messed up when trying to approach a macro with no physics collider, it has nothing to do with whether the station is repairable or not.
The result is the same. The station doesn't come back, ever...
The result is NOT the same because the moment they fix the pathfinding, the stations WILL be repaired.
I think your understanding of this is wrong. Or I should say you are both wrong and right but not for the reason you are thinking.
This is the conclusion I have come to

1) The stations that are spawned by god.xml can be destroyed.
2) The stations that are spawned by god.xml disappear
3) However, since the god.xml says the station should be there in that exact spot (for important stations like shipyards/wharfs/equipment docks) they are rebuilt in the exact same spot and the god.xml seems to be read on loading a game.
4) So, the god spawned station can be destroyed, will disappear and as long as you continue to play without exiting or loading it will not be rebuilt.
5) Once you exit the game and then load up your save later, or maybe just load your save at anytime the god.xml says the station should be there and so it will at some point be rebuilt.

This could leave you to believe what you were saying but you are wrong in your assumptions although essentially a similar thing is happening. The way Rebirth handled this was different in some ways because all of the stations in Rebirth were invulnerable and could not be destroyed at all. In order to make them be able to be destroyed, we had to create a confusing bit of code to allow it to happen and to make sure they didn't reappear.

This can easily be tested. Also, I played around with it and removed the Argon shipyard from god.xml and then spawn one in the same spot using a mdscript. The station gets destroyed just fine and is gone for good.

Another issue with this is that they can pretty much call on any CV to rebuild so even if you entirely destroyed the argon faction and every argon ship you saw, they could still rebuild by calling in other faction cv's. The only thing I am not sure of is if the existing factionlogic that builds new stations also can handle the building of shipyards or did they just rely on the god.xml to handle that by setting a placemarker to build in a certain place.
celludriel
Posts: 163
Joined: Thu, 12. Sep 13, 11:29
x4

Re: [Question] AI rebuild key stantions (Wharfs, Shipyards)

Post by celludriel »

I can confirm what BlackRain is saying. Anything you spawn by md script and destroy will not come back. god.xml is another matter. I've been working on an expansion script for my experiment galaxy and noticed all this behavior. All stations spawned by my expansion script once destroyed ... were gone unless I forcibly asked to build another one.
Sanshy
Posts: 102
Joined: Thu, 14. Mar 19, 16:07
x4

Re: [Question] AI rebuild key stantions (Wharfs, Shipyards)

Post by Sanshy »

I just destroyed the Wharf and the Shipyard in Atiya s Misfortune. Will the Xenon rebuild it or not?

an other thing is, despite I totaly wipe out Xenon from Atiya and Faulty logic, they still try to rebuild Defence platforms... no matter what lol

Return to “X4: Foundations - Scripts and Modding”