Custom Capital ship Default loadout setting?

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

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

u571x15
Posts: 17
Joined: Fri, 28. Feb 14, 11:00
x4

Custom Capital ship Default loadout setting?

Post by u571x15 »

I modded a custom argon destroyer and some custom weapons,
Using a spawn ship script, the ship spawns but with a weird loadout.
I then checked the Xeon destroyer, which has a

Code: Select all

 <loadouts>
        <loadout id="default">
in the ship_xen_xl_destroyer_01_a_macro.xml, this forces the ship to spawn with a speacific loadout.
I copied the scripts...my loadout spawn correctly....but.... the ship won't be able to be refitted in any shipyard...

Is there any other way then

Code: Select all

<loadout id="default">
? Maybe setting a custom "loadout id" for the ship??
Did try adding a loadout script in the ship-spawning script but it doesn't work.
aftokinito
Posts: 229
Joined: Sun, 30. Mar 08, 17:29
x4

Re: Custom Capital ship Default loadout setting?

Post by aftokinito »

Xenon are not representative of how things are done properly. Please, don't hardcode your loadout into the macro.
Instead, use the loadouts.xml and loadoutrules.xml files from libraries.

Return to “X4: Foundations - Scripts and Modding”