Page 1 of 1
[Solved] enemy_evolution question
Posted: Sat May 14, 2016 9:45 pm
by TheSAguy
So it seems I can't change the evolution affecting factors of an existing game, is that correct?
Changing:
data.raw["map-settings"]["map-settings"]["enemy_evolution"].time_factor = x
data.raw["map-settings"]["map-settings"]["enemy_evolution"].pollution_factor = x
data.raw["map-settings"]["map-settings"]["enemy_evolution"].destroy_factor = x
Does not have an affect on a save, but only a new game. Is that correct?
Thanks.
Re: enemy_evolution question
Posted: Sat May 14, 2016 9:57 pm
by prg
Those values can be assigned at run time via
game.map_settings.
Re: enemy_evolution question
Posted: Sat May 14, 2016 10:14 pm
by TheSAguy
So changing those values in a data-final-fixes.lua file:
Code: Select all
data.raw["map-settings"]["map-settings"]["enemy_evolution"].pollution_factor = 0.00003
won't have an effect, but running the below in the console command line will?
Code: Select all
/c game.map_settings.enemy_evolution.pollution_factor = 0.00003
Re: enemy_evolution question
Posted: Sat May 14, 2016 10:22 pm
by prg
I'd assume the values from the prototype would only be used for a new game. Maybe you could simply try it.
Re: enemy_evolution question
Posted: Tue May 24, 2016 4:22 pm
by TheSAguy
TheSAguy wrote:So changing those values in a data-final-fixes.lua file:
Code: Select all
data.raw["map-settings"]["map-settings"]["enemy_evolution"].pollution_factor = 0.00003
won't have an effect, but running the below in the console command line will?
Code: Select all
/c game.map_settings.enemy_evolution.pollution_factor = 0.00003
I just wanted to say that the above worked.
Command that would display/print the value of pollution_factor:
Code: Select all
/c game.local_player.print(game.map_settings.enemy_evolution.pollution_factor)