UNET Part 22 - Host & Join Game Buttons

preview_player
Показать описание
A lot of people mentioned that the host game and join game buttons were bugged and that's right. The fix is nice and simple.

I'm using Unity 5.2.0f3 in this video.

Unity forum thread
Рекомендации по теме
Комментарии
Автор

Thanks for updating this series again.

TheWabbitSeason
Автор

I'm not sure if this topic was touched (please correct me if I'm wrong), but it's about the lobby manager. In some examples I want to do I tried that each player can select preferences in the lobby, they all press ready and then they are taken to the main game. Sadly I was too lost to complete it.
But anyway, thanks for all the tutorials, they are a big help.

WhispCL
Автор

+Gamer To Game Developer How would you connect two computers to play together. Would you need to use hamachi or something?

Lutchmedia
Автор

+Gamer To Game Developer Good day!
First of all I want to say your tutorials are awesome!
Can you add to this tutorial series the way we can create a matchmaking room? So a client can decide what server to join, and when the host decide the game is ready, it start with a button.
If possible too, on the match lobby give the chance to change maps, model, etc.

I know it has to do with DB.

Thanks In Advance!

leandrogarcia
Автор

Awesome video series! Any way you can cover displaying a list of current servers?

Keep up the great work!

CritterIslandRPG
Автор

Thank you very much for this video, great help!!

Rumblerock
Автор

Hi I'm not sure if you still plan on making anymore videos in this series but i was wondering if it would be possible at all if you could make a video on how to make it so you can connect to the host without the use of Hamachi because i have opened ports but it still does no work so i was wondering if anything needed changing in the code. Thanks

MrRlyca
Автор

I feel like just waiting a third of a second (or however long) is leaving it open to become a problem again later. What if something causes that scene change / start to take more than the time you've specified? Wouldn't it be better to check if there are more than one network manager object? Maybe give it a tag and use GameObject.FindGameObjectsWithTag(), and check if multiple objects were returned. Keep delaying the code until the search only finds one object so then you're safe to set everything up again.

MatthewChowns
Автор

Are you still continuing this series?
One thing I was really looking forward to seeing was the new host migration feature in unity 5.3
Anyway thanks for making such a great series and I look forward to any future episodes!

APerson-nbmb
Автор

great works ! next pls pls !

Can you talk about making by our own some online lobbies with the custom NetworkManager and how use a custom master server instead of the one provided by Unity please ?

StonerRockSpace
Автор

Best Unet series out there ;)Will there be something on synchronising a rigidbody so both players can interact with it? e.g. a ball

aondw
Автор

Could you make another tutorial showing how to implement the Modern Weapons Pack from the Asset Store into the game and shooting with those weapons? Thanks!

owenoj
Автор

Hello! I have a little question) A lot of small scripts is not problem?

VensJem
Автор

UNET: Adding different player prefabs tutorial please

jpsza
Автор

I am unable to have another person connect with port forwarding and himachi and i was wondering if you could do a tutorial explaining it further. all of my ports are open and my firewalls are down

jamiesacco
Автор

great overview,

I am facing an issue with my builds.

lets say there is no server running, and client tries to connect anyway.
the network manager will throw an error, I have managed to handle the register error alright but the problem is that the network manager resets everything in that first scene as soon as the client fails to connect to any available servers.

I have tried to call in the the menusetupbuttons Coroutines aswell within the OnClientError function.

But nothing seems to work.
I just can't get the buttons to start working again.

Any Ideas?

SaadViz
Автор

I am using the leatest Unity version. I know that unity is changing how multiplayer will work but I decided to use a free plugin Mirror which is built and based on unity unet system. I have a one problem though. When I add a NetworkManager Hud component and try to connect everything works. But if I try to make a custom menu (same like here and it doesn't matter that I use mirror and you are using unet but I am not 100 % sure) it just doesn't connect me... so help please :/
I debug IP and even checked the sever logs and the port is the same (7777) hosts are the same (localhost) and it still dont work...

Xenonqq
Автор

hi.. i have a problem if i create server with the build version i cant join with other build or with the editor, but i create with the editor i can... anyone with this problem?

goatcarpet
Автор

I use a custom UI made with the new UI tools, how do i delay the creation of a whole canvas? You create the buttons through code, but my buttons are gameobjects fastened to a canvas.

matsdyry
Автор

I know its an old video, but i keep getting an Error

" Must set the Network Address field in the manager

_MyNetWorkManager:joinGame() (at
"


i looked it up can i cant figure out what its asking
I've followed all the code in the video. so i dont know if their a problem in my code im just not seeing









using UnityEngine;

using System.Collections;

using UnityEngine.Networking;

using UnityEngine.UI;







    public void StartupHost()

    {

        SetPort();



    }

        



    void SetPort()

    {



    }

        





    void SetIPAddress()

    {





    }





    // joins the sever

    public void joinGame()

    {

        

        SetPort();

        SetIPAddress();





    }



        

    public void ClickExit()

    {



        Application.Quit();



    }







    {

        if(level == 0)

        {







        }else{



        }

    }





    {













    }





    {







    }

}

coolboyz