I have setup a rather wide perimeter though, so I have enough room left for expansion and train stations that need a lot of room. I have filled all the gaps on my perimeter, but they keep appearing in my base!
I am thinking I also need to defend the water, since they often seem to spawn near the lake which my factory borders on, but I'd like to know with some certainty how new bases and worms are spawned.
Edit:
I have found some information in the 0.7.0 discussion:
Apparently, I have setup my base too wideslpwnd wrote:You can have a look at data/base/prototypes/map-settings.lua (in the enemy_expansion section). The whole thing works as follows:Dakkanor wrote: two things please,
firstly could you give a general explanation to the logic of how the enemy base expansion is intended to work? i.e what factors you use to calculate new areas for the biters bases.
and secondly, would it be possible to add in an option to choose how rapidly and aggressively the biters bases expand?
i just got killed trying to clear out some biters which spawned in an open area near my power generation zone which i hadn't set up with turrets because it was protected by a water barrier and i would love an option to restrict spawning near my infrastructure. biters getting into my base because of poor planning i can deal with, having my base destroyed from the inside because i left room for expansion in a closed off area just feels like i'm being punished for trying to plan ahead.
1. The algorithm keeps the set of possible candidate places.
2. These are selected to be "not too close from the existing enemy bases" (min_base_spacing), "not too far from the enemy bases" (max_expansion_distance) and not too close to the player's structure (min_player_base_distance - this is new in 0.7.1).
3. The cooldown (expansion_cooldown) governs when the expansion happens. At the moment it comes out to be +- once in 15 minuts on medium sized maps. But we will have to playtest it more, since this gets more frequent for bigger factories.
4. One of the possible locations is selected and a group of biters is sent there.
5. They walk around the place for a while and then they die and buildings appear.
So the update in 0.7.1 is that the expansion is going to avoid players structures, meaning that enemies will not try to build bases inside your factory. Which I agree is more annoying than fun.
![Razz :P](./images/smilies/icon_razz.gif)