- Screenshot_3.jpg (77.66 KiB) Viewed 3186 times
How can I accurately know the number of items in a blueprint?
How can I accurately know the number of items in a blueprint?
My native language is russian. Sorry if my messages are difficult to read.
Re: How can I accurately know the number of items in a blueprint?
I personally like using this mod: https://mods.factorio.com/mod/LogisticRequestManager
You can drag the blueprint to the blueprint icon in the bar (Assuming it's in your inventory and not in game blueprints), and it will create requests for all the items. Then you can drill into the requests and see the exact amounts needed for each item.
Other than that, you'd need to find/make a mod specifically for this, or write your own lua code. Alternatively, you could always export the blueprint to a string, decode it to json, and count the number via a simple script
You can drag the blueprint to the blueprint icon in the bar (Assuming it's in your inventory and not in game blueprints), and it will create requests for all the items. Then you can drill into the requests and see the exact amounts needed for each item.
Other than that, you'd need to find/make a mod specifically for this, or write your own lua code. Alternatively, you could always export the blueprint to a string, decode it to json, and count the number via a simple script
Re: How can I accurately know the number of items in a blueprint?
It's not pretty, but I was bored, and created a simple lua function to do what you're asking:
Simply type this into the console (using the ` key), and then open your blueprint. You'll see each of the items output to the screen:
Code: Select all
/c script.on_event(defines.events.on_gui_opened,function(event)
if event.item == nil then return end
if event.item.type ~= "blueprint" then return end
for k, v in pairs(event.item.cost_to_build) do
game.print("Item: " .. k .. ", Amount: " .. v)
end
end)
Re: How can I accurately know the number of items in a blueprint?
It's enough. Thanks
My native language is russian. Sorry if my messages are difficult to read.