i would really appreciate a little help with adding new turrets. I am trying to add a weaker variant by copying and renaming existing files while keeping mesh and turret properties the same, but still something seems to be missing because the ships ingame do not equip them and fly around without L-Turrets. I know I can only change the bullet damage values, but I need an easy version on the ships, while keeping the strong versions for the stations, so I need a new turret.
Here is what I do (example of one turret):
1) Copied the file inside \assets\props\weaponsystems\ and created a new named variant. Maybe I made a mistake here, because I do not know to where exactly "component name" refers too. In my example I created a file calles "turret_xen_l_inv_weak.xml" and inside I made these changes :
Code: Select all
<?xml version="1.0"?>
<components>
<component name="turret_xen_l_inv_weak" class="turret">
<source geometry="extensions\vro\assets\props\WeaponSystems\heavy\turret_xen_l_inv_data"/>
<layers>
<layer>
<waypoints/>
<lights/>
</layer>
</layers>
2) Inside \assets\props\weaponsystems\heavy\macros\ i also copied the existing files, and created new variants with a changed name. Inside i refer to the new macro and the component created under 1)
Code: Select all
<macros>
<macro name="turret_xen_l_obliterator_inv_weak_macro" class="turret">
<component ref="turret_xen_l_inv_weak" />
<properties>
<identification name="{6699,10211}" basename="{6699,10211}" shortname="{6699,10211}" makerrace="xenon" description="{6699,10211}" />
<bullet class="bullet_xen_turret_l_obliterator_one_weak_macro" />
<rotationspeed max="15" />
<reload rate="0.5" time="1" />
<hull max="35310" threshold="0.2" integrated="1" />
<weapon angle="20" />
</properties>
</macro>
</macros>
3) Now, to make the turret a weaker version, I changed the bullet file located here : \assets\fx\weaponfx\macros
Created a copy file named : bullet_xen_turret_l_obliterator_one_macro.xml
Code: Select all
<macros>
<macro name="bullet_xen_turret_l_obliterator_one_weak_macro" class="bullet">
<component ref="obliterator_bullet" />
<properties>
<!-- <ammunition value="2" reload="10" /> -->
<bullet speed="60000" lifetime="1.5" amount="1" range="15000" barrelamount="1" icon="weapon_beam_mk1" maxhits="1" ricochet="0" scale="1" attach="1" />
<reload rate ="0.045" />
<damage value="2000" repair="0" />
<effects>
<impact ref="impact_xen_obliterator_turret" />
<launch ref="muzzle_xen_obliterator_turret" />
</effects>
<weapon system="turret_midrange" />
</properties>
</macro>
</macros>
4) I created a new wares.xml table entry for the weapon so that it can be found and equipped in the shipyard (not needed for player, it's xenon only)
Code: Select all
<ware id="turret_xen_l_obliterator_weak" name="{6699,1020}" description="{6699,1020}" group="turrets" transport="equipment" volume="1" tags="equipment noplayerblueprint turret">
<price min="13092" average="14580" max="16068" />
<production time="15" amount="1" method="default" name="{20206,101}">
<primary>
<ware ware="energycells" amount="20" />
<ware ware="ore" amount="10" />
<ware ware="silicon" amount="10" />
</primary>
</production>
<component ref="turret_xen_l_obliterator_weak_macro" amount="1" />
<restriction licence="generaluseequipment" />
<use threshold="0" factions="xenon" />
<owner faction="xenon" />
</ware>
5) Last change was a direct edit (no copy) in the ship files. \\assets\units\size_xl\macros
Here i only changed the turret lines :
Code: Select all
<turrets macro="turret_xen_l_obliterator_weak_macro" path=".." group="group05" exact="1" optional="1" />
<turrets macro="turret_xen_l_obliterator_weak_macro" path=".." group="group06" exact="1" optional="1" />
Thanks for reading through all of this

Just a disclaimer : These are VRO parts, but i do not plan to release it and leech upon that mod without the creators consent... It's just for learning purpose and my own single player game for the moment.