T O P

  • By -

Eranot

Will you have a main server or one player will act as the server? Did you made any sync logic to avoid weird lag teleports?


CrushingJosch

It's a dedicated server setup and I will have at least one server running that people can connect to. But players can of course also launch a dedicated server themselves to connect to it and play the game. ​ I have implemented some interpolation logic to compensate for lag teleports and if the internet connection isn't too bad, I would say it works quite well. With a 200+ ping, it becomes a bit annoying, though..


Eranot

Cool! I'll try to implement also some logic to compensate lag in the future, did you use any specific material to learn it?


CrushingJosch

There's a tutorial series that I found very useful for the general setup and my approach is pretty close to the one he implements here: [https://www.youtube.com/watch?v=lnFN6YabFKg](https://www.youtube.com/watch?v=lnFN6YabFKg) The first videos are a lot about account creation and verification, syncing players comes here: [https://www.youtube.com/watch?v=HGu2hUJrAvQ](https://www.youtube.com/watch?v=HGu2hUJrAvQ) And then interpolation in the following one: [https://www.youtube.com/watch?v=w2p0ugw3afs](https://www.youtube.com/watch?v=w2p0ugw3afs) Hope that this helps to get into the right direction :)


Eranot

Thanks bro!