Change zone after login

Post here your questions about the Java client / Android API for SFS2X

Moderators: Lapo, Bax

sylhouette
Posts: 20
Joined: 09 Oct 2011, 01:29
Location: Indonesia
Contact:

Change zone after login

Postby sylhouette » 12 Oct 2011, 07:40

Can a user change zones after login? How can I do that? I need to change zone because after a user is logged in, he will join a "general zone" and then when he choose a game to play, I want that user to switch zones into another game zone. Thanks for your help :) (sorry for the newbie question)
User avatar
Bax
Site Admin
Posts: 4608
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 12 Oct 2011, 08:25

You have to logout (there's a specific request) and then login again.
Paolo Bax
The SmartFoxServer Team
sylhouette
Posts: 20
Joined: 09 Oct 2011, 01:29
Location: Indonesia
Contact:

Postby sylhouette » 12 Oct 2011, 09:17

so I figured. Ok. Thanks a lot :)
Brian
Posts: 1
Joined: 27 Feb 2019, 16:34

Re: Change zone after login

Postby Brian » 27 Feb 2019, 16:40

Hi,

I had a similar question, can we do this without user required action? (Logout(old zone) / Login (new zone))

Using Unity :)

P.s: I’ve been looking into a server backend architecture for a while now. I’ve tried multiple different systems. Can’t explain how happy I was when I stumbled on SFS. It has everything I need and more. Thanks for this amazing creation! And the jelastic solution makes it even better :D
User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Change zone after login

Postby Lapo » 28 Feb 2019, 08:57

Hello,
Brian wrote:Hi,

I had a similar question, can we do this without user required action? (Logout(old zone) / Login (new zone))

Using Unity :)

No, when you can be logged into a Zone at a time, so you will need to logout first then login again.
You can think of Zones as separate applications running in your server. If it's absolutely necessary to be in multiple Zones at once (which I find it strange) then you will need multiple connections (and multiple instances of the SmartFox client object).

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Java / Android API”

Who is online

Users browsing this forum: No registered users and 9 guests