Page 1 of 1

[2.0.41] Blueprints do not always display inventory

Posted: Thu Mar 13, 2025 2:29 pm
by thedoh
This exists as of 2.0 GA, I expect. I created an Idea & Improvement thread to show item requests, but I now think this is a bug; let me explain.

We have long been able to make a locomotive blueprint which requests fuel. The blueprint will show the amount of fuel in the components section of the blueprint display. With 2.0, we can use bots to deliver things directly to assemblers (and chests, and etc), and we can even make blueprints with these requests. The underlying JSON of these blueprints shows these requests in the items.in_inventory section, like for the train's fuel.

Let's say that we want to use this feature to make a wooden chest with a blueprint. If we made a blueprint with the two wood ghosted, we get a blueprint with the following JSON. The blueprint display in-game, however, shows the two wood but thinks it's vehicle fuel, as evidenced by the filter (see attached screenshot).

Code: Select all

{"blueprint": {
  "item": "blueprint",
  "entities": [{
    "entity_number": 1,
    "name": "assembling-machine-1",
    "recipe": "wooden-chest",
    "recipe_quality": "normal",
    "position": {
      "x": -189.5,
      "y": 485.5
    },
    "items": [{
      "id": {"name": "wood"},
      "items": {"in_inventory": [{
        "stack": 0,
        "count": 2,
        "inventory": 2
      }]}
    }]
  }],
  "label": "Wood chest with 2 wood ghost shows as vehicle fuel",
  "icons": [{
    "index": 1,
    "signal": {"name": "assembling-machine-1"}
  }],
  "version": 562949956108288
}}
But now let's say we want to use this same technique to make an iron chest instead, and we get JSON that is almost identical to the wooden chest document, but an entirely different in-game blueprint display (see attached) -- no mention of the iron plates.

Code: Select all

{"blueprint": {
  "item": "blueprint",
  "entities": [{
    "entity_number": 1,
    "name": "assembling-machine-1",
    "recipe": "iron-chest",
    "recipe_quality": "normal",
    "position": {
      "x": -187.5,
      "y": 501.5
    },
    "items": [{
      "id": {"name": "iron-plate"},
      "items": {"in_inventory": [{
        "stack": 0,
        "count": 8,
        "inventory": 2
      }]}
    }]
  }],
  "label": "Iron chest with 8 ghosted iron no listing",
  "icons": [{
    "index": 1,
    "signal": {"name": "assembling-machine-1"}
  }],
  "version": 562949956108288
}}
We can even think about a blueprint that would smelt some iron for our chest and again, the in-game furnace blueprint display thinks the fuel is "vehicle fuel" but no mention of the 5 ghost iron ore I have in the furnace.

Code: Select all

{"blueprint": {
  "item": "blueprint",
  "entities": [{
    "entity_number": 1,
    "name": "stone-furnace",
    "position": {
      "x": -191,
      "y": 502
    },
    "items": [
      {
        "id": {"name": "iron-ore"},
        "items": {"in_inventory": [{
          "stack": 0,
          "count": 5,
          "inventory": 2
        }]}
      },
      {
        "id": {"name": "solid-fuel"},
        "items": {"in_inventory": [{
          "stack": 0,
          "count": 5,
          "inventory": 1
        }]}
      }
    ]
  }],
  "label": "Smelt 5 iron with 5 solid fuel",
  "icons": [
    {
      "index": 1,
      "signal": {"name": "stone-furnace"}
    },
    {
      "index": 2,
      "signal": {"name": "solid-fuel"}
    },
    {
      "index": 3,
      "signal": {"name": "iron-ore"}
    }
  ],
  "version": 562949956108288
}}
I therefor think this is a bug: The game is only showing item.in_inventory entries if the item is a fuel source, and on top of that, the game universally treats that item as vehicle fuel, with the "vehicle fuel" filter.

Suggested fix: Always show the item.in_inventory in the display, and maybe restrict the presence of the vehicle fuel filter to vehicles.

Note: I've also attached a blueprint book with the blueprints I used for this post.

Re: [2.0.41] Blueprints do not always display inventory

Posted: Mon Mar 17, 2025 2:14 pm
by Rseding91
Thanks for the report however this is working as intended. While it technically works to have items delivered to entity inventories that are not vehicle fuel or modules, we do not support them in the blueprint GUI and or in tooltips.

Re: [2.0.41] Blueprints do not always display inventory

Posted: Tue Mar 18, 2025 2:09 pm
by thedoh
That's a bit disappointing given the wood for wooden chests showing up in the blueprint display as fuel, when it isn't. I hope the improvement request will receive positive attention instead.