x4 icon indicating copy to clipboard operation
x4 copied to clipboard

[Bug] Scrap Recycler + Scrap Processor

Open Hurric4ne opened this issue 2 years ago • 3 comments

The Scrap Recycler matches with their "normal" production module counterparts from the page, but they differ vastly in game. And the Scrap Processor doesn't show anything at all.

Found some infos in the game files, maybe it helps: modules.xml

<!-- Processing Modules -->
<module id="processing_gen" group="processing_gen">
  <category ware="scrapmetal" tags="[processing, module]" race="[argon, paranid, split, teladi]" faction="[teladi, ministry, hatikvah, alliance, scaleplate]" />
</module>

<!-- Recycling Modules -->
<!--Very generic definition without faction data so faction selects it, but can be referenced directly-->
<module id="recycling_gen" group="recycling_gen">
  <category tags="[recycling, module]" />
</module>

wares.xml

<ware id="rawscrap" name="{20201,6801}" description="{20201,6802}" group="refined" transport="solid" volume="10" tags="processed recycling solid">
  <price min="153" average="180" max="207" />
  <icon active="ware_scrapmetal" video="ware_scrapmetal_macro" />
</ware>
<ware id="scrapmetal" name="{20201,6601}" description="{20201,6602}" factoryname="{20201,6604}" group="refined" transport="solid" volume="10" tags="economy recycling solid">
  <price min="318" average="375" max="431" />
    <production time="60" amount="1" method="processing" name="{20206,1301}" tags="noplayerbuild recycling">
      <primary>
        <ware ware="energycells" amount="10" />
        <ware ware="rawscrap" amount="1" />
      </primary>
  </production>
  <icon active="ware_scrapmetal" video="ware_scrapmetal_macro" />
</ware>

My guess for the wrong values for the Scrap Recycler is that the result wares (claytronics + hullparts) are not seperate production wares, but they are included in the base production of each ware (claytronics example from the wares.xml):

<ware id="claytronics" name="{20201,501}" description="{20201,502}" factoryname="{20201,504}" group="shiptech" transport="container" volume="24" tags="container economy stationbuilding">
    <price min="1734" average="2040" max="2346" />
    <production time="900" amount="108" method="default" name="{20206,101}">
      <primary>
        <ware ware="antimattercells" amount="100" />
        <ware ware="energycells" amount="140" />
        <ware ware="microchips" amount="160" />
        <ware ware="quantumtubes" amount="100" />
      </primary>
      <effects>
        <effect type="work" product="0.34" />
      </effects>
    </production>
    <production time="300" amount="60" method="recycling" name="{20206,1101}" tags="noplayerbuild recycling">
      <primary>
        <ware ware="energycells" amount="12000" />
        <ware ware="scrapmetal" amount="300" />
      </primary>
      <effects>
        <effect type="work" product="0.34" />
      </effects>
    </production>
    <icon active="ware_claytronics" video="ware_claytronics_macro" />
  </ware>

Hurric4ne avatar Mar 27 '22 13:03 Hurric4ne