Forum Multiplayer Works Locally But Not Live

Discussion and help relating to the PlayerIO Multiplayer API.

Works Locally But Not Live

Postby Law » January 25th, 2010, 2:23 am

Hi, I have been experimenting with the API and have tried to add the chat in the drawpad example to the fridge magnets, I got it working locally, showing the users at the top, showing the text when I talk, but when i tried it live, none of the users show up and when you chat, nothing shows up.

Thanks,
Law
Law
 
Posts: 6
Joined: January 24th, 2010, 1:30 am

Re: Works Locally But Not Live

Postby Toby » January 25th, 2010, 2:30 am

Hi Law,

Have you made sure you commented out the:
Code: Select all
client.multiplayer.developmentServer = "localhost:8184";

line, in your project? It will fail to run otherwise.
User avatar
Toby
 
Posts: 86
Joined: January 14th, 2010, 4:01 pm

Re: Works Locally But Not Live

Postby Law » January 25th, 2010, 3:13 am

Hi,

Yes, I did comment that out, the actual game does works, it's just the chat that fails, it's just blank.

Here, http://www.swfcabin.com/open/1264382666
Law
 
Posts: 6
Joined: January 24th, 2010, 1:30 am

Re: Works Locally But Not Live

Postby Oliver » January 25th, 2010, 8:04 am

Hi,

Did you also copy the serverside part of the chat code into the other project?

There is no built-in support for the chat in Player.IO; it's just some example code in the projects. So, you'll need to grab both the clientside and the serverside over to make it work.

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

Re: Works Locally But Not Live

Postby Law » January 25th, 2010, 8:20 am

Hi,

Yes, I did copy the serverside part of the chat code into it, at UserJoined, UserLeft, and GotMessage.
Law
 
Posts: 6
Joined: January 24th, 2010, 1:30 am

Re: Works Locally But Not Live

Postby Oliver » January 25th, 2010, 11:09 am

Okay, wierd. Can you post the project (just zip it up) and i'll take a look?
User avatar
Oliver
.IO
 
Posts: 1159
Joined: January 12th, 2010, 8:29 am

Re: Works Locally But Not Live

Postby Law » January 25th, 2010, 12:14 pm

Here, http://www.megaupload.com/?d=PJ0M1XNX

(Max attachment size is 256kb on the forum?)
Law
 
Posts: 6
Joined: January 24th, 2010, 1:30 am

Re: Works Locally But Not Live

Postby Benjaminsen » January 25th, 2010, 1:54 pm

I will get someone to look into the size limitation of uploads!

Anyway I downloaded your files and satup a test project and it works.
http://chrisbenjaminsen.com/temp/fridgemagnetstest.swf

I suspect that you have not uploaded the latest version of your dll to our servers.
[Edit, seems like your example works as well now, this error might be a caching bug on our end. I will look into that as well]
Benjaminsen
.IO
 
Posts: 1444
Joined: January 12th, 2010, 11:54 am
Location: Denmark

Re: Works Locally But Not Live

Postby Law » January 25th, 2010, 4:03 pm

Thanks for helping :D
Law
 
Posts: 6
Joined: January 24th, 2010, 1:30 am

Re: Works Locally But Not Live

Postby Toby » January 25th, 2010, 4:38 pm

Hey Law,

I just pushed the attachment limit up to 10Mb per file and a 100Mb total.
Should save you the hassel of uploading it externally from now on. ;)
User avatar
Toby
 
Posts: 86
Joined: January 14th, 2010, 4:01 pm

Re: Works Locally But Not Live

Postby Law » January 25th, 2010, 9:35 pm

Cool =P
Law
 
Posts: 6
Joined: January 24th, 2010, 1:30 am


Return to Multiplayer



cron