RoomList to Guests
Posted: 07 Jan 2011, 11:47
Hi,
Is there way to show the room lists to guests?
My problem is as follows:
I have a customLogin implemented, this checks the login/password combination in database, this means that no guest logins are allowed (am I wrong?).
Now, I want to show the list of rooms to anybody who visits the page, but has to login to play a game. Is this possible without any dirty hack?
I was more thinking on lines of
1. SFS Connect
2. getRoomList (this doesn't work on login!!!!)
3. Login if required and play game.
But I have observed that getRoomList does not work without logging in.
This is the solution I have thought of.
1. Generate a random guest name in the client and do a login to the server. Set a user property indicating he/she is a guest.
2. Then when user joins a game, kick him out and display a login box (Dirty)
I see a lot of dirty and hacked code with this.
Is there a better way?
Regards,
Yaswanth
Is there way to show the room lists to guests?
My problem is as follows:
I have a customLogin implemented, this checks the login/password combination in database, this means that no guest logins are allowed (am I wrong?).
Now, I want to show the list of rooms to anybody who visits the page, but has to login to play a game. Is this possible without any dirty hack?
I was more thinking on lines of
1. SFS Connect
2. getRoomList (this doesn't work on login!!!!)
3. Login if required and play game.
But I have observed that getRoomList does not work without logging in.
This is the solution I have thought of.
1. Generate a random guest name in the client and do a login to the server. Set a user property indicating he/she is a guest.
2. Then when user joins a game, kick him out and display a login box (Dirty)
I see a lot of dirty and hacked code with this.
Is there a better way?
Regards,
Yaswanth