(modded) Ship disappears right after construction

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

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

Post Reply
Max Bain
Posts: 1463
Joined: Wed, 27. Jun 18, 19:05
x3ap

(modded) Ship disappears right after construction

Post by Max Bain » Fri, 1. Nov 19, 19:06

Hi,

I dont know what I am doing wrong. I have created a new ship with a XR ship part. Everything seems ok, I can see the ship in the ship yard and I can equip it. When I buy the ship, it starts to build but I can not see the textures of the ship, just the textures of the modules (in ship fitting window the textures are fine).
Then as soon as the ship is beeing built, the ship is visible for a second but then it disappears.

In the log file I see this:

Code: Select all

Failed to connect component 'units_tel_battleship_macro' to 'zone002_cluster_14_sector001_macro'. Child template connection not specified
The nodes seem ok to me:
Spoiler
Show

I created the .dae file with the XR tool without any error.

<connection name="container" tags="contents" value="0" optional="0"/>
<connection name="position" tags="position" value="1" optional="1"/>
<connection name="space" tags="destructible">
<offset/>
</connection>

<connection name="Connection02" tags="part">
<parts>
<part name="detail_s_main">
<size>
<max x="400.957" y="435.207" z="165.187" />
<center x="0" y="0" z="4.45274" />
</size>
<lods>
<lod index="0">
<materials>
<material id="1" ref="argon.ar_hulls_02" />
<material id="2" ref="argon.ar_hulls_01" />
<material id="3" ref="effects.gradient_white" />
</materials>
</lod>
</lods>
</part>
</parts>
<offset>
<position x="-0.000000" y="0.000015" z="0.000000" />
</offset>
</connection>
<connection name="Connection01" tags="part">
<parts>
<part name="part_main">
<size>
<max x="391.239" y="412.041" z="170.319" />
<center x="0" y="0" z="-2.481" />
</size>
<lods>
<lod index="0">
<materials>
<material id="1" ref="argon.ar_hulls_02" />
<material id="2" ref="argon.ar_hulls_01" />
</materials>
</lod>
<lod index="1">
<materials>
<material id="1" ref="argon.ar_hulls_01" />
<material id="2" ref="argon.ar_hulls_02" />
</materials>
</lod>
<lod index="2">
<materials>
<material id="1" ref="argon.ar_hulls_01" />
<material id="2" ref="argon.ar_hulls_02" />
</materials>
</lod>
<lod index="3">
<materials>
<material id="1" ref="argon.ar_hulls_02" />
</materials>
</lod>
</lods>
</part>
</parts>
<offset>
<position x="-0.000000" y="0.000015" z="0.000000" />
</offset>
</connection>
<connection name="Connection03" tags="part">
<parts>
<part name="detail_xs_main">
<size>
<max x="392.207" y="429.948" z="169.162" />
<center x="0" y="0" z="3.63824" />
</size>
<lods>
<lod index="0">
<materials>
<material id="1" ref="argon.ar_hulls_02" />
<material id="2" ref="argon.ar_hulls_01" />
<material id="3" ref="effects.gradient_white" />
</materials>
</lod>
</lods>
</part>
</parts>
<offset>
<position x="-0.000000" y="0.000015" z="0.000000" />
</offset>
</connection>

Can anyone help me?
XR Ship Pack (adds several ships from XR) Link
Weapon Pack (adds several new weapons) Link
Economy Overhaul (expands the X4 economy with many new buildings) Link
X4 Editor (view stats of objects and make your own mod within a few clicks) Link

Max Bain
Posts: 1463
Joined: Wed, 27. Jun 18, 19:05
x3ap

Re: (modded) Ship disappears right after construction

Post by Max Bain » Fri, 1. Nov 19, 23:17

This is fixed.

space node has to be replaced with this node:

Code: Select all

			<connection name="space" tags="ship ship_xl">
				<offset/>
			</connection>
UniTrader gave also me this script to make the build animation work:

Code: Select all

<diff>
  <!-- replacing Original Shader "XU_surface_test.fx" with currently used "P1_complex_surface.fx" for Argon legacy Textures-->
  <replace sel="/*/collection[@name='argon']/material[@name='ar_hulls_01']/@shader">P1_complex_surface.fx</replace>
  <replace sel="/*/collection[@name='argon']/material[@name='ar_hulls_02']/@shader">P1_complex_surface.fx</replace>
</diff>
XR Ship Pack (adds several ships from XR) Link
Weapon Pack (adds several new weapons) Link
Economy Overhaul (expands the X4 economy with many new buildings) Link
X4 Editor (view stats of objects and make your own mod within a few clicks) Link

Post Reply

Return to “X4: Foundations - Scripts and Modding”