Page 1 of 1

What are these autoplace values?

Posted: Thu Mar 17, 2016 4:16 pm
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.