Page 1 of 1

[0.12.8] game.print_entity_statistics() broken

Posted: Tue Sep 22, 2015 9:18 pm
by Berserker55
Simply load up a savegame with more than one player, use the command game.print_entity_statistics() and get "Map doesn't contain 1 player, this function can't be used". Even if currently in single player, it's enough if the map was played in multiplayer before.

Re: [0.12.8] game.print_entity_statistics() broken

Posted: Wed Sep 23, 2015 4:37 am
by Rseding91
Because the map still contains more than 1 player even while in single player. If you want to remove the other players you need to run: game.remove_offline_players() https://forums.factorio.com/wiki/inde ... ne_players

The command however can be partially fixed so it at least works in the console even from a multiplayer game so i'll do that.

Re: [0.12.8] game.print_entity_statistics() broken

Posted: Wed Sep 23, 2015 10:55 am
by kovarex
Rseding91 wrote:Because the map still contains more than 1 player even while in single player. If you want to remove the other players you need to run: game.remove_offline_players() https://forums.factorio.com/wiki/inde ... ne_players

The command however can be partially fixed so it at least works in the console even from a multiplayer game so i'll do that.
Mainly, the command should be part of the player object rather the game object. It would solve the problem.