satisfactory-factories / application

A tool to visualise groupings of factories to create a true Modular Factory setup for the game Satisfactory.
https://satisfactory-factories.app
GNU Affero General Public License v3.0
20 stars 4 forks source link

Byproducts are not showing as export candidates or within Satisfaction #149

Open Maelstromeous opened 1 day ago

Maelstromeous commented 1 day ago

Looks like byproducts are not showing up as export candidates. This suggests (and by the fact it's not in Satisfaction) that the part data is not being added to factory.parts for byproducts.

https://satisfactory-factories.app/share/immense-puny-action

Screenshot 2024-11-23 at 00 38 08

Maelstromeous commented 1 day ago

Bizzarely it is actually in the satisfactory data??

{
  "id": 3712,
  "name": "TurboFuel",
  "products": [
    ...
    {
      "id": "HeavyOilResidue",
      "amount": 1600,
      "recipe": "Alternate_HeavyOilResidue",
      "displayOrder": 1,
      "requirements": {
        "LiquidOil": {
          "amount": 1200
        }
      },
      "buildingRequirements": {
        "name": "oilrefinery",
        "amount": 40,
        "powerPerBuilding": 30,
        "totalPower": 1200
      },
      "byProducts": [
        {
          "id": "PolymerResin",
          "byProductOf": "HeavyOilResidue",
          "amount": 800
        }
      ]
    },
  ],
  "byProducts": [
    {
      "id": "PolymerResin",
      "amount": 800,
      "byProductOf": "HeavyOilResidue"
    }
  ],
  "internalProducts": {
    "HeavyOilResidue": {
      "id": "HeavyOilResidue",
      "amount": 1600
    },
    "CompactedCoal": {
      "id": "CompactedCoal",
      "amount": 1280
    }
  },
  "inputs": [],
  "parts": {
    ...
    "PolymerResin": {
      "amountRequired": 0,
      "amountSupplied": 800,
      "amountSuppliedViaInput": 0,
      "amountSuppliedViaProduction": 800,
      "amountRemaining": -800,
      "satisfied": true,
      "isRaw": false
    }
  },
  "exportCalculator": {
    "LiquidTurboFuel": {
      "selected": null,
      "factorySettings": {}
    },
    "HeavyOilResidue": {
      "selected": null,
      "factorySettings": {}
    },
    "Rubber": {
      "selected": null,
      "factorySettings": {}
    },
    "Plastic": {
      "selected": null,
      "factorySettings": {}
    },
    "LiquidFuel": {
      "selected": null,
      "factorySettings": {}
    }
  },
  "rawResources": {
    "LiquidOil": {
      "id": "LiquidOil",
      "name": "Crude Oil",
      "amount": 1200
    },
    "Coal": {
      "id": "Coal",
      "name": "Coal",
      "amount": 1280
    },
    "Sulfur": {
      "id": "Sulfur",
      "name": "Sulfur",
      "amount": 1280
    }
  },
  "exports": {
    "LiquidTurboFuel": {
      "productId": "LiquidTurboFuel",
      "surplus": 1280,
      "demands": 0,
      "difference": 1280,
      "displayOrder": 0
    }
  },
}