DarkMultiPlayer Client

DarkMultiPlayer Client

38.8k Downloads

Disconnecting right after earning science does not save your recently acquired science

Xinayder opened this issue ยท 7 comments

commented

This should be easy to fix. Check if the user earned some science, if he did, send an update message to the server.

commented

Would this fix it? I have no idea how to build this to test, sorry.
dmp-issue 304 321

commented
commented

By the way, the default scenario send time is 30 seconds.

commented

@RockyTV I saw the default send time also but I think it should stay 30 because otherwise
string scenarioHash = Common.CalculateSHA256Hash(scenarioBytes);
gets run more often. I figured it might cause more lag or work on cpu (though I have no idea how taxing it actually is).

commented

@sentrythethird All you need to do is commit those changes into a new branch and make a pull request.

commented

Should be fixed as of 6192598.
If the issue persists, feel free to re-open this issue.

Closed #304.

commented

Testing this, seems to be completely random how often progress is saved. Completed 4 research gains on one flight. Reconnected. Lost all progress.

Repeated, same gains, unlocked tech, reconnected. Lost all progress.

Repeated, launched another vessel, recovered. reconnect, lost all progress.

Repeated. Waited a little while, reconnected, saved.