Any way to remove broken station?

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

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

User avatar
alexalsp
Posts: 1820
Joined: Fri, 18. Jul 14, 05:28
x4

Re: Any way to remove broken station?

Post by alexalsp » Sat, 2. Jul 22, 18:35

euclid wrote:
Sat, 2. Jul 22, 14:30
ScandyNav wrote:
Thu, 30. Jun 22, 00:03
euclid wrote:
Wed, 29. Jun 22, 23:29

Did you name the file DestroyGuidanceTarget.xml ?

Cheers Euclid
No, at first not. But now i've renamed it and the result is the same: stations, which i choose as guidance, not become destroyed, any station. Nothing is happening with this bugged wreck.
Sorry, there was a typo in the code (now corrected). Originally it was

Code: Select all

<cue name="DestroyGiudanceTargetTrigger" instantiate="true" namespace="this">
but it (obvious now) should read

Code: Select all

<cue name="DestroyGuidanceTargetTrigger" instantiate="true" namespace="this">
Please try again.

Cheers Euclid
Does not work.

Code: Select all

[=ERROR=] 1760084.47 Error in MD cue md.DestroyGuidanceTarget.DestroyGuidanceTargetTrigger<inst:1f04ab>: Property lookup failed: event.parameter2
* Expression: event.parameter2.{1}
* Action: <destroy_object>, line 11
[General] 1760084.47 ======================================
[General] 1760084.47 ======================================
[=ERROR=] 1760084.47 Error in MD cue md.DestroyGuidanceTarget.DestroyGuidanceTargetTrigger<inst:1f04ab>: Evaluated value 'null' is not of type component
* Expression: event.parameter2.{1}
* Action: <destroy_object>, line 11
[General] 1760084.47 ======================================


User avatar
alexalsp
Posts: 1820
Joined: Fri, 18. Jul 14, 05:28
x4

Re: Any way to remove broken station?

Post by alexalsp » Sat, 2. Jul 22, 18:48

ScandyNav wrote:
Wed, 29. Jun 22, 17:54
All of these old mods are small cosmetic ones, such as disable chair sound, increase LOD, or skins. Plus couple of DeadAir Jobs and Ware, which he said should work properly with 5.10.

There are a lot of errors in the log.

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13289
Joined: Sun, 15. Feb 04, 20:12
x4

Re: Any way to remove broken station?

Post by euclid » Sat, 2. Jul 22, 19:07

Thanks alexalsp, I'll look into it ;-)

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13289
Joined: Sun, 15. Feb 04, 20:12
x4

Re: Any way to remove broken station?

Post by euclid » Sat, 2. Jul 22, 19:37

Another typo

Code: Select all

<destroy_object object="event.param2.{1}"/>
sorry :oops:

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

User avatar
alexalsp
Posts: 1820
Joined: Fri, 18. Jul 14, 05:28
x4

Re: Any way to remove broken station?

Post by alexalsp » Sat, 2. Jul 22, 22:07

euclid wrote:
Sat, 2. Jul 22, 19:37
Another typo

Code: Select all

<destroy_object object="event.param2.{1}"/>
sorry :oops:

Cheers Euclid
The station has been removed.
ScandyNav wrote:
Wed, 29. Jun 22, 17:54
DestroyGuidanceTarget.xml

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<mdscript name="DestroyGuidanceTarget" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="md.xsd">
 <cues>
     <cue name="DestroyGuidanceTargetTrigger" instantiate="true" namespace="this">
		<conditions>
			 <event_object_signalled object="player.entity" param="'set guidance'" />
		</conditions>
		<actions>
			<do_if value="@event.param2.{1}">
                             <do_if value="not event.param2.{1}.isclass.zone">
								 <destroy_object object="event.param2.{1}"/>
                             </do_if>
                        </do_if>
                 </actions>
     </cue>
 </cues>
</mdscript>

1) Just in case, cancel the laid route.
2) If the route is not laid, save the script and load the game.
3) Set the guidance to the station from the map, it will be deleted.
4) Save the game and delete the script.
5) Load up the game.

Save File


Say thanks to Euclid...

:D

ScandyNav
Posts: 321
Joined: Wed, 6. Nov 02, 20:31
x4

Re: Any way to remove broken station?

Post by ScandyNav » Sun, 3. Jul 22, 15:59

euclid wrote:
Sat, 2. Jul 22, 19:37
Another typo
alexalsp wrote:
Sat, 2. Jul 22, 22:07
The station has been removed.
Yes, it worked really well and fast. Thank you both.

Post Reply

Return to “X4: Foundations - Scripts and Modding”