edit the maximum expansion distance

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
Pascali
Fast Inserter
Fast Inserter
Posts: 170
Joined: Wed Aug 23, 2017 8:24 pm
Contact:

edit the maximum expansion distance

Post by Pascali »

hi, i created a scenario. Now it is to easy. I can edit evolution with: /c game.forces["enemy"].evolution_factor=X

But how can i edit(after the game has startet already) the:
Maximum expansion distance
Minimum group size
Maximum group size
Minium cooldown
Maximum cooldown

Image

thank you!

Bilka
Factorio Staff
Factorio Staff
Posts: 3225
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: edit the maximum expansion distance

Post by Bilka »

/c game.map_settings.enemy_expansion.thing_to_edit = value

The things that you want to edit:

Code: Select all

enemy-expansion-maximum-expansion-distance -> game.map_settings.enemy_expansion.max_expansion_distance
enemy-expansion-minimum-expansion-group-size -> game.map_settings.enemy_expansion.settler_group_min_size
enemy-expansion-maximum-expansion-group-size -> game.map_settings.enemy_expansion.settler_group_max_size
enemy-expansion-minimum-expansion-cooldown -> game.map_settings.enemy_expansion.min_expansion_cooldown (this has to be in ticks, but in the menu it's in minutes. Just multiply your wanted minute value with 3600 and then use that number)
enemy-expansion-maximum-expansion-cooldown -> game.map_settings.enemy_expansion.max_expansion_cooldown (this is in ticks, but in the menu it's in minutes. Just multiply your wanted minute value with 3600 and then use that number)
Some limitations number wise, this is assumed from the menu itself:

Code: Select all

maximum expansion distance. Possible values: 2 to 20
expansion minimum group size. Possible values: 1 to 20
Expansion maximum group size has to be higher than expansion minimum group size.
expansion maximum group size. Possible values: 1 to 50
expansion minimum cooldown. Possible values: 1 to 60 Minutes
Expansion maximum cooldown has to be higher than expansion minimum cooldown.
expansion maximum cooldown. Possible values: 5 to 180 Minutes
All values have to be integers (whole numbers)

Example, setting minimum group size to 10:

Code: Select all

/c game.map_settings.enemy_expansion.settler_group_min_size = 10
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Pascali
Fast Inserter
Fast Inserter
Posts: 170
Joined: Wed Aug 23, 2017 8:24 pm
Contact:

Re: edit the maximum expansion distance

Post by Pascali »

wow - fantastic! We will set it back to the standard-values:
/c game.map_settings.enemy_expansion.max_expansion_distance = 7
/c game.map_settings.enemy_expansion.settler_group_min_size = 5
/c game.map_settings.enemy_expansion.settler_group_max_size = 20
/c game.map_settings.enemy_expansion.min_expansion_cooldown = 14400
/c game.map_settings.enemy_expansion.max_expansion_cooldown = 216000

How can i test, if the settings are made? I get no feedback from the game(they are still attacking with 1 enemy). For evolution-factor it can be proofed like this: /evolution

Do you know the variablenames for this 3, too?:
Time factor
Destroy factor
Pollution factor
Image

Time: -> /c game.forces["enemy"].evolution_factor=1
Destroy: ?
Pollution: ?

Bilka
Factorio Staff
Factorio Staff
Posts: 3225
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: edit the maximum expansion distance

Post by Bilka »

For people who are looking at this thread for the same answers: I made a mod to easily change the settings, you can also check what your current settings are by pressing the "Set fields to current settings" button. The mod can be found here: https://mods.factorio.com/mods/Bilka/ChangeMapSettings
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Pascali
Fast Inserter
Fast Inserter
Posts: 170
Joined: Wed Aug 23, 2017 8:24 pm
Contact:

Re: edit the maximum expansion distance

Post by Pascali »

thank you. The settings i made are all done correctly, if i beliefe your mod(top left info). But still there is attacking 1 or 3 biters only. Playtime > 15 hours. Evolution > 0.4

How can i set the timebased evotlution growing(time factor) with a command(without the mod)?

Is the time-factor backward calculated if i change it.
If i change it from 0.1 to 0.4 an played 10 hours, do i get the 0.3 on the past 10 hours addet to the evolution?

Bilka
Factorio Staff
Factorio Staff
Posts: 3225
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: edit the maximum expansion distance

Post by Bilka »

/c game.map_settings.enemy_evolution.time_factor = x

How many biters are attacking you doesn't depend on evolution, fyi. Biters attack you if your pollution cloud hits them or you get close to them.
Pascali wrote: Is the time-factor backward calculated if i change it.
If i change it from 0.1 to 0.4 an played 10 hours, do i get the 0.3 on the past 10 hours addet to the evolution?
Not as far as I know.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Pascali
Fast Inserter
Fast Inserter
Posts: 170
Joined: Wed Aug 23, 2017 8:24 pm
Contact:

Re: edit the maximum expansion distance

Post by Pascali »

I testet it, it is not added backwards.

How can i calculate the missed evolution? I played with evolution 0.00001 instead of 0.00004 over 10 hours. How can i now calculate the evolution difference?

And thank you, its working with the command.

Post Reply

Return to “Technical Help”