#Server Player movement
1 messages · Page 1 of 1 (latest)
What exactly do you mean by being detected? The cude should just have a network object, your move script, and a network transform set to server authority.
https://docs-multiplayer.unity3d.com/netcode/current/tutorials/get-started-ngo/#adding-netcode-script-to-your-player-prefab
Use this guide to learn how to create your first client-server Netcode for GameObjects project. It walks you through creating a simple Hello World project that implements the basic features of Netcode for GameObjects.
I mean I added debugs to make sure my movement is being detected and it was but its not moving
also this only happens when I add network transform instead of client network transform
but I want server authoritative movement, so Im doing that, also I am using unity's multiplay dedicated server along with matchmaker
also my network transform doesn't have an option called server authority?
You'll need to simplify it some more. Just have two builds on the same PC. Follow the getting started tutorial and see if you can get that working first.
i already was there, I did the local part, it worked
then I moved on to lan
it worked
but now its not working on dedicated server
ive read the documentation time and time again, ive been stuck on the dedicated server part for 2 weeks now
i watched a lot of tutorials, samyam, codemonkey, etc. i just cannot figure it out
Im not sure what to do anymore this is my last hail Mary
@dense horizon u still here?
Yea, are you saying that even the getting started tutorial is not working when you build to a windows dedicated server?
Im building a linux dedicated server
for unity multiplay hosting
I also have matchmaker active
what's weird is in the debugs it says the ticket ID for the player, and when the player "connects" they cant move or anything, but when i go to multiplay server overview it says 0 players
but they show up as crashes
but thats also weird because sometimes my friend tries to connect and I can see him (still stuck and we cant move) so does that mean im connected to the server or not
You need to check if it's working outside of Multiplay and the matchmaker. So try a dedicated windows server and test that. If that works then the issue is with the Multiplay server and you'll need to check the server logs to see what's happening there.
what do you mean by a windows dedicated server, like host the server on my pc using a unity build?
if so i tried that
If its working as a dedicated server outside of multiplay, then you'll need to check the server logs for any errors.
ill start the server and send the logs now
@dense horizon
The graphics errors is because i put -nographics |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| || @dense horizon
Odd. You aren't getting the Client is not allowed to write to this NetworkVariable in the windows build locally?
yes
im not sure what to do about that
its also spawning me at 0,0,0
I don't know. Seems like the server is trying to write to a network variable that it doesn't own. But you should be getting that error on the windows server as well.
well since it worked before on the Windows server locally before, Im not using that anymore, Im using unity multiplay, and this error appeared now is because I was using client authoritative movement for the local windows server and tried to switch to server authoritative for multiplay and now the problems happened
@dense horizon you got anything for me?
Not really. The error you are getting is that the server trying to write to a variable that it doesn't have permission to. Get it working with server authority locally on windows first. Then transfer that to Multiplay.
well it wasnt giving me that error on the local windows build
The issue seems to be when you switched to server authoritative movement
yea and I am being pushed for a deadline and nothing have worked for me so far
so Im not sure what to do
You need to go back to the basics and make sure that the getting started tutorial will work on your local windows dedicated server. Then move that over to Multiplay and make sure it works there.