[0.12.8] game.print_entity_statistics() broken
-
- Long Handed Inserter
- Posts: 72
- Joined: Sat Jan 31, 2015 7:36 am
- Contact:
[0.12.8] game.print_entity_statistics() broken
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
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.
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.
Re: [0.12.8] game.print_entity_statistics() broken
Mainly, the command should be part of the player object rather the game object. It would solve the problem.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.