[Hack] Tired of 'Food Trader Tethys'?

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

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

Post Reply
graphicboy
Posts: 718
Joined: Wed, 3. Jul 13, 03:21
xr

[Hack] Tired of 'Food Trader Tethys'?

Post by graphicboy » Sat, 18. May 19, 23:26

Back up your saves.

Some folks (myself included) have complained about hordes of PAR/HOP 'Food Trader Tethys' killing performance, since they seem to build endlessly.

This mod kills them.

https://anonfile.com/L5i3e5sen5/BSCleaner_rar

Just select a ship you're not doing something with, and set its default action to "BS Cleaner".

I recommend NOT running it permanently. :wink:

graphicboy
Posts: 718
Joined: Wed, 3. Jul 13, 03:21
xr

Re: [Hack] Tired of 'Food Trader Tethys'?

Post by graphicboy » Sun, 19. May 19, 04:42

Update. Restructured with a more comprehensive list, as far as I can gather. I suggest you review the code:

https://anonfile.com/97Pcf3san1/BSCleaner_rar

Code: Select all

		<append_to_list name="$killList" exact="'HOP Food Trader Tethys Sentinel'" />
		<append_to_list name="$killList" exact="'PAR Agricultural Trader Hermes Sentinel'" />
		<append_to_list name="$killList" exact="'HOP High-Tech Trader Hermes Sentinel'" />
		<append_to_list name="$killList" exact="'PAR Food Trader Tethys Vanguard'" />
		<append_to_list name="$killList" exact="'PAR Agricultural Trader Hermes Vanguard'" />
		<append_to_list name="$killList" exact="'PAR High-Tech Trader Hermes Vanguard'" />
		<append_to_list name="$killList" exact="'PAR High-Tech Trader Tethys Vanguard'" />
Add/remove to your own needs.

graphicboy
Posts: 718
Joined: Wed, 3. Jul 13, 03:21
xr

Re: [Hack] Tired of 'Food Trader Tethys'?

Post by graphicboy » Sun, 19. May 19, 05:20

This can also be easily adapted to wipe out every ship in the universe that isn't yours (use the version immediately above). Replace the inner the killList loop with:

Code: Select all

<do_if value="$ship.trueowner != faction.player">
	<append_to_list name="$kill" exact="$ship" />
</do_if>
I just opted to do this (had ~3300 NPC ships running around). Now back to full FPS - shock, I know.

graphicboy
Posts: 718
Joined: Wed, 3. Jul 13, 03:21
xr

Re: [Hack] Tired of 'Food Trader Tethys'?

Post by graphicboy » Sun, 19. May 19, 07:14

One step further. Want to completely reset your universe? Add this in:

Code: Select all

			<find_station name="$knownStations" space="player.galaxy" multiple="true" />
			<do_all exact="$knownStations.count" counter="$i">
				<set_value name="$station" exact="$knownStations.{$i}" />
				
				<do_if value="$station.trueowner != faction.player">
					<destroy_object explosion="false" object="$station" />
				</do_if>
				
				<remove_value name="$station" />
			</do_all>
I strongly suggest you have a shipyard that's capable of building builder ships.

graphicboy
Posts: 718
Joined: Wed, 3. Jul 13, 03:21
xr

Re: [Hack] Tired of 'Food Trader Tethys'?

Post by graphicboy » Mon, 20. May 19, 02:49

On a completely unrelated note ... after completely resetting my universe (above), I now have Kha'ak invasions...?

They warp in way above/below the ecliptic, half dozen at a time. I'm going to call that an unfortunate side effect.

Post Reply

Return to “X4: Foundations - Scripts and Modding”