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

Place to get help with not working mods / modding interface.
Post Reply
cogito123
Inserter
Inserter
Posts: 23
Joined: Thu Feb 28, 2019 7:05 pm
Contact:

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

Post 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?

Post Reply

Return to “Modding help”