Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

How to make a Game (Multi User Environment) Like SecondLife and IMVU

Discussion in 'Multiplayer' started by NitinKool, Dec 2, 2015.

  1. NitinKool

    NitinKool

    Joined:
    Oct 16, 2015
    Posts:
    5
    Hi Guys,
    Please help me outs! i had searching this for months but cannot find anything related to it!
    All I get is UNET, Photon, Forge Sample Project.
    I Had Watched a many tutorials in youtube related to it but cannot find anything!

    I like this concept of UNet but when i create a host in 1 Build App and connect to another 2 Build App. and when i close the 1Build App the 2 build App disconnect. I like to know how to connect to the server till there is a single player!

    I know its difficult to understand what i am saying! (My English is Bad) please sorry!
    but if you get its! please help me out!
     
  2. NitinKool

    NitinKool

    Joined:
    Oct 16, 2015
    Posts:
    5
    is there anyone who will guide me to this! please i need a help!
     
  3. asperatology

    asperatology

    Joined:
    Mar 10, 2015
    Posts:
    981
    When the client disconnects, override the function OnClientDisconnect() and tell the client to start a new host via NetworkManager.
     
    NitinKool likes this.
  4. DRRosen3

    DRRosen3

    Joined:
    Jan 30, 2014
    Posts:
    683
    Just to make sure you understand what's going on @NitinKool ...when you close "1Build App" you're shutting down the "server" because "1Build App" was the host. When you shut down a server/host, you disconnect (by default) anyone/everyone else connected to that server/host.
     
    NitinKool likes this.
  5. NitinKool

    NitinKool

    Joined:
    Oct 16, 2015
    Posts:
    5
    thanks for you replys sir @asperatology @DRRosen3 ,
    Is there anything that make this:
    when you disconnect the host (1Build App) then its automatically provide to other player who are online.
     
  6. asperatology

    asperatology

    Joined:
    Mar 10, 2015
    Posts:
    981
  7. OldUnityFool

    OldUnityFool

    Joined:
    Feb 27, 2015
    Posts:
    25
    AFAIK in Unity 5.3 this will be possible.
    See Roadmap 5.3. : Networking Hostmigration.
    But i am not shure!
     
    NitinKool likes this.
  8. NitinKool

    NitinKool

    Joined:
    Oct 16, 2015
    Posts:
    5
    I want to make a virtual world game is there any script for networkmanger.

    Just like when user register there can login then connect to another member! chat,add friend, fun in world etc.

    just i like to know is there any script to connect to world without having to be online for server!
     
  9. asperatology

    asperatology

    Joined:
    Mar 10, 2015
    Posts:
    981
    Look around. Use Google search or use the Forum Search. We can't always help you with what you are trying to do.