Player and Tools Harvesting Time

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
VisionElf
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Feb 13, 2016 9:04 am
Contact:

Player and Tools Harvesting Time

Post by VisionElf »

Hello,

I'm looking for the formula of harvesting time.

I saw on the wiki the one for drills, it works perfectly, thanks for that :)

The main thing with player and/or tools harvesting is that they have one value but not the other... (I talk about Mining Power and Mining Speed, that both drills have)

In the factorio files, player have a field "mining-speed" that is of 0.01 value. I assume this is the speed, not the power.
In tools, tools have a field "speed", iron-axe is 2.5 and steel-axe is 4. But in the game, it is called "Mining Power" so I assume it is the power then.

I tried to do the maths with logical values, as mining-speed of 0.01 (taken from the player), then mining-power of 1 for player without tools (maybe default value?) and then the tools' respective values for the others.
This doesn't work at all, 0.01 is waaaaaay too low to have decent results.

I have tried to reverse calculate the mining power out from these value but I reach values like 37 mining power for the player and something like 0.58 mining speed for the tools.

So my question is simple:
With all the values I have, how can I calculate the seconds it takes to harvest a single resource with the different tools (no-tools included) ?

Thank's :)
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Player and Tools Harvesting Time

Post by ssilk »

It uses the values from your pickaxe:
https://forums.factorio.com/wiki/inde ... tems#Tools
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
VisionElf
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Feb 13, 2016 9:04 am
Contact:

Re: Player and Tools Harvesting Time

Post by VisionElf »

Yes but what is the formula ? (if there is one)
I don't understand what you mean :/
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Player and Tools Harvesting Time

Post by ssilk »

Well I should read more properly.

That might help:

https://forums.factorio.com/forum/vie ... t=10#p6665

Which resulted - as you already found - into that formula:

https://forums.factorio.com/wiki/inde ... ing_drills

What that means for the values of the character: I don't know. :) But I think with that information you will be able to calculate the missing parameters.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
VisionElf
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Feb 13, 2016 9:04 am
Contact:

Re: Player and Tools Harvesting Time

Post by VisionElf »

Yea I didn't find anything that can be usefull for tool calculation, except the amount mined by tick, but that doesn't seems to work.

Here's my values. If someone can help me find the formula for the tools that would be awesome :D

I've also found how durability is used with tools, it seems that every tick, the tool lost a quantity of the mined resource's hardness.
So, if you try to harvest copper, and you let your mouse button pressed for one tick, you lost 0.4 durability.
Even if it's impossible to let your mouse button pressed for 1 tick, I've made some tests, and it seems to work.
With copper, I always end up with a durability lost equals to a multiple of 0.9, with stone it's 0.4, and with wood its 0.5. You can try it.

Funny thing, even though steel axe has more durability (1000 more), the mining power doesn't seems to change anything for durability lost.

Anyway, here's my results about mining time of the differents tools I've got. I've tried to be the most consistent possible, I've timed my moves but that wasn't so precise.
Iron Axe:
  • Stone (0.4) = ~1.587
  • Wood (0.5) = ~1.64
  • Copper (0.9) = ~2.091
Steel Axe:
  • Stone (0.4) = ~0.921
  • Wood (0.5) = ~0.995
  • Copper (0.9) = ~1.148
My attempt at trying to find the mining speed of the two tools according to the mining drills formula and using all values above:
Iron Axe = ~0.602
Steel Axe = ~0.579

My conclusion with all these tests and the test with the durability, is that I think tools mining time depends only on the power, and not the speed (if there is one) even though the player has a mining speed (0.01), this value can't be used anywhere. I will try some tests without any mining tools.
VisionElf
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Feb 13, 2016 9:04 am
Contact:

Re: Player and Tools Harvesting Time

Post by VisionElf »

Hm I feel dumb x)

I just found the formula...

It's quite the same, except the results is in ticks, not in seconds like with mining-drills for some reason.
So you just need to divide by 60 (60 ticks in 1 seconds) to have the time in seconds.

I've made some test with a custom mods by setting values to something like 1 and I found that by gathering a full tree, I had lost 2.5 durability (with 1 player's mining speed, and iron axe with 1 power)
As I found earlier, we lost 0.5 (hardness of wood) per tick, so 2.5 durability lost = 4 ticks
And then I set the value of mining speed back to 0.01 and found 401 ticks so it's basically 100 times more than with a speed of 1 (+/- 1 tick) and then I divided by 60 and I got the right time.

Anyway, thanks for the help ssilk :D the tick thing was very useful in the end ;)

So the formula to get the mining time of a resource with a specific tool:

Seconds = (Mining Time / ((Mining Power - Mining Hardness) * Player Mining Speed))/Ticks Per Second

I'm working on finding the formula for bare hands now, I think I'm close to it :D
VisionElf
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sat Feb 13, 2016 9:04 am
Contact:

Re: Player and Tools Harvesting Time

Post by VisionElf »

So in the end, the default mining power is 1.

Without any tools, the formula is the same with the power as 1.

Everything is clear now ! :)
Post Reply

Return to “Gameplay Help”