Page 1 of 1

[0.16.6] Making a noise-expression affect a noise-layer

Posted: Fri Dec 22, 2017 6:35 pm
by Earendel
I have a noise layer with name = "abm1"
I have a noise expression that returns debug values: x * (1 / 100)
I have tried calling the noise expression "abm1", "default-abm1", and "debug-abm1"
To test I am only allowing water and grass to be autoplaced:

Code: Select all

for _, tile in pairs(data.raw.tile) do
  data.raw.tile[_].autoplace = nil
end
data.raw.tile['water'].autoplace = {
  peaks = {
    {
      abm1_optimal = 0.25,
      abm1_range = 0.25,
      abm1_max_range = 0.35
    }
  },
}
data.raw.tile['grass-1'].autoplace = {
  peaks = {
    {
      abm1_optimal = 0.75,
      abm1_range = 0.25,
      abm1_max_range = 0.35
    }
  },
}
It only outputs grass. I can't see any way of specifying a noise expression on the noise layer so I expected that there would be something behind the scenes to choose the expression based on a naming convention.
If i replace abm1_ in peaks with elevation, temperature, aux, etc it works, but I need to create more large-scale noise layers of this type to control biome distribution. Any ideas?

Re: [0.16.6] Making a noise-expression affect a noise-layer

Posted: Sat Dec 23, 2017 1:04 pm
by Earendel
The AutoplaceSpecification (http://lua-api.factorio.com/latest/Conc ... cification) suggests that a 'dimesion' might be different from a noise layer and might be hard coded?

I also noticed that there's a base definition for moisture noise expression but the autoplace settings use a water_ prefix instead.

Maybe this is something that is not fully implemented yet?