Forum Multiplayer Why do I get this error

Discussion and help relating to the PlayerIO Multiplayer API.

Why do I get this error

Postby GameTwoThree » March 12th, 2011, 7:54 pm

Hey everyone,
I need a little help.

My game is giving me an error:
Got Error: You are unable to create room because there is already a room with the specified id


I get this error when Im trying to do this:

Code: Select all
client.multiplayer.createJoinRoom(
            "Test3",                     //Room id. If set to null a random roomid is used
            "test",            //The game type started on the server
            false,                        //Should the room be hidden from the lobby?
            {},                           //Room data. This data is returned to lobby list. Variabels can be modifed on the server
            {},                           //User join data
            handleJoin,                     //Function executed on successful joining of the room
            handleError //Handle all other errors with the basic handler
         );


But it all worked fine yesterday when I tested it out with couple of people. And when I log in and check server status I see no rooms opened.

If I change "Test3" to something else, it works. And yes, I know I will be usually giving a random id or something to rooms. However I am just wondering if Ive done something wrong now while things are simple, rather than try to fix them later when I have a bunch of code.

If needed I will cp more of mine code.

Regards,
Karlo
GameTwoThree
 
Posts: 11
Joined: February 28th, 2011, 2:11 am

Re: Why do I get this error

Postby HAnz » March 12th, 2011, 9:23 pm

Try replicating the problem by using, lets say, "Test4". If you can make it so that when the room "Test4" has been created, joined and then disconnected from. And then you wont be able to create it again, that might narrow down the problem.

There has also been problems with connecting, creating and joining rooms etc. in Player.IO today, so this might be the real reson for the problem if it worked fine before.
I make games and stuff.
User avatar
HAnz
 
Posts: 46
Joined: August 7th, 2010, 2:59 pm

Re: Why do I get this error

Postby wbsaputra » March 13th, 2011, 3:40 am

Got the same error with CreateJoinRoom => playerIO error there is room already with the specified id
is some kind a bug? everything works fine yesterday
wbsaputra
Paid Member
 
Posts: 150
Joined: June 29th, 2010, 4:38 pm

Re: Why do I get this error

Postby mrsilly » March 13th, 2011, 5:53 am

everything worked fine for me yesterday and today will not run. i think it is actually not running the dll. i bet something to do with daylight savings but i think i will just wait until tomorrow.
mrsilly
 
Posts: 1
Joined: March 7th, 2011, 1:29 am

Re: Why do I get this error

Postby wbsaputra » March 13th, 2011, 10:28 am

any clue when this error will be fixed? because my game completely stopped without createJoinRoom method :cry:
wbsaputra
Paid Member
 
Posts: 150
Joined: June 29th, 2010, 4:38 pm

Re: Why do I get this error

Postby flexcool354 » March 13th, 2011, 11:08 am

I got the exact same problem today

Yesterday it was fine, now it doesn't work

Now look at this
http://playerio.com/documentation/tutor ... terpolated

the demo file doesn't work anymore

Another fine example, this game uses player.io
http://www.kongregate.com/games/Unknown ... t-room-gdr
flexcool354
 
Posts: 35
Joined: September 26th, 2010, 5:31 pm

Re: Why do I get this error

Postby -Mani » March 13th, 2011, 4:54 pm

well, the game "everybody edits" doesn't have such problems:
http://everybodyedits.com/
how did they do that ?
-Mani
Paid Member
 
Posts: 83
Joined: April 11th, 2010, 6:13 pm

Re: Why do I get this error

Postby HAnz » March 13th, 2011, 5:16 pm

I think EE uses randomly generated room ids, if you do that then things work. Just use null instead of for example "Test3". You can use that as a temporary solution if you want.
I make games and stuff.
User avatar
HAnz
 
Posts: 46
Joined: August 7th, 2010, 2:59 pm

Re: Why do I get this error

Postby GameTwoThree » March 13th, 2011, 5:54 pm

Yeah of course,
but im also interested to know whats happening.
GameTwoThree
 
Posts: 11
Joined: February 28th, 2011, 2:11 am

Re: Why do I get this error

Postby UnknownGuardian » March 13th, 2011, 6:04 pm

Getting the error right now on http://www.kongregate.com/games/Unknown ... t-room-gdr when my admin panel explicitly says I have 0 rooms and 0 players on (they have all been denied with this error....) Quick fix please!


