I was actually delayed for more than ten hours on this basic problem... I hope no one will do this again...
I want to add a laser turret on VRO mod. For the convenience of testing, I unpacked the dat file of VRO directly and modified it directly.
But the turret I added doesn't work. It appears in the encyclopedia, but only part of the data is displayed.
I will describe the specific problem in detail in the code section.
1. I just added the following code in libraries\wares.xml:
Code: Select all
<ware id="turret_amr_xl_ionprojector" name="{6699,110101}" description="{6699,11011}" group="turrets" transport="equipment" volume="1" tags="equipment turret">
<price min="15000000" average="16000000" max="17000000" />
<production time="70" amount="1" method="default" name="{20206,101}">
<primary>
<ware ware="advancedelectronics" amount="1200" />
<ware ware="energycells" amount="7500" />
<ware ware="turretcomponents" amount="2800" />
</primary>
</production>
<!-- <component ref="turret_arg_l_ionprojector_macro" amount="1" /> -->
<component ref="turret_amr_xl_ionprojector_macro" amount="1" />
<restriction licence="capitalequipment" />
<use threshold="0.9" />
<owner faction="alliance" />
<owner faction="antigone" />
<owner faction="argon" />
</ware>
Code: Select all
<ware id="turret_arg_l_ionprojector" name="{6699,110101}" description="{6699,11011}" group="turrets" transport="equipment" volume="1" tags="equipment turret">
<price min="1207200" average="1357200" max="1447200" />
<production time="20" amount="1" method="default" name="{20206,101}">
<primary>
<ware ware="advancedelectronics" amount="90" />
<ware ware="energycells" amount="350" />
<ware ware="turretcomponents" amount="280" />
</primary>
</production>
<component ref="turret_arg_l_ionprojector_macro" amount="1" />
<restriction licence="capitalequipment" />
<use threshold="0.9" />
<owner faction="alliance" />
<owner faction="antigone" />
<owner faction="argon" />
</ware>
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<!--Exported by: Michael (192.168.3.81) at 09.08.2018_12-46-02-->
<macros>
<macro name="turret_amr_xl_ionprojector_macro" class="turret">
<component ref="turret_arg_l_beam_powered" />
<properties>
<identification name="{6699,110101}" basename="{6699,110101}" shortname="{6699,110102}" makerrace="argon" description="{6699,11011}" unique="0" />
<bullet class="bullet_gen_l_ionproj_turret_macro" />
<rotationspeed max="9" />
<reload rate="0.5" time="1" />
<hull max="35000" threshold="0.2" />
</properties>
</macro>
</macros>
bullet_gen_l_ionproj_turret_macro.xml:
Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<!--Exported by: Michael (192.168.3.81) at 09.08.2018_12-46-02-->
<macros>
<macro name="turret_arg_l_ionprojector_macro" class="turret">
<component ref="turret_arg_l_beam_powered" />
<properties>
<identification name="{6699,110101}" basename="{6699,110101}" shortname="{6699,110102}" makerrace="argon" description="{6699,11011}" unique="0" />
<bullet class="bullet_gen_l_ionproj_turret_macro" />
<rotationspeed max="9" />
<reload rate="0.5" time="1" />
<hull max="35000" threshold="0.2" />
</properties>
</macro>
</macros>
Code: Select all
<add sel="/index">
<entry name="turret_amr_xl_ionprojector_macro" value="extensions\vro\assets\props\WeaponSystems\energy\macros\turret_amr_xl_ionprojector_macro"/>
</add>
I really don't know what the problem is. Thank you for any help.