Help with Mod.. Something is wrong but i dont know what

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

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

DmdKt
Posts: 21
Joined: Fri, 4. Mar 16, 15:43
x4

Help with Mod.. Something is wrong but i dont know what

Post by DmdKt »

This little Mod should help me building a bit faster but i cant get it to work. Can someone take a look an help me to find the reason? I tried for days and failed.

https://mega.nz/folder/ySxF2T5a#QmaKMPcqB2XxB-8DpAgzFA

I took a look on other mods but it feels they do the same and work easily.

Maybe my assumption was wrong that i can use this mod without proper models like i already do in other games.
Last edited by DmdKt on Tue, 6. Aug 24, 22:32, edited 1 time in total.
ApoxNM
Posts: 783
Joined: Wed, 5. Dec 18, 06:17
x4

Re: Help with Mod.. Something is wrong but i dont know what

Post by ApoxNM »

DmdKt wrote: Fri, 2. Aug 24, 20:17 This little Mod should help me building a bit faster but i cant get it to work. Can someone take a look an help me to find the reason? I tried for days and failed.

https://mega.nz/folder/ySxF2T5a#QmaKMPcqB2XxB-8DpAgzFA

I took a look on other mods but it feels they do the same and work easily.

Maybe my assumption was wrong that i can use this mod without proper models like i already do in other games.
Could you explain what you are trying to do and what the mod does?
DmdKt
Posts: 21
Joined: Fri, 4. Mar 16, 15:43
x4

Re: Help with Mod.. Something is wrong but i dont know what

Post by DmdKt »

This mod consists or should consist of physically non-existent connecting parts.
Just snap points without bodies, so to speak.

However, I don't know whether this is even possible in X4.

In the meantime, the latest version has been uploaded where you can at least buy the blueprints and in which many attempts are commented out.

In the end, however, nothing is displayed ingame and the error message remains in the debug log
Spoiler
Show

Code: Select all

[=ERROR=] 794612.79 Cannot find XML file component macro 'ICM_6arms_macro' in index 'index\macros'
[General] 794612.79 ======================================
[General] 794612.79 ======================================
[=ERROR=] 794612.79 Attempting to add BlueprintLibraryEntry for ware  ICM 6 Arms (module_ICM_6arms) which does not have a corresponding macro!
[General] 794612.79 ======================================
[General] 794612.79 ======================================
[=ERROR=] 794612.79 Cannot find XML file component macro 'ICM_cross_macro' in index 'index\macros'
[General] 794612.79 ======================================
[General] 794612.79 ======================================
[=ERROR=] 794612.79 Attempting to add BlueprintLibraryEntry for ware  ICM Cross (module_ICM_cross) which does not have a corresponding macro!
DmdKt
Posts: 21
Joined: Fri, 4. Mar 16, 15:43
x4

Re: Help with Mod.. Something is wrong but i dont know what

Post by DmdKt »

Thats the macros.xml, seen both versions in working mod
Spoiler
Show

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<diff>
	<add sel = "/index">
	<entry name="ICM_3arms_macro" value="extensions\InvConnectionModules\assets\structures\connectionmodules\macros\ICM_3arms_macro" />
	<entry name="ICM_6arms_macro" value="extensions\InvConnectionModules\assets\structures\connectionmodules\macros\ICM_6arms_macro" />
	<entry name="ICM_8arms_macro" value="extensions\InvConnectionModules\assets\structures\connectionmodules\macros\ICM_8arms_macro" />
	<entry name="ICM_cross_macro" value="extensions\InvConnectionModules\assets\structures\connectionmodules\macros\ICM_cross_macro" />
	<entry name="ICM_cross_offset_macro" value="extensions\InvConnectionModules\assets\structures\connectionmodules\macros\ICM_cross_offset_macro" />
	<entry name="ICM_cross_triplearms_macro" value="extensions\InvConnectionModules\assets\structures\connectionmodules\macros\ICM_cross_triplearms_macro" />
	<entry name="ICM_crossT_macro" value="extensions\InvConnectionModules\assets\structures\connectionmodules\macros\ICM_crossT_macro" />	
	</add>
</diff>

<!--<index>
	<entry name="ICM_3arms_macro" value="extensions\InvConnectionModules\assets\structures\connectionmodules\macros\ICM_3arms_macro" />
	<entry name="ICM_6arms_macro" value="extensions\InvConnectionModules\assets\structures\connectionmodules\macros\ICM_6arms_macro" />
	<entry name="ICM_8arms_macro" value="extensions\InvConnectionModules\assets\structures\connectionmodules\macros\ICM_8arms_macro" />
	<entry name="ICM_cross_macro" value="extensions\InvConnectionModules\assets\structures\connectionmodules\macros\ICM_cross_macro" />
	<entry name="ICM_cross_offset_macro" value="extensions\InvConnectionModules\assets\structures\connectionmodules\macros\ICM_cross_offset_macro" />
	<entry name="ICM_cross_triplearms_macro" value="extensions\InvConnectionModules\assets\structures\connectionmodules\macros\ICM_cross_triplearms_macro" />
	<entry name="ICM_crossT_macro" value="extensions\InvConnectionModules\assets\structures\connectionmodules\macros\ICM_crossT_macro" />	
