If you move something on the client, the player will collide with where the object is on the server

Describe the bug: If you move something on the client, the player will collide with where the object is on the server.

How do you cause this bug?

Turn on collision on an object
Move it on the client
When the user walks into the space the object used to fill, the player will move forward 1 tick, then immediately teleport back.

It appears that the server is “correcting” the client, even though the client is actually correct

Which platform: Stadia

Which input: keyboard + mouse

Your Crayta username: Cereal

Game seen in (including “Hub” or “Editor for XYZ”): Editor

How regularly do you see this? (E.g. 2/3 times - please try 3 times if possible): Every time

Time + date seen: 6/5/2021

Version number (found in Help tab in Settings): 0.7.409.102703

Hi Cereal,

Thank you for the bug report!
I would like to inform you that I have raised a ticket regarding your issue.

If you could provide me with the following information, I’ll make sure to include it in the report.

  • Media : Video

What you are saying is correct - if you move something on the client only, but it’s position is still where it used to be on the server, then the server will, correctly, not allow you to walk through that object.

The server always has authority over what collides with what, and that needs to always be the case, particularly to prevent cheating. The game that you see playing out on your local machine is really just a simulation of the game that is running on the server, and the server is in full control over all these rules.

If someone enables a cheat that allows them to run through walls, our servers will realise they shouldn’t have been able to walk through that wall and snap them back to where they should have been.

2 Likes

Thanks Barry, that makes sense.

I wasn’t thinking of it from a cheating perspective.

Thanks for the explanation!