Anyone know the name and location of the file that determines size of ship equipment?

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

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

Vaeo
Posts: 234
Joined: Wed, 27. May 09, 08:03
x4

Anyone know the name and location of the file that determines size of ship equipment?

Post by Vaeo »

I wanted to mod destroyers to mostly only be able to use heavy turrets in place of their usual Ms. But I'm having trouble finding the file that govorns what size of weapon a craft can use.

Anyone know where that might be and what it's called? I have guesses. But they look dubious at best.
A.Persyn
Posts: 121
Joined: Sun, 14. Mar 10, 13:14
x3tc

Re: Anyone know the name and location of the file that determines size of ship equipment?

Post by A.Persyn »

At the top of the ship's macro page, the file lists the component that it is built on. (\assets\units\size_l\macros\ship_arg_l_destroyer_01_a_macro.xml)
For ship_arg_l_destroyer_01_a_macro.xml it is:

Code: Select all

<component ref="ship_arg_l_destroyer_01" />
The file is located one directory above the macros folder: \assets\units\size_l\ship_arg_l_destroyer_01.xml.
That file lists all the connection points for the ship model.
Connections have tags that determine what that slot is compatible with.

Code: Select all

<connection name="con_turret_005" group="group_mid_down_left " tags="turret medium standard missile hittable ">
Change the tag from medium to large or add large as another tag to increase the options.

Return to “X4: Foundations - Scripts and Modding”