[0.13.13] [Linux] [Steam] [Pending] Game forgets my username and account

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
bioxz
Burner Inserter
Burner Inserter
Posts: 18
Joined: Thu Oct 22, 2015 1:53 pm
Contact:

[0.13.13] [Linux] [Steam] [Pending] Game forgets my username and account

Post by bioxz »

On my computer the latest (and previous) version(s) of the game (started via Steam) seems to forget some data from time to time:
  • My multiplayer username
  • My Factorio account login data
This does not happen every time i start the game, but about every third or fourth start i have to reenter both the name and the login data to play online, on the other starts there is no problem. The problem only appears when i start the game via Steam, with my other copy of the game downloaded from the website this never happened. I'm not 100% sure, but i think i saw this problem even back in 0.12 (only the multiplayer username back then, as the factorio account wasn't required to play online on that server). All other information, like the name of the server i last connected to is saved.

I checked the file permissions, they are ok, as expected, because the game is saving the information most time. I also checked the previous log file and the game shut down normal. This is my startup log:

Code: Select all

   0.000 2016-07-31 18:49:39; Factorio 0.13.13 (build 23721, linux64, steam)
   1.142 Operating system: Linux (Debian testing)
   1.143 Program arguments: "/home/bioxz/.steam/steamapps/common/Factorio/bin/x64/factorio" 
   1.143 Read data path: /home/bioxz/.steam/steamapps/common/Factorio/data
   1.143 Write data path: /home/bioxz/.factorio
   1.143 Binaries path: /home/bioxz/.steam/steamapps/common/Factorio/bin
After starting the game, i would expect to click on multiplayer, confirm the saved server address and enter the server password. With this bug, i click on multiplayer, have to enter my username, confirm the saved server address, have to enter my Factorio account login data and enter the server password.

Maybe i'm just doing something horribly wrong or this is a bug with the saved information, maybe due to Steam cloud sync?

User avatar
TruePikachu
Filter Inserter
Filter Inserter
Posts: 978
Joined: Sat Apr 09, 2016 8:39 pm
Contact:

Re: [0.13.13][Linux][Steam]Game forgets my username and account

Post by TruePikachu »

I don't believe the file is synced through Steam, but I could be mistaken.

Using a different online name than your Factorio account username is unsupported, and the relevant text entry will be removed in a later version. If this is what you're trying to do, that's the problem. Otherwise, I can easily write up a shell script for which can be run between invocations of Factorio to log changes made to the username and token fields in `~/.factorio/player-data.json`; this would aid in debugging the issue.

User avatar
bioxz
Burner Inserter
Burner Inserter
Posts: 18
Joined: Thu Oct 22, 2015 1:53 pm
Contact:

Re: [0.13.13][Linux][Steam]Game forgets my username and account

Post by bioxz »

The online name is the same as my account name, i already noticed that the player-data saves only username and token. I can write a little script to monitor changes with timestamps to match them with the factorio log, I'll report back later.

User avatar
bioxz
Burner Inserter
Burner Inserter
Posts: 18
Joined: Thu Oct 22, 2015 1:53 pm
Contact:

Re: [0.13.13][Linux][Steam]Game forgets my username and account

Post by bioxz »

Ok. some new information: On my latest startup the game was asking me to enter the data again. I looked into the player-data.json and everthing was ok. The console-history was there, the latest-multiplayer-connections and both service-values as well. This time i didn't enter anything into the username field but exited the game (through the menu). Now my player-data.json looks like this:

Code: Select all

