How To Connect Using Steam - Unity Multiplayer Tutorial

  Рет қаралды 92,685

Dapper Dino

Dapper Dino

Күн бұрын

Пікірлер: 296
@RugbugRedfern
@RugbugRedfern 4 жыл бұрын
whoa - someone finally made this tutorial
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 жыл бұрын
Someone had to eventually :D
@Break.
@Break. 4 жыл бұрын
Oh nice you're the guy that made a multiplayer game for the brackeys game jam!
@RugbugRedfern
@RugbugRedfern 4 жыл бұрын
@@Break. yep :) surprised you noticed
@boxitor9355
@boxitor9355 4 жыл бұрын
aye you are the dev of Adrift and Pangaea
@RugbugRedfern
@RugbugRedfern 4 жыл бұрын
@@boxitor9355 yep!
@SuperLEGOMADNESS
@SuperLEGOMADNESS 4 жыл бұрын
This is an absolute god send, the timing of this video could not have been any better. I had been going through the hoops of trying to do networking in unity and was slowly starting to think the only option for anyone playing would be port forwarding. That would have been really disappointing. However finding out steam could handle that and finding this fantastic tutorial has been such a lift. Thank you so much for doing this. You have helped me tremendously and I'm sure you'll have helped many others too.
@cbuckington2933
@cbuckington2933 4 жыл бұрын
You just spoke out my soul dude... exactly the same
@writingreality
@writingreality 4 жыл бұрын
Thanks for the quick turn around from my request for this video! You're the best
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 жыл бұрын
I had been meaning to do it for a while but you reminded me to get it done haha
@_ace55
@_ace55 4 жыл бұрын
Thank you for timestamping the video! So many people don't even test their games at the end when I just wanna see the results if I'm ever gonna begin coding :D
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 жыл бұрын
Glad you found it useful!
@tigersonalex
@tigersonalex 5 ай бұрын
A few years later this video is still useful and very easy to follow and understand!
@Sonicboomcolt
@Sonicboomcolt 4 жыл бұрын
I'm honestly so happy to see more Steam based videos for Unity as we don't get many good ones. Very well done!
@EvolvedPhoenix
@EvolvedPhoenix 2 жыл бұрын
No
@Sonicboomcolt
@Sonicboomcolt 2 жыл бұрын
@@EvolvedPhoenix Yes
@EvolvedPhoenix
@EvolvedPhoenix 2 жыл бұрын
@@Sonicboomcolt YES
@user-ky4qk2ye2g
@user-ky4qk2ye2g Жыл бұрын
Dapper the ammount of times ive used this has been an eminence resource thank you.
@VaupellGaming
@VaupellGaming 2 жыл бұрын
Just came back for some quick tips, and browsed your videos.. Looking at the viewcount, anything that has "steam" and "multiplayer Unity" in it, is really beeing viewed, and reviewed ALOT. Surely something must be missing from either the assetstore or unity since there is such attention to getting even simple P2P Unity games to work via Steam.
@ODZZplays
@ODZZplays 3 жыл бұрын
Don't forget the "using Steamworks;" as well as "using Mirror;" at the start of your scripts
@idrawpictures9140
@idrawpictures9140 3 жыл бұрын
thank goodness people comment these on his videos. I'd be lost without you. This guy has some of the best tutorials on youtube. they're easy to follow and slow enough that i can sort of keep up, but this is one thing it's really hard to figure out.
@meshline7823
@meshline7823 3 жыл бұрын
спасибо))
@brianjirvin
@brianjirvin Жыл бұрын
@@idrawpictures9140 I would say best if he would have included "OnRichPressenceJoinRequested" as that is a part of games as well. Allowing people to "join" prior to game launch.
@povilasca8306
@povilasca8306 4 жыл бұрын
Also a suggestion. Idk if that would be very hard to do, but it would be very cool to make a list server.
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 жыл бұрын
When I get some time to look more into the Steamworks API I'll be sure to have a look and potentially make a tutorial on it :)
@Break.
@Break. 4 жыл бұрын
@@DapperDinoCodingTutorials Mirror has there own list server that you can pay for or there is an open source free version here for tcp, github.com/SoftwareGuy/NodeListServer it would be really cool if you could make a video on how to do this!
@RugbugRedfern
@RugbugRedfern 4 жыл бұрын
@@Break. steam has a free lobby listing system though, which would be better for peer 2 peer.
@Break.
@Break. 4 жыл бұрын
@@RugbugRedfern Yeah true but my game is cross platform with android so that wont work for me
@collinossman8046
@collinossman8046 2 жыл бұрын
Amazing video! It almost perfectly works. One issue I, and at least one other commenter, and of course any new people setting this up are now having, is that with the newer versions, the multiplayer lobby fails to be created with this method. It works in the editor, and it works in the build and run, but just launching the exe does not host the lobby. I've isolated the line of code that's running the error is : SteamMatchmaking.CreateLobby(ELobbyType.k_ELobbyTypeFriendsOnly, lobbyNetManager.maxConnections); In the host lobby method. A solution would be great! Anyone else reading this, someone else suggested going back to an older version, around the 4.4 era
@collinossman8046
@collinossman8046 2 жыл бұрын
To Anyone else having this issue, here's a valuable piece of information: The Steam client couldn't determine the App ID of game. If you're running your application from the executable or debugger directly then you must have a [code-inline]steam_appid.txt[/code-inline] in your game directory next to the executable, with your app ID in it and nothing else. Steam will look for this file in the current working directory. If you are running your executable from a different directory you may need to relocate the [code-inline]steam_appid.txt[/code-inline] file.
@collinossman8046
@collinossman8046 2 жыл бұрын
Final update, add a txt file, name it "steam_appid.txt" and put nothing inside of that file other than the number: 480
@hoveringgoat8061
@hoveringgoat8061 2 жыл бұрын
@@collinossman8046 dude I love you
@silverkey1733
@silverkey1733 3 жыл бұрын
For some of the newer lads, if you get a problem like this " error CS0117: 'Channels' does not contain a definition for 'Unreliable'" Dive into the script and change 'Unreliable' to 'DefualtUnreliable'.
@systematic_god6849
@systematic_god6849 2 жыл бұрын
Great video, a lot of good info here. One concern, If you add something new to the game and would like to see if it interacts properly with multiplayer, do you need to build the game each time it needs testing or can you accomplish this in the editor.
@mikaelfinsrud9359
@mikaelfinsrud9359 Жыл бұрын
I can't express how useful this is! Thanks, thanks, thanks! It would be awesome if you continued this series, showing how to match with friends with PlayFab matchmaking and Steam lobbies. Well done sir, awesome turorials! :)
@MicroblastGames
@MicroblastGames 4 жыл бұрын
Awesome, one question: The latency between the server and the client will be based on the server host location, or does steam interfer with that? Steam only is used as a "bridge" to connect the players or it makes more than that? Thanks man!
@Idk-hg8jr
@Idk-hg8jr 2 жыл бұрын
Probably interfere and make even more lag but I don't know the exact logic, only my opinion.
@TheOczkis
@TheOczkis 3 жыл бұрын
Thank you for all the hard work and effort you put in, just to help out thousands of people
@goldwhite1414
@goldwhite1414 4 жыл бұрын
awesome video as always! To transfer players from a lobby to a game scene would it be the same as your other video since this just connects clients from the steam side into the mirror networking?
@dinomite_games
@dinomite_games 3 жыл бұрын
Thank you so much for this! By far the best tutorial I've seen in a long time. This really made my day!
@CarbonDev
@CarbonDev 2 жыл бұрын
Super cool, and great video! I have one question though, does the use of this connection via steam have any sort of ccu limit? At the moment for my multiplayer game I'm looking for some sort of dedicated server workflow (non-subscription based or free) with no limit, so I dont need to worry about it. The main reason I switched from photon to mirror was because of this. Would you happen to know if it does? Cheers
@Marco-yk8kp
@Marco-yk8kp 2 жыл бұрын
Balls ‼‼‼
@MicahGoodhue
@MicahGoodhue 3 жыл бұрын
If anyone else comes across this issue, where the steam overlay says your offline even though you're not, what fixed it for me was calling SteamAPI.Init() in Start before anything else. That's what the docs said to do so I'm not sure if it's entirely correct, but either way it works.
@damienmacnamara2110
@damienmacnamara2110 2 жыл бұрын
Great Video as always! What version of Mirror are you running? Im having an issue with network manager getting destroyed so cant start a host!
@AlarmedPizza
@AlarmedPizza 4 жыл бұрын
Figured this out few months ago, but great video for reference and to help others! Think this is the only tutorial relating to this now on youtube. We're gonna see a lot of people playing SpaceWar now, hahas.
@elgentidwell9407
@elgentidwell9407 4 жыл бұрын
is there a way that i can test two clients with one steam account? or one in unity and one on steam?
@Yumenoki99
@Yumenoki99 4 ай бұрын
You sir are the best dinosaur ever, thank you!
@fuzzyleon1773
@fuzzyleon1773 2 жыл бұрын
Hey man, I've been trying to find how to leave a lobby and do host migration. There aren't many mirror + steamworks tutorials and no one implements a "leave lobby" or "leave game" type of function. And when the host leaves the lobby the lobby should be forced shut or another player should be taken as a host. I find it weird no one does a tutorial about this because it can easily happen :(. could you please help me?
@therg1950
@therg1950 4 жыл бұрын
2nd and also make more tutorials since your an amazing youtuber keep it up
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 жыл бұрын
Thanks for the kind words :) I'll be sure to keep making tutorials don't you worry!
@therg1950
@therg1950 4 жыл бұрын
@@DapperDinoCodingTutorials thanks dino you know youre the only person thats ever hearted my comment thanks dude :D
@jasperlemmens3544
@jasperlemmens3544 3 жыл бұрын
Hey there, great tutorial! I am however running into a problem. Whenever a player leaves the lobby (quitting the application or leaving via ingame ui), this causes an error "Trying to send on unknown connection" This also disconnects all other clients. So I'm guessing that the steam or mirror connection isnt closed properly, any ideas on how to handle this?
@channeltrash6257
@channeltrash6257 2 жыл бұрын
If the host quit's, ofcourse the other clients quit since the clients are connected to the host client. Call of Duty uses client server system as well, but what they did is if the host quits then the server makes another player the new host
@YulRun
@YulRun 3 жыл бұрын
Curious you chose lobby type FriendsOnly, if you did Public, does that mean their would be a way to have in the game a 'lobby list' that you can join random people without them being on your friends list?
@Mason198
@Mason198 4 жыл бұрын
Will this work if the game is officialy/properly published to Steam? Or just when added to the game list as a non Steam game? Thanks!
@mattpiechocki8735
@mattpiechocki8735 4 жыл бұрын
Wow this was extremely helpful and your explanation was very clear! Thank you so much for the tutorial!
@Runix1
@Runix1 2 жыл бұрын
Wonderful tutorial, thank you! I take it all of this is after paying the $100 fee to Steam?
@Runix1
@Runix1 2 жыл бұрын
Seems to not be the case :D
@victorbarreto1067
@victorbarreto1067 Жыл бұрын
Hello! I did everything as taught on the video, but I'm running into a little issue. In the player prefab I used the third person prefab created from another mirror video from you. If I play in editor mode or "build and run" it works just fine. But if I go to the build folder and open the ".exe", after clicking on host it doesn't spawn anything. Would appreciate if anyone can help me. Thanks!
@andypomsztein291
@andypomsztein291 2 жыл бұрын
Hey there! First of all, nice vid! Second, it kinda doesn't quite work for me. On the edditor it does work as intended (without the shift+tab thing though), but I had to change something on the MessagesTest script, so it checks for the SteamManager.Initialized instead of NetworkClient. But, when I am using it in the built version, when I click to create a lobby it does nothing. I tried launching it without steam, and the same occurs. Any idea why this might be happening?
@collinossman8046
@collinossman8046 2 жыл бұрын
Hey, I had this same issue and found a solution. Hopefully it works for you too. You do not need to use an older version of the stuff. Simply add a text file inside your build folder (same level as your exe) and name it "steam_appid.txt" and put nothing other than the number 480 inside the file. This gives your game the "test" app id. You will have to change this to your official id if you make an official release, but for now that should work
@andypomsztein291
@andypomsztein291 2 жыл бұрын
@@collinossman8046 Well thank you kind sir :) really appreciate it.
@Yumenoki99
@Yumenoki99 4 ай бұрын
@@collinossman8046 still works, thank you :)
@chrischains9947
@chrischains9947 3 жыл бұрын
Awesome stuff :D Does this synchronize movement/animations across Steam as well??
@DavidTurpinGames
@DavidTurpinGames 3 жыл бұрын
Can't thank you enough for this!
@flyingwolfis
@flyingwolfis 3 жыл бұрын
Wow! Awesome. This helped soooo much! Thank you so much for this tutorial! You saved me a lot of time.
@Ivcifer
@Ivcifer 4 жыл бұрын
you, sir, deserve a medal.
@la_treta
@la_treta 4 жыл бұрын
So basically if i want to use the Steam for my game, i can't use another transport which are better to handle massive amounts of player(stress tests of mirror). BTW Nice video
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 жыл бұрын
With the steam transport, the data in your game is sent via steam. You can still have a game published on steam without using the steam transport, it just means that the server/host connection will need to be port forwarded to allow connections.
@AlexanderZotov
@AlexanderZotov 4 жыл бұрын
You rock, dude! Keep it up!
@JaimieX
@JaimieX 4 жыл бұрын
More steam tutorials please! You are awesome!
@rogalik007
@rogalik007 3 жыл бұрын
Thank you for video! I have a question, how do I make the exit button back in the menu and how to remove the ability to invite people to the game?
@fbussiere
@fbussiere 4 жыл бұрын
Hi Dapper! Could you show us how to make the simple game we did before with your tutorials, working on Steam. There's a some discontinuity here. Thanks !
@Cellfan
@Cellfan 3 жыл бұрын
this is just so kick ass! thank you very much for all the work that you put into this tutorial :)
@Break.
@Break. 4 жыл бұрын
Hey dapper, can you do a video briefly explaining every component in Mirror? You have already explained some in detail but it woul be cool if there was one video to watch that gives a good idea on what everything is for and how it works
@moopdoop9942
@moopdoop9942 4 жыл бұрын
Thanks for the video but how would you leave the game without just closing the application
@salahqx
@salahqx 4 жыл бұрын
Thank you so much for the tutorial, I didn't get the HostAddressKey is it need to be something Unique?
@owenkegg5608
@owenkegg5608 3 жыл бұрын
No, it's like a c# dictionary key, it just tells the steam system where to store certain variables. This key can be anything you want as long as it is the same on the client and server.
@rovex_
@rovex_ 4 жыл бұрын
So how did you join the game from within the editor? Because in order to join you need to invite someone while launching the game from withing steam?
@Gramini
@Gramini 3 жыл бұрын
Not sure how he did it, but you can add Unity as a non-Steam game and can access the overlay that way.
@lyricsms5448
@lyricsms5448 Жыл бұрын
But can you do all this before paying for the steamworks developer? Or do you need to pay 100€ up front before even being able to make the game?
@pcccmn
@pcccmn 3 жыл бұрын
Hi. This approach actually makes one machine the Client+Host, and the rest that joins the Client?
@masonp7258
@masonp7258 3 жыл бұрын
I believe he explains this at 17:25, if you are the host you don't need to join as client
@wonderflounium
@wonderflounium 3 жыл бұрын
it appears that for some reason fizzysteamworks isnt properly using steamworks as it isnt adding the necesary files to the build and doent add the steammanager when added. it was working earlier but i have no idea what broke it as i have not done any editing to any of my steam integration since the last time it worked
@vaderporpoise774
@vaderporpoise774 3 жыл бұрын
woooooooooww, ive been looking for this video for ages ...
@flaimpeurlepetitporo1454
@flaimpeurlepetitporo1454 3 ай бұрын
So just to be sure I understand, this technique, this tutorial, allows us to use Steam and Mirror to play online with friends, and it’s a free solution?
@ogelhv7695
@ogelhv7695 2 жыл бұрын
Hi, I don't know if I'm just stupid but I can't connect the game to Steam after I build it.(it works in the Unity Editor) I debugged it and an error occurs at SteamManager initialization and I don't know what to do. (I don't have to pay the Steamworks fee do I?).
@Kugelschrei
@Kugelschrei 3 жыл бұрын
Hey :) I am currently in the process of going fulltime on an indy game two friends of mine and me started in university. It currently features a destructible environment and a shared screen view, where players can join in using multiple controllers to play at the same computer. We do plan though to take this concept towards actual multiplayer, where players can play with that same shared screen layout, just from different PCs. Is there an easy way to sync the game sessions with each other over the network, or do I need to write custom objects containing information about where players are, where they are facing, what kind of action they took and what they hit? This seems like a lot of data that needs to be collected and interpreted for each network update, and maybe even interpolated between updates. Especially regarding syncing the destruction (which are lots of rigidbodys). Any tips on that would be heavily appreciated, sadly I never dealt with multiplayer before
@joshdoesthings7836
@joshdoesthings7836 3 жыл бұрын
I know this was a long time ago. But research Smooth Sync for Unity. It cost 15 bucks and works wonders. I'm using it with Mirror.
@povilasca8306
@povilasca8306 4 жыл бұрын
Thanks! Really cool
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 жыл бұрын
Glad you found it useful!
3 жыл бұрын
I watched your pun2 tutorials and can I use pun2 on Steam or should I use SteamWorks API?
@punchmaster9607
@punchmaster9607 3 жыл бұрын
Hi, How to use the unity steam integration. I wonder if it is possible to develop a multiplayer game. That is, all client users will be connected to the steam server. If possible, how many users can join the server (eg photon network 25ccu). What is this situation for Steam?
@idite-na-hui
@idite-na-hui 4 жыл бұрын
Thank you
@squally9149
@squally9149 4 жыл бұрын
Could you do some videos on procedural generation or animation please. Would be cool to watch!
@Robert-mj3nx
@Robert-mj3nx 3 жыл бұрын
Also a reminder he's not using the mirror default Kcp transport he's using the Fizzy, I know that should be obvious but even I missed it the first time. Otherwise you'll need an IP as the fizzy use the steam transport.
@dimitriosmakridis2898
@dimitriosmakridis2898 3 жыл бұрын
Awesme tutorial, thanks for the thorough explanation :)
@castless5446
@castless5446 4 жыл бұрын
Hello Dapper Dino, could you tell me how to implement your network lobby manager through the offline scene, I every time get exceptions that I create several multiply network managers in the scene after client getting to the online scene or server/host trying to listen any port but nothing happens. Thank you in advance. I really like your advance tutorials and code transparency.
@augustoantenucci4725
@augustoantenucci4725 4 жыл бұрын
Awesome !!
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 жыл бұрын
You're awesome!!
@evelobe
@evelobe 4 жыл бұрын
Actually a really good tutorial :D
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 жыл бұрын
Glad you found it useful :)
@rafagamedev3606
@rafagamedev3606 3 жыл бұрын
Hey! Thanks a lot for the tutorial! Everything seems to be working on my project, where i'm a bit lost is what to do after the players joined, how do we manage spawning prefabs for players to control with their connections and things like that? If anyone could bring some insight to this i think it'd be helpful for some other people here as well, thank you so much!
@rafagamedev3606
@rafagamedev3606 3 жыл бұрын
Fixed! If set up correctly, it should work out of the box, thank you!
@branidev
@branidev 4 жыл бұрын
don't know how but it is amazing :O
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 жыл бұрын
:0000
@dedovagency
@dedovagency 4 жыл бұрын
This is fantastic, if I make a game ill credit your channel for sure!
@pcccmn
@pcccmn 3 жыл бұрын
With this we don't have to rent any servers at all :O Thanks!
@navy3001
@navy3001 2 жыл бұрын
So the newer versons does not include Steamworks
@tonyb9900
@tonyb9900 4 жыл бұрын
How would I be able to get the auto-fill in VS when programming with Steamworks’/Unity’s methods. When creating the host script, it’s hard to build off of since when I’m typing I can’t see the other parameters needed. Not sure if I missed something because I’m fairly new to Unity. P.S. Thank you for the video.
@Gramini
@Gramini 3 жыл бұрын
Autocomplete is enabled by default. Note that VS only auto-completes stuff that is already imported (the using stuff at the top).
@daboyz6106
@daboyz6106 2 жыл бұрын
I had an issue where when I clicked host it would not start the game properly and I could not invite anybody using the steam overlay. It still worked in the Unity Editor, just not through Steam. If anyone is having the same issue as me, this is how I fixed it: 1. Go to the unity project directory for your project and copy the steam_appid.txt file. 2. Locate where your game is built. 3. Place that file into the same folder as your build.
@xxtremestudio
@xxtremestudio 2 жыл бұрын
Bro you dont know how much I love you rn, you just saved me so much time and misery. (Still spent 30 mins before I saw this comment)
@skeevyricky5732
@skeevyricky5732 Жыл бұрын
Thank you so much.. holy shit
@SubjektDelta
@SubjektDelta 4 жыл бұрын
Can you just use steamworks without your game being on steam? Like having the freindlist and sending invites for example!
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 жыл бұрын
Technically you can but it is against ToS. The default id for the "Spacewar" game that it defaults to is kinda like a development id but for commercial/published games you need to actually publish on Steam and get your own game id and dashboard, which then allows you to create your own achievements, etc...
@SubjektDelta
@SubjektDelta 4 жыл бұрын
@@DapperDinoCodingTutorials thank you so much I always thought you need to buy the license first.. Will try to implement it and test with some friends! :)
@vatsal5734
@vatsal5734 4 жыл бұрын
@@SubjektDelta So is it okay to use steam for testing it playing game with friends online without publishing it anywhere? Bc I'm still confused, is it against ToS to play just with friends?
@whoisgliese
@whoisgliese 3 жыл бұрын
@@vatsal5734 no
@bierkules2608
@bierkules2608 3 жыл бұрын
What is the best way to debug multiplayer stuff with this transport protocol. Or should I just switch the protocol If I wanna test something on my local machine?
@caioaugustopinhel2219
@caioaugustopinhel2219 4 жыл бұрын
Great video man. What about mobile? I mean. If I want to create a crossplatform game (mobile and pc). How do I connect the mobile device to the Steam Network. Is it possible?
@Gramini
@Gramini 3 жыл бұрын
I don't think it's possible, as Steam is not available on mobile (not the client).
@traviswoolston8108
@traviswoolston8108 Жыл бұрын
So did ya'll make a company form to sign up for steamworks?
@brianjirvin
@brianjirvin Жыл бұрын
So the "invite" and "join player" when you click on their profile is the "steam matchmaking"?
@Nox__
@Nox__ 4 жыл бұрын
Finnaly a new one
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 жыл бұрын
Whoop whoop
@LoneXeaglE
@LoneXeaglE 3 жыл бұрын
does this work fine for mobile games and do users have to have steam accounts ? thanks a lot for the tutorial man you're a great person !
@Gramini
@Gramini 3 жыл бұрын
To use Steam you need to have, well, Steam...
@LoneXeaglE
@LoneXeaglE 3 жыл бұрын
@@Gramini what a genius you are...
@Gramini
@Gramini 3 жыл бұрын
@@LoneXeaglE I wanted to say "Yes, users need to have a Steam account".
@LoneXeaglE
@LoneXeaglE 3 жыл бұрын
@@Gramini thats a shame if it could be used just as relay, to get around nat punchthrough, that wouldve been good.
@paulchen9145
@paulchen9145 Жыл бұрын
But at 20:08 how can you now suddenly be "in the editor"? How can you open the game in the editor to be the host yet still invite you friend? Because when playing in unity there is no steam UI to actually invite someone. So I am just curious how can I be in a game with somebody yet still play from unity?
@frostcop6693
@frostcop6693 4 жыл бұрын
Important question: Since the steamworks from what I understand is Peer to Peer, if I want to make a Mirror multiplayer game using steamworks (like you show in the video), would all the code about the server/client structure be necessary (like [Client], [Command]...)?
@RugbugRedfern
@RugbugRedfern 4 жыл бұрын
Yes, because the host acts as the server (as well as a client).
@agentgc
@agentgc 3 жыл бұрын
Hi I am having trouble with matchmaking. Am I supposed to use the SearchForGameWithLobby function in isteammatchmaking?
@richardmiller4285
@richardmiller4285 3 жыл бұрын
i don't really know what im doing wrong, i do exactly what you've created. When i press Start Host, my button hide, and my game dont change Scene, can u help me please ? I open game with steam
@lastroundval
@lastroundval 3 жыл бұрын
same, got solution?
@RiadZX
@RiadZX 3 жыл бұрын
Same
@ADanbot
@ADanbot 3 жыл бұрын
How does this system work? Does it host the sever locally and port forward for us? Or is the server hosted through steam im confused
@Gramini
@Gramini 3 жыл бұрын
It's using Steam to communicate if I've understood it correctly.
@idrawpictures9140
@idrawpictures9140 3 жыл бұрын
When I invite the other player it forces me to download a game called spacewar that has nothing to do with my game. Please help! Edit: I fixed it! Make sure you are using the same build of you game for both computers. Even if no changes were made between one build to the next they are still different builds.
@magnusinvocatus
@magnusinvocatus 3 жыл бұрын
Hey ! I seem to be running into the same issue, but both computers are on the same build. Are you using appId 480 or your own ?
@idrawpictures9140
@idrawpictures9140 3 жыл бұрын
@@magnusinvocatus sorry I don't know what appId 480 is
@magnusinvocatus
@magnusinvocatus 3 жыл бұрын
@@idrawpictures9140 How did you fix the issue ? I mean I followed every step, Im pretty sure we have the same build (considering we passed on a single zip), but when my friend tries to connect to the game, it plays Spacewar instead of our game
@idrawpictures9140
@idrawpictures9140 3 жыл бұрын
@@magnusinvocatus I'm sorry but I'm not super experienced with game dev and hardly understood the issue when I ran into it. The only thing I can think of would be to build the game again and make sure the new build is the one running on steam
@magnusinvocatus
@magnusinvocatus 3 жыл бұрын
@@idrawpictures9140 thanks anyway mate it's fine we'll figure it out :)
@channeltrash6257
@channeltrash6257 3 жыл бұрын
Which is the prevous video? Cuz i don't have "My network manager" script
@comicandsons6586
@comicandsons6586 3 жыл бұрын
Thank you for this video!
@VENOM-kb8pu
@VENOM-kb8pu 3 жыл бұрын
Just a question everyone , Does that thing hosts your game at steam servers or that is just so you can invite friends in and works with steam guys , im confused , for example if i have a multiplayer game built on photon , do i have to rebuild all the online code ?
@RugbugRedfern
@RugbugRedfern 4 жыл бұрын
Any chance you'll make a tutorial on how to join a lobby when the game is closed? So that the game will open and automatically join the lobby? This doesn't work atm EDIT: From the Steamworks documentation: If the user clicks the link, and they are not currently running the game, it will launch the game with the command-line: +connect_lobby . Be sure your app implements ISteamApps::GetLaunchCommandLine so you can disable the popup warning when launched via a command line. partner.steamgames.com/doc/features/multiplayer/matchmaking I found out where the setting is. You can find this on the Steamworks website in Steamworks Settings > Installation > General Installation scroll down to Advanced Options EDIT 2: I have found this info, but have no idea how to get it in Unity. SteamApps.GetLaunchCommandLine() doesn't seem to return anything at all.
@brianjirvin
@brianjirvin Жыл бұрын
Did you ever figure it out as I am looking for a solution to this. I even tried OnRichPressenceJoinRequested but the callback never fires at all
@pokefabri
@pokefabri 2 жыл бұрын
I'm not getting on steam the "invite" option to my friend, what could I be missing? Everything else looks well, don't know if it could affect, but when I add the Fizzysteamworks script, it doesn't add the "Steam Manager" script automatically, I had to add it myself
@djarcas
@djarcas 3 жыл бұрын
Am I just being daft, or is the code that shows how to trigger the Lobby Entered missing? As far as I know, that appears as a command-line when the game is launched, but there's no code for that in Fizzy, SteamWorks or Mirror by default.
@lucasmontec
@lucasmontec 2 жыл бұрын
Try that facepunch one... youll like it.
@idrawpictures9140
@idrawpictures9140 3 жыл бұрын
my code isn't giving me autocompletes/ suggestions. also the text is mostly white while yours is highlighted in several colors. is there a way to change this?
@moddingdudes7055
@moddingdudes7055 3 жыл бұрын
Make sure you're using visual studio. Also make sure to use the Steamworks and Mirror namespace otherwise keywords such as SteamMatchmaking won't work and you would have to do Steamworks.SteamMatchmaking to access it within the namespace.
@АртурДобря-у7в
@АртурДобря-у7в 3 жыл бұрын
It work, wow. Thx bro :D
@Case-A-Lace
@Case-A-Lace 3 жыл бұрын
What would be the best way to test networked gameplay after implementing this? Is there a way to connect to local host like before?
@aaaAaAAaaaaAa1aAAAAaaaaAAAAaaa
@aaaAaAAaaaaAa1aAAAAaaaaAAAAaaa 3 жыл бұрын
make a second steam acc log into a second computer im pretty sure you can connect through steam on lan
@Case-A-Lace
@Case-A-Lace 3 жыл бұрын
@@aaaAaAAaaaaAa1aAAAAaaaaAAAAaaa yup that's what I ended up doing, thank you!
@cbuckington2933
@cbuckington2933 2 жыл бұрын
Hey, maybe someone can help me out with something here :) Through some Debugging I found out that even tho I have the SteamManager on my NetworkManager as a Monobehaviour, it is never getting Initialized :o SteamManager.Initialized always returns false. What could be going wrong? If I am building it through the editor everything seems to work fine, but whenever I add it the exe as a non steam game and start it the callbacks are not initialized since it SteamManager.Initialized is false
@kubix354
@kubix354 2 жыл бұрын
check if you have steamappid.txt in your build folder
@cbuckington2933
@cbuckington2933 2 жыл бұрын
@@kubix354 that was indead the problem, it did not get exported into the build version ^^
@saraquenel7316
@saraquenel7316 2 жыл бұрын
@@kubix354 Thank you! Your answer helped me a lot
@gelis07
@gelis07 4 жыл бұрын
how can i make a joining list with games for exmple i host a game and the other player can see the game i host in the joinning list (i suck at english btw)
@DapperDinoCodingTutorials
@DapperDinoCodingTutorials 4 жыл бұрын
A few people have requested that now and I'm not currently sure how to do it (but when I have more time to look into it I'll try my best to make a tutorial of it)
@gelis07
@gelis07 4 жыл бұрын
@@DapperDinoCodingTutorials ok because in the old Multiplayer HLAPI it was by default and i thought it isnt difficult
@Robber7
@Robber7 3 жыл бұрын
Request lobby metadata and display it. It's in the steamworks docs
@ashjones9306
@ashjones9306 2 жыл бұрын
Yesssssss!
@Decimalis
@Decimalis 3 жыл бұрын
Thanks, very useful :P
@BerrisGaming
@BerrisGaming 4 жыл бұрын
Thanks a lot! Do you (or anyone) know a way on how to connect to yourself with two instances running on the same machine? I tried putting in my steam64 ID manually but it seems that it doesn't work. Probably because I am not in the steam lobby yet.
@whoisgliese
@whoisgliese 3 жыл бұрын
use localhost as the id
@whoisgliese
@whoisgliese 3 жыл бұрын
question, is this like port fowarding but without port fowarding or is this run in steam's servers?
@adriaanbotha6069
@adriaanbotha6069 3 жыл бұрын
It uses steam's relay servers, so it's still peer to peer, just removes the need of port forwarding
@whoisgliese
@whoisgliese 3 жыл бұрын
@@adriaanbotha6069 thanks
Multiplayer Game Architecture in Unity
15:21
Shrine
Рет қаралды 155 М.
啊?就这么水灵灵的穿上了?
00:18
一航1
Рет қаралды 51 МЛН
小丑家的感情危机!#小丑#天使#家庭
00:15
家庭搞笑日记
Рет қаралды 30 МЛН
А что бы ты сделал? @LimbLossBoss
00:17
История одного вокалиста
Рет қаралды 8 МЛН
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 84 МЛН
Как работать с ProBuilder в Unity?
19:09
Школа разработки игр
Рет қаралды 29 М.
How To Award Steam Achievements In Your Unity Game
8:00
Dapper Dino
Рет қаралды 32 М.
The Unity Tutorial For Complete Beginners
46:39
Game Maker's Toolkit
Рет қаралды 3,7 МЛН
How I animate 3Blue1Brown | A Manim demo with Ben Sparks
53:41
3Blue1Brown
Рет қаралды 528 М.
How to code Steam Multiplayer lobbies in Unity using FacePunch
15:30
啊?就这么水灵灵的穿上了?
00:18
一航1
Рет қаралды 51 МЛН