[Question] Where are station / turret / shield costs stored?

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

274 Below
Posts: 18
Joined: Tue, 2. Oct 18, 15:48
x4

[Question] Where are station / turret / shield costs stored?

Post by 274 Below »

I've searched through most of the game files. I've checked through mods that add / modify things in the game universe. I just cannot seem to find where production costs for stations/ships/turrets/etc are either stored or calculated. Wares is pretty straight-forward (wares.xml), but I can't find where the number of hull parts, energy cells, and claytronics needed to build a dock (for example) is recorded or calculated.

Anyone know how this works?
SirNukes
Posts: 549
Joined: Sat, 31. Mar 07, 23:44
x4

Re: [Question] Where are station / turret / shield costs stored?

Post by SirNukes »

274 Below wrote: Sun, 30. Dec 18, 05:41 Wares is pretty straight-forward (wares.xml), but I can't find where the number of hull parts, energy cells, and claytronics needed to build a dock (for example) is recorded or calculated.
It seems like that is indeed in wares.xml, unless I misunderstand. For example:

Code: Select all

  <ware id="module_arg_dock_m_01" name="{20104,70201}" description="{20104,70202}" transport="container" volume="1" tags="module">
    <price min="293852" average="345708" max="397564" />
    <production time="653" amount="1" method="default" name="{20206,101}">
      <primary>
        <ware ware="claytronics" amount="54" />
        <ware ware="energycells" amount="108" />
        <ware ware="hullparts" amount="198" />
      </primary>

Return to “X4: Foundations - Scripts and Modding”