#Movement server side

1 messages · Page 1 of 1 (latest)

grizzled remnant
#

(You don’t have to read this rn cause I’m gonna be busy writing an essay for a while.) So this guy had a great tutorial that set up the template for server side, client prediction, player reconciliation movement. However, I still have to implement into my specific program. If I understand correctly, the client should take in input and send it to the server, then, both the server and the client run the code ( the client should be done a bit quicker) and the results are compared. If the results are the same, all is good, if they are not, the server resets the client position based upon the server position. Is this correct?

fickle cove
#

Basically yea. though its normally the client resetting positions based on server data. There are also ways that the server will roll back and recalculate based on client input

grizzled remnant
#

Yeah that’s what I meant, client resets on server. So does this mean that I need to have a copy of the code that I want the client to run on both the server and the client?

#

And then the input would go to both?