Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Server.dat being overwritten when older than 30 days. #21

Open
clowenhg opened this issue Feb 14, 2014 · 0 comments
Open

Server.dat being overwritten when older than 30 days. #21

clowenhg opened this issue Feb 14, 2014 · 0 comments

Comments

@clowenhg
Copy link

I've already added TODO, but the timeout for when the server.dat last update is older than 30 days causes a shutdown, which then saves the .dat with nothing in it. Especially since you need a really old version of Access to be able to set that date, we may want to remove this, or at least have it not overwrite the .dat

modDatabase.LoadDatabase

    If World.LastUpdate > CLng(Date) Or Abs(World.LastUpdate - CLng(Date)) >= 30 Then
        If MsgBox("Please verify that your system date and time is set correctly -- click ok to go on.", vbOKCancel, TitleString) = vbCancel Then
            '@TODO This looks like it's deleting old .dat files by writing the emptiness over what was there
            ShutdownServer
            End
        End If
    End If
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant