Forum General Unable to create/join a room on the Mac Web Player

Any issues or discussions relating to Unity development are welcome here.

Unable to create/join a room on the Mac Web Player

Postby FuzzySlash » October 22nd, 2013, 2:16 am

Hey there,

So I'm developing a game with Unity, and on my PC everything works fine. But the Mac Web Player stops right at the part where it is supposed to create/join the first room. It doesn't show any errors either.
Any ideas?

Cheers,
Marco

Code: Select all
void Start () {
      
      PlayerIOClient.PlayerIO.UnityInit(this);
      
      // create a random userid
      System.Random random = new System.Random();
      string userid = "Guest" + random.Next(0, 10000);

      text.text=("Starting");

      PlayerIOClient.PlayerIO.Connect(
         [myid],   
         "public",                  
         userid,                  
         null,                     
         null,
         delegate(Client client) {
   text.text =  ("Connected");
            // Uncoment the line below to use the Development Server
            //client.Multiplayer.DevServer = new ServerEndpoint("localhost",8184);

            //Create or join the room
                client.Multiplayer.CreateJoinRoom ("FirstRoom","Game",false,null,null,delegate(Connection value) {
            text.text = ("Created");
            c = value;
            c.OnMessage+=handlemessage;
            c.Send ("CreateJoinBattleSector","map1");
         },  delegate(PlayerIOError value) {
            text.text = value.Message;
         });
      });
   }
FuzzySlash
 
Posts: 37
Joined: April 15th, 2011, 3:59 am

Re: Unable to create/join a room on the Mac Web Player

Postby Benjaminsen » October 22nd, 2013, 5:20 pm

The web player for Unity is crazy buggy, try rebooting your computer and try again. (It leaks socket connections like crazy)
We are creating a work around, but it's slow going as the bug is actually in the underlying Mono framework.
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: Unable to create/join a room on the Mac Web Player

Postby FuzzySlash » October 22nd, 2013, 5:52 pm

I just realized that it does work the first time, but when I refresh the page it doesn't work until the browser is restarted.
Probably like you said, leaking. Shame, but have to live with it I guess.
FuzzySlash
 
Posts: 37
Joined: April 15th, 2011, 3:59 am

Re: Unable to create/join a room on the Mac Web Player

Postby Benjaminsen » October 24th, 2013, 3:57 pm

FuzzySlash wrote:I just realized that it does work the first time, but when I refresh the page it doesn't work until the browser is restarted.
Probably like you said, leaking. Shame, but have to live with it I guess.


Jyst FYI, we are working on a fix for this :)
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: Unable to create/join a room on the Mac Web Player

Postby FuzzySlash » October 24th, 2013, 4:59 pm

I appreciate that very much! Good luck with it :)
FuzzySlash
 
Posts: 37
Joined: April 15th, 2011, 3:59 am


Return to General



cron