Setting up a Dedicated Server for a Multiplayer Game in Unity

Setting up a Dedicated Server for a Multiplayer Game in Unity

Shrine

3 года назад

77,430 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

googleisgay ihategoogle
googleisgay ihategoogle - 05.10.2023 20:31

everyone knew this about the EHRC at the time its just corbyns team couldnt accuse EHRC of institutional corruption the media would crucify him as a conspiratorial leftist. you should focus more on how (knowing this all at the time as you all did) you still gave lip service to the antisemitism nonsense

Ответить
Arturo Chavez Sendra
Arturo Chavez Sendra - 27.08.2023 09:58

Great content brother. Sad to see you stopped, but I appreciate coming to your channel since you are the one who explained better than anyone else.

Ответить
Abdo Reda
Abdo Reda - 06.04.2023 21:16

These video are amazing <3 please if you ever find the time or motivation continue !

Ответить
Parham Ebrahimi
Parham Ebrahimi - 07.02.2023 14:46

Thaaaank you so much bro

Ответить
Caindall M
Caindall M - 11.11.2022 20:26

Is it possible to connect to our Dedicated Server from WebGL build ?

Ответить
Ivan Sutherland
Ivan Sutherland - 09.11.2022 01:58

Anyone here getting errors related to shaders not being supported when starting their server?

Ответить
Wil Prim
Wil Prim - 26.10.2022 01:31

For anyone using unity 2021+ seeing this and are having trouble making the server run change the BuildScript file at:

buildPlayerOptions.options = BuildOptions.CompressWithLz4HC | BuildOptions.EnableHeadlessMode;

To this:

buildPlayerOptions.subtarget = (int)(StandaloneBuildSubtarget.Server);

Also, make sure to open up port 7777 for UDP in your firewall settings if you are using KCP Transport.

Ответить
ZanderPlayz
ZanderPlayz - 07.10.2022 08:28

help i keep getting this error "Error building player because build target was unsupported"

Ответить
Daltonyx
Daltonyx - 28.09.2022 13:45

For anyone who comes across this and gets stumped as to why your server won't accept the connection, it's because in the video the network manager uses telepathy by default, whereas now it uses KCP! In your servers firewall, set the rule to tcp AND UDP to resolve the issue! Drove me freaking nuts for hours haha

Ответить
Emy Best
Emy Best - 30.08.2022 21:46

This works with Andoid?

Ответить
Karan Sahu
Karan Sahu - 30.08.2022 15:38

how users will matchmake?

Ответить
Ziad Mahmoud
Ziad Mahmoud - 11.08.2022 02:53

Thank you so much ❤️❤️❤️❤️❤️

Ответить
Talisman Skulls
Talisman Skulls - 31.07.2022 10:30

Be nice to see how to setup on a private snot using third party stuff.

Ответить
foxrootking
foxrootking - 29.05.2022 19:15

Can mobile connect to server?

Ответить
Вадим
Вадим - 16.05.2022 00:18

tell me what parameters should be on the server to support the operation of this Linux server assembly, I had errors in the logs
[UnityMemory] Configuration Parameters - Can be set up in boot.config
"memorysetup-bucket-allocator-granularity=16"
"memorysetup-bucket-allocator-bucket-count=8"
"memorysetup-bucket-allocator-block-size=4194304"
"memorysetup-bucket-allocator-block-count=1"
"memorysetup-main-allocator-block-size=16777216"
"memorysetup-thread-allocator-block-size=16777216"
"memorysetup-gfx-main-allocator-block-size=16777216"
"memorysetup-gfx-thread-allocator-block-size=16777216"
"memorysetup-cache-allocator-block-size=4194304"
"memorysetup-typetree-allocator-block-size=2097152"
"memorysetup-profiler-bucket-allocator-granularity=16"
"memorysetup-profiler-bucket-allocator-bucket-count=8"
"memorysetup-profiler-bucket-allocator-block-size=4194304"
"memorysetup-profiler-bucket-allocator-block-count=1"
"memorysetup-profiler-allocator-block-size=16777216"
"memorysetup-profiler-editor-allocator-block-size=1048576"
"memorysetup-temp-allocator-size-main=4194304"
"memorysetup-job-temp-allocator-block-size=2097152"
"memorysetup-job-temp-allocator-block-size-background=1048576"
"memorysetup-job-temp-allocator-reduction-small-platforms=262144"
"memorysetup-temp-allocator-size-background-worker=32768"
"memorysetup-temp-allocator-size-job-worker=262144"
"memorysetup-temp-allocator-size-preload-manager=262144"
"memorysetup-temp-allocator-size-nav-mesh-worker=65536"
"memorysetup-temp-allocator-size-audio-worker=65536"
"memorysetup-temp-allocator-size-cloud-worker=32768"
"memorysetup-temp-allocator-size-gfx=262144"

Ответить
ButcherBanana
ButcherBanana - 05.05.2022 16:44

SERVER PROTOCOL IS UDP !!

Ответить
Binding Force Development
Binding Force Development - 05.03.2022 01:54

I really miss this guy, have been really looking forward to info in visibility as I am running a single server for all clients to connect to unless/until I need to scale.. Anyone have any idea how to only create the player object that represents your local client? Essentially I am having all players connect to a lobby, and all communication is sent in a way that Player objects, at least in my mind, only need to be spawned on the client they represent. Mirror wants to create player objects on all connections that represent all the players on the server connected. This seems makes sense in the other models like P2P/Client Hosting but I am having trouble getting my mind around. I am guessing this means I need to find a way to avoid the problem I mentioned above by adjusting mirror's setup, or create a dedicated matchmaking server that spins up the game server, where the relevant players are then connected to. I am a bit lost. Anyone with any idea on how to do either of these things or explain why I am completely wrong in my approaches?