*EDIT* Specifying a different room to connect to (using createOrJoin) does not solve the error.
UnknownGuardian
 
Posts: 94
Joined: May 25th, 2010, 5:11 am

Re: Why do I get this error

Postby -Mani » March 13th, 2011, 6:29 pm

same thing @ my game -.-
-Mani
Paid Member
 
Posts: 83
Joined: April 11th, 2010, 6:13 pm

Re: Why do I get this error

Postby HAnz » March 13th, 2011, 6:42 pm

For a quick fix you probably need to use null as the room to connect to (generates a random room id), which means recoding your game a bit. The other option is to wait for the Player.IO guys to get back to work tomorrow, I don't think the problem will be fixed before then, but I could be wrong.
I make games and stuff.
User avatar
HAnz
 
Posts: 46
Joined: August 7th, 2010, 2:59 pm

Re: Why do I get this error

Postby flexcool354 » March 13th, 2011, 6:50 pm

Lol UG, i posted a link to your game earlier using it as an example :)
flexcool354
 
Posts: 35
Joined: September 26th, 2010, 5:31 pm

Re: Why do I get this error

Postby UnknownGuardian » March 13th, 2011, 8:54 pm

Thanks to flexcool a possible (put ugly) solution was found. Just use a long string with odd characters in it. I'm currently connecting to the room called
Code: Select all
Asd21ssr2(3hj1k232j3k#2hkj32hj23h2£$3kj2{hbdsao

which works just fine.
UnknownGuardian
 
Posts: 94
Joined: May 25th, 2010, 5:11 am

Re: Why do I get this error

Postby wbsaputra » March 14th, 2011, 2:24 am

uh i can't use null id in my game because i create lobby system with reserved room id :cry:
Where r u guys ..
wbsaputra
Paid Member
 
Posts: 150
Joined: June 29th, 2010, 4:38 pm

Re: Why do I get this error

Postby -Mani » March 14th, 2011, 1:47 pm

YES IT GOT FIXED! 8-)
thank you player.io guys!
u rock!!!
-Mani
Paid Member
 
Posts: 83
Joined: April 11th, 2010, 6:13 pm

Re: Why do I get this error

Postby Oliver » March 14th, 2011, 5:56 pm

Hi,

This was related to to an issue we had with our distributed caching layer. We've reset some servers so that the issue is no longer there and we're investigating the root cause of the issue, so that we can prevent if from happening again.

Terribly sorry for the inconvenience.

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

Re: Why do I get this error

Postby wbsaputra » March 14th, 2011, 10:55 pm

thanks fixed now, but i have 1 room with id 11001 won't die because last night i try to modify with null room id, but i did something wrong in my code, can you guys close it :). thanks
wbsaputra
Paid Member
 
Posts: 150
Joined: June 29th, 2010, 4:38 pm

Re: Why do I get this error

Postby wbsaputra » March 26th, 2011, 2:56 am

same problem error when creating room coming out again. hope your player io guys fixed soon
wbsaputra
Paid Member
 
Posts: 150
Joined: June 29th, 2010, 4:38 pm

Re: Why do I get this error

Postby -Mani » March 26th, 2011, 1:07 pm

OOOHH NNOOOO :o
the bug is here again -.-
-Mani
Paid Member
 
Posts: 83
Joined: April 11th, 2010, 6:13 pm

Re: Why do I get this error

Postby FulaFisken » March 26th, 2011, 7:29 pm

Yeah, the bug is back again.
Fula Fisken
website blog twitter
Play Game
Astroflux
User avatar
FulaFisken
Paid Member
 
Posts: 139
Joined: March 2nd, 2011, 10:15 am

Re: Why do I get this error

Postby -Mani » March 28th, 2011, 8:47 pm

woah hold on!
alot of games don't have the bug while mine has it...
what's wrong here?
a update?
-Mani
Paid Member
 
Posts: 83
Joined: April 11th, 2010, 6:13 pm

Re: Why do I get this error

Postby GameTwoThree » March 28th, 2011, 9:09 pm

I would say that you are using a wrong system to handle rooms. My game works ok.
GameTwoThree
 
Posts: 11
Joined: February 28th, 2011, 2:11 am


Return to Multiplayer