So I've been trying to change the bullet effects for the medium flak turrets
im trying to replace the "bullet_gen_m_flak_01_mk1" xml file found in assets/fx/weaponFx
what i've changed is i've taken out on of the materials the bullet uses which is "p1xenon.xen_engine_trim"
now im attempting to make a mod so it replaces it with my new adjustments. how ever i dont know how to use the replace code thingies properly
any help is very appreciated. below is what i've tried so far
<?xml version="1.0"?>
-<diff>
-<replace sel="assets\fx\weaponFx\bullet_gen_m_flak_01_mk1[@components]">
-<components>
-<component class="bullet" name="bullet_gen_m_flak_01_mk1">
<source geometry="assets\fx\weaponFx\bullet_gen_m_flak_01_mk1_data"/>
-<layers>
-<layer>
<waypoints/>
-<lights>
-<omni name="XU Omni01" specularintensity="1" intensity="2" trigger="1" lighteffect="1" shadowrange="48.6" range="48.6" b="182" g="203" r="255" shadow="0">
<lightanimations/>
-<offset>
<position z="-2.873224" y="0" x="0"/>
</offset>
</omni>
</lights>
</layer>
</layers>
-<connections>
<connection name="container" value="0" tags="contents"/>
<connection name="position" value="1" tags="position"/>
-<connection name="space" tags="bullet">
<offset/>
</connection>
-<connection name="Connection01" tags="part animation ">
-<offset>
<position z="0" y="2.015167E-08" x="0"/>
</offset>
-<animations>
<animation name="loop" end="15" start="1"/>
</animations>
-<parts>
-<part name="part_bullet">
-<lods>
-<lod index="0">
-<materials>
<material ref="effects.bullets_fx_master" id="1"/>
</materials>
</lod>
</lods>
-<size>
<max z="30" y="2" x="2"/>
<center z="-30" y="-3.942033E-03" x="-6.400585E-03"/>
</size>
-<size_raw>
<max z="99.53459" y="6.024791" x="6.398653"/>
<center z="-88.99898" y="-3.942033E-03" x="-6.400585E-03"/>
</size_raw>
</part>
</parts>
</connection>
-<connection name="Connection_Laser01" tags="laser">
-<offset>
<position z="-50" y="0" x="0"/>
</offset>
</connection>
</connections>
</component>
</components>
</replace>
</diff>
help me fix my XML patching please
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
Re: help me fix my XML patching please
update, i seem to have gotten somewhere. perhaps i was trying to edit the wrong thing
i've now done this
<replace sel="//components">
etc etc code bits
i have now changed the source geomentry to the gatling data instead of the flak data and it now had changed the bullet effects to a much more subdued bullet instead of the awful flashy bullets that were as big as fighters (srsly who ever made that weapon effect should rethink things)
i've now done this
<replace sel="//components">
etc etc code bits
i have now changed the source geomentry to the gatling data instead of the flak data and it now had changed the bullet effects to a much more subdued bullet instead of the awful flashy bullets that were as big as fighters (srsly who ever made that weapon effect should rethink things)
Re: help me fix my XML patching please
ouch ... how awful is that code : [code] your code [/code]
I wonder why you haven't continued in the same thread where Lino helped you if it's the same project, all cleaner and tidier.
I'm sure it will help you:
Tutorials: viewtopic.php?f=181&t=402382
XML Patch Guide: viewtopic.php?t=354310#p4248504
Code: Select all
<?xml version='1.0' encoding='utf-8'?>
<replace sel="/components//material[@id='2']/@ref">collection_name.material_name</replace>
I'm sure it will help you:
Tutorials: viewtopic.php?f=181&t=402382
XML Patch Guide: viewtopic.php?t=354310#p4248504
"All my contributions to the Technical Support and Public Beta Feedback sections will be concise and to the point, no diatribes, that's what the other sections are for".
Thank you for your efforts.
Thank you for your efforts.
Re: help me fix my XML patching please
as he said he was no longer able to help any further i thought id make a new thread, thanks for the link to the patching guide i finally got the hang of it and made my mod (yipeee) i've uploaded it to the workshop nowDj_FRedy wrote: ↑Wed, 24. Aug 22, 22:13ouch ... how awful is that code : [code] your code [/code]
I wonder why you haven't continued in the same thread where Lino helped you if it's the same project, all cleaner and tidier.Code: Select all
<?xml version='1.0' encoding='utf-8'?> <replace sel="/components//material[@id='2']/@ref">collection_name.material_name</replace>
I'm sure it will help you:
Tutorials: viewtopic.php?f=181&t=402382
XML Patch Guide: viewtopic.php?t=354310#p4248504