Desync when teleporing ore entities
Posted: Sun Apr 10, 2016 3:34 am
My (attached) mod works fine in single player, it moves the ore where I expect it to when I expect it to. When I fire up a 2 player game with a friend the ore only moves on my screen regardless of who placed my machine, and eventually we desync, usually after interacting with moved ore or the place it is/was.
I'm using entity.teleport() around line 76 of control.lua. The other possibility that occurs to me is that I'm doing something wrong when I subscribe to a couple events around line 10.
Any advice on how to be more multiplayer friendly is welcome, even just general rules of thumb or links to guides.
I'm using entity.teleport() around line 76 of control.lua. The other possibility that occurs to me is that I'm doing something wrong when I subscribe to a couple events around line 10.
Any advice on how to be more multiplayer friendly is welcome, even just general rules of thumb or links to guides.