What is evolutionfactor?

Post all other topics which do not belong to any other category.
Post Reply
Ardagan
Fast Inserter
Fast Inserter
Posts: 101
Joined: Sat Dec 21, 2013 11:24 pm
Contact:

What is evolutionfactor?

Post by Ardagan »

I know, that should be insides of the game, but what is evolutionfactor and how does it influence the game?

User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: What is evolutionfactor?

Post by FreeER »

evolutionfactor is a double variable (from 0-1, I think) located in the table 'game' that increases over time, when spawners are destroyed, and when pollution is spread from chunk to chunk in the world. It is used to increase the difficulty of the game as you play.

How it increases difficulty:
It increases both the rate of biters spawning and the chance of larger biters spawning. This way you get a few small biters spawning in the beginning but as the evolutionfactor rises biters spawn faster and more of the medium, and big, biters are spawned.
It is used in determining the size of the group of biters sent to build bases.
and is used in expansion cool down (time between bases being built)

However it does not control when the biters attack, that is controlled by the amount of pollution absorbed by the spawners (small biters are 200, medium and big 1000) and is defined in the prototypes for each biter as pollution_to_join_attack, and if the player comes within range of them.
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me :)
Or drop into #factorio on irc.esper.net

Ardagan
Fast Inserter
Fast Inserter
Posts: 101
Joined: Sat Dec 21, 2013 11:24 pm
Contact:

Re: What is evolutionfactor?

Post by Ardagan »

Thank you. That's quite informative. Probably I'll copy this info to wiki later.

one more thing to clear: is there a way to specify evolutionfactor growth speed? is there info on what are dependencies betwee evolution factor and creeps spawn/base growth?

User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: What is evolutionfactor?

Post by FreeER »

Ardagan wrote: is there a way to specify evolutionfactor growth speed?
it's defined in Facotorio\data\base\prototypes\map-settings.lua (enemy_evolution). Note, all code is from 0.8.3 of Factorio

Code: Select all

      -- percentual increase in the evolve factor for every second (60 ticks)
      time_factor = 0.000008,
      -- percentual increase in the evolve factor for every destroyed spawner
      destroy_factor = 0.005,
      -- percentual increase in the evolve factor for 1000 PU
      pollution_factor = 0.00003
It could be modified with a script by using game.mapsettings ex: game.mapsettings.enemy_evolution.time_factor=30*3600
is there info on what are dependencies betwee evolution factor and creeps spawn/base growth?
Expansion cooldown:
min_expansion_cooldown + (1 - evolutionfactor * (max_expansion_cooldown - min_expansion_cooldown))=ticks til next possible expansion
min and max are defined in mapsettings.lua (inside enemy_expansion table)

Code: Select all

      -- Ticks to expand to a single
      -- position for a base is used.
      --
      -- cooldown is calculated as linear interpolation between min and max
      min_expansion_cooldown = 5 * 3600,
      max_expansion_cooldown = 60 * 3600
Spawning Rate:
min_cooldown + (max_cooldown - min_cooldown) * evolutionfactor=ticks til next possible spawn
min and max are defined in the spawner entity prototype Factorio\data\base\prototypes\entity\demo-entities.lua (at least with 0.8.3, I can not remember seeing this before lol).

Code: Select all

-- With zero evolution the spawn rate is 5 seconds, with max evolution it is 2.5 seconds
    spawning_cooldown = {300, 150},

For base builder group size:
settler_group_min_size + evolutionfactor * (settler_group_max_size-settler_group_min_size)=size of sent group.
min and max are defined in mapsettings.lua (in enemy_expansion table)

Code: Select all

      -- Size of the group that goes to build new base (in game this is multiplied by the
      -- evolution factor).
        settler_group_min_size = 5,
        settler_group_max_size = 20,
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me :)
Or drop into #factorio on irc.esper.net

Ardagan
Fast Inserter
Fast Inserter
Posts: 101
Joined: Sat Dec 21, 2013 11:24 pm
Contact:

Re: What is evolutionfactor?

Post by Ardagan »

Wish there was this information inside the game ^_^

User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: What is evolutionfactor?

Post by FreeER »

Ok, I've added this information to the wiki, the growth info to Lua/Game with a link to the more technical details at Difficulty (since I wasn't really sure the best place, I didn't want to place it all in Lua/Game since that's more of a listing of the game object's properties and methods)
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me :)
Or drop into #factorio on irc.esper.net

slpwnd
Factorio Staff
Factorio Staff
Posts: 1835
Joined: Sun Feb 03, 2013 2:51 pm
Contact:

Re: What is evolutionfactor?

Post by slpwnd »

FreeER wrote:Ok, I've added this information to the wiki, the growth info to Lua/Game with a link to the more technical details at Difficulty (since I wasn't really sure the best place, I didn't want to place it all in Lua/Game since that's more of a listing of the game object's properties and methods)
Thank you :)

User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: What is evolutionfactor?

Post by FreeER »

slpwnd wrote:
FreeER wrote:Ok, I've added this information to the wiki...
Thank you :)
No problem...There should be a list somewhere (that others can add to) of what's left to do, then I could go through it (over time) much more easily than just whenever someone asks a question or I go to look it up and don't find it :) Don't suppose you have one lying around somewhere? :lol:
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me :)
Or drop into #factorio on irc.esper.net

slpwnd
Factorio Staff
Factorio Staff
Posts: 1835
Joined: Sun Feb 03, 2013 2:51 pm
Contact:

Re: What is evolutionfactor?

Post by slpwnd »

FreeER wrote:No problem...There should be a list somewhere (that others can add to) of what's left to do, then I could go through it (over time) much more easily than just whenever someone asks a question or I go to look it up and don't find it Don't suppose you have one lying around somewhere?
Actually this is a wonderful idea. I will put it on our todo list (haha so meta) :D

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: What is evolutionfactor?

Post by ssilk »

I can set up a wiki page, which provides you with a template for todo-lists of todo-lists.
<totally serious looking>

no, not really... :lol:
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

Post Reply

Return to “General discussion”