Calculate Time for production?

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Marconos
Filter Inserter
Filter Inserter
Posts: 301
Joined: Mon Jun 02, 2014 10:46 pm
Contact:

Calculate Time for production?

Post by Marconos »

So I'm trying to accurately calculate mining times and production times. The displayed values don't match what I'm seeing with production values.

Example: Iron ore mining -- 2 seconds to mine, electric mining drill says .5 mining speed.
Shouldn't that mean it's at 50% speed so 3 seconds to mine where a 1 mining speed == 2 seconds to mine?
Furnace smelting. Furnace says it's a 1 speed, iron smelting is 3.5 seconds ... actual is 2 seconds (approx. measured).
So how do you accurately calculate the true production time, mining time, smelting time of items?

(did a search and couldn't find answers)
Tami
Fast Inserter
Fast Inserter
Posts: 157
Joined: Tue Nov 19, 2013 11:29 am
Contact:

Re: Calculate Time for production?

Post by Tami »

The Smelter have a smeltspeed and the plates have a production time.
Miningdrills have a Miningspeed and the mined materials have a mining time.
Assemblers have a productionspeed and the crafted items have a productionstime.

for production and smelting there are 2 values you have to use for calculation:
example for Iron plates with the first smelter:

production_time (3.5) / production_speed (1) = 3.5 seconds


for mining there are 4 values you have to use for calculation:
example with electric mining drill on copper field:

mining_hardeness (0.9)/ mining_power (3) = 0.3 seconds
mining_speed (0.5) * mining_time (2) = 1 second
Total time: 1.3 seconds
Marconos
Filter Inserter
Filter Inserter
Posts: 301
Joined: Mon Jun 02, 2014 10:46 pm
Contact:

Re: Calculate Time for production?

Post by Marconos »

Awesome thanks, I kinda figured on the production ones but the mining ones were throwing me for a loop.
Kazinski
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sun Jan 11, 2015 3:26 pm
Contact:

Re: Calculate Time for production?

Post by Kazinski »

folowing wiki formula for item per sec :
Minning Time / ((Mining power - Mining hardness) * Speed) = production rate( in sec for item)
2/((3-0.9)*0.5)=1,9... sec for one ore iron/copper or coal
that simply compared to obserwed fact that electric mining dril is litle slower than stell/electric furnace
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Calculate Time for production?

Post by ssilk »

Edit: seems that Kazinski was faster :) From which page do you have the formula? Cause it looks better balanced...

Interesting. In the wiki we have this: https://forums.factorio.com/wiki/inde ... ning_drill

The formula there says:

Code: Select all

(Mining power - Mining hardness) * Speed / Mining Time = production rate (in resource/s)
(3(power) - 0.9(hardness)) = 2.1 * 0.5(speed) = 1.05 / 2(time) = 0.525 items/sec = every 1,9047619048 sec one item
I even cannot say, which is really right, cause I'm writing this on my iPad. ;)
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Kazinski
Burner Inserter
Burner Inserter
Posts: 8
Joined: Sun Jan 11, 2015 3:26 pm
Contact:

Re: Calculate Time for production?

Post by Kazinski »

in scholl im have good grade for match and simple rewriting formula from wiki page is not problem :)
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Calculate Time for production?

Post by ssilk »

Of course. I always pressed the 1/x button on my calculator to get seconds per resource. :)
I added it to the wiki article.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Udav
Inserter
Inserter
Posts: 23
Joined: Fri May 29, 2015 10:20 pm
Contact:

Re: Calculate Time for production?

Post by Udav »

I tried to calculate how much ore can be obtained per unit of spent fuel.
I use this formulas: https://forums.factorio.com/wiki/inde ... ning_drill.
I insert 50 coal into burner mining drill and into boiler which feeds electric mining drill.
I calculate working time:
Time = Fuel * Fuel value * Efficiency / Energy consumption.
Res qty = Time / Seconds for one resource item.
On 50 coal Burner mining drill time = 50*8000*100%/300 = 1333.33 sec.
On 50 coal Electric mining drill time = 50*8000*50%/90 = 2222.22 sec.

Iron ore mining:
Burner mining drill:
Seconds for one resource item = 3.571 sec/res.
On 50 coal ore qty = 373.33

Electric mining drill:
Seconds for one resource item = 1.905 sec/res.
On 50 coal ore qty = 1166.67

On real game I got:
Burner mining drill on 50 coal ore qty = 372.1
Electric mining drill on 50 coal ore qty = 1159.4

Why did I receive less ore than expected?
b0wter
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sun Mar 20, 2016 9:19 pm
Contact:

Re: Calculate Time for production?

Post by b0wter »

@Udav
After each cycle it takes two ticks (2/60sec) to start a new cyxle.
Since drills and assembly machines shate the same source code I guess this also applies to assembly machines.

(posting this despite the age of the thread since it is linked in the wiki)
User avatar
riking
Long Handed Inserter
Long Handed Inserter
Posts: 57
Joined: Thu May 05, 2016 5:35 pm
Contact:

Re: Calculate Time for production?

Post by riking »

I've updated the wiki with precalculated rates for the vanilla ores.

https://wiki.factorio.com/index.php?title=Mining_drills
Qon
Smart Inserter
Smart Inserter
Posts: 2164
Joined: Thu Mar 17, 2016 6:27 am
Contact:

Re: Calculate Time for production?

Post by Qon »

b0wter wrote:@Udav
After each cycle it takes two ticks (2/60sec) to start a new cyxle.
Source? Never heard of this before.
My mods: Capsule Ammo | HandyHands - Automatic handcrafting | ChunkyChunks - Configurable Gridlines
Some other creations: Combinassembly Language GitHub w instructions and link to run it in your browser | 0~drain Laser
Post Reply

Return to “Gameplay Help”