[2.0.41] Blueprints do not always display inventory

Things that we don't consider worth fixing at this moment.
thedoh
Long Handed Inserter
Long Handed Inserter
Posts: 77
Joined: Tue May 02, 2017 1:37 pm
Contact:

[2.0.41] Blueprints do not always display inventory

Post 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.
Attachments
example blueprint book.txt
(825 Bytes) Downloaded 11 times
factorio_3738YaUwWs.png
factorio_3738YaUwWs.png (51.82 KiB) Viewed 306 times
factorio_2TgoBiELjt.png
factorio_2TgoBiELjt.png (47.44 KiB) Viewed 306 times
factorio_Ty6eK7T8LW.png
factorio_Ty6eK7T8LW.png (49.68 KiB) Viewed 306 times
factorio_NgAcrjeRti.png
factorio_NgAcrjeRti.png (59.44 KiB) Viewed 306 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 15318
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.41] Blueprints do not always display inventory

Post 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.
If you want to get ahold of me I'm almost always on Discord.
thedoh
Long Handed Inserter
Long Handed Inserter
Posts: 77
Joined: Tue May 02, 2017 1:37 pm
Contact:

Re: [2.0.41] Blueprints do not always display inventory

Post 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.
Post Reply

Return to “Won't fix.”