Page 1 of 1

Desync when robots build blueprint

Posted: Sun Jan 22, 2017 2:22 pm
by Xeanoa
We keep getting desyncs in multiplayer.

When placing a blueprints containing inserters and powerpoles, we experience frequent desyncs.

It seems to happen the moment when the inserters are powered on for the first time.
The inserters were modified with Bob's GUI, both fast and express inserters. Powerpoles are Medium Pole MK2's.

Re: Desync when robots build blueprint

Posted: Sun Jan 22, 2017 2:32 pm
by Rseding91
One of the mods is broken. You'll need to figure out which one and have the mod author fix it or remove it to prevent it from desyncing.

Re: Desync when robots build blueprint

Posted: Sun Jan 22, 2017 2:38 pm
by Xeanoa
Rseding91 wrote:One of the mods is broken. You'll need to figure out which one and have the mod author fix it or remove it to prevent it from desyncing.
Already PMed Bob before posting here, and he told me it's not his mods, it's the base game's fault, and to post here. I'll PM him the link to this thread.

Re: Desync when robots build blueprint

Posted: Sun Jan 22, 2017 3:13 pm
by Rseding91
Xeanoa wrote:
Rseding91 wrote:One of the mods is broken. You'll need to figure out which one and have the mod author fix it or remove it to prevent it from desyncing.
Already PMed Bob before posting here, and he told me it's not his mods, it's the base game's fault, and to post here. I'll PM him the link to this thread.
I didn't say it was bobs mods. Just one (or more) of them is causing it. If you can make a new 50x50 map that reproduces it (without every single mod you have - just 1-2 that reproduces it) I'll take a look at it.

Re: Desync when robots build blueprint

Posted: Sun Jan 22, 2017 8:29 pm
by Xeanoa
Having a little trouble setting up a fresh map. I installed CM and Bob's Inserters, but I couldn't get the GUI for the inserters to appear. I'll work more on that later.

What I'm 100% sure of, however, is that the desyncs happens by powering on inserters placed by robots for the first time. It doesn't matter if the client or server does it, either.

Re: Desync when robots build blueprint

Posted: Mon Jan 23, 2017 2:07 am
by Rseding91
Xeanoa wrote:Having a little trouble setting up a fresh map. I installed CM and Bob's Inserters, but I couldn't get the GUI for the inserters to appear. I'll work more on that later.

What I'm 100% sure of, however, is that the desyncs happens by powering on inserters placed by robots for the first time. It doesn't matter if the client or server does it, either.
I've looked at the code in bobs inserters and tested it myself and I get no desyncs with just bobs inserters. I can blueprint and build inserters (changing the pickup/dropoff locations randomly) all I want and they build correctly without any issues. They power on and move the items exactly as they should - no desyncs.

Re: Desync when robots build blueprint

Posted: Mon Jan 23, 2017 2:18 am
by Rseding91
Ok, I was able to reproduce it. I was testing on 0.15 and it doesn't happen there. I can reproduce it in 0.14 easily.

So, I guess it's fixed for 0.15 :)

Re: Desync when robots build blueprint

Posted: Mon Jan 23, 2017 7:55 am
by bobingabout
Basically, the reason why I refered him to here is because, he said it specifically happens when using blueprints.

The inserters mod only ever changes settings on user click, and the logistics mod only ever on inserter entity placement by player (the ghost itself is modified in the case of them placing a ghost for an inserter to place)

My mod actually has a strict "If the player is holding a blueprint, don't do anything" check, therefore, in theory, the error occurs simply because the inserter has been configured.


And my referal didn't specifically say "It's definitely base game", just that it's either base game, or a mod that isn't mine.


Anyway, glad to see it's solved.

Re: Desync when robots build blueprint

Posted: Mon Jan 23, 2017 8:03 am
by Xeanoa
Rseding91 wrote:Ok, I was able to reproduce it. I was testing on 0.15 and it doesn't happen there. I can reproduce it in 0.14 easily.

