This was great. I've worked with digital ocean before, so taking my knowledge of A, combined with your demo of b.. made for a quick and easy learning curve. I'd appreciate it if you'd consider making a similar video about the firewall, security, potentially adding a DB connection or something. Just to better understand the options. No matter what though, this is exactly what I needed to continue on my path. Well done sir!
Hi.. Great to see your videos on MLAPI and dedicated server here. Could you please post a video on having a MLAPI game hosted on dedicated server and we can create.. join rooms .. either on our own hosted server or on photon cloud. Will be of great help. Looking forward to it
you need a shock absorber for your mic! and/or use some old packaging styrofoam to place it on top of (easy to push into the styrofoam to make the mic rest nicely on top)
Hey, I would like for a portfolio project to make my own server for security reason using Docker. The problem is my portfolio would be a multiplayer VR game and you can't make a PCVR build for Linux so do you have any experiences for cases like this?
This is an amazing topic. For a subject that's not tutorialed on much. Thanks! So I got a question. For example in AAA games they use different language in the server side. So they are not using the game engine the game is made on. So how can server check the validity of the data. For example at least Physics won't work. Because they can't check game engine's physics rules in the server, they'd have to rewrite every function. Am I wrong in my logic?
Hey! Thanks for the video. I’m trying to minimise cost for my server as each server only has max 5 players at one time. I was told I can run multiple applications on the “droplet” at once each of different ip addresses, as my games take less then 200Mb of ram to run. I think this would be a very useful thing for people to know for scaling projects and I would appreciate it so much if you could make a quick video on it. Also! When you make these droplets could you make a video on how to make the server to continue running when you close your cmd using “screen” or whatever it is, and if you know how, making the servers launch “On Start” of your Linux machine so when it crashes it come back on. I know this is a lot to read but I will personally be directing a lot of people towards your channel if you can make a video that covers all of those topics :) Thankyou for your time
Using Unity 2021.3 and newer versions -> Switch the actual platform from "Windows, Mac, Linux" to "Dedicated Server" AND toggle the dropdown to be linux. Otherwise it will not send net messages or debug.
May you show how to make different server instances ? for example few players connect and play already and new people comes to play on new "room" of server. did not match with previous one
Thank you so much for the awesome video tutorial for dedicated server setup. I'm using a linux dedicated server build to control 2 clients for a game session after matchmaking. But, this is launching new server build instance on the server on every new room created. Hence, if there are 5 games running in parallel, server shows 5 linux build instances running in parallel in server using TOP command. Due to 1 server instance for each room, server occupies higher memory and I can't able to play more than 6 instances in parallel. Any solutions to optimise the memory would be appreciated. Server build contains only server related code, and assets used in the Prefabs having NetworkObject and It's running using batch-mode.
Ok. Nice, but you should make another video how to keep it running after you close the terminal. A would suggest using screen or creating a systemd service file, a service file is really easy to create so the game server pretty much runs as a regular service like sshd or apache. I might even go as far as creating a .deb package build that you could just install using the debian package installer, but that is a bit streatching it. Anyway thanks for the nice video.
Towards the end, i show how to run the executable as a background process with the &. For many people here, it is their first time with linux so we gotta take it slow 😅
@@N3KMercenaryCamp Yeah, i know. I watched the whole video. The thing is if you close the terminal / shell instance or lose connection to it the background process dies as well, as it is a sub process of the shell that started it. Anyway. if you decide to make a follow up and need help you can contact me on Discord, i just joined yours. Thanks again. :-)
The need for a server will be there no matter the scale of the game, it just depends on what type of resources you need to keep it smoothly running. The exception would be the run the dedicated server on the same machine as the client ( The player would host a game himself, but even there you would need a 'master server' so he can list his game to the public )
Epitome Thanks for the video, However it would be great if you could make a video with a scalable solution at lowest cost. perhaps using Linux servers, something not in hand of Amazon and Microsoft but something that is scalable and elastic so if many players connect also new server instances are spawned!
Thanks for the tutorial! Everything was explained very well. How would you go about making separate builds for the client and server, so that the client does not have access to the server code? Is this possible with MLAPI?
well, thats the issue, the server and a client are people passing a ball(data) both have to each each other and the ball. thats why ever game that exists has a cracked version running on private networks lol
Thanks so much for the video! It was easy enough to follow, and has so far been the only tutorial I can actually understand when it comes to hosting a unity server! I also have about a hundred little tiny questions, is there a place you recommend I ask them?
Hi, Thanks for your tutorial! but i have 1 question. is running on ubuntu slower than window? if i have both window and ubuntu server, which is the better choise?
You could take a different approach and have no server, but have a client be a 'server' and then that individual would share his IP address to his friend to connect directly. That would however require ports to be fowarded prior to the connection.
Really great video, thanks for that!!! I just have one question, could you make a MMORPG tutorial with dedicated windows server 2019 and Unity Netcode for Gameobjects with Unity Transport? I struggle with this for so long and I think a genius like you could possible solve my issue... Keep doing your great stuff! Greets, One
can we start server or shut down server according to players ,like if there is no players joining for some time, the server should shut down and start when player starts
Great playlist u had I even added it in order to follow it and it was the best Video Game tutorial, but when I was trying to create the dedicated server for Chess it opened the game as player 2 since the server was player 1. Maybe because I added the lines u said on OnHostButton and it started as player White. If possible can you help on how to make it so 2 players can connect and play against each other?
the video itself is nice, but would not recommend digital ocean... tried it without filling in banking details, and 1 morning, I just started getting bank messages from people buying machines on the account. Dont use it! Rest of the video, thanks for explaining the unity part.
I think its a good service to use if you don't have an inhouse multiplayer programmer and you're on a tight deadline. It makes things easy for small games to get started quickly. Like most services, you pay to fill in a task that you can't / dont want to do
Thanks for your feedback, hope this question would help more people in making their decision clear. Also i think photon is really good specially for beginners of course advanced devs like u would probably go with unity transport, mlapi, mirror and many more. Unet is trash and depreciated so better to keep it out of the way but yeah thanks for making such helpful videos.
How can i get different gamemode in my games? any idea how could i do that. At the moment, i am not using mlapi just cause i dont know how to handle gamemodes using it ;( thats why i had to use photon with high prices can u please make a video on game mode? using mlapi
Different game mode has to be done with your in game logic, if you plan on using the same server for all modes maybe you could boot them up with different command line argument like the one showned in this video. ex -launch-as-server -deathmatch
Hey bud, Im using com.unity.transport directly which is the relay layer used by MLAPI. If you're interested in MLAPI I also got videos on the channel, including a free open source Ludo project that you can have a peek at.
I literally understood nothing, since I've never seen this kind of stuff, but you were very clear! I know you were because I can feel it!
You make really good tutorials which are really rare to find on the web. Thanks for the tutorials man.
I appreciate that! :)
I’ve been on youtube for many years and haven’t spoken. After seeing your post, I think it’s time to reply. Very good, thank you, very good.
An honor :) Thank you
Thanks! This helped me figure out why I couldn't connect client to server on AWS where I only opened TCP but not UDP for the Game Server port.
Good to hear :)
just foun your channel, awesome, there is no other word for it. great content!
This was great.
I've worked with digital ocean before, so taking my knowledge of A, combined with your demo of b.. made for a quick and easy learning curve.
I'd appreciate it if you'd consider making a similar video about the firewall, security, potentially adding a DB connection or something. Just to better understand the options.
No matter what though, this is exactly what I needed to continue on my path.
Well done sir!
Did you host your game DB with digital ocean? Was it great?
Very informative. Sub'd just because of this video, one of the best described on youtube. Thank you! Can't wait to check out your other video's!
Hi.. Great to see your videos on MLAPI and dedicated server here. Could you please post a video on having a MLAPI game hosted on dedicated server and we can create.. join rooms .. either on our own hosted server or on photon cloud. Will be of great help. Looking forward to it
Yes please! You are one of the best game development youtuber out there!
Great video! Please continue this. Can you make a video with "quick match"? or simple matchmaking
+1 on it!
Btw you can also launch software with properties and then put it behind target
you need a shock absorber for your mic! and/or use some old packaging styrofoam to place it on top of (easy to push into the styrofoam to make the mic rest nicely on top)
I'm looking to have a set made at my place, would you happen to know where i could get some help?
Hey, I would like for a portfolio project to make my own server for security reason using Docker. The problem is my portfolio would be a multiplayer VR game and you can't make a PCVR build for Linux so do you have any experiences for cases like this?
looks like Upnp worked for you. XD What a rare sight!
This is an amazing topic. For a subject that's not tutorialed on much. Thanks!
So I got a question. For example in AAA games they use different language in the server side.
So they are not using the game engine the game is made on.
So how can server check the validity of the data. For example at least Physics won't work. Because they can't check game engine's physics rules in the server, they'd have to rewrite every function.
Am I wrong in my logic?
Any chance you could do a video on the raspberry pi server process for doing this?
Hey! Thanks for the video. I’m trying to minimise cost for my server as each server only has max 5 players at one time. I was told I can run multiple applications on the “droplet” at once each of different ip addresses, as my games take less then 200Mb of ram to run. I think this would be a very useful thing for people to know for scaling projects and I would appreciate it so much if you could make a quick video on it. Also! When you make these droplets could you make a video on how to make the server to continue running when you close your cmd using “screen” or whatever it is, and if you know how, making the servers launch “On Start” of your Linux machine so when it crashes it come back on. I know this is a lot to read but I will personally be directing a lot of people towards your channel if you can make a video that covers all of those topics :) Thankyou for your time
You can run them with different port number on the same IP maybe?
6:13 wow you can drop a file to git bash? thats awesome!
Just the path! but that works :)
Using Unity 2021.3 and newer versions -> Switch the actual platform from "Windows, Mac, Linux" to "Dedicated Server" AND toggle the dropdown to be linux. Otherwise it will not send net messages or debug.
Amazing dude!
Thank you !
Amazing video!
GREAT VIDEO, so helpful and I managed to replicate it, thanks for sharing! subscribed and looking forward to more videos from you!
May you show how to make different server instances ? for example few players connect and play already and new people comes to play on new "room" of server. did not match with previous one
Thank you so much for the awesome video tutorial for dedicated server setup. I'm using a linux dedicated server build to control 2 clients for a game session after matchmaking. But, this is launching new server build instance on the server on every new room created. Hence, if there are 5 games running in parallel, server shows 5 linux build instances running in parallel in server using TOP command. Due to 1 server instance for each room, server occupies higher memory and I can't able to play more than 6 instances in parallel. Any solutions to optimise the memory would be appreciated.
Server build contains only server related code, and assets used in the Prefabs having NetworkObject and It's running using batch-mode.
Thank you for this amazing tutorial! Is there any way I can see the source codes? Im interested in inside of the BaseClient file. Thank you.
Smashing that like button omg thanks!
!! Thanks
Thanks, man this is really helpful. Big fan...
Glad it helped
Ok. Nice, but you should make another video how to keep it running after you close the terminal. A would suggest using screen or creating a systemd service file, a service file is really easy to create so the game server pretty much runs as a regular service like sshd or apache. I might even go as far as creating a .deb package build that you could just install using the debian package installer, but that is a bit streatching it. Anyway thanks for the nice video.
Towards the end, i show how to run the executable as a background process with the &.
For many people here, it is their first time with linux so we gotta take it slow 😅
@@N3KMercenaryCamp Yeah, i know. I watched the whole video. The thing is if you close the terminal / shell instance or lose connection to it the background process dies as well, as it is a sub process of the shell that started it. Anyway. if you decide to make a follow up and need help you can contact me on Discord, i just joined yours. Thanks again. :-)
@@Hadoukanen you can use "screen" on linux
to all server getdown after they closed terminal even they use -launch-as-server try other terminal app ..
Amazing! is this method good for big games with lots of players or big maps? or it would burn money and resources?
The need for a server will be there no matter the scale of the game, it just depends on what type of resources you need to keep it smoothly running.
The exception would be the run the dedicated server on the same machine as the client ( The player would host a game himself, but even there you would need a 'master server' so he can list his game to the public )
Epitome Thanks for the video, However it would be great if you could make a video with a scalable solution at lowest cost. perhaps using Linux servers, something not in hand of Amazon and Microsoft but something that is scalable and elastic so if many players connect also new server instances are spawned!
Thanks for the tutorial! Everything was explained very well.
How would you go about making separate builds for the client and server, so that the client does not have access to the server code? Is this possible with MLAPI?
well, thats the issue, the server and a client are people passing a ball(data) both have to each each other and the ball. thats why ever game that exists has a cracked version running on private networks lol
Thanks so much for the video! It was easy enough to follow, and has so far been the only tutorial I can actually understand when it comes to hosting a unity server! I also have about a hundred little tiny questions, is there a place you recommend I ask them?
IG or UA-cam comments ☺️ Discord is also a good place!
Hi, Thanks for your tutorial! but i have 1 question. is running on ubuntu slower than window? if i have both window and ubuntu server, which is the better choise?
Ubuntu should run faster
Linux would be better because it has a smaller overhead
So in order to run a server for a unity game, you have to have the entire client on a VPS and run it like that?
You could take a different approach and have no server, but have a client be a 'server' and then that individual would share his IP address to his friend to connect directly. That would however require ports to be fowarded prior to the connection.
Really great video, thanks for that!!!
I just have one question, could you make a MMORPG tutorial with dedicated windows server 2019 and Unity Netcode for Gameobjects with Unity Transport? I struggle with this for so long and I think a genius like you could possible solve my issue...
Keep doing your great stuff!
Greets,
One
😂😂 Can I be a genius too?
@@Tropicaya ofc^^ if you can solve my problem
@@onechannel9716 Wait! It's been 8 months! You haven't figured out a solution to your problem yet?? Are you even trying? 😂
@@Tropicaya No i didn't try it, because a Dedicated Server costs money^^
can we start server or shut down server according to players ,like if there is no players joining for some time, the server should shut down and start when player starts
We would have to dwelve in deeper in devops and use a service that spins up new servers on demand, maybe docker containers
Do you know how to make an interactive command-line in Unity?
Did you uploade game on playstore?
Hey brother I wanna ask you that can we copy Android studio ui to unity's ui
Can you add subtitles to the video?
Great playlist u had I even added it in order to follow it and it was the best Video Game tutorial, but when I was trying to create the dedicated server for Chess it opened the game as player 2 since the server was player 1. Maybe because I added the lines u said on OnHostButton and it started as player White. If possible can you help on how to make it so 2 players can connect and play against each other?
Hey im struggling with the same thing, did you figure it out?
Can you make a dedicated hosted video for chess too....
the video itself is nice, but would not recommend digital ocean... tried it without filling in banking details, and 1 morning, I just started getting bank messages from people buying machines on the account. Dont use it!
Rest of the video, thanks for explaining the unity part.
Whats your thought on photon about pricing like it offers some nice features and implementation, Of course its hackable
I think its a good service to use if you don't have an inhouse multiplayer programmer and you're on a tight deadline. It makes things easy for small games to get started quickly.
Like most services, you pay to fill in a task that you can't / dont want to do
Thanks for your feedback, hope this question would help more people in making their decision clear. Also i think photon is really good specially for beginners of course advanced devs like u would probably go with unity transport, mlapi, mirror and many more. Unet is trash and depreciated so better to keep it out of the way but yeah thanks for making such helpful videos.
Hy Brother Can i run unity server on a Ubuntu-Linux ?
Of course!
Why don't you make voice chat system ?
Shoutout to the NotPorn Driver
Actually isn't porn!
hey can u make a tutorial about PineLine in transport packet? thanks
Hello Epitome, how can other people acces this game ?
How can I continue to run my server even when I exit my terminal?
Ok I found it..
@@nazifegebozoglu4324 how did you find it?
@@bloxmasterplayz7412 actually I can't remember right now but I guess I run "./ServerName.x86_64 &" twice
How much would this cost
Did the game u are hosting using mlapi or what?
This is com.unity.transport still, but the relay layer should not affect this video
How can i get different gamemode in my games? any idea how could i do that. At the moment, i am not using mlapi just cause i dont know how to handle gamemodes using it ;( thats why i had to use photon with high prices can u please make a video on game mode? using mlapi
Different game mode has to be done with your in game logic, if you plan on using the same server for all modes maybe you could boot them up with different command line argument like the one showned in this video. ex -launch-as-server -deathmatch
Oh thanks, any ideas of how to add play with friends? Just idea i will try to implement
Can anyone give the code please!!!
which code?
Please stop knocking the table but great tutorial
Wish people would use the new official unity MP solution.
it is that he is just hosting it with his own server which is a good thing
@@irishbruse Hes using proton in place of the new official unity mlapi right?
Hey bud, Im using com.unity.transport directly which is the relay layer used by MLAPI. If you're interested in MLAPI I also got videos on the channel, including a free open source Ludo project that you can have a peek at.
@@N3KMercenaryCamp Thx for taking the time to tell me this. I will check them out, since there are not that many other youtubers that have it.
Thx!
Aww man i was really hoping you were going to do dedicated hosting for the chess game. Any reason why you didnt use it?
@MoshiPoshi4444 I am too, did you figure it out?
Activate windows