Ответить
asaf zoref
asaf zoref - 23.02.2022 11:48

You are the best please part 6?????

Ответить
Lightning Light
Lightning Light - 16.02.2022 19:38

Thank you, great work !

Ответить
Chance Slaughter32
Chance Slaughter32 - 01.02.2022 03:37

I am lacking in one step... I have everything going except when I run the server build on the aws server, nothing happens since it doesnt have a boot config... I cannot, for the life of me, find how to create a boot config and make the server actually run the server end of things in the build. Does anyone know how to do this or where I could go to learn how to do this?

Ответить
Harakiri
Harakiri - 26.01.2022 15:43

Is this possible to use with WebGl build ?

Ответить
SHOKH JAKHON KAYUMIY
SHOKH JAKHON KAYUMIY - 24.01.2022 14:04

I could not find your server on Discord. Let me know exact link please?

Ответить
Joey Öhman
Joey Öhman - 16.01.2022 14:32

Absolutely amazing tutorials, would love to see more!

Ответить
supercc66
supercc66 - 04.01.2022 07:37

if i wanna make a battle scene game. so . how to let 2 players into one room. and the server can support many rooms ? maybe one unity server instance to one game? can do that ?

Ответить
Hesham Soliman
Hesham Soliman - 23.12.2021 00:08

To get an array string of scenes paths (Scenes that are added in build settings)
var scenesPaths = EditorBuildSettings.scenes.Select(scene => scene.path).ToArray();

Ответить
ytubeanon
ytubeanon - 18.12.2021 11:25

it's really awesome to share all this knowledge... I had a question, I'm planning on using a unity asset that only uses UDP, how difficult would it be, and what would I have to do to make this run using UDP?

Ответить
BRAINSHACK
BRAINSHACK - 24.11.2021 22:06

Damn what a shame this is the last one. This series had so much potential. By far the most helpfull one I have seen so far. Hope you are okay :)

Ответить
Lowskii
Lowskii - 12.11.2021 16:25

I follow the steps but when I actually launch the game server on the onine server it stops after saying 'Unloadtime: xxx ms' , after this nothing happens anymore and I have to CTR C to get back to the command line. I also can't connect to the server.

Ответить
Jared Babinec
Jared Babinec - 02.11.2021 19:16

I opened up port 7777 on aws, but when running server.x86_64 I am getting "Failed to connect to localhost port 23864" .. Which I don't understand why it's trying to connect to this port. I am using KcpTransport instead of Telepath though. But port 7777 is still being used

Ответить
MasterBro Network
MasterBro Network - 29.10.2021 11:55

That build script is actually amazing, It makes building for several platforms a lot easier since it's just one button press!

Ответить
gamer6900
gamer6900 - 23.10.2021 04:31

Does this work via WiFi?

Ответить
Przemysław Idźczak
Przemysław Idźczak - 09.10.2021 11:15

So I've got a problem. After the game ends and both players are leaving, the server is still running and you cannot re-join. Any ideas how to fix it?

Ответить
Eduardo Soto
Eduardo Soto - 05.10.2021 10:26

Will there be more videos coming in this series? It's been a year since the last one, and it sounds like you had a lot more in store. It's ok if not, I know how it is, life gets in the way, you get bored and move on, or too busy, or whatever, but should we wait? :) thanks for the amazing videos!

Ответить
Ligua
Ligua - 30.09.2021 14:55

can this server be self hosted?

Ответить
Johnny
Johnny - 16.09.2021 21:01

No need to spend money on lightsail. Just use the free tier EC2

Ответить
OfficialGOD
OfficialGOD - 30.08.2021 13:40

Add Prediction

Ответить
amirkhan
amirkhan - 23.08.2021 18:11

So how many CCU is there? How many users can play at the same time in the server? Is there CCU limit?

Ответить
Lucazs
Lucazs - 14.08.2021 06:37

Is there another program other than AWS? Because I'm not able to set it up

Ответить
kleins
kleins - 09.08.2021 20:09

glad i have an old laptop that will run all night so i dont need to pay for cloud

Ответить
Grumpy Salmon
Grumpy Salmon - 03.08.2021 02:49

Hi! Love your videos. I'm coming from Photon so really excited to learn Mirror. One question though, is Mirror good for simple turn based games as well or its better is case of MOBA's or mmor rpgs?

Ответить
Hossein Tajeddini
Hossein Tajeddini - 30.07.2021 20:29

hi how ican How can I connect both of them with the hot spot of the phone?, please answer

Ответить
StickyLab
StickyLab - 07.07.2021 11:50

imsodumb ,harder than i think

Ответить
Evilk GAMING
Evilk GAMING - 29.06.2021 02:02

When i launch the server on aws i get lot of errors about shader :
Shader Sprites/Default shader is not supported on this GPU


Could you help on this please, i can even pay for help , thanks you

Ответить
Gandalf Le Dev
Gandalf Le Dev - 08.06.2021 17:25

Does anyone knows how I could upload automatically my server build on the server ?

Ответить
João Marcos de Rezende
João Marcos de Rezende - 08.06.2021 05:11

Do you have a sample with WebGL Build? Is the same process and only change the transport method to SimpleWebTransport or need to configure something more?

Ответить