Page 1 of 1

Show Individual Evolution Factors

Posted: Tue May 21, 2019 7:22 pm
by TheSAguy
Hi,

Per my post here. There are 3 things in Vanilla that cause the Evolution to go up.

I'd like to be able to show what Evolution caused by each of these individually please.

% Evolution caused by Time
% Evolution caused by Destruction
% Evolution caused by Pollution (or in the case of Next Gen Evolution or Evo, the caused by Spawner absorption.)

Thanks.

Re: Show Individual Evolution Factors

Posted: Tue May 21, 2019 7:28 pm
by Bilka

Re: Show Individual Evolution Factors

Posted: Tue May 21, 2019 7:31 pm
by darkfrei
Print to console:

Code: Select all

/c game.print ('evolution_factor: '.. game.forces['enemy'].evolution_factor)
game.print ('evolution_factor_by_pollution: '.. game.forces['enemy'].evolution_factor_by_pollution)
game.print ('evolution_factor_by_time: '.. game.forces['enemy'].evolution_factor_by_time)
game.print ('evolution_factor_by_killing_spawners: '.. game.forces['enemy'].evolution_factor_by_killing_spawners)
2019-05-21T21_31_03-Factorio 0.17.41.png
2019-05-21T21_31_03-Factorio 0.17.41.png (16.37 KiB) Viewed 2587 times
Don't ask me why some of them are higher than 1.

Re: Show Individual Evolution Factors

Posted: Tue May 21, 2019 9:44 pm
by TheSAguy
Great!
Thanks :mrgreen:

Re: Show Individual Evolution Factors

Posted: Wed May 22, 2019 4:52 am
by darkfrei
How to calculate them and why some of them are higher than 1?

Re: Show Individual Evolution Factors

Posted: Wed May 29, 2019 5:52 pm
by Bilka
darkfrei wrote: Wed May 22, 2019 4:52 am How to calculate them and why some of them are higher than 1?

Code: Select all

total_increase = pollution + time + killing_spawners

pollution_percentage = pollution / total_increase * 100
time_percentage = time / total_increase * 100
killing_spawners_percentage = killing_spawners / total_increase * 100

Re: Show Individual Evolution Factors

Posted: Wed May 29, 2019 9:26 pm
by darkfrei
Bilka wrote: Wed May 29, 2019 5:52 pm
darkfrei wrote: Wed May 22, 2019 4:52 am How to calculate them and why some of them are higher than 1?

Code: Select all

total_increase = pollution + time + killing_spawners

pollution_percentage = pollution / total_increase * 100
time_percentage = time / total_increase * 100
killing_spawners_percentage = killing_spawners / total_increase * 100
It looks like the summ of them must be always 100.