{
    "available-campaign-levels": {
        "demo": {
            "level-01": "hard"
        },
        "tight-spot": {
            "level-01": "hard"
        },
        "transport-belt-madness": {
            "level-01": "hard"
        }
    },
    "console-history": "",
    "latest-multiplayer-connections": "",
    "service-username": "",
    "service-token": ""
}
When i started the game again i had to reenter all data, including the server-name. So the player-data.json was ok on launch, but for some reason factorio didn't read the values and saved an empty version of the file after exiting.
Started the game again, reentered all data and left the game -> the file was filled with the correct data. On the next however, i had to reenter it again :(

Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: [0.13.13][Linux][Steam]Game forgets my username and account

Post by Oxyd »

So it looks like Factorio can't read player-data.json for some reason. Could it be an anti-virus or Steam itself blocking Factorio's access to it? If you disable Steam Cloud sync, does the problem still persist?

Rockstar04
Fast Inserter
Fast Inserter
Posts: 171
Joined: Sun Feb 17, 2013 4:31 pm
Contact:

Re: [0.13.13][Linux][Steam]Game forgets my username and account

Post by Rockstar04 »

fellow linux user here, what are the file permissions on your player-data.json file, and what user is factorio running as?

User avatar
bioxz
Burner Inserter
Burner Inserter
Posts: 18
Joined: Thu Oct 22, 2015 1:53 pm
Contact:

Re: [0.13.13][Linux][Steam]Game forgets my username and account

Post by bioxz »

Oxyd wrote:So it looks like Factorio can't read player-data.json for some reason. Could it be an anti-virus or Steam itself blocking Factorio's access to it? If you disable Steam Cloud sync, does the problem still persist?
I have nothing like an anti virus program or SELinux installed that would restrict file access, the permissions are 0755, which should be more then required. I'll disable cloud sync for now and look of something changes.

User avatar
HanziQ
Former Staff
Former Staff
Posts: 630
Joined: Fri Mar 27, 2015 7:07 am
Contact:

Re: [0.13.13] [Linux] [Steam] [Pending] Game forgets my username and account

Post by HanziQ »

Please post the entire log.

rkfg
Long Handed Inserter
Long Handed Inserter
Posts: 62
Joined: Thu Jan 15, 2015 11:11 pm
Contact:

Re: [0.13.13] [Linux] [Steam] [Pending] Game forgets my username and account

Post by rkfg »

Same here and very annoying. At first I thought there's sort of timeout for stored credentials but then I've got my username forgotten right after the game restart. Here's the full log:

Code: Select all

   0.000 2016-09-02 17:04:37; Factorio 0.14.2 (build 24403, linux64, steam)
   2.130 Operating system: Linux (Debian testing)
   2.130 Program arguments: "/opt/SteamLinux/SteamApps/common/Factorio/bin/x64/factorio" 
   2.130 Read data path: /opt/SteamLinux/SteamApps/common/Factorio/data
   2.130 Write data path: /opt/home/btruser/.factorio
   2.130 Binaries path: /opt/SteamLinux/SteamApps/common/Factorio/bin
   2.144 Display options: [FullScreen: false] [VSync: false] [UIScale: 100%] [MultiSampling: OFF] [Screen: 255]
   2.168 Available display adapters: 1
   2.168  [0]: resolution 1920x1200px at [0,0]
   2.168 Create display on adapter 0. Size 1280x720 at position [310, 222].
   2.325 Initialised OpenGL:[0] GeForce GTX 770/PCIe/SSE2; driver: 4.5.0 NVIDIA 361.45.18
   2.325     Video memory size (dedicated/total available/current available): 2048/2048/1662 MB
   2.371 Graphics options: [Graphics quality: normal] [Video memory usage: low] [Light scale: 100%] [DXT: false]
   2.453 Loading mod core 0.0.0 (data.lua)
   2.458 Loading mod base 0.14.2 (data.lua)
   2.599 Checksum for core: 1620335853
   2.599 Checksum for mod base: 3867985917
   2.907 Info PlayerData.cpp:45: Local player-data.json available, timestamp 1472772600
   2.907 Info PlayerData.cpp:50: Cloud player-data.json available, timestamp 1472772600
   3.045 Initial atlas bitmap size is 8192
   3.057 Created atlas bitmap 8192x8178
   3.063 Created atlas bitmap 8192x8177
   3.064 Created atlas bitmap 8192x2595
   9.849 Sprites loaded
   9.850 Loading sounds...
  11.357 Custom inputs active: 0
  11.394 Factorio initialised
  67.403 Joining game 172.25.10.50:34197
  67.403 Info PosixUDPSocket.cpp:50: Opening socket at port 0
  67.403 Info ClientMultiplayerManager.cpp:514: MapTick(-1) changing state from(Ready) to(Connecting)
  67.435 Connection refused
  67.439 Info ClientMultiplayerManager.cpp:159: Quitting multiplayer connection.
  67.439 Info ClientMultiplayerManager.cpp:514: MapTick(-1) changing state from(Connecting) to(Disconnected)
  67.440 Info PosixUDPSocket.cpp:154: Socket closed
  81.931 Info HttpSharedState.cpp:44: Downloading https://auth.factorio.com/api-login
  82.848 Info HttpSharedState.cpp:108: Status code: 200
  82.848 Info AuthServerConnector.cpp:160: Got token from auth server for username(rkfg).
  82.848 Info HttpSharedState.cpp:44: Downloading https://auth.factorio.com/generate-user-server-key
  83.022 Info HttpSharedState.cpp:108: Status code: 200
  83.022 Info AuthServerConnector.cpp:132: Received key(REDACTED) for username(rkfg) from auth server.
  83.022 Joining game 172.25.10.50:34197
  83.022 Info PosixUDPSocket.cpp:50: Opening socket at port 0
  83.022 Info ClientMultiplayerManager.cpp:514: MapTick(-1) changing state from(Ready) to(Connecting)
  83.069 Connection refused
  83.069 Info ClientMultiplayerManager.cpp:159: Quitting multiplayer connection.
  83.069 Info ClientMultiplayerManager.cpp:514: MapTick(-1) changing state from(Connecting) to(Disconnected)
  83.084 Info PosixUDPSocket.cpp:154: Socket closed
  86.351 Joining game 172.25.10.50:34197
  86.351 Info PosixUDPSocket.cpp:50: Opening socket at port 0
  86.351 Info ClientMultiplayerManager.cpp:514: MapTick(-1) changing state from(Ready) to(Connecting)
  86.384 Info ClientSynchronizer.cpp:32: Initialized Synchronizer local peer(1) latency(32).
  86.386 Info ClientMultiplayerManager.cpp:514: MapTick(-1) changing state from(Connecting) to(ConnectedWaitingForMap)
  86.386 Info ClientRouter.cpp:216: ConnectionAccepted
  87.702 Info ClientMultiplayerManager.cpp:640: Received mapReadyForDownload
  87.702 Downloading file /opt/home/btruser/.factorio/temp/mp-download.zip (20967031 B, 41684 blocks)
  87.703 Info ClientMultiplayerManager.cpp:514: MapTick(-1) changing state from(ConnectedWaitingForMap) to(ConnectedDownloadingMap)
  88.985 Finished download (1 s, 20 MB, 16 MB/s)
  89.045 Info ClientMultiplayerManager.cpp:621: mapTick(-1) map download finished creating scenario
  89.045 Info ClientMultiplayerManager.cpp:514: MapTick(-1) changing state from(ConnectedDownloadingMap) to(ConnectedLoadingMap)
  89.046 Loading map /opt/home/btruser/.factorio/temp/mp-download.zip
  89.062 Info Scenario.cpp:148: Map version 0.14.2-2
  90.697 Checksum for script /opt/home/btruser/.factorio/temp/currently-playing/control.lua: 900459546
  90.739 Info ClientMultiplayerManager.cpp:514: MapTick(10547134) changing state from(ConnectedLoadingMap) to(TryingToCatchUp)
  91.708 Info ClientMultiplayerManager.cpp:514: MapTick(10547378) changing state from(TryingToCatchUp) to(WaitingForCommandToStartSendingTickClosures)
  91.781 Info ClientMultiplayerManager.cpp:514: MapTick(10547378) changing state from(WaitingForCommandToStartSendingTickClosures) to(InGame)
  91.832 Info GameActionHandler.cpp:2550: MapTick(10547381) processed PlayerJoinGame peerID(1) playerIndex(0) mode(connect)
  95.742 Info ClientMultiplayerManager.cpp:119: Disconnecting multiplayer connection.
  95.742 Info ClientMultiplayerManager.cpp:514: MapTick(10547614) changing state from(InGame) to(DisconnectScheduled)
  95.761 Info ClientMultiplayerManager.cpp:514: MapTick(10547614) changing state from(DisconnectScheduled) to(WaitingForDisconnectConfirmation)
  95.827 Info ClientMultiplayerManager.cpp:514: MapTick(10547614) changing state from(WaitingForDisconnectConfirmation) to(Disconnected)
  95.827 Info ClientMultiplayerManager.cpp:734: Disconnect notification for peer (1)
  96.293 Info PosixUDPSocket.cpp:154: Socket closed
 126.402 Steam API shutdown.
 126.408 Goodbye
player-data.json have had all the info before I entered the username, password and server IP. So I don't see a reason why it would just forget them.

User avatar
bioxz
Burner Inserter
Burner Inserter
Posts: 18
Joined: Thu Oct 22, 2015 1:53 pm
Contact:

Re: [0.13.13] [Linux] [Steam] [Pending] Game forgets my username and account

Post by bioxz »

I wasn't able to reproduce this problem after disabling Steam Cloud Sync for Factorio. Maybe just a coincidence, I tried to re-enable Steam Cloud Sync but the problem hasn't returned. So you could say the problem is "fixed" for me.

Post Reply

Return to “Resolved Problems and Bugs”