Okay, lets see. you'll basically want to do the following:
Go to the file I mentioned (demo-resource.lua in the base game) and copy the autoplace definition for iron ore (I can't see the game code where I am, this is not exact code) for my example, I'll use one of the ores from my mod.
you will need to take note of the order the resources are called, because you'll need to manually re-use the index. iron ore is 0 because it's first, I think copper is next, so it's a 1. I don't remember the order of the other 4 base game ores.
in your copy of this code, edit base density. (I'm guessing)
set it again.
So...
you start with something that looks like this: (I'm using Bauxide, because I can see the code for it)
Code: Select all
autoplace = resource_autoplace.resource_autoplace_settings{
name = "bauxite-ore",
order = "c",
base_density = 8,
has_starting_area_placement = false,
resource_index = resource_autoplace.get_next_resource_index(),
regular_rq_factor_multiplier = 1,
},
Code: Select all
data.raw.resource["bauxite-ore"].autoplace = resource_autoplace.resource_autoplace_settings{
name = "bauxite-ore",
order = "c",
base_density = 800, --I increased it
has_starting_area_placement = false,
resource_index = 12, --This is a guess
regular_rq_factor_multiplier = 1,
},
Really though, I am totally guessing with all this, the current ore generation system is a fucking NIGHTMARE to work with.