Page 1 of 1

[0.12.x] [kovarex]Can't change pollution_factor to 0. + MP Crash!

Posted: Sun Sep 27, 2015 6:40 pm
by StoneLegion
I wanted to turn of evolution but rather just setting to false I went and changed the values to 0. Destroy and Time work fine but I found Pollution Factor will not go to 0.

Image

Now using /c game.players[1].print(game.map_settings.enemy_evolution.pollution_factor) in MP Ended up causing the server to dysnc then the server left.. From there we could not connect again and I just ended up rebooting it.

Mods: http://stonelegion.com/kane/deathsoon.zip

Re: [Oxyd] Can't change pollution_factor to 0. + MP Crash!

Posted: Tue Sep 29, 2015 2:39 pm
by Oxyd
You're writing to enemy_expansion, but reading enemy_evolution. If I write 0 to game.map_settings.enemy_evolution.pollution_factor, I read 0 back.

Also, no desync in MP from running that command. Can I reproduce it somehow?

Re: [Oxyd] Can't change pollution_factor to 0. + MP Crash!

Posted: Tue Sep 29, 2015 3:37 pm
by StoneLegion
Clearly I derped up bad with those commands. Half a sleep is a bad time to play factorio.

I could repeat the crash/dsync using the following method:
/c game.map_settings.enemy_evolution.pollution_factor = 1.4e-005
then
/c game.players[1].print(game.map_settings.enemy_evolution.pollution_factor)

it seems to only dysnc the server (headless Linux) rather then the client. I tried in Single Player had no issues.

Fresh map no mods headless Linux Server still does it oddly enough but no one else can reproduce it.

http://stonelegion.com/kane/desync-repo ... -48-09.zip

I made a quick video of working and not working hehe:
http://stonelegion.com/kane/whyme.mp4

Re: [0.12.x] [kovarex]Can't change pollution_factor to 0. + MP Crash!

Posted: Wed Oct 21, 2015 2:39 pm
by kovarex
I fixed this one, it is noted in the friday facts actually. (https://www.factorio.com/blog/post/fff-108)

Just writing

Code: Select all

/c game.local_player.print(0.000001)
Is enough to desync the game.

The problem is solved for 0.12.13, but only the particular problem was solved, other values like

Code: Select all

/c game.local_player.print(0/1) -- inf
/c game.local_player.print(0/0) -- -nan
will desync the game, as these values are translated to different values on different platforms. It will be probably solved in 0.13, but it will require bigger changes.