[HELP] Surface Objects not showing in Building Menu

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

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

Post Reply
JasonX2000
Posts: 153
Joined: Thu, 2. Oct 14, 15:04
x4

[HELP] Surface Objects not showing in Building Menu

Post by JasonX2000 » Wed, 4. May 22, 18:23

Hello,

i have a mod, where you can build your own K and I Ships and Surface Parts of Xenon on all other Ships and also
Surface Parts from all factions on Xenon Ships.

The mod worked finde pre 5.0

But since 5.0 neither are the parts from the factions showing up for building on a Xenon Capital nor can i build
Surface Parts on other Capital ships.

Also for S Ships, the Lasers from the xenon are not showing up in the building list.
I checked wares, baskets, waregroups,components and macron indexes the macros themself and cannot find any clue what changed with 5.0 to get my mod to work.

I made extra wares for the player usable xenon parts, i made a research tree to unlock the blueprints. It says, i did unlock if i
research the blueprints, but they are not showing up.

Maybe someone has a clue where i should also check, i put hours in checking and tried some fixes without any solution.

thats how my wares are looking like on example xenon s laser:

Code: Select all

<diff>
	<add sel="/wares">
		<!-- ######################################## Weapons ############################################## -->
		<!-- Xenon S Laser -->
		<ware id="weapon_xen_s_laser_01_mk1_jx" name="{20105,1004}" description="{20105,1002}" group="weapons" transport="equipment" volume="1" tags="equipment weapon">
			<price min="778" average="864" max="950"/>
			<production time="4" amount="1" method="default" name="{20206,101}">
				<primary>
					<ware ware="energycells" amount="5"/>
					<ware ware="ore" amount="2"/>
					<ware ware="nividium" amount="20"/>
					<ware ware="weaponcomponents" amount="5"/>
				</primary>
				<research>
					<ware ware="res_highenergyweapons"/>
				</research>
			</production>
			<component ref="weapon_xen_s_laser_01_mk1_jx_macro" amount="1"/>
			<restriction licence="generaluseequipment"/>
			<use threshold="0"/>
			<owner faction="civilian"/>
		</ware>
		<ware ... 
		
and thats the macro i build for the s lasers:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<macros>
  <macro name="weapon_xen_s_laser_01_mk1_jx_macro" class="weapon">
    <component ref="weapon_xen_s_laser_01_mk1_jx" />
    <properties>
      <identification name="{20105,1414}" basename="{20105,1411}" shortname="{20105,1415}" makerrace="xenon" description="{20105,1412}" mk="1" />
      <bullet class="bullet_xen_s_laser_01_mk1_macro" />
      <heat overheat="10000" cooldelay="1.13" coolrate="2000" reenable="9500" />
      <rotationspeed max="101.4" />
      <rotationacceleration max="50.7" />
      <reload />
      <hull integrated="1" />
    </properties>
  </macro>
</macros>
Up until 5.0 it was enough to make it apear in the building list.

macro.xml and components.xml

Code: Select all

macros.xml:
<diff>
    <add sel="/index">
		<entry name="weapon_xen_s_laser_01_mk1_jx_macro" value="extensions\JX_Xenon_Blueprints_SA\assets\props\weaponsystems\standard\macros\weapon_xen_s_laser_01_mk1_jx_macro" />
		...
    </add>
</diff>

components.xml
<diff>
    <add sel="/index">
		<entry name="weapon_xen_s_laser_01_mk1_jx" value="extensions\jx_xenon_blueprints_sa\assets\props\WeaponSystems\standard\weapon_xen_s_laser_01_mk1_jx"/>
		...
    </add>
</diff>
Thank you in advance!
Jason

Post Reply

Return to “X4: Foundations - Scripts and Modding”