Make a Dedicated Server for your Unity Game - [How To][Unity][Linux]

Поділитися
Вставка
  • Опубліковано 11 лис 2024

КОМЕНТАРІ • 103

  • @lemmin_
    @lemmin_ 3 роки тому +5

    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!

  • @thuraoo2295
    @thuraoo2295 3 роки тому +11

    You make really good tutorials which are really rare to find on the web. Thanks for the tutorials man.

  • @missaleenfitness2616
    @missaleenfitness2616 2 роки тому +2

    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.

  • @skape21
    @skape21 2 роки тому +2

    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.

  • @hck1bloodday
    @hck1bloodday 3 роки тому +1

    just foun your channel, awesome, there is no other word for it. great content!

  • @PIPML09
    @PIPML09 Рік тому +2

    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!

    • @usercontent2112
      @usercontent2112 Рік тому

      Did you host your game DB with digital ocean? Was it great?

  • @coregamestudio
    @coregamestudio 5 місяців тому

    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!

  • @ajitsmile
    @ajitsmile 3 роки тому +6

    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

    • @utcarshsrivastava6640
      @utcarshsrivastava6640 3 роки тому

      Yes please! You are one of the best game development youtuber out there!

  • @Jicefrost
    @Jicefrost 2 роки тому +2

    Great video! Please continue this. Can you make a video with "quick match"? or simple matchmaking

  • @whatamiwitnessing1003
    @whatamiwitnessing1003 3 роки тому +1

    Btw you can also launch software with properties and then put it behind target

  • @AkamiChannel
    @AkamiChannel 3 роки тому +2

    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)

    • @N3KMercenaryCamp
      @N3KMercenaryCamp  3 роки тому +2

      I'm looking to have a set made at my place, would you happen to know where i could get some help?

  • @AlexRonai
    @AlexRonai Рік тому +1

    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?

  • @bradleywhais7779
    @bradleywhais7779 Рік тому

    looks like Upnp worked for you. XD What a rare sight!

  • @rocketshader2699
    @rocketshader2699 2 роки тому +1

    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?

  • @wizardsofscript
    @wizardsofscript 3 роки тому +4

    Any chance you could do a video on the raspberry pi server process for doing this?

  • @bluecrowinteractive3968
    @bluecrowinteractive3968 3 роки тому +10

    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

    • @scottpeal60
      @scottpeal60 2 роки тому

      You can run them with different port number on the same IP maybe?

  • @cank4286
    @cank4286 3 роки тому +4

    6:13 wow you can drop a file to git bash? thats awesome!

  • @strixielovely4483
    @strixielovely4483 2 роки тому +1

    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.

  • @PhilippDominicSiedler
    @PhilippDominicSiedler 2 роки тому +1

    Amazing dude!

  • @jasonwilliams8730
    @jasonwilliams8730 Рік тому

    Amazing video!

  • @ThePavilionWeb
    @ThePavilionWeb 2 роки тому

    GREAT VIDEO, so helpful and I managed to replicate it, thanks for sharing! subscribed and looking forward to more videos from you!

  • @Jicefrost
    @Jicefrost 2 роки тому

    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

  • @shaishavbabariya3259
    @shaishavbabariya3259 Рік тому +1

    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.

  • @奏石田-q5t
    @奏石田-q5t 7 місяців тому

    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.

  • @eddyrc7
    @eddyrc7 3 роки тому +1

    Smashing that like button omg thanks!

  • @gamedevdemonold
    @gamedevdemonold 3 роки тому +1

    Thanks, man this is really helpful. Big fan...

  • @Hadoukanen
    @Hadoukanen 3 роки тому +1

    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.

    • @N3KMercenaryCamp
      @N3KMercenaryCamp  3 роки тому +5

      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 😅

    • @Hadoukanen
      @Hadoukanen 3 роки тому +2

      @@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. :-)

    • @bitmammothOG
      @bitmammothOG 3 роки тому +1

      @@Hadoukanen you can use "screen" on linux

  • @nbarunway2561
    @nbarunway2561 2 роки тому

    to all server getdown after they closed terminal even they use -launch-as-server try other terminal app ..

  • @ryanisthewind
    @ryanisthewind 3 роки тому +1

    Amazing! is this method good for big games with lots of players or big maps? or it would burn money and resources?

    • @N3KMercenaryCamp
      @N3KMercenaryCamp  2 роки тому

      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 )

  • @sicksharkx92
    @sicksharkx92 2 роки тому

    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!

  • @Chrispins
    @Chrispins 3 роки тому +3

    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?

    • @Keolamation
      @Keolamation 3 роки тому +3

      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

  • @TheIronicRaven
    @TheIronicRaven 2 роки тому +1

    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?

    • @N3KMercenaryCamp
      @N3KMercenaryCamp  2 роки тому +2

      IG or UA-cam comments ☺️ Discord is also a good place!

  • @vukien8404
    @vukien8404 3 роки тому +1

    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?

  • @SteveBlues87
    @SteveBlues87 2 роки тому +1

    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?

    • @N3KMercenaryCamp
      @N3KMercenaryCamp  2 роки тому +1

      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.

  • @onechannel9716
    @onechannel9716 2 роки тому +1

    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

    • @Tropicaya
      @Tropicaya 2 роки тому

      😂😂 Can I be a genius too?

    • @onechannel9716
      @onechannel9716 2 роки тому

      @@Tropicaya ofc^^ if you can solve my problem

    • @Tropicaya
      @Tropicaya 2 роки тому +1

      @@onechannel9716 Wait! It's been 8 months! You haven't figured out a solution to your problem yet?? Are you even trying? 😂

    • @onechannel9716
      @onechannel9716 2 роки тому +1

      @@Tropicaya No i didn't try it, because a Dedicated Server costs money^^

  • @starking8483
    @starking8483 3 роки тому +1

    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

    • @N3KMercenaryCamp
      @N3KMercenaryCamp  3 роки тому +2

      We would have to dwelve in deeper in devops and use a service that spins up new servers on demand, maybe docker containers

  • @henrytopia721
    @henrytopia721 3 роки тому +1

    Do you know how to make an interactive command-line in Unity?

  • @aabubakerr37
    @aabubakerr37 Рік тому

    Did you uploade game on playstore?

  • @gaminggalaxyff22m37
    @gaminggalaxyff22m37 2 роки тому

    Hey brother I wanna ask you that can we copy Android studio ui to unity's ui

  • @hduytan
    @hduytan 3 роки тому +2

    Can you add subtitles to the video?

  • @egersgameplay656
    @egersgameplay656 2 роки тому

    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?

  • @tanmaysinghal8370
    @tanmaysinghal8370 2 роки тому

    Can you make a dedicated hosted video for chess too....

  • @antondeswardt2027
    @antondeswardt2027 2 роки тому +1

    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.

  • @akarsh9407
    @akarsh9407 3 роки тому

    Whats your thought on photon about pricing like it offers some nice features and implementation, Of course its hackable

    • @N3KMercenaryCamp
      @N3KMercenaryCamp  3 роки тому +2

      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

    • @akarsh9407
      @akarsh9407 3 роки тому

      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.

  • @xioned
    @xioned 3 роки тому +1

    Hy Brother Can i run unity server on a Ubuntu-Linux ?

  • @gmasterji3980
    @gmasterji3980 2 роки тому

    Why don't you make voice chat system ?

  • @notsoren665
    @notsoren665 3 роки тому +1

    Shoutout to the NotPorn Driver

  • @datcong974
    @datcong974 3 роки тому

    hey can u make a tutorial about PineLine in transport packet? thanks

  • @harakiri4350
    @harakiri4350 2 роки тому

    Hello Epitome, how can other people acces this game ?

  • @nazifegebozoglu4324
    @nazifegebozoglu4324 2 роки тому

    How can I continue to run my server even when I exit my terminal?

  • @wolfefish1818
    @wolfefish1818 2 роки тому

    How much would this cost

  • @akarsh9407
    @akarsh9407 3 роки тому

    Did the game u are hosting using mlapi or what?

    • @N3KMercenaryCamp
      @N3KMercenaryCamp  3 роки тому

      This is com.unity.transport still, but the relay layer should not affect this video

  • @akarsh9407
    @akarsh9407 3 роки тому

    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

    • @N3KMercenaryCamp
      @N3KMercenaryCamp  3 роки тому

      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

    • @akarsh9407
      @akarsh9407 3 роки тому

      Oh thanks, any ideas of how to add play with friends? Just idea i will try to implement

  • @proplayerzone5122
    @proplayerzone5122 2 роки тому +1

    Can anyone give the code please!!!

    • @npc159
      @npc159 2 роки тому +1

      which code?

  • @williamtseung295
    @williamtseung295 2 роки тому

    Please stop knocking the table but great tutorial

  • @whatamiwitnessing1003
    @whatamiwitnessing1003 3 роки тому +2

    Wish people would use the new official unity MP solution.

    • @irishbruse
      @irishbruse 3 роки тому

      it is that he is just hosting it with his own server which is a good thing

    • @whatamiwitnessing1003
      @whatamiwitnessing1003 3 роки тому

      @@irishbruse Hes using proton in place of the new official unity mlapi right?

    • @N3KMercenaryCamp
      @N3KMercenaryCamp  3 роки тому

      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.

    • @whatamiwitnessing1003
      @whatamiwitnessing1003 3 роки тому

      @@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!

  • @theexcessive6712
    @theexcessive6712 3 роки тому

    Aww man i was really hoping you were going to do dedicated hosting for the chess game. Any reason why you didnt use it?

  • @KrestenGiese
    @KrestenGiese Рік тому

    Activate windows