[Help wanted] Defining new Resource and Mining Result
Posted: Tue Apr 04, 2017 1:04 pm
[TL;DR] I need help creating a resource patch like crude oil that makes solid items, with a min output per cycle, and help creating a machine that drills that resource. Details below.
I mean to make a special kind of mineral mining site that behaves largely like crude oil patches, but produces a solid item, with a minimum rate of 1 item per mining cycle. I want it to be very sparse and very rare so that whenever you find one it feels like the biter god of nauvis himself has blessed you, because these veins will hopefully be quite powerful but power-hungry to mine.
In ..\Factorio\data\base\prototypes\entity\resources.lua the crude oil definition can be found.
As of 0.14.XX,
Code: Select all
LINE9: category = "basic-fluid",
LINE12: minimum = 1500,
LINE13: normal = 15000,
LINE31: autoplace={
to LINE48
LINE49: stage_counts = {0},
LINE50: stages={
to LINE64
- 9 - This category can be set to basic-solid safely, and whatever new building is placed on the new resource spot can harvest solids, right?
- 12 - This just decides what the lowest possible amount of material per SECOND can be produced, right? I could increase this tenfold to go from 0.1/s to 1/s, right?
- 13 - This describes the value that 63% of all crude oil spots will be within 1 standard deviation of, right, as according to the Normal Distribution?
- 31~48 - These are the world generation parameters, right? How do they work, if anyone knows?
- 49 - This describes how the seam changes each time a threshold is crossed, right? Like how ore spots get more and more sparse as they're harvested?
- 50~64 - This tells Factorio how the stages change each time a threshold is passed, and where they are on the spritesheet, right? How are they set out?
Also, could someone please advise me - does Factorio use the demo-resources prototype to handle all other resource generation, even in the full game? If so, that's tremendously confusing and I'm grumpy about it. ;P
Thanks in advance for any help offered. If this thread already exists somewhere, link me to it and I'll get rid of this one, if I can.
I am already under the assumption that I'll have to make a new resource category for solids if I don't want players to be able to just pop a mining drill onto the site; I'd also like to know if that's possible, or even the right thing to do.