[Question] How can I add a wreckage to my custom ship?

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

[Question] How can I add a wreckage to my custom ship?

Post by Max Bain » Mon, 9. Dec 19, 17:52

I have two custom made ships but when they explode, there is no visible wreckage. The wreckage seems to be there because there is an invisible wall where the wreckage should be, but I can not see anything.

The component looks like this:

Code: Select all

<connection name="Connection01" tags="part">
<parts>
	<part name="part_front" wreck="part_main_wreck">>
		<size>
			<max x="178.889" y="255.161" z="964.237" />
			<center x="7.08981" y="83.3017" z="-285.786" />
		</size>
		<lods>
			<lod index="3">
				<materials>
					<material id="1" ref="argon.ar_hullpattern_05b" />
				</materials>
			</lod>
			<lod index="2">
				<materials>
					<material id="1" ref="argon.ar_unique_03" />
					<material id="2" ref="argon.ar_trims_01" />
					<material id="3" ref="argon.ar_windows_01" />
					<material id="4" ref="argon.ar_hullpattern_05b" />
					<material id="5" ref="argon.ar_trims_01b" />
				</materials>
			</lod>
			<lod index="1">
				<materials>
					<material id="1" ref="argon.ar_unique_03" />
					<material id="2" ref="argon.ar_trims_01" />
					<material id="3" ref="argon.ar_windows_01" />
					<material id="4" ref="argon.ar_hullpattern_05b" />
					<material id="5" ref="argon.ar_trims_01b" />
				</materials>
			</lod>
			<lod index="0">
				<materials>
					<material id="1" ref="generic.generic_alphatrims_01" />
					<material id="2" ref="argon.ar_unique_03" />
					<material id="3" ref="argon.ar_trims_01" />
					<material id="4" ref="argon.ar_windows_01" />
					<material id="5" ref="argon.ar_trims_01b" />
					<material id="6" ref="argon.ar_hullpattern_05b" />
				</materials>
			</lod>
		</lods>
	</part>
	</parts>
	<offset>
		<position x="7.089900" y="-37.212090" z="514.359924" />
	</offset>
</connection>
In the data folder of the ship I have placed a copy of the lod0 file as "part_main_wreck-lod0" and "part_main_wreck-collision".

Anyone knows what to do?
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”