Page 1 of 1

LUA command not working in console (Alien Evolution)

Posted: Sat Jul 18, 2015 8:46 pm
by Molay
Hello there,

I was about to start a new game and intended to remove the evolution over time, while increasing the evolution due to pollution.

I found the following commands on the wiki, but they seem obsolete:

/c game.mapsettings.enemy_evolution.time_factor = 0.000008 * 0
/c game.mapsettings.enemy_evolution.pollution_factor = 0.00003 * 6

Does anybody know what the commands would be?

Thanks

Re: LUA command not working in console (Alien Evolution)

Posted: Sat Jul 18, 2015 8:56 pm
by orzelek
Try to use map_setting - might help.

Re: LUA command not working in console (Alien Evolution)

Posted: Sat Jul 18, 2015 9:37 pm
by Molay
Thank you very much, worked just fine (I think?).

Is there a command to check what the current values are? I'm assuming it accepted the command as it threw no error message, but no confirmation was given either.

Re: LUA command not working in console (Alien Evolution)

Posted: Sat Jul 18, 2015 9:39 pm
by ratchetfreak
Molay wrote:Thank you very much, worked just fine (I think?).

Is there a command to check what the current values are? I'm assuming it accepted the command as it threw no error message, but no confirmation was given either.
/c print( game.map_settings.enemy_evolution.time_factor )

Re: LUA command not working in console (Alien Evolution)

Posted: Sat Jul 18, 2015 9:43 pm
by Molay
ratchetfreak wrote:
Molay wrote:Thank you very much, worked just fine (I think?).

Is there a command to check what the current values are? I'm assuming it accepted the command as it threw no error message, but no confirmation was given either.
/c print( game.map_settings.enemy_evolution.time_factor )
Thanks, but this seems to only echo the string I give it to. I write /c print( game.map_settings.enemy_evolution.time_factor ) and it writes it back? Perhaps another command which is obsolete?

Re: LUA command not working in console (Alien Evolution)

Posted: Sat Jul 18, 2015 9:52 pm
by Molay
This one works:
/c game.player.print( game.map_settings.enemy_evolution.time_factor )

One needs to prefix print with game.player. Thanks for your help! :)