Oil Generation: Difference between revisions

Content deleted Content added
Embri (talk | contribs)
m →‎Natural Gas: tablification
Embri (talk | contribs)
→‎Underground Fluids: cleanup into a table.
 
(3 intermediate revisions by the same user not shown)
Line 1:
There are two basic ways [[Oil]] generates in GT:NH; as spouts visible from the surface, and as an Underground Fluid oil field below Bedrock. Spouts and fields are placed during chunk generation. Surface oil can be collected by hand or with single-block Pumps, while underground fluids require a [[Drilling Rig]] to extract. Oil is used as a fuel and for refining into various byproducts, including [[Polyethylene Processing]].
 
 
Line 11:
 
== Underground Fluids ==
Underground Fluids require multi-block [[Oil/Gas/Fluid Drilling RigsRig]]s. There are currently 5 types of underground fossil fuels:
* Natural Gas
* Light Oil
Line 18:
* Heavy Oil
 
Use the [[Seismic Prospector]] to locate chunks with large amounts of oil. The spawning is done in an 8x8 chunk grid with no offset. For example, chunks 15,15; 15,16; 16,15; 16,16 are all in different 8x8 oil spawns - a smart player can use this to their advantage when prospecting. Within the 8x8 chunks, the oil can be +- 25% the designated value reported. Any oil amount above ~200 L/t is a good place to begin drilling. The algorithm is heavily skewed to generate lower quantities of oil, but theoretically the max is ~781 L/t. Higher tier [[Drilling Rig]]s will harvest bigger areas, gathering oil from multiple chunks.
 
For example, chunks 15,15; 15,16; 16,15; 16,16 are all in different 8x8 oil spawns - a smart player can use this to their advantage when prospecting. Within the 8x8 chunks, the oil can be +- 25% the designated value.
{|{{STDT|c_17}}
! Image !! Description
|-
|[[File:Oil-1.jpg|200px|alt=Three by three grid labelled Oil Field 1 to 9, each square subdivided into 8 by 8 chunks. The middle square Oil Field 5, has one red chunk marked "P".|Oil field grid.]]|| Every small square is one chunk (16x16 blocks). Seismic Prospector scans 3x3 (nine total) fields of 8x8 chunks, starting with the field it's in and the eight surrounding. Every chunk in a field has the same fluid, but amounts will vary. "P" shows where the prospector was placed in the field - exact placement doesn't matter, every chunk in Oil Field 5 would work the same.
|-
|[[File:oil generation.png|200px|alt=]]||Histogram of 1250 oil area spawning values. The 8x8 chunks within would be +-25% of these values. Most chunks will be 50L or less, it's rare to find ones that are over 100L.
|}
 
 
[[File:Oil-1.jpg|thumb|822x822px|alt=|none]]
 
The algorithm is heavily skewed to generate lower quantities of oil, but theoretically the max is ~781 L/t.<gallery>
oil generation.png|Histogram of 1250 oil area spawning values. The 8x8 chunks within would be +-25% of these values.
</gallery>
 
Any oil amount above ~200 L/t is a good place to begin drilling.
Higher tier oil derricks will drill a wider area around it, gathering oil from multiple chunks.
 
=== Natural Gas ===
Line 67 ⟶ 69:
| 250L || 45L || 15L || 60L
|}
=== Oil Drilling Rig Tiers and Operation Range ===
[[File:Oil-2.jpg|thumb|right|200px|alt=|Drilling Rig harvesting range]][[Drilling Rig]]s are used to extract fluids from below the bedrock, including Oil. They come in five tiers, four which harvest from ever increasing ranges and the Infinite Gas/Oil/Fluid Drilling Rig which doesn't deplete oil fields. Oil Drilling Rigs always work on a fixed chunk grid inside their oil field. Infinite Oil is also possible from the [[Space Elevator]].
Oil Drilling Rigs always work on a fixed chunk grid inside their oil field.
[[File:Oil-2.jpg|thumb|670x670px|alt=|none]]
 
=== Oil Drill Yields ===
Calculating how much oil a drill will yield is a little complicated. The drills run on "operations" and how many ticks equal one operation varies based on the drill machine tier, and the energy hatch tier. The amount of oil pulled from each chunk per operation depends on the tier of the energy hatch above the minimum tier as well.
 
One important concept is that the oil drill will always drill on range size boundaries. For a 1x1 tier 1 oil drill, that isn't important. For 2x2 or 4x4 tier 2 or 3, the drill, no matter where it is placed in the 2x2 or 4x4 grid, will always pull oil from the same group of chunks. For example, looking at X for a 4x4 drill
 
{| class="wikitable"
|+ Chunks and how they group for a 4x4 drill
|-
|Chunk X
|Group
|-
| -5
| -2
|-
| -4
| -1
|-
| -3
| -1
|-
| -2
| -1
|-
| -1
| -1
|-
| 0
| 0
|-
| 1
| 0
|-
| 2
| 0
|-
| 3
| 0
|-
| 4
| 1
|-
| 5
| 1
|}
 
Here are some oil values in a 4x4 chunk group.
 
{| class="wikitable"
|+ Example oil found in chunks
|-
| Amount
| Amount
| Amount
| Amount
|| Total oil in the row
|-
|423
|432
|654
|633
|| 2142
|-
|630
|499
|563
|476
|| 2168
|-
|476
|602
|560
|444
|| 2082
|-
|458
|651
|490
|525
||2124
|}
 
Total oil in 4x4 grid = 8516
 
To calculate the ticks per operation, use the base values below
 
{| class="wikitable"
|+ Base ticks per operation
|-
| Tier
| Base value
|-
| 1
| 8
|-
| 2
| 32
|-
| 3
| 32
|}
 
For each tier the energy hatch is above the minimum, divide the base value by 2. For example, if you are using an HV energy hatch on an MV oil drill, your ticks per operation is 4.
 
Now, the amount of oil pulled out of each chunk is (the amount in the chunk) * (.5 + .25 (tiers above minimum)). So for an MV energy hatch on an MV oil drill, your oil removed is .5.
For an HV hatch on an MV drill, the oil removed is .75.
 
So now we can combine these together. For a tier 2 drill with HV energy hatches (the minimum)
8516 * (.5) = 4258 oil per operation.
 
To calculate oil per second
(4258L / operation) * (20 ticks per second) / (32 ticks per operation) = 2661 L/s
 
Measuring for 30s, I retrieved 80902L, or 80902L/30S = 2692L/s
 
Watch out for the values given by the prospector. The rounding it does is not the same as the oil pump code, so you may get +-1L per each chunk.
 
=== Total oil Yield per Chunk ===
The total oil or any fluid that can be extracted from a chunk can be found by the given formula
 
Total oil yield =1000*N^2 - 500*N*X-500*X
 
N=Z/X
 
Z=How much in Liters the pump will give before pumping starts
 
X=How much does the pump decrease per 1000 cycles (generally 1)
[[Category:Worldgen]]