Race-Shields for Xenon Mod, some progress but need help

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

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

ChristianErding
Posts: 104
Joined: Tue, 10. May 05, 18:04
x4

Race-Shields for Xenon Mod, some progress but need help

Post by ChristianErding »

Hello Community,

maybe somebody can give me hint what is going wrong in my mod.
For my easy start with X4 Modding I decided to start with something simple (I thought), a Mod that allows you to put Race-Shields on Xenon F Fighter und B Corvette.en.

I was starting with the Xenon F Fighter, the code in the Xml looks like this:

Code: Select all

<diff>
<replace sel="//components/component/connections/connection[@name='con_shield_01']">
<connection name="con_shield_01" tags="small shield unhittable standard ">
<offset>
<position x="0" y="02.881412" z="-5.03478" />
</offset>
</connection>
</replace>

<replace sel="//components/component/connections/connection[@name='con_shield_02']">
<connection name="con_shield_02" tags="small shield unhittable standard ">
<offset>
<position x="-2" y="0.881412" z="-3" />
</offset>
</connection>
</replace>
</diff>
Everything works like intended! :)
But the same code in the "ship_xen_m_corvette_01.xml" does absolutly nothing, but it should! :gruebel:
Did risk nothing and even use the tags from the paranid corvette, should be fitting.
But always the same: In the shipdock it shows no equipable shields! :o

Code: Select all

<diff>
<replace sel="//components/component/connections/connection[@name='con_shield_01']">
<connection name="con_shield_01" tags="medium shield unhittable platformcollision standard ">
<offset>
<position x="0.05442733" y="16.931137" z="-9.58473" />
</offset>
</connection>
</replace>
</diff>
The only thing that catches my eye, was a strange entry in "ship_xen_m_corvette_01_a_macro.xml": :gruebel:

<shield macro="shield_xen_m_virtual_01_mk1_macro" path="../con_shield_01" optional="1" />

Could this be the reason why this this accepts only exnon shields an nothing else?
I am already sitting on this problem for some time, would be could if someone could give me some directions of whats going wrong here.


Greeting, Christian
Die Rente ist sicher, von der Höhe hat leider keiner was gesagt.
Realspace
Posts: 1637
Joined: Wed, 15. Nov 06, 10:21
x4

Re: Race-Shields for Xenon Mod, some progress but need help

Post by Realspace »

Check the loadouts in the macro. Usually xenon have a 'default' loadout that includes only their specific equipment. To test, just create a new macro of that ship, with different name/id/filename of course.
ChristianErding
Posts: 104
Joined: Tue, 10. May 05, 18:04
x4

Re: Race-Shields for Xenon Mod, some progress but need help

Post by ChristianErding »

Thx a lot for the directions, removing the default loadout solved the problem.
Die Rente ist sicher, von der Höhe hat leider keiner was gesagt.

Return to “X4: Foundations - Scripts and Modding”