#NetworkSceneManager

1 messages · Page 1 of 1 (latest)

faint vector
#

hello guys i cant load scene for client with NetworkSceneManager i read the document but i didn't understand at all because of my language barrier. I just know i have to load scene with host or server and Network doing rest of sync for clients. i know the codes are pretty messed up it because im beginner of this networking things sorryy

Oh when i click EnterGame button, game scene loading for Host but client stays in lobby

rain kernel
#

You need to tell the clients to start the client as well. I don't know how your lobbies are set up but you can probably use lobby data for that

faint vector
#

i don't get it. You mean StartClient() thing?

#

don't i already doing it?

rain kernel
#

Ah, I didn't notice your 3rd image there. Yea that should work. Can you tell if the lobby data is actually getting set?

faint vector
#

Ohh no way... OnLobbyDataChange function just works when i create or join lobby. It doesn't work when starting the game as it should. So im gonna fix this first then check again. If it doesn't work again I'll tell. Thx for helping ^^

#

idk why lobby.Value.Setdata doesnt work but i'll find it

faint vector
#

Uhh everything is complicated. This section is running when i press entergame button from host but client stays in lobby omg everything looks fine for me. Why that happens

#

i tested with in game text

#

and i tried waiting the scene for a second if StartClient not ready

#

Maybe this part is wrong?

rain kernel
faint vector
#

uhmm maybe i don't

#

im not settings anything for host or client im checking with lobby number or owner.id

rain kernel
faint vector
#

im giving manualy

#

((FacepunchTransport)NetworkManager.Singleton.NetworkConfig.NetworkTransport).TargetSteamId = lobby.Owner.Id;

gpt suggest like this should i use it? i have never seen this in network docs in unity

unity docs has UTP examples

rain kernel
faint vector
#

Uhmm Yeah everything works fine but now StartClient() doesn't work. any idea? i tried to call StartClient() methot after Host started but doesn't work either.

rain kernel
#

Make sure you are setting the target steam id on the client as well.

faint vector
#

actually i tried that too

rain kernel
#

What's the error you're getting?

faint vector
#

no error just startClient doesn't work i think

#

im making something wrong but idk what is it

#

When i check netcode manager in Client looks like this no client started

#

other all Debug.Logs working (Facepunch transport found/Connecting to host with steam id ex.)

rain kernel
faint vector
#

Sorry i waited you for so long i was trying different things and didn't worked

#

i checked steam id and yes its correct. Connecting Host's steam

#

Here is the current code block

rain kernel
#

If the steam id is correct then it should be working. You'll need to open a bug report on the Steamworks forum

faint vector
#

now i added a callback and whaaat is that no reason

#

you right im gonna open a bug report

#

thx for helping ^^