Arcen Forums

General Category => AI War Classic => AI War Classic - Technical Support => Topic started by: Zebreu on August 03, 2013, 10:02:35 PM

Title: Desync error since update 7.009
Post by: Zebreu on August 03, 2013, 10:02:35 PM
Hey,

I've got a desync with a friend since we updated the game. It happened twice after a variable length of time (around an hour into the game). We haven't seen any kind of event that would trigger it either.
The first save was when the error happened and the other one is the save we started from.

Thanks for looking into it!
Title: Re: Desync error since update 7.009
Post by: keith.lamothe on August 04, 2013, 12:12:55 AM
Thanks for letting us know, sorry to hear about the desyncs.

So they're not really predictable at all?  How long between each one?  Are we talking minutes, hours, days?

Thanks :)
Title: Re: Desync error since update 7.009
Post by: Zebreu on August 04, 2013, 02:01:15 AM
Well, the first time we played, it happened after a bit more than an hour. Then, we started again, and it took a little less than an hour.
Also, just thought of mentioning that, we had that bug where we got free hacking unlocks, because we wanted to see what the response was below 0 hacking progress, than loaded a previous save, and we still had the ships.
Title: Re: Desync error since update 7.009
Post by: TechSY730 on August 04, 2013, 03:04:36 AM
Well, the first time we played, it happened after a bit more than an hour. Then, we started again, and it took a little less than an hour.
Also, just thought of mentioning that, we had that bug where we got free hacking unlocks, because we wanted to see what the response was below 0 hacking progress, than loaded a previous save, and we still had the ships.

Hmm, potential save game state "leak"?

Isn't that usually a sure fire sign of something that is very likely to cause a desync?
Title: Re: Desync error since update 7.009
Post by: Zebreu on August 04, 2013, 09:47:40 AM
Well, we wanted to continue the game, and we played many many hours after we got that bug (and after the bug was resolved, I read the wiki).
Title: Re: Desync error since update 7.009
Post by: keith.lamothe on August 04, 2013, 11:39:44 AM
Ah, a failure of clearing the save state definitely can cause desyncs, though I'm not sure that's what's happening in 7.009.  To clarify: were all these desyncs in 7.009?
Title: Re: Desync error since update 7.009
Post by: Zebreu on August 04, 2013, 01:43:26 PM
Yes.
Title: Re: Desync error since update 7.009
Post by: keith.lamothe on August 05, 2013, 11:14:14 AM
Just looked at the saves to confirm that the state "leaking" across save/load no longer happens, and that does seem resolved.

Trying to isolate the cause of the desync, which is notoriously difficult... how much did you play these games in 7.007 (7.008 only being the "current" version for a pretty brief time)?  In other words, how confident are you that the desync issue was introduced in 7.008 or 7.009?
Title: Re: Desync error since update 7.009
Post by: keith.lamothe on August 05, 2013, 11:25:06 AM
Btw, do you have any error log files in the RuntimeData directory in your AIWar directory?  On either player's machine?  Specifically things like:

ArcenDebugLog.txt
UnhandledErrors.txt
ErrorsReportedByEngine.txt
(anything with the word "desync' in it)

Thanks :)
Title: Re: Desync error since update 7.009
Post by: Zebreu on August 05, 2013, 11:26:08 AM
Just looked at the saves, and we played 7 hours at 7.001, then 3 hours at 7.005, and 3 hours at 7.007. And then that last hour or so at 7.009.
Title: Re: Desync error since update 7.009
Post by: keith.lamothe on August 05, 2013, 11:27:13 AM
Hmm, ok; thanks.  Does seem like it happened after 7.007, or at least after 7.005.  Looking through the code diffs; not a whole lot changed but I did do some architectural rearrangement of hacking logic to make adding new types faster.
Title: Re: Desync error since update 7.009
Post by: Zebreu on August 05, 2013, 11:30:06 AM
And here's the Desync log (and others). You'll notice we also were the one with that odd desync with carriers from some time ago, haha.
Title: Re: Desync error since update 7.009
Post by: keith.lamothe on August 05, 2013, 11:30:59 AM
Another thing: if you can make sure that each time you play together you've both just started the program (and haven't started or loaded any other game since that run of AIWar.exe) that will eliminate desyncs caused by state "leaking" across save/load.  If you continue getting desyncs while observing that precaution let me know as that narrows down the sorts of things that could be going on (at least for one cause of the problem).
Title: Re: Desync error since update 7.009
Post by: Zebreu on August 05, 2013, 11:32:51 AM
I am fairly sure that for those two desyncs we just got, we indeed started the program and loaded one save only, we generally just do that.

(Edited: But yeah, except for that one time where there was this leaking)
Title: Re: Desync error since update 7.009
Post by: keith.lamothe on August 05, 2013, 11:37:41 AM
I am fairly sure that for those two desyncs we just got, we indeed started the program and loaded one save only, we generally just do that.

(Edited: But yeah, except for that one time where there was this leaking)
Ok.

Is the problem ongoing as you continue trying to play that game?  I'll keep hunting but it is helpful to know the frequency of occurrence to actually expect (for attempts to reproduce the problem).
Title: Re: Desync error since update 7.009
Post by: Zebreu on August 05, 2013, 11:52:31 AM
Well, we haven't played since my post (because it's bothering us, mostly). I'll update the thread as we play more.
Title: Re: Desync error since update 7.009
Post by: keith.lamothe on August 05, 2013, 11:54:43 AM
If you're interested you could try starting a new game just to see if it happens there (without any legacy stuff from earlier bugs, though that shouldn't be a cause here).  Possibly without hacking since that's probably involved here, though I guess that's probably the feature you're most interested in toying with now :)