Help with Evolution Rate

Place to get help with not working mods / modding interface.
Post Reply
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1449
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

Help with Evolution Rate

Post by TheSAguy »

Hi,

I'd like to change the evolution rate and am not sure exactly how to do this.

I found LoSboccacc's "No-Evo" mod. He removed time and pollution evolution:
https://forums.factorio.com/forum/vie ... evo#p50188

Could someone please provide me the default settings for the 3 evolution factors: Time, Pollution and Nest destruction?
He's only has two and already zero's out:

data.raw["map-settings"]["map-settings"]["enemy_evolution"].time_factor = 0
data.raw["map-settings"]["map-settings"]["enemy_evolution"].pollution_factor = 0


I like to set-up a game with a lot of nests, but the evolution factor goes up a lot with every nest kill.
So I'd like to lower that number, so you can kill a lot of nests without affecting the evolution factor so much.

Thanks.

User avatar
L0771
Filter Inserter
Filter Inserter
Posts: 516
Joined: Tue Jan 14, 2014 1:51 pm
Contact:

Re: Help with Evolution Rate

Post by L0771 »

I like this.
Can try with this in your data.lua (X is your value)

Code: Select all

data.raw["map-settings"]["map-settings"]["enemy_evolution"].time_factor = 0
data.raw["map-settings"]["map-settings"]["enemy_evolution"].destroy_factor = X
data.raw["map-settings"]["map-settings"]["enemy_evolution"].pollution_factor = 0
https://forums.factorio.com/wiki/inde ... tionfactor
or in control.lua

Code: Select all

game.evolutionfactor.pollution_factor = 0
game.evolutionfactor.time_factor = 0
game.onevent(defines.events.onentitydied, function(event)
	if event.entity.force= game.forces.enemy and event.entity.type = "unit-spawner" then
		game.evolutionfactor= game.evolutionfactor + X,
	end
end)
NOTE: X is your variable factor.

TheSAguy
Smart Inserter
Smart Inserter
Posts: 1449
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

Re: Help with Evolution Rate

Post by TheSAguy »

Thanks L0771, I'll give it a shot!

Post Reply

Return to “Modding help”