ich versuche gerade eine kleine Mod zu schreiben die das Container-Lager einer bestimmten Station durch ein neues XXL-Universallager ersetzt. Soweit hab ich dies auch schon hinbekommen mein Problem ist momentan allerdings das ich es nicht schaffe die Baukosten für das XXL Lager einzustellen. Momentan kann das Lager nur gebaut werden wenn ich Waffen hinzufüge da anonsten der Baubutton ausgegraut ist.
Leider bin ich nicht besonders gut im modden und steht gerade aufm Schlauch, hab mir zwar schon andere Mods angesehen die Stationen verändern aber irgendwie werd ich daraus nicht schlau.
Hab das ganze ich mal gezippt zum testen, als Spielstart "Indsutriemogul" auswählen dann ist man direkt vor der "Teststation". Der Architekt bietet nun statt einem Containerlager ein XXL Lager an.
Wäre nett wenn mir jemand weiterhelfen könnte
http://cloud.directupload.net/1FpD
Hier mal meine Codes:
wares.xml
Code: Select all
<diff>
<add sel="/wares">
<ware id="struct_XXLWarenhaus_Storage" name="struct_XXLWarenhaus_Storage" transport="container" size="part" volume="1" tags="part">
<price min="1" average="1" max="1" />
<production time="68" amount="1" method="default" name="{20206,501}">
<primary>
<ware ware="energycells" amount="86" />
<ware ware="fusionreactor" amount="7" />
<ware ware="reinforcedmetalplating" amount="35" />
</primary>
</production>
<component ref="struct_XXLWarenhaus_Storage_macro" amount="1" />
</ware>
</add>
</diff>
struct_XXLWarenhaus_Storage_macro
Code: Select all
<macros>
<macro name="struct_XXLWarenhaus_Storage_macro" class="storage">
<component ref="struct_econ_prod_stor_container" />
<properties>
<identification name="XXL Lager" description="{20107,4602}" />
<explosiondamage value="100000" />
<hull max="2000000" />
<effects>
<explosion ref="explosion_station_01" />
<sefx_hack_disabled ref="hack_deactivated_m" />
</effects>
</properties>
<connections>
<connection ref="connection_cargobay01">
<macro ref="cargobay_XXLWarenhaus_macro" connection="StorageConnection" />
</connection>
<connection ref="connection_shieldgenerator01">
<macro ref="shieldgenerator_size_m_mk2_macro" connection="connection_component" />
</connection>
<connection ref="connection_shieldgenerator02">
<macro ref="shieldgenerator_size_m_mk2_macro" connection="connection_component" />
</connection>
<connection ref="connection_turret_medium01">
<macro ref="turret_medium_pe_macro" connection="connection_component01" />
</connection>
<connection ref="connection_turret_medium02">
<macro ref="turret_medium_pe_macro" connection="connection_component01" />
</connection>
<connection ref="connection_turret_medium03">
<macro ref="turret_medium_pe_macro" connection="connection_component01" />
</connection>
<connection ref="connection_turret_medium04">
<macro ref="turret_medium_pe_macro" connection="connection_component01" />
</connection>
<connection ref="connection_turret_small01">
<macro ref="turret_small_mg_macro" connection="connection_component01" />
</connection>
<connection ref="connection_turret_small02">
<macro ref="turret_small_mg_macro" connection="connection_component01" />
</connection>
<connection ref="connection_turret_small03">
<macro ref="turret_small_mg_macro" connection="connection_component01" />
</connection>
<connection ref="connection_turret_small04">
<macro ref="turret_small_mg_macro" connection="connection_component01" />
</connection>
<connection ref="connection_turret_small05">
<macro ref="turret_small_mg_macro" connection="connection_component01" />
</connection>
<connection ref="connection_turret_small06">
<macro ref="turret_small_mg_macro" connection="connection_component01" />
</connection>
<connection ref="connection_turret_small07">
<macro ref="turret_small_mg_macro" connection="connection_component01" />
</connection>
</connections>
</macro>
</macros>
Code: Select all
<macros>
<macro name="cargobay_XXLWarenhaus_macro" class="cargobay">
<component ref="generic_cargobay" />
<properties>
<cargo max="200000000" tags="bulk container energy liquid" />
<hull integrated="1" />
</properties>
</macro>
</macros>
Code: Select all
<diff>
<replace sel='/macros/macro/connections/connection[@ref="ConnectionFor_struct_econ_prod_stor_container_macro1"]'>
<connection ref="ConnectionFor_struct_econ_prod_stor_container_macro1">
<build mode="optional" group="storage" sequence="D" stage="1" tags="primary" />
<macro ref="struct_XXLWarenhaus_Storage_macro" connection="space" />
</connection>
</replace>
</diff>
Code: Select all
<diff>
<add sel="/index">
<entry name="cargobay_XXLWarenhaus_macro" value="extensions\XXLWarenhaus\assets\props\storageModules\macros\cargobay_XXLWarenhaus_macro"/>
<entry name="struct_XXLWarenhaus_Storage_macro" value="extensions\XXLWarenhaus\assets\structures\Economy\production\macros\struct_XXLWarenhaus_Storage_macro"/>
</add>
</diff>