[help] Convert carrier into battleship

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

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

Eagle_Four
Posts: 231
Joined: Wed, 6. Nov 02, 20:31
x3

[help] Convert carrier into battleship

Post by Eagle_Four » Sat, 1. Jul 23, 06:43

Hi,

I want to convert a mod ship (Valhalla Mk1) from the Rise of the Osian Raider mod into a battleship.
The type is 'battleship', but it has the properties of a carrier.

This causes the Supply function to appear in the Ship Context menu, but the function is not executed.
I would like to fix this bug, as the mod author has not responded in a while.

I have removed this entry to remove the carrier specific supply cargo space.(ror_valhalla_mk1_macro.xml):

Code: Select all

<connection ref="con_storage01">
        <macro ref="storage_tel_xl_resupplier_01_a_macro" cjavascript-event-stripped"ShipConnection" />
</connection>
This works so far.

But how do I remove the Supply Context Menu entry?
In other words, what other changes do I need to make to get a full conversion from carrier to battleship so that carrier properties are no longer present?

Eagle_Four
Posts: 231
Joined: Wed, 6. Nov 02, 20:31
x3

Re: [help] Convert carrier into battleship

Post by Eagle_Four » Sat, 1. Jul 23, 08:35

I'll answer my own question.

I have to this entry:

Code: Select all

	  <connection ref="con_buildmodule">
        <macro ref="buildmodule_gen_carrier_macro" connection="object" />
      </connection>

swap with this one:

Code: Select all

		<connection ref="con_storage01">
			<macro ref="storage_arg_xl_carrier_01_a_macro" connection="ShipConnection" />
		</connection>

Return to “X4: Foundations - Scripts and Modding”