-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HostSync, Sync]
should be Sync with arguments
#6559
Comments
[HostSync] should be a parameter on [Sync], there's a lot of other API changes we want to do around here but we're probably blocked by needing proper code upgraders. |
HostSync should certainly be [Sync( From.Host )] somehow. With HostSync, something I'd like to be able to do is have a [Sync(host)] so the host is authoritive over the value, and authoritive over sending it to everyone else, but I'd like to be able to have changes predicted locally, and only corrected if they're wrong. For example
In the scenario above the gun shot would happen locally and on the host, the host would be responsible for dealing damage, and would be authoritive on the ammo count. This would obviously need some careful logic so we don't update the value on the client if it was correct at the time of prediction. |
The sooner we get functional prediction the better. We hosted a playtest where at least 30 people arrived, and there were a number of cases leading to us making things host sided because of inherent networking issues with the current networking model. Stuff with no other rational explanation than clients just randomly not receiving/sending critical information for whatever reason. To make a long story short: prediction would let us make a more secure, far more reliable experience. And it IS a problem. A serious one for medium-large scale multiplayer games. |
I do wonder whether instead of hiding all the prediction we'd be better off doing something like
although going down that line fruther
|
If you want to rename this issue since it took on a life of its own feel free. I don't have anything to add yet... but hopefully I'll have some helpful thoughts on how to tackle this... |
[HostSync, Sync]
should be more obvious to users[HostSync, Sync]
should be Sync with arguments
For?
S&Box
What can't you do?
#6467
It seems like a lot of users don't know that you can use
[HostSync]
and[Sync]
together. The only reason I found out about it was when I was reading the documentation. I think we should change the way this attribute is used.How would you like it to work?
Here is a suggestion from Trundler #6467 (comment)
Maybe we have a single attribute where you can pass in an enum to determine who is allowed to set the value of the property?
I haven't thought about this too much, but, I'm sure you'll have a good idea.
What have you tried?
N/A
Additional context
No response
The text was updated successfully, but these errors were encountered: