Page 1 of 1

Access to noise layers

Posted: Thu Mar 08, 2018 3:28 pm
by betrok
So, factorio has fast system of noise layers, but i can not see any way to use it apart from autoplace.

Can it be exposed in mod api?

Re: Access to noise layers

Posted: Thu Mar 08, 2018 11:58 pm
by Rseding91
The autoplace controls *are* the definition of the noise layers. What exactly are you hoping to have exposed?

Re: Access to noise layers

Posted: Fri Mar 09, 2018 9:14 am
by betrok
Rseding91 wrote:What exactly are you hoping to have exposed?
Raw noise values for any given coordinates.

Something like

Code: Select all

game.noise_layers[name].get(position) -> double

Re: Access to noise layers

Posted: Fri Mar 09, 2018 10:53 am
by Rseding91
betrok wrote:
Rseding91 wrote:What exactly are you hoping to have exposed?
Raw noise values for any given coordinates.

Something like

Code: Select all

game.noise_layers[name].get(position) -> double
Those don't exist. The game generates noise using an autoplace control and a chunk-wide generic noise blob at chunk generation time but there's no "get me the value for this layer at this position" to expose.

Re: Access to noise layers

Posted: Fri Mar 09, 2018 12:05 pm
by betrok
Hm, makes sence, game itself do not need to cache it...

It seams i need to investigate autoplace system deeper, everythink what i want to do for now should be possible with it after all.
But i still think, that at least "chunk-wide generic noise blob" could be very userfull for mods.

Thanks for information anyways.