Page 1 of 1

[0.17.x][Scenario] map_gen_settings.autoplace_settings doesn't work with most of the entities

Posted: Thu Dec 26, 2019 8:00 pm
by cogito123
Hi,

I'm creating a new surface and I want to specify additional things to spawn, like gun turrets.

Code: Select all

      local map = {
         default_enable_all_autoplace_controls = false,
         autoplace_settings={
            entity = {
               settings = {
                  ["gun-turret"] = {
                     frequency = 10,
                     size = 10,
                     richness = 10
                  }
               }
            }
         }
      }
      game.create_surface("arena", map)
This doesn't work. The map is empty, except for the cliffs.
If I change entity to "tree-01" it correctly fills whole map with dense forest.
Already checked internet for "autoplace_settings" and they point me to print game.entity_prototypes, but all it gives me is bunch of nil.
Does anybody know what I do wrong?