What is the formula to determine the total amount oil extractable from a single node

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
Glockshna
Long Handed Inserter
Long Handed Inserter
Posts: 50
Joined: Tue Jan 21, 2014 7:57 am
Contact:

What is the formula to determine the total amount oil extractable from a single node

Post by Glockshna »

I would like to know the formula used to determine how much oil I'll get from a node of a given yield before it reaches 10%

I've tried several different formulas based on the wiki's information but they all come out to (the same) ludicrous number that doesnt materialize in game.

Code: Select all

richness = 1000
cycles = richness * 75
output = 0
print("Cycles = " + "{:,}".format(cycles))

while cycles > 750:
    i = 75
    while i > 0:
        output += 1*richness
        i -= 1
        cycles -= 1
    richness -= 1
print("{:,}".format(output))

That is the latest script I made to calculate the total output of a node with 1000% richness. This returned 37,553,375 oil. I know for a fact this is not how much ends up coming out of the node, yet based on the numbers provided by the wiki that's how much I should be getting.

Any insight?

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: What is the formula to determine the total amount oil extractable from a single node

Post by DaveMcW »

1. Richness is measured in %, you get 37,553,375% or 375,534 oil. This matches previous calculations.
2. In 0.13 the decay delay was increased from 75 to 150. This means twice as much oil!

Glockshna
Long Handed Inserter
Long Handed Inserter
Posts: 50
Joined: Tue Jan 21, 2014 7:57 am
Contact:

Re: What is the formula to determine the total amount oil extractable from a single node

Post by Glockshna »

DaveMcW wrote:1. Richness is measured in %, you get 37,553,375% or 375,534 oil. This matches previous calculations.
2. In 0.13 the decay delay was increased from 75 to 150. This means twice as much oil!
derp. I knew it was something stupid.

(richness / 100) * 150

Hurpadurp

Frightning
Filter Inserter
Filter Inserter
Posts: 807
Joined: Fri Apr 29, 2016 5:27 pm
Contact:

Re: What is the formula to determine the total amount oil extractable from a single node

Post by Frightning »

DaveMcW wrote:1. Richness is measured in %, you get 37,553,375% or 375,534 oil. This matches previous calculations.
2. In 0.13 the decay delay was increased from 75 to 150. This means twice as much oil!
You get slightly more than twice, because the amount provided each cycle decreases by 1/150 of a % (that is, it doesn't give 150 cycles at k% and then 150 at (k-1)%, etc.) But it's close to exactly double.

Post Reply

Return to “Gameplay Help”