videoP / jaPRO

Community effort to maintain and improve Jedi Academy + Jedi Outcast released by Raven Software
GNU General Public License v2.0
12 stars 6 forks source link

sometimes database gets error cannot open #12

Closed videoP closed 6 years ago

videoP commented 6 years ago

started happening around when the playtime tracking was added? but it also seems to only happen when the .db file is downloaded/uploaded via FTP

videoP commented 6 years ago

Happened on racepack6 on or shortly after map load.

First DB error was at "G_UpdateOtherLocalRun 3" (SQLITE_CANTOPEN)

Also noticed this a minute earlier in G_AddPlayerLog (not database related, just a simple FS_Open failure) Com_Printf ("ERROR: Couldn't load player logfile %s\n", PLAYER_LOG);

So maybe its a problem with the filesystem?

There was no FTP access prior to this so I think we can rule that out as a culprit.

keep logging it and see if it only happens in that spot or if its random

videoP commented 6 years ago

Fixed here maybe? https://github.com/videoP/jaPRO/commit/49d28c8cab837646bbbaba1743456559df430223