</index>-->
One of the components xml
Spoiler
Show

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<components>
  <component name="ICM_3arms" class="connectionmodule">
		<source/>
		<layers>
			<layer>
				<waypoints/>
				<lights/>
			</layer>
		</layers>
     <connections>
		<connection name="container" tags="contents" value="0"/>
		<connection name="position" tags="position" value="1"/>
		<connection name="space" tags="connectionmodule">
				<offset/>
		</connection>
		<connection name="con_snap_01" tags="snap ">
        <offset>
          <position x="0" y="0" z="0" />
          <quaternion qx="5.96e-08" qy="-1.947e-07" qz="3.258e-07" qw="-1" />
        </offset>
		</connection>
		<connection name="con_snap_02" tags="snap ">
        <offset>
          <position x="0" y="0" z="0" />
          <quaternion qx="-6.078e-07" qy="-0.8660254" qz="2.501e-07" qw="-0.4999999" />
        </offset>
		</connection>
		<connection name="con_snap_03" tags="snap ">
        <offset>
          <position x="0" y="0" z="0" />
          <quaternion qx="1.309e-07" qy="0.8660254" qz="-8.143e-07" qw="-0.5000001" />
        </offset>
		</connection>
		<connection name="top" tags="snap ">
        <offset>
          <position x="0" y="0" z="0" />
          <quaternion qx="0.7071068" qy="9.27e-08" qz="3.681e-07" qw="-0.7071067" />
        </offset>
		</connection>
		<connection name="down" tags="snap ">
        <offset>
          <position x="0" y="0" z="0" />
          <quaternion qx="-3.09e-08" qy="0.7071068" qz="-0.7071068" qw="-4.299e-07" />
        </offset>
		</connection>
    </connections>
  </component>
</components>]
and one of the macros
Spoiler
Show

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<macros>
  <macro name="ICM_3arms_macro" class="connectionmodule" >
	<component ref="ICM_3arms" />
    <properties>
      <identification name="{90059,2}" shortname="{90059,1}" makerrace="argon" description="{90059,3}" />
      <build>
        <sets>
          <set ref="factory" />
          <set ref="headquarters_player" />
        </sets>
      </build>
      <hull max="1" />
    </properties>
  </macro>
