Not enough ingredients

This subforum contains all the issues which we already resolved.
Nirahiel
Filter Inserter
Filter Inserter
Posts: 351
Joined: Mon Sep 23, 2013 2:18 pm
Contact:

Not enough ingredients

Post by Nirahiel »

I think a small image speaks more than a long text :

CLICK ME

EDIT : The weird part is, when I picked up one extra iron, the crafting worked, but it consumed the extra iron in the process O_o
Bug when calculating the costs or what ?
Gammro
Filter Inserter
Filter Inserter
Posts: 361
Joined: Wed Oct 09, 2013 1:45 pm
Contact:

Re: Not enough ingredients

Post by Gammro »

Could it be that when you'd create all base materials(gear wheels, circuit and belt), that you'd end up with one of them left? Because that could indicate the raw requirements being rounded down incorrectly.
Ignore this
Nirahiel
Filter Inserter
Filter Inserter
Posts: 351
Joined: Mon Sep 23, 2013 2:18 pm
Contact:

Re: Not enough ingredients

Post by Nirahiel »

Gammro wrote:Could it be that when you'd create all base materials(gear wheels, circuit and belt), that you'd end up with one of them left? Because that could indicate the raw requirements being rounded down incorrectly.
Well yeah the laboratory requires 5 belts, where the recipe can only make them by 2
kovarex
Factorio Staff
Factorio Staff
Posts: 8298
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Not enough ingredients

Post by kovarex »

The problem with the raw resources is, that it isn't and can't be precise because of these recipes that produces more than one ingredient.
When you create 2 labs, this cost should be precise, but for one lab you end up with one transport belt when building it.

The question is, if it is good to change it.
Nirahiel
Filter Inserter
Filter Inserter
Posts: 351
Joined: Mon Sep 23, 2013 2:18 pm
Contact:

Re: Not enough ingredients

Post by Nirahiel »

Well technically, the total raw resources is the resources you need to craft the item, no matter what leftover you might have when you're done crafting.
So yeah I think it should be changed. :)
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Not enough ingredients

Post by ssilk »

+1
It's more like in reality, where you can buy Twix only in packs of 2, no matter, if you need only one. :)
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
kovarex
Factorio Staff
Factorio Staff
Posts: 8298
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Not enough ingredients

Post by kovarex »

THe problem is, that I use this feature to count the cost of one item usually, and this would break it, especially for stuff that uses lot of circuits
Nirahiel
Filter Inserter
Filter Inserter
Posts: 351
Joined: Mon Sep 23, 2013 2:18 pm
Contact:

Re: Not enough ingredients

Post by Nirahiel »

Take a belt. 1 iron + 1 gear makes 2 belts.
Fine, then 0.5 iron and 0.5 gear makes one belt.
Use this to compute the cost ;) And round up for the final display ;)
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: Not enough ingredients

Post by ficolas »

Maybe instead of saying "not enought ingredients" it should say "not enought ingredients to make everything needed" or something more precise, so there are no misunderstandings
slpwnd
Factorio Staff
Factorio Staff
Posts: 1835
Joined: Sun Feb 03, 2013 2:51 pm
Contact:

Re: Not enough ingredients

Post by slpwnd »

Nirahiel wrote:Take a belt. 1 iron + 1 gear makes 2 belts.
Fine, then 0.5 iron and 0.5 gear makes one belt.
Use this to compute the cost ;) And round up for the final display ;)
This doesn't work. That is actually how we do the calculation. In the case of crafting the lab you calculate that the "ideal" value is 15 copper plates and 37.5 iron plates -> so it shows 15 and 38. However the "real" value is 15 and 39 (because belts are crafted by two).

This problem doesn't have a simple solution. It all depends on what the number in total raw should mean. In the beginning of the game it makes sense that you want to see the price for crafting ("real value"). However later in the game you check the recipes to decide how many assembling machines to build. Then you want an "ideal" value.

Anyway we came up with a compromise. The shown value will be the "ideal" value. However the red indication on the resource will be governed by the "real" value. This way early in the game you will see what resource you are missing while still keeping precise total raw numbers.
Nirahiel
Filter Inserter
Filter Inserter
Posts: 351
Joined: Mon Sep 23, 2013 2:18 pm
Contact:

Re: Not enough ingredients

Post by Nirahiel »

Okay !
Well then you can close.
n9103
Smart Inserter
Smart Inserter
Posts: 1067
Joined: Wed Feb 20, 2013 12:09 am
Contact:

Re: Not enough ingredients

Post by n9103 »

Why not change the display to show those half pieces?
Then players would understand what the problem was, without you having to change the formulas or how it's all handled, (beyond making it a float instead of an int?)
Colonel Failure wrote:You can lose your Ecologist Badge quite quickly once you get to the point of just being able to murder them willy-nilly without a second care in the world.
kovarex
Factorio Staff
Factorio Staff
Posts: 8298
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Not enough ingredients

Post by kovarex »

So the final resolution is:
  • The raw materials shows float numbers (one decimal max), so you get that circuit costs 1.5 copper and 1 iron
  • The red indication of missing resources to craft it indicates the missing resources to actually craft the item, so it can happen, that the icon states 38 iron, you have 38 iron, and the icon is red.
This way the user gets the real price of the item for comparison as well as quick info what is missing to craft something.
Nirahiel
Filter Inserter
Filter Inserter
Posts: 351
Joined: Mon Sep 23, 2013 2:18 pm
Contact:

Re: Not enough ingredients

Post by Nirahiel »

Sounds good :)
Post Reply

Return to “Resolved Problems and Bugs”