So, I guess it's fixed for 0.15 :)
That's good to know, thank you!

What exactly causes the issue? Is it anything we can avoid triggering? I'd like to keep desyncs to a minimum to keep my fiancee sane :mrgreen:
I noticed it doesn't happen always happen, there's gotta be something in it

Re: Desync when robots build blueprint

Posted: Mon Jan 23, 2017 1:59 pm
by Demosthenex
Xeanoa wrote:We keep getting desyncs in multiplayer.

When placing a blueprints containing inserters and powerpoles, we experience frequent desyncs.
I've been debugging the same thing, and talked to Rseding about it on IRC and even stood up a dedicated server with a new map to try and recreate the problem. I got as far as not recreating it with Bob's only, and hadn't yet started through binary search of the mods I'm using to see if there was a conflict.

Is this confirmed to be a vanilla issue? Can I avoid the problem just by omitting power poles from blueprints?

Re: Desync when robots build blueprint

Posted: Mon Jan 23, 2017 2:48 pm
by Rseding91
Xeanoa wrote:
Rseding91 wrote:Ok, I was able to reproduce it. I was testing on 0.15 and it doesn't happen there. I can reproduce it in 0.14 easily.

So, I guess it's fixed for 0.15 :)
That's good to know, thank you!

What exactly causes the issue? Is it anything we can avoid triggering? I'd like to keep desyncs to a minimum to keep my fiancee sane :mrgreen:
I noticed it doesn't happen always happen, there's gotta be something in it
Building any blueprint with a custom inserter pickup or dropoff position in it that you rotated while building will cause It.

Re: Desync when robots build blueprint

Posted: Mon Jan 23, 2017 3:42 pm
by Xeanoa
Rseding91 wrote:
Xeanoa wrote:
Rseding91 wrote:Ok, I was able to reproduce it. I was testing on 0.15 and it doesn't happen there. I can reproduce it in 0.14 easily.

So, I guess it's fixed for 0.15 :)
That's good to know, thank you!

What exactly causes the issue? Is it anything we can avoid triggering? I'd like to keep desyncs to a minimum to keep my fiancee sane :mrgreen:
I noticed it doesn't happen always happen, there's gotta be something in it
Building any blueprint with a custom inserter pickup or dropoff position in it that you rotated while building will cause It.
Again, thanks! That's something that can be worked around!
that you rotated while building
I assume this means rotating it while holding it in hand, then placing it?
If so, then rotating to the desired rotation before picking up the blueprint should work?

Re: Desync when robots build blueprint

Posted: Mon Jan 23, 2017 3:49 pm
by Rseding91
Building it rotated is what triggers it.

Re: Desync when robots build blueprint

Posted: Mon Jan 23, 2017 4:00 pm
by Demosthenex
Rseding91 wrote:Building it rotated is what triggers it.
Do you mean custom pickup/dropoff rotation, or rotating the inserter after customization?

Re: Desync when robots build blueprint

Posted: Mon Jan 23, 2017 4:07 pm
by Xeanoa
I understand it as: Building the blueprint not in the original rotation causes it.

Re: Desync when robots build blueprint

Posted: Mon Jan 23, 2017 4:18 pm
by Demosthenex
Xeanoa wrote:I understand it as: Building the blueprint not in the original rotation causes it.
That rings a bell with my experience! Rotate the blueprint and then you get desyncs. I even recently did a test where I tested many possible rotations, and blueprinted them around to try and verify that thought.

Can you confirm it works fine if you always use the blueprint in the same orientation as when it was taken?

Re: Desync when robots build blueprint

Posted: Mon Jan 23, 2017 4:26 pm
by Xeanoa
Recently moved several complexes around with large blueprints to make space for rails, but only changing location, not rotation, at we didn't get the expected desyncs, so I can confirm that.