[0.16.51] Camera jumps in multiplayer games when a mod sets player.walking_state
Posted: Sun Nov 11, 2018 9:53 pm
Hi,
when a lua mod sets on a player which is not the server in a multiplayer game, then the "remote controlled" player's camera jumps around. I suspect this may be a latency-hiding related issue.
Find below a demonstration of the problem. The left view is that of the server, while on the right, the second player is shown. Clearly, the right red dot skips around whenever it changes direction.
https://ente.hawo.stw.uni-erlangen.de/~ ... roblem.mp4
A small demonstration mod can be found here:
https://ente.hawo.stw.uni-erlangen.de/~ ... a/demo.zip
I'm relying on setting walking_state in my factorio bot github.com/Windfisch/factorio-bot, which I'd like to showcase on the 35C3 in late december, so I would be really happy if that issue can be resolved
Steps to reproduce:
1. install the above mod on two factorio installations (on the same machine in my case)
2. launch one hosting a game
3. launch the other as a game client. This one will have a jumpy camera.
Best regards,
Windfisch
when a lua mod sets
Code: Select all
game.players[i].walking_state
Find below a demonstration of the problem. The left view is that of the server, while on the right, the second player is shown. Clearly, the right red dot skips around whenever it changes direction.
https://ente.hawo.stw.uni-erlangen.de/~ ... roblem.mp4
A small demonstration mod can be found here:
https://ente.hawo.stw.uni-erlangen.de/~ ... a/demo.zip
I'm relying on setting walking_state in my factorio bot github.com/Windfisch/factorio-bot, which I'd like to showcase on the 35C3 in late december, so I would be really happy if that issue can be resolved
Steps to reproduce:
1. install the above mod on two factorio installations (on the same machine in my case)
2. launch one hosting a game
3. launch the other as a game client. This one will have a jumpy camera.
Best regards,
Windfisch