#Server Player movement

1 messages · Page 1 of 1 (latest)

dense horizon
#

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.

winged rock
#

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

winged rock
dense horizon
winged rock
#

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

winged rock
winged rock
#

@dense horizon u still here?

dense horizon
#

Yea, are you saying that even the getting started tutorial is not working when you build to a windows dedicated server?

winged rock
#

Im building a linux dedicated server

winged rock
#

I also have matchmaker active

winged rock
#

but they show up as crashes

winged rock
#

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

dense horizon
#

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.

winged rock
#

what do you mean by a windows dedicated server, like host the server on my pc using a unity build?

dense horizon
winged rock
winged rock
winged rock
#

The graphics errors is because i put -nographics ||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​||||​|| || @dense horizon

dense horizon
#

Odd. You aren't getting the Client is not allowed to write to this NetworkVariable in the windows build locally?

winged rock
#

yes

winged rock
#

its also spawning me at 0,0,0

dense horizon
#

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.

winged rock
winged rock
#

@dense horizon you got anything for me?

dense horizon
#

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.

winged rock
dense horizon
#

The issue seems to be when you switched to server authoritative movement

winged rock
#

so Im not sure what to do

dense horizon
#

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.