Page 1 of 1

Not enough ingredients

Posted: Wed Oct 09, 2013 2:18 pm
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 ?

Re: Not enough ingredients

Posted: Wed Oct 09, 2013 8:19 pm
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.

Re: Not enough ingredients

Posted: Wed Oct 09, 2013 8:28 pm
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

Re: Not enough ingredients

Posted: Fri Oct 11, 2013 10:51 am
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.

Re: Not enough ingredients

Posted: Fri Oct 11, 2013 11:00 am
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. :)

Re: Not enough ingredients

Posted: Fri Oct 11, 2013 12:47 pm
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. :)

Re: Not enough ingredients

Posted: Fri Oct 11, 2013 2:46 pm
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

Re: Not enough ingredients

Posted: Fri Oct 11, 2013 2:49 pm
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 ;)

Re: Not enough ingredients

Posted: Fri Oct 11, 2013 5:12 pm
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

Re: Not enough ingredients

Posted: Fri Oct 11, 2013 6:24 pm
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.

Re: Not enough ingredients

Posted: Fri Oct 11, 2013 6:38 pm
by Nirahiel
Okay !
Well then you can close.

Re: Not enough ingredients

Posted: Sat Oct 12, 2013 10:44 pm
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?)

Re: Not enough ingredients

Posted: Mon Oct 14, 2013 5:17 pm
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.

Re: Not enough ingredients

Posted: Mon Oct 14, 2013 5:28 pm
by Nirahiel
Sounds good :)