Комментарии:
Hey, I hope you're still replying... Im quite of a begginer - where can I find your UI setup, and what you do/call when pressing the buttons, such as start game?
Do you have that uploaded somewhere? Thanks!
I especially need the start game logic, because Im not really sure how to start the game once the players all joined.
Great Video, thanks for pointing me in the right direction, you saved me atleast a week (and more with the configuration script)
ОтветитьSuch high quality video ! Thanks fot everything !
ОтветитьHey, i have a understanding Question. So you are coding/syncin with Netcode for Gameobjects, but you just use Facepunch instat of Steamworks?
Ответитьthanks!!
ОтветитьAwesome job man. I may make a video myself on this topic as the information is really sparse. This helped get me in the right direction.
ОтветитьI'm getting "Invalid connection" whenever I try to join my hosted game. Is it possible to test this locally somehow? Or do I need a second computer and second steam account?
ОтветитьHey I have a question, is this using the steam datagram relay?
ОтветитьWhy cant i install facepunch, it says the link is invalid
ОтветитьNice tutorial, also the only one talking about Netcode + Steam(most of the others are made with Mirror). I want to implement a feature where you can share the lobby id to anybody so they can join. Muck has exactly that feature and would like to know how to make it with what we did in the tutorial. Thx for your time! BTW I did the minimal Googling and found nothing so I am pretty lost lol.
ОтветитьSo i'm using steamworks net how can i move to facepunch? Do i need to do anything special for it?
ОтветитьAnyone else not able to download via the github link? Nothing I've tried works it alwasy comes back with invalid name and downloading the files from their website and sticking the unity folder in my assets folder doesn't work either.
ОтветитьThis is a super useful topic, thanks!
ОтветитьHey, thanks for the video! Amazing help. Took some time to make it working since I didn't know the lobby doesn't allow you to join with same steam accounts
Ответитьthis is literally what I needed lmao
ОтветитьCan you provide the example scene you used? (Don't mean the scripts, the actual lobby and the cars)
ОтветитьWhat should i do if facepunch does not show up in the NetworkManager for the Transportlayer?
ОтветитьSo how does one actually link the GameNetworkManager StartHost / StartClient etc method to a button via an addlistener event on a different script? Currently if following this from being redirect from the next video, clicking on the Start Host button will run a default NetworkManager instance, not the one in the GameNetworkManager, regardless on where its attached to. Some example would be helpful.
ОтветитьDo you know how to change the maxmembers for a lobby after creation? Using lobby?.MaxMembers = 10 doesn't seem to work and the docs for facepunch don't seem to help either
ОтветитьHey
I don't understand. But what acts as a relay? Is that a Steam Datagram Relay?
Thank you so much!
ОтветитьThank you very much for this, it was a great help.
ОтветитьIs there a specific version for this package?
Puting your link on package Manager didn't work, Unity 2020.3
Great tutorial, is there an easy way to transition from your lobby scene to the game scene across the network?
ОтветитьI'm able to connect players in a lobby screen, but how do you then "Start Game" and spawn the players in a new scene together? You showed at the end what it looks like, but showed no code. How do I actually spawn the players in the same scene after joining up in a lobby?
ОтветитьHey man, thanks for the help. This gave me the direction I needed. Cheers brother.
Ответитьhey! i see you only show the code and not how to connect the car and all of that. what should i do to achieve a result similar to yours?
ОтветитьLove your video! A few questions. Do you know how to show the lobbies already created so random players can join you? Also, do you know how to pick a server you want to use? And finally, do you know how to add a password to join the game? Thanks.
ОтветитьA few questions I have about this
Do I only have to run the StartHost(); to start the lobby? or are there extra steps to it?
Is the whole process of running StartClient(); automatic? or are there extra steps to it?
How do I control when the Network Manager's player prefab spawns in?
How do I track how many players are in a lobby at once?
are there any updates for newer versions of netcode?
ОтветитьHow do get lists of lobbies to join one at random ? This video doesn't cover enough stuff.
ОтветитьPlease, don't record videos in ultrawid, i can't fit it in my monitor...
ОтветитьAwesome tutorial, just the right pace and helped me get lobbies setup!
Had a question on sending messages once you're in the lobby, if anyone knows.
Is Netcode For GameObjects' functionality (ie. RPCs and Network Variables) supposed to work through this transport? For example,
[ClientRpc]
UpdatePlayerPositionClientRpc(Vector3 position) {some code}
public NetworkVariable<int> health = new NetworkVariable<int>();
With the UNET transport selected I can assign it an IP/Port, call NetworkManager.Singleton.StartClient(), and RPCs work back and forth.
With Facepunch I assign the targetID to be the steam lobby ID, call NetworkManager.Singleton.StartClient(), but then it only does the RPCs locally.
I see steam has its own P2P messaging system, but would be nice to use the Netcode stuff and have SteamIDs handle NAT. Just wanted to make sure that is a thing before I spend too much time trying to get it to work.
Amazing video easy to implement in my already existing project that was using UNET. Also question, is the Steamworks API that the facepunch repository uses outdated? It seems i can use a lot less steamworks callbacks then usually. For example to get a players username the SteamFriends.GetPersona Doesnt exist and SteamFriends.ActivateGameOverlay also seems to not exist. Any idea?
ОтветитьLove your tutorials! But I have one question: How can I join a Host with StartClient(SteamId id) with a button? When i try to add an OnClick event, StartClient wont show up. I know that it needs the paramater SteamId but I dont know further than that ...
ОтветитьHey buddy,
I am kinda consufed about something. I want to create server as Premium Only wich players who buy Premium DLC will be able to join the server. How can i make this?
Hey brother, good job with the video! You covered a topic which desperately needed covering and you did it well. I appreciate you man.
ОтветитьVERY GREAT VIDEO I LOVE YOU
Ответитьwhy are all the comments hidden on this video
ОтветитьWould you be able to test this on one account and one PC? If so then how?
ОтветитьHello, thanks for the great Video!
Maybe I'm missing something, but to make the example fully work on my end, I had to adjust some code:
OnGameLobbyJoinRequested callback is just telling the client that he is invited to join the mentioned lobby, so inside I removed the StartClient(lobby.Id); and instead added code to join the steam lobby:
private void OnGameLobbyJoinRequested(Lobby lobby, SteamId steamId)
{
CurrentLobby = lobby;
CurrentLobby?.Join();
}
This way, the client will join the steam lobby and the currentlobby property is set locally in case it's needed later (I think otherwise it would stay null on client)
After that, OnLobbyEntered will be called automatically on the client (since he has now actually entered the steam lobby) and the
StartClient(lobby.Id);
which is already in your code of OnLobbyEntered will be executed and start the client properly.
Hope this is helpful.
Thanks, felt like a teamlead was seating next to me and has shared the way to wire all the thing up
ОтветитьSeems like my comment disappeared somehow. However. Few notes! For a newb like me it would be great if you could include how to install Facepunch Transport, Facepunch and Unity Netcode via PackageManager. 2nd! You are going WAY too fast. For someone wanting to understand what you are doing you'll have to explain a bit further. This tutorial should have been 1 hour long atleast for what you are trying to cover. It looks like you know alot of things, but to the people watching your tutorial, we might not. 3rd! How did you connect to yourself via steam, how did you create your scene and all your scene elements. How did you set things up? This only covers a 3rd of it. Only code, no install, no unity setup, nothing. It's just so lacking man...
Ответить