Make invulnerable stations vulnerable again?

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

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

Post Reply
Hamburglar
Posts: 18
Joined: Sun, 20. May 12, 07:31
x3ap

Make invulnerable stations vulnerable again?

Post by Hamburglar » Sun, 6. Jul 14, 01:01

Hey,

I have this weird thing in my game where 80% of stations in any sector are invulnerable. Like they wont go below 93% hull as if plot protection is on, but instead of a handful, it's 4/5 stations.

Is there any way to de-flag invulnerability for stations using say X3 Editor or the like?

Appreciate any help!

User avatar
JSDD
Posts: 1378
Joined: Fri, 21. Mar 14, 20:51
x3tc

Post by JSDD » Sun, 6. Jul 14, 15:11

... yes, there is a way to make them vulnerable, it can only be done via MD
... are those stations plot-stations, or what mods do you use ??

... if you make a plot-station again vulnerable, it can/will break the plot
=> to make every station in universe vulnerable again, copy & paste this code into a text-file, save it as .xml, and paste the .xml-file in your "director"-folder (in your install-dir, create one if there is no folder named "director")

Code: Select all

<?xml version="1.0" encoding="ISO-8859-1" ?>
<?xml-stylesheet href="director.xsl" type="text/xsl" ?>
<director name="template" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="director.xsd">

  <cues>
    <cue name="whatever">
      <action>
        <do_all>
          <find_station group="this.stations" multiple="1" max="9999">
            <jumps max="99"/>
          </find_station>
          <set_group_invincible group="this.stations" invincible="0"/>
          <remove_group group="this.stations"/>
        </do_all>
      </action>
    </cue>
  </cues>
  
</director>
To err is human. To really foul things up you need a computer.
Irren ist menschlich. Aber wenn man richtig Fehler machen will, braucht man einen Computer.


Mission Director Beispiele

dillpickle
Posts: 1159
Joined: Mon, 3. Nov 08, 14:25
x3tc

Post by dillpickle » Sun, 6. Jul 14, 16:56

There was a fix for this in the 3.1 update of Albion Prelude, that cleared all the invincible stations then reset plot one as necessary.

If you look in Cat04 - addon/director you will find Reset_Invincible_Stations.xml

If you want to run it again you will need to change the cue name, and uncomment out the <find_station>, <set_invincible> lines at the beginning of the file, and <remove_group> at the end (ES used some hard code to remove invincibility, as there will be some slow down whilst the MD runs through all the stations in the universe).

BlueShadow125
Posts: 1
Joined: Tue, 27. Jul 21, 14:46
x4

Re:

Post by BlueShadow125 » Wed, 28. Jul 21, 01:55

dillpickle wrote:
Sun, 6. Jul 14, 16:56
There was a fix for this in the 3.1 update of Albion Prelude, that cleared all the invincible stations then reset plot one as necessary.

If you look in Cat04 - addon/director you will find Reset_Invincible_Stations.xml

If you want to run it again you will need to change the cue name, and uncomment out the <find_station>, <set_invincible> lines at the beginning of the file, and <remove_group> at the end (ES used some hard code to remove invincibility, as there will be some slow down whilst the MD runs through all the stations in the universe).
can you post a example of how it needs to be written in the xml file?

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”