[0.12.8] game.print_entity_statistics() broken

This subforum contains all the issues which we already resolved.
Post Reply
Berserker55
Long Handed Inserter
Long Handed Inserter
Posts: 69
Joined: Sat Jan 31, 2015 7:36 am
Contact:

[0.12.8] game.print_entity_statistics() broken

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

Rseding91
Factorio Staff
Factorio Staff
Posts: 13209
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.12.8] game.print_entity_statistics() broken

Post 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.
If you want to get ahold of me I'm almost always on Discord.

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.12.8] game.print_entity_statistics() broken

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

Post Reply

Return to “Resolved Problems and Bugs”