[MOD] Remove/Destroy/Kill ALL Civillian Ships & Taxis (UPDATED w/Cockpit/MinimalHUD)

The place to discuss scripting and game modifications for X³: Reunion.

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

cactus
Posts: 30
Joined: Mon, 1. Mar 04, 12:37
x3tc

[MOD] Remove/Destroy/Kill ALL Civillian Ships & Taxis (UPDATED w/Cockpit/MinimalHUD)

Post by cactus » Tue, 29. Nov 05, 00:23

Hi,

Have had a look through the posts but can't find any mention of a script that will remove ALL ships named "(Race) Civilian Ship" or "(Race) Taxi" from ALL/ANY sectors

While I like the realism of the additional sector traffic the lag in some secotrs is getting beyond a joke now that my empire is spreading, which also adds to the lag.

I've wrote a crude script to "destruct:" an object, but its very time consuming to run, choose and destroy each and every "(Race) Civilian Ship" or "(Race) Taxi" in a sector!!

In addition, hopefully the "black hole" bug will be fixed in the next patch too, which should help with the lag!

If you know of a script that can help or if this has already been discussed please point me to the appropriate place. If there isn't one already created I don't mind getting my hands dirty and firing up the script editor if someone could piont me on the right path.

Thanks for your help.

--

FILES:

[MOD] No Civillians
[MOD] No Civillians With Cockpit Callback
[MOD] No Civillians With Minimal HUD
[MOD] No Civillians With Cockpit Callback & Minimal HUD

--

INFO:

Cockpit Callback
Minimal HUD

--
Last edited by cactus on Wed, 21. Dec 05, 20:20, edited 5 times in total.

User avatar
Red Spot
Posts: 3461
Joined: Fri, 4. Feb 05, 13:44
x3

Post by Red Spot » Tue, 29. Nov 05, 00:31

when changing things like that .. you shouldnt need the SE ..

you seem to have to mod the Tjobs file ..

(it could be done via the SE .. but it would be like spawning ships just to remove them .. by modding the Tjobs file they dont even get spawned..)


G

cactus
Posts: 30
Joined: Mon, 1. Mar 04, 12:37
x3tc

Post by cactus » Tue, 29. Nov 05, 00:35

Excellent, thanks for your help, I'll have a poke around in there!

;)

deamoclese99
Posts: 37
Joined: Wed, 16. Nov 05, 08:26
x3

script to rid galaxy of civilian ships, taxis ?

Post by deamoclese99 » Tue, 29. Nov 05, 02:02

Is there a script that can scan every sector in game and remove/destroy all the civilian ships and taxis in the game?

As far as I can tell they serve no purpose other than to make things feel more lively.. but frankly it's killing my frame rate in some sectors...

For example, in my late game now in Argon Prime, for soem reason there's 92 civilian ships, 34 taxis and 30 or so military ships (military is fine.. they serve a purpose to defend the sector).

Can anyone make a script that gets rid of civlian vessels? I'm really suffering because of them :(

User avatar
moggy2
Posts: 5505
Joined: Wed, 6. Nov 02, 20:31
x3ap

Post by moggy2 » Tue, 29. Nov 05, 02:25

ren't most civilian ships controlled by AL plugins? Can they be turned off from the AL menu?

Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22201
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow » Tue, 29. Nov 05, 02:48

no, theres actually nohing in the AL menu other than user scripts that have been added

AFAIK the AL is only accesable when the script editor is enabled

Galaxy613
Posts: 3285
Joined: Tue, 28. Dec 04, 02:19
x4

Post by Galaxy613 » Tue, 29. Nov 05, 03:30

Nope, they are part of the Jobs.txt file IIRC.
10,000 Lightyears of awesomeness

deamoclese99
Posts: 37
Joined: Wed, 16. Nov 05, 08:26
x3

Post by deamoclese99 » Tue, 29. Nov 05, 04:12

I tried using doubleshadow's X3 editor to edit the Jobs.pck but it cant read/open it... how do I edit this file? I want to get rid of civlian ships and taxis :(

Galaxy613
Posts: 3285
Joined: Tue, 28. Dec 04, 02:19
x4

Post by Galaxy613 » Tue, 29. Nov 05, 04:37

