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.

Getting the ping (speed) of servers returned by PollHostList

Discussion in 'Multiplayer' started by EducaSoft, Oct 17, 2007.

  1. EducaSoft

    EducaSoft

    Joined:
    Sep 9, 2007
    Posts:
    650
    Hi,

    When I use MasterServer.PollHostList(); then I
    can see the servers available, but does anyone know how I could easily see also what the PING value is to those servers available? Thats a pretty important value to decide to which server you're gonna connect.
     
  2. larus

    larus

    Unity Technologies

    Joined:
    Oct 12, 2007
    Posts:
    274
    I implemented ping classes in the attached package, one for Mac and one for Windows. The Mac implementation works fine, both for webplayers and standalones. In Windows the code will only work on standalones (Windows required a seperate implementation).

    I'll look into getting the Windows code working in the Windows webplayers also.
     

    Attached Files:

  3. EducaSoft

    EducaSoft

    Joined:
    Sep 9, 2007
    Posts:
    650
    Great thanks,

    Of course I can only use it when it works on both Win and Mac.

    No hard feelings, but I changed to a mac to be able to use unity, but 95% of players on my website will be windows users :(

    So hopefully you can find something to solve this and if not then I hope that the functionality can be included in the webplayer by default since its a question which will be asked a huge amount of times when other people are going to make multiplayer webgames.

    Kind regards,

    Bart
     
  4. EducaSoft

    EducaSoft

    Joined:
    Sep 9, 2007
    Posts:
    650
    Is there anything changed yet? Can the ping allready be found on windows webplayers too now ?


    Kind regards,

    Bart Libert
    EducaSoft BVBA
     
  5. larus

    larus

    Unity Technologies

    Joined:
    Oct 12, 2007
    Posts:
    274
    Not yet, sorry. I have something which kinda works but isn't good enough.

    I'm working on polishing the networking example project, which will be ready very very soon. After that I can look at this again.
     
  6. EducaSoft

    EducaSoft

    Joined:
    Sep 9, 2007
    Posts:
    650
    Here I am again asking how stuff is progressing
     
  7. EducaSoft

    EducaSoft

    Joined:
    Sep 9, 2007
    Posts:
    650
    Larus dear Larus,

    How is the PING function going ?
     
  8. larus

    larus

    Unity Technologies

    Joined:
    Oct 12, 2007
    Posts:
    274
    It will be inbuilt in version 2.0.2.
     
  9. EducaSoft

    EducaSoft

    Joined:
    Sep 9, 2007
    Posts:
    650
    You are a GOD !

    Thanks!