Forum Multiplayer Won't connect to dev server

Discussion and help relating to the PlayerIO Multiplayer API.

Won't connect to dev server

Postby matrix5565 » April 3rd, 2010, 6:54 am

I've started working on a new game, and have a new issue.
I set the server like this:
client.multiplayer.developmentServer = "localhost:8184";

But it never connects to it. I remember in my other game, if I forgot to run the development server then the game would give an appropriate error message, but in this case it seems to be running fine, at least by creating rooms. But, in a possibly unrelated problem, all the rooms show 0 onlineUsers when listed even when there are definitely users in the room. Any help would be appreciated.

A side question: is there an easy way to get the number of players in the client's room?
matrix5565
 
Posts: 8
Joined: March 1st, 2010, 7:22 am

Re: Won't connect to dev server

Postby Oliver » April 3rd, 2010, 4:01 pm

I don't understand: You say that it (i assume you mean the client) never connects to it (i assume you mean the dev server), but you also say that you can see it creating rooms.

Can you make a screencast of the issue?

- Oliver
User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am

Re: Won't connect to dev server

Postby matrix5565 » April 3rd, 2010, 7:39 pm

You're right, as far as I can tell, the client never connects to the Development Server, and in fact it makes no difference whether it is open or not. Although it still appears to create rooms normally (that don't show up in the dev server).

Well, I can give you a screenshot.

Listing the rooms from another instance shows:
Code: Select all
[playerio.RoomInfo]
id:            S12fU35H7kOtqqyZjMHIrw
serverType:      main
onlineUsers:   0
initData:      Id                  Value
            -------------------------------------------

Tracing client.multiplayer.developmentServer at the same time outputs:
Code: Select all
localhost:8184


EDIT: Also, I just noticed the rooms are showing up here in the admin panel.
Attachments
untitled.JPG
untitled.JPG (66.96 KiB) Viewed 9161 times
matrix5565
 
Posts: 8
Joined: March 1st, 2010, 7:22 am


Return to Multiplayer