Millions of Biters slowing down the game

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Post Reply
toydarian
Manual Inserter
Manual Inserter
Posts: 4
Joined: Fri Jul 29, 2016 8:21 am
Contact:

Millions of Biters slowing down the game

Post by toydarian »

Hi Community,

I have this little problem:
The evolution factor got quite high, almost to 1. As I just like to build and those Biters were annoying me, I decided to reset the evolution factor.
So, using the console, I reset it to 0 and I killed all enemies (also using the console).

I was quite happy for a few minutes until I realized that the game slowed down. Soon it ran only half speed.
Soon I found out that incredible amounts of small biters were spawned and caused this. By killing them off, I could get to normal speed, but a few minutes later, it was slow again.
I attach a screenshot of just one group of biters, I don't know how many of those groups are there, but I know of at least 3.

Here is the Question:
Is there a way to control the maximum amount of enemies or the interval of spawning using the console?
I'm really looking for a technical solution, not a way to battle them. They can't even penetrate my body shield ;)

Thanks in advance!

Toydarian
Attachments
Just one group of biters
Just one group of biters
factorio_small_biters.png (6.03 MiB) Viewed 2407 times

Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: Millions of Biters slowing down the game

Post by Nexela »

You could destroy all the loaded enemies and bases

/c local surface = game.player.surface
for key, entity in pairs(surface.find_entities_filtered({force= "enemy"})) do
entity.destroy()
end
Last edited by Nexela on Sat Jul 30, 2016 12:21 pm, edited 1 time in total.

BlakeMW
Filter Inserter
Filter Inserter
Posts: 950
Joined: Thu Jan 21, 2016 9:29 am
Contact:

Re: Millions of Biters slowing down the game

Post by BlakeMW »

One of the main reasons why the game has evolution is to keep the enemy count relatively constant even as pollution increases.

Basically each enemy type has a "pollution cost" to be spawned, for example these are the biter pollution_to_join_attack values from the data:

small biter: 200 pollution
medium biter: 1000 pollution
big biter: 4000 pollution
behemoth biter: 20000

So if you roll back from behemoth biters to small biters, the same amount of pollution will be spawning literally 100x as many biters.

You could technically mod these values to reduce the spawn rate, but it can't be done from the console because these values are fixed once the game has loaded.

toydarian
Manual Inserter
Manual Inserter
Posts: 4
Joined: Fri Jul 29, 2016 8:21 am
Contact:

Re: Millions of Biters slowing down the game

Post by toydarian »

BlakeMW, thanks for the explanation!

Nexela, that sounds like a great workaround! Thank you :)

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Millions of Biters slowing down the game

Post by Rseding91 »

Nexela wrote:You could destroy all the loaded enemies and bases

/c local surface = game.player.surface
for c in surface.get_chunks() do
for key, entity in pairs(surface.find_entities_filtered({force= "enemy"})) do
entity.destroy()
end
end
That's going to search the entire surface * chunk count.. you don't want the get_chunks part in there.
If you want to get ahold of me I'm almost always on Discord.

Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: Millions of Biters slowing down the game

Post by Nexela »

Oops, I mostly just copied it from reddit and didn't think about the chunk part.

Post Reply

Return to “Technical Help”