What are these autoplace values?

Place to get help with not working mods / modding interface.
Chrjs
Manual Inserter
Manual Inserter
Posts: 1
Joined: Thu Mar 17, 2016 4:08 pm
Contact:

What are these autoplace values?

Post by Chrjs »

Hi, I just started modding last night and i've made a mod that adds snow and ice to the game, and for good measure I want to try and use the autoplace feature to generate biomes.

I've been using the tiles.lua file as a point of reference for it, but I have difficulties understanding what these numbers indicate:

Code: Select all

autoplace = autoplace_settings("grass", {{{35, 0.8}, {0, 0.4}}}),
autoplace = autoplace_settings("grass-medium", {{{35, 1}, {10, 0.7}}}),
autoplace = autoplace_settings("grass-dry", {{{35, 0.5}, {10, 0.3}}, {{5, 0.6}, {-10, 0.1}}}),
autoplace = autoplace_settings("dirt", {{{35, 0.4}, {-10, 0}, 0.95}}),
autoplace = autoplace_settings("dirt-dark", {{{35, 0.4}, {-10, 0}, 0.5}}),
autoplace = autoplace_settings("sand", {{{35, 0.2}, {0, 0}}}),
autoplace = autoplace_settings("sand-dark", {{{35, 0.3}, {-5, 0.1}}}),
They are all sent to the autoplace_settings() local function as the "rectangles" parameter, which is a helper function for autoplace_utils.peaks, but I can't find any utils lua file in the game folder. So it's pretty hard for me to know what these numbers are. There's very little documentation on any of this stuff.

Thanks.
Post Reply

Return to “Modding help”