LUA command not working in console (Alien Evolution)

Place to get help with not working mods / modding interface.
Post Reply
Molay
Fast Inserter
Fast Inserter
Posts: 177
Joined: Thu May 01, 2014 8:01 am
Contact:

LUA command not working in console (Alien Evolution)

Post 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

orzelek
Smart Inserter
Smart Inserter
Posts: 3911
Joined: Fri Apr 03, 2015 10:20 am
Contact:

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

Post by orzelek »

Try to use map_setting - might help.

Molay
Fast Inserter
Fast Inserter
Posts: 177
Joined: Thu May 01, 2014 8:01 am
Contact:

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

Post 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.

ratchetfreak
Filter Inserter
Filter Inserter
Posts: 952
Joined: Sat May 23, 2015 12:10 pm
Contact:

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

Post 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 )

Molay
Fast Inserter
Fast Inserter
Posts: 177
Joined: Thu May 01, 2014 8:01 am
Contact:

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

Post 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?

Molay
Fast Inserter
Fast Inserter
Posts: 177
Joined: Thu May 01, 2014 8:01 am
Contact:

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

Post 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! :)

Post Reply

Return to “Modding help”