[Rseding91] [2.0.9] Impossible to build any storage tanks.

This subforum contains all the issues which we already resolved.
User avatar
micromario
Fast Inserter
Fast Inserter
Posts: 107
Joined: Thu Apr 05, 2018 11:53 am
Contact:

[Rseding91] [2.0.9] Impossible to build any storage tanks.

Post by micromario »

Greetings,

I have the following bloc of code in data stage.

Code: Select all

data:extend {{
    type = "item",
    name = "storage-tank-raw",
    icon = data.raw["storage-tank"]["storage-tank"].icon,
    icon_size = 64,
    place_result = "storage-tank",
    stack_size = 50,
    flags = {"primary-place-result"}
}}
After adding this item prototype into the game, it seems to break the place_result of the regular "storage-tank" prototype and instead print "Missing Storage tank".
10-23-2024, 07-51-04.png
10-23-2024, 07-51-04.png (1.31 MiB) Viewed 1756 times
Indeed it seems having duplicate items of any prototype with the same place_result triggers this bug.

Reproduction:
- Disable all mods including space age.
- Unzip and install the attached `autotech` mod.
- Spawn in a "storage-tank" item.
- Attempt to place such item.

Note: It also seems that construction bots refuse to build any storage tank ghosts.
Attachments
autotech.zip
(1.5 KiB) Downloaded 16 times
factorio-current.log
(20.89 KiB) Downloaded 15 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 14264
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.9] Impossible to build any storage tanks.

Post by Rseding91 »

Thanks for the report however that is working correctly. You set

Code: Select all

flags = {"primary-place-result"}
and so it is the primary place result. If that's not the behavior you want, don't set that flag.
If you want to get ahold of me I'm almost always on Discord.
User avatar
micromario
Fast Inserter
Fast Inserter
Posts: 107
Joined: Thu Apr 05, 2018 11:53 am
Contact:

Re: [2.0.9] Impossible to build any storage tanks.

Post by micromario »

No that is not correct.

Removing the flag simply causes the "storage-tank-raw" item to break due to prototype load order:
10-23-2024, 07-58-37.png
10-23-2024, 07-58-37.png (1.47 MiB) Viewed 1733 times
10-23-2024, 07-59-31.png
10-23-2024, 07-59-31.png (142.89 KiB) Viewed 1733 times

Code: Select all

data:extend {{
    type = "item",
    name = "storage-tank-raw",
    icon = data.raw["storage-tank"]["storage-tank"].icon,
    icon_size = 64,
    place_result = "iron-chest",
    stack_size = 50,
    order = "z"
}}
Additionally, it seems this bug is only reproducible if you do not have both items in your inventory at the same time.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14264
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.9] Impossible to build any storage tanks.

Post by Rseding91 »

Ok, I was confused and wrong about part of this. This should now be fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”