Forum Multiplayer JoinData not being passed

Discussion and help relating to the PlayerIO Multiplayer API.

JoinData not being passed

Postby piman314 » February 10th, 2010, 6:10 pm

It seems as though the joinData being passed to the createJoinRoom method isn't being sent to the server.

AS3 Code:
Code: Select all
multiplayer.createJoinRoom("main", "Stocks", true, null, {username:"piman314"}, OnJoin, OnJoinError);


C# Code
Code: Select all
[DebugAction("JoinData", DebugAction.Icon.Smiley)]
public void OutputPlayers()
{
    foreach (Player p in Players)
    {
        Console.WriteLine(p.JoinData.Count.ToString());
        foreach (KeyValuePair<string, string> kvp in p.JoinData)
        {
            Console.WriteLine(kvp.Key + ":" + kvp.Value);
        }
    }
}

When I press the JoinData button on the development server, the only thing outputted is "0", so there is no data in player.JoinData.
piman314
 
Posts: 3
Joined: January 25th, 2010, 1:36 am
Location: Michigan

Re: JoinData not being passed

Postby mjdeslon » February 10th, 2010, 6:12 pm

Did you update the Player.IO connect to reflect your game?

Code: Select all
PlayerIO.connect
            (
               stage,                        //Referance to stage
               "[GAME ID HERE]"   //Game id (Get your own at playerio.com. 1: Create user, 2:Goto admin pannel, 3:Create game, 4: Copy game id inside the "")
               "public",                     //Connection id, default is public
               MovieClip(root).playerName,         //Username
               "",                           //User auth. Can be left blank if authentication is disabled on connection
               handleConnect,                  //Function executed on successful connect
               handleError                     //Function executed if we recive an error
            );   
User avatar
mjdeslon
 
Posts: 40
Joined: February 4th, 2010, 8:16 am
Location: Missouri

Re: JoinData not being passed

Postby piman314 » February 10th, 2010, 6:17 pm

yeah i have
Code: Select all
PlayerIO.connect(
               stage,
               "stocks-xxxxxxxxxxxxxxxxxxx",
               "public",
               userid,
               "",
               OnConnect,
               OnConnectError
               );

(replaced the code with x's for no reason) it will connect to the development server and online, the joindata just doesn't shoe up.
piman314
 
Posts: 3
Joined: January 25th, 2010, 1:36 am
Location: Michigan

Re: JoinData not being passed

Postby mjdeslon » February 10th, 2010, 7:00 pm

Can you post your "OnJoin" function....
User avatar
mjdeslon
 
Posts: 40
Joined: February 4th, 2010, 8:16 am
Location: Missouri

Re: JoinData not being passed

Postby Benjaminsen » February 10th, 2010, 7:22 pm

Hey Guys

This is a bug at our end, should have a bugfix out tomorrow.
Sorry about this

/Chris
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: JoinData not being passed

Postby piman314 » February 10th, 2010, 7:24 pm

Benjaminsen wrote:Hey Guys

This is a bug at our end, should have a bugfix out tomorrow.
Sorry about this

/Chris


Thanks
piman314
 
Posts: 3
Joined: January 25th, 2010, 1:36 am
Location: Michigan

Re: JoinData not being passed

Postby Benjaminsen » February 11th, 2010, 4:58 pm

Fixed and released.

No need to update your API's as the changes where done mostly in the bridge.

/Chris
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark


Return to Multiplayer



cron