If you extracted it to a .txt file just open it up in Notepad, the file isn't that scary. ;)
10,000 Lightyears of awesomeness

cactus
Posts: 30
Joined: Mon, 1. Mar 04, 12:37
x3tc

Post by cactus » Tue, 29. Nov 05, 12:57

Excuse my modding/scripting ignorance, but is it a simple matter of deleting the appropriate lines in the Jobs.txt file to stop them spawning?

i.e.
6101;Taxidienst; ....
6102;Zivilschiff; ....
6103;Taxidienst; ....
6104;Zivilschiff; ....

Thanks.

Galaxy613
Posts: 3285
Joined: Tue, 28. Dec 04, 02:19
x4

Post by Galaxy613 » Tue, 29. Nov 05, 14:43

Hmmm looks like it, delete them and see.
10,000 Lightyears of awesomeness

User avatar
Red Spot
Posts: 3461
Joined: Fri, 4. Feb 05, 13:44
x3

Post by Red Spot » Tue, 29. Nov 05, 14:46

dunno if deleting might be the way to go .. (could be .. but make sure to have a back-up)


G

cactus
Posts: 30
Joined: Mon, 1. Mar 04, 12:37
x3tc

Post by cactus » Tue, 29. Nov 05, 16:43

Hmmm. Doesn't look like deleting the lines is the way to go. I deleted them and started the game with the -r switch but these ships are still spawned.

Thoughts?

Thanks.

User avatar
Red Spot
Posts: 3461
Joined: Fri, 4. Feb 05, 13:44
x3

Post by Red Spot » Tue, 29. Nov 05, 16:54

cactus wrote:Hmmm. Doesn't look like deleting the lines is the way to go. I deleted them and started the game with the -r switch but these ships are still spawned.

Thoughts?

Thanks.
started a new game ??

(loads dont work .. cause they already have the ships on the map and are saved with them ..)


G

cactus
Posts: 30
Joined: Mon, 1. Mar 04, 12:37
x3tc

Post by cactus » Tue, 29. Nov 05, 17:19

Yeah, I started a new game for the test.

:(

[EDIT]

Can someone confirm that the -r switch is enabled in this release of X? I ask because it seems that other edits/mods I've made (asteriods etc.) didn't seem to work either.

Galaxy613
Posts: 3285
Joined: Tue, 28. Dec 04, 02:19
x4

Post by Galaxy613 » Tue, 29. Nov 05, 17:37

Put you changes in a mod. Use X2Mod Manager to put the Jobs file into a mod and then do that. I suggest you do not run in raw mode instead you should just use mods, they are so much easier...
10,000 Lightyears of awesomeness

cactus
Posts: 30
Joined: Mon, 1. Mar 04, 12:37
x3tc

Post by cactus » Tue, 29. Nov 05, 18:59

Well... created the mod with the edited (lines deleted) Jobs,txt file, started a new game (with the mod selected) and NO civies/taxis in Argon Prime!

Loaded my last save game, and the ships are there, but have blank names in the sector map list :(

Went to an unexplored sector and NO civies/taxis were spawned, so, the question is, any way to get rid of those that are in the save game (other than going around and killing them manually!) ;)

cactus
Posts: 30
Joined: Mon, 1. Mar 04, 12:37
x3tc

Post by cactus » Tue, 29. Nov 05, 19:08

Actually, I checked a sector using the universe map that has an Adv. Sat present and saw the blank named ships, if you visit that sector then the sector is updated and the ships are removed!

So, looks like this is a winner!

I'll stick the mod on my server if anyone wants a copy.

HTH

Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22201
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow » Tue, 29. Nov 05, 19:13

u could use a script to kill all the ones, as theres none being spawned, u only have to run it once when u first load the game

cactus
Posts: 30
Joined: Mon, 1. Mar 04, 12:37
x3tc

Post by cactus » Tue, 29. Nov 05, 19:29

Cycrow wrote:u could use a script to kill all the ones, as theres none being spawned, u only have to run it once when u first load the game
Good point, but I'll probably visit those sectors anyway so they will update automagically :)

You can get the mod here.

[EDIT]
Thanks to everyone who contributed!

Post Reply

Return to “X³: Reunion - Scripts and Modding”