/evolution console command can't handle negative values
Posted: Sun May 28, 2017 11:52 am
Normally, when I use the /evolution console command, I get a result such as this:
However, if one of these three categories is negative (for example by setting game.map_settings.enemy_evolution.time_factor to a negative value), there is an error in the calculation (overflow or signed/unsigned mismatch) and the output of the /evolution command is the following:
Instead of this, it would have been correct to display the following:
Code: Select all
Evolution factor: 0.9066. (Time 20%) (Pollution 45%) (Spawner kills: 33%)
Code: Select all
Evolution factor: 0.8777. (Time 4294967287%) (Pollution 63%) (Spawner kills: 46%)
Code: Select all
Evolution factor: 0.8777. (Time -9%) (Pollution 63%) (Spawner kills: 46%)