</macros>
The Wares.xml
Spoiler
Show

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<diff>
  <add sel="/wares">
    <ware id="module_ICM_3arms" name="{90059,2}" description="{90059,3}" transport="container" volume="1" tags="module"><!-- name (id from t file, -->
      <price min="1" average="2" max="3" />
      <production time="1" amount="1" method="default" name="{20206,101}"> <!-- name (20206= production method, 101= production method universal-->
      </production>
      <component ref="ICM_3arms_macro" />
      <restriction licence="station_gen_basic" />
			<owner faction="alliance" />
            <owner faction="antigone" />
            <owner faction="argon" />
            <owner faction="holyorder" />
            <owner faction="ministry" />
            <owner faction="paranid" />
            <owner faction="teladi" />
            <owner faction="trinity" />
            <owner faction="hatikvah" />
            <owner faction="court" />
            <owner faction="freesplit" />
            <owner faction="split" />
            <owner faction="loanshark" />
            <owner faction="scavenger" />
			<owner faction="pioneers" />
            <owner faction="terran" />
    </ware>
    <ware id="module_ICM_6arms" name="{90060,2}" description="{90060,3}" transport="container" volume="1" tags="module">
      <price min="1" average="2" max="3" />
      <production time="1" amount="1" method="default" name="{20206,101}">
      </production>
      <component ref="ICM_6arms_macro" />
      <restriction licence="station_gen_basic" />
			<owner faction="alliance" />
            <owner faction="antigone" />
            <owner faction="argon" />
            <owner faction="holyorder" />
            <owner faction="ministry" />
            <owner faction="paranid" />
            <owner faction="teladi" />
            <owner faction="trinity" />
            <owner faction="hatikvah" />
            <owner faction="court" />
            <owner faction="freesplit" />
            <owner faction="split" />
            <owner faction="loanshark" />
            <owner faction="scavenger" />
			<owner faction="pioneers" />
            <owner faction="terran" />			
    </ware>
    <ware id="module_ICM_8arms" name="{90061,2}" description="{90061,3}" transport="container" volume="1" tags="module">
      <price min="1" average="2" max="3" />
      <production time="1" amount="1" method="default" name="{20206,101}">
      </production>
      <component ref="ICM_8arms_macro" />
      <restriction licence="station_gen_basic" />
			<owner faction="alliance" />
            <owner faction="antigone" />
            <owner faction="argon" />
            <owner faction="holyorder" />
            <owner faction="ministry" />
            <owner faction="paranid" />
            <owner faction="teladi" />
            <owner faction="trinity" />
            <owner faction="hatikvah" />
            <owner faction="court" />
            <owner faction="freesplit" />
            <owner faction="split" />
            <owner faction="loanshark" />
            <owner faction="scavenger" />
			<owner faction="pioneers" />
            <owner faction="terran" />			
    </ware>
    <ware id="module_ICM_cross" name="{90062,2}" description="{90062,3}" transport="container" volume="1" tags="module">
      <price min="1" average="2" max="3" />
      <production time="1" amount="1" method="default" name="{20206,101}">
      </production>
      <component ref="ICM_cross_macro" />
      <restriction licence="station_gen_basic" />
			<owner faction="alliance" />
            <owner faction="antigone" />
            <owner faction="argon" />
            <owner faction="holyorder" />
            <owner faction="ministry" />
            <owner faction="paranid" />
            <owner faction="teladi" />
            <owner faction="trinity" />
            <owner faction="hatikvah" />
            <owner faction="court" />
            <owner faction="freesplit" />
            <owner faction="split" />
            <owner faction="loanshark" />
            <owner faction="scavenger" />
			<owner faction="pioneers" />
            <owner faction="terran" />			
    </ware>
    <ware id="module_ICM_cross_offset" name="{90063,2}" description="{90063,3}" transport="container" volume="1" tags="module">
      <price min="1" average="2" max="3" />
      <production time="1" amount="1" method="default" name="{20206,101}">
      </production>
      <component ref="ICM_cross_offset_macro" />
      <restriction licence="station_gen_basic" />
			<owner faction="alliance" />
            <owner faction="antigone" />
            <owner faction="argon" />
            <owner faction="holyorder" />
            <owner faction="ministry" />
            <owner faction="paranid" />
            <owner faction="teladi" />
            <owner faction="trinity" />
            <owner faction="hatikvah" />
            <owner faction="court" />
            <owner faction="freesplit" />
            <owner faction="split" />
            <owner faction="loanshark" />
            <owner faction="scavenger" />
			<owner faction="pioneers" />
            <owner faction="terran" />			
    </ware>
    <ware id="module_ICM_cross_triplearms" name="{90064,2}" description="{90064,3}" transport="container" volume="1" tags="module">
      <price min="1" average="2" max="3" />
      <production time="1" amount="1" method="default" name="{20206,101}">
      </production>
      <component ref="ICM_cross_triplearms_macro" />
      <restriction licence="station_gen_basic" />
			<owner faction="alliance" />
            <owner faction="antigone" />
            <owner faction="argon" />
            <owner faction="holyorder" />
            <owner faction="ministry" />
            <owner faction="paranid" />
            <owner faction="teladi" />
            <owner faction="trinity" />
            <owner faction="hatikvah" />
            <owner faction="court" />
            <owner faction="freesplit" />
            <owner faction="split" />
            <owner faction="loanshark" />
            <owner faction="scavenger" />
			<owner faction="pioneers" />
            <owner faction="terran" />			
    </ware>
	    <ware id="module_ICM_crossT" name="{90065,2}" description="{90065,3}" transport="container" volume="1" tags="module">
      <price min="1" average="2" max="3" />
      <production time="1" amount="1" method="default" name="{20206,101}">
      </production>
      <component ref="ICM_crossT_macro" />
      <restriction licence="station_gen_basic" />
			<owner faction="alliance" />
            <owner faction="antigone" />
            <owner faction="argon" />
            <owner faction="holyorder" />
            <owner faction="ministry" />
            <owner faction="paranid" />
            <owner faction="teladi" />
            <owner faction="trinity" />
            <owner faction="hatikvah" />
            <owner faction="court" />
            <owner faction="freesplit" />
            <owner faction="split" />
            <owner faction="loanshark" />
            <owner faction="scavenger" />
			<owner faction="pioneers" />
            <owner faction="terran" />			
    </ware>
  </add>
</diff>
The components.xml
Spoiler
Show

Code: Select all

<?xml version="1.0" encoding="utf-8"?>

<diff>
	<add sel = '/index' >
		<entry name="ICM_3arms" value="extensions\InvConnectionModules\assets\structures\connectionmodules\ICM_3arms" />
		<entry name="ICM_6arms" value="extensions\InvConnectionModules\assets\structures\connectionmodules\ICM_6arms" />
		<entry name="ICM_8arms" value="extensions\InvConnectionModules\assets\structures\connectionmodules\ICM_8arms" />
		<entry name="ICM_cross" value="extensions\InvConnectionModules\assets\structures\connectionmodules\ICM_cross" />		
		<entry name="ICM_cross_offset" value="extensions\InvConnectionModules\assets\structures\connectionmodules\ICM_cross_offset" />
		<entry name="ICM_cross_triplearms" value="extensions\InvConnectionModules\assets\structures\connectionmodules\ICM_cross_triplearms" />
		<entry name="ICM_crossT" value="extensions\InvConnectionModules\assets\structures\connectionmodules\ICM_crossT" />
	</add>
</diff>


<!--<index>
		<entry name="ICM_3arms" value="extensions\InvConnectionModules\assets\structures\connectionmodules\ICM_3arms" />
		<entry name="ICM_6arms" value="extensions\InvConnectionModules\assets\structures\connectionmodules\ICM_6arms" />
		<entry name="ICM_8arms" value="extensions\InvConnectionModules\assets\structures\connectionmodules\ICM_8arms" />
		<entry name="ICM_cross" value="extensions\InvConnectionModules\assets\structures\connectionmodules\ICM_cross" />		
		<entry name="ICM_cross_offset" value="extensions\InvConnectionModules\assets\structures\connectionmodules\ICM_cross_offset" />
		<entry name="ICM_cross_triplearms" value="extensions\InvConnectionModules\assets\structures\connectionmodules\ICM_cross_triplearms" />
		<entry name="ICM_crossT" value="extensions\InvConnectionModules\assets\structures\connectionmodules\ICM_crossT" />
</index>-->]
The modulegroups.xml
Spoiler
Show

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<!--	
<groups>
		<group name = "ICM_group">
			<select macro="ICM_3arms_macro" />
			<select macro="ICM_6arms_macro" />
			<select macro="ICM_8arms_macro" />
			<select macro="ICM_cross_macro" />
			<select macro="ICM_cross_offset_macro" />
			<select macro="ICM_cross_triplearms_macro" />
			<select macro="ICM_crossT_macro" />
		</group>
</groups>-->


<diff>
  <add sel="/groups/group[@name='conn_arg']"> 
    <select macro="ICM_3arms_macro"/>
    <select macro="ICM_6arms_macro"/>
    <select macro="ICM_8arms_macro"/>
    <select macro="ICM_cross_macro"/>
    <select macro="ICM_cross_offset_macro"/>
    <select macro="ICM_cross_triplearms_macro"/>
	<select macro="ICM_crossT_macro"/>
	</add>
</diff>

<!-- Connection Module Groups
<diff>
  
  <add sel="/groups/"> 
  <group name="ICM_group">
    <select macro="ICM_3arms_macro" />
    <select macro="ICM_6arms_macro" />
    <select macro="ICM_8arms_macro" />
    <select macro="ICM_cross_macro" />
    <select macro="ICM_cross_offset_macro" />
    <select macro="ICM_cross_triplearms_macro" />
	<select macro="ICM_crossT_macro" />
	</group>
	</add>

</diff>-->
And the Icons.xml
Spoiler
Show

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<!--<diff>
    <!- Adding new icons ->
    <add sel="/icons">
        <icon name="module_ICM_3arms" texture="extensions\invconnectionmodules\assets\icons\ICM_3arms.tga" height="256" width="256"></icon>
        <icon name="module_ICM_6arms" texture="extensions\invconnectionmodules\assets\icons\ICM_6arms.tga" height="256" width="256"></icon>		
        <icon name="module_ICM_8arms" texture="extensions\invconnectionmodules\assets\icons\ICM_8arms.tga" height="256" width="256"></icon>		
        <icon name="module_ICM_cross" texture="extensions\invconnectionmodules\assets\icons\ICM_cross.tga" height="256" width="256"></icon>		
        <icon name="module_ICM_cross_offset" texture="extensions\invconnectionmodules\assets\icons\ICM_cross_offset.tga" height="256" width="256"></icon>
        <icon name="module_ICM_cross_triplearms" texture="extensions\invconnectionmodules\assets\icons\ICM_cross_triplearms.tga" height="256" width="256"></icon>
        <icon name="module_ICM_crossT" texture="extensions\invconnectionmodules\assets\icons\ICM_crossT.tga" height="256" width="256"></icon>
    </add>
</diff>-->

<diff>
    <!-- Adding new icons -->
    <add sel="/icons">
        <icon name="module_*" texture="extensions\invconnectionmodules\assets\icons\*.tga" height="256" width="256"></icon>
    </add>
</diff>

Return to “X4: Foundations - Scripts and Modding”