Could not get room join event

Post here your questions about the C++ API for SFS2X

Moderators: Lapo, Bax, MBagnati

User avatar
hoangdoanh
Posts: 253
Joined: 21 Jun 2013, 04:54
Location: Vietnam

Could not get room join event

Postby hoangdoanh » 05 May 2014, 07:44

Hi all

We use C++ API to connect to SmartFox Server. But on client-side we could not get room join event while on server informed that user joined room.

Information
-SmartFoxServer version 2.8.2
-C++ API version 1.1.0
-Room is MMO Room.

After switched MMO Room to normal room, client-side could get room join event perfectly

Could you please address this issue

Thanks & kind regards,
Doanh
User avatar
hoangdoanh
Posts: 253
Joined: 21 Jun 2013, 04:54
Location: Vietnam

Re: Could not get room join event

Postby hoangdoanh » 07 May 2014, 04:03

Hi all

Could you please help us to understand this issue .

Thanks & best regards,
Doanh
MBagnati
Posts: 126
Joined: 12 Feb 2013, 10:57

Re: Could not get room join event

Postby MBagnati » 07 May 2014, 16:28

Hi Doanh,
I am investigating the issue.
I will notify you as soon as possible

Best regards
Massimo
User avatar
hoangdoanh
Posts: 253
Joined: 21 Jun 2013, 04:54
Location: Vietnam

Re: Could not get room join event

Postby hoangdoanh » 08 May 2014, 03:51

Thank you for response

I am waiting

Cheers,
Doanh
User avatar
hoangdoanh
Posts: 253
Joined: 21 Jun 2013, 04:54
Location: Vietnam

Re: Could not get room join event

Postby hoangdoanh » 14 May 2014, 04:03

Hi MBagnati

Is there something updated on this issue ?

Thanks,
Doanh
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Could not get room join event

Postby Lapo » 14 May 2014, 08:49

Hi,
sorry for the late reply.

When you join an MMORoom you will get SFSEvent.ROOM_JOIN event back.
Once you receive this you will need to call the SetUserPosition to physically position your player in the Room. Until you do that you won't be able to interact with anybody in the Room.

Here's a detailed overview of how MMORooms work
http://docs2x.smartfoxserver.com/Advanc ... /mmo-rooms

If something is not clear or you have other problems let us know.

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
hoangdoanh
Posts: 253
Joined: 21 Jun 2013, 04:54
Location: Vietnam

Re: Could not get room join event

Postby hoangdoanh » 15 May 2014, 03:54

Hi Lapo

Thanks for response.

but maybe you got me wrong. We met problem that we didn't get ROOM_JOIN event.

Could you please read again my posts !

Cheers
Doanh
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Could not get room join event

Postby Lapo » 15 May 2014, 07:50

I am sorry but your post is not clear enough.
But on client-side we could not get room join event while on server informed that user joined room.


Can you clarify what this means? Try to describe it by listing all the steps you're doing and indicating which errors or problems you're getting.
Also make sure to check the server side logs for errors that maybe relevant and post them here as well.

thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
hoangdoanh
Posts: 253
Joined: 21 Jun 2013, 04:54
Location: Vietnam

Re: Could not get room join event

Postby hoangdoanh » 15 May 2014, 11:03

Ok Lapo

We have :
- Server side: SmartFoxServer version 2.8.2
- Client side: C++ API version 1.1.0
- Lobby Room: normal Room. Name is Lobby
- Game Room is MMO Room. Name is VP1

Log in to those rooms alway successfully at first time, failed at second time(means SFSEvent.ROOM_JOIN does not happen on client-side).
- More steps detail in client-side.
0.User in Lobby.
1.User sends JoinRoomRequest to join VP1, event SFSEvent.ROOM_JOIN happens on client-side, user joined successfully.
2.User exists to Lobby successfully.
3.User sends JoinRoomRequest to join VP1 again, event SFSEvent.ROOM_JOIN does not happen on client-side, but in admin site(zone monitor), I see user already joined into VP1.

In addition to you, Objective-C client does not encounter this problem. I think this is issue related to only C++ Client.

Hope it already clearer.

Thanks,
Doanh
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Could not get room join event

Postby Lapo » 15 May 2014, 13:47

Thanks for the clarification.
We'll check and see if we can reproduce it locally. I can already tell you that it's not a Server issue: I have tested with a Flash client entering and leaving a Lobby Room and an MMORoom repeatedly, many times and it works without issues.

Maybe there's a client issue. We'll report back.

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
hoangdoanh
Posts: 253
Joined: 21 Jun 2013, 04:54
Location: Vietnam

Re: Could not get room join event

Postby hoangdoanh » 16 May 2014, 10:49

Thanks Lapo

Cheers
Doanh
User avatar
hoangdoanh
Posts: 253
Joined: 21 Jun 2013, 04:54
Location: Vietnam

Re: Could not get room join event

Postby hoangdoanh » 21 May 2014, 02:59

Hi Lapo

I have feeling is that this issue is not small, isn't it ?

Cheers,
Doanh
MBagnati
Posts: 126
Joined: 12 Feb 2013, 10:57

Re: Could not get room join event

Postby MBagnati » 21 May 2014, 11:23

Hi Doanh,
I have tried to create a test environment using the SimpleChat sample provided with C++ API.
On SmartFoxServer I have two rooms: a normal room named "The Lobby" and a MMO room named "UnityMMODemo"
Using SimpleChat sample I move from "The Lobby" to "UnityMMODemo" and vice versa
Every time that SimpleChat receives a "room join" event, it show the message "You joined the room..."
This is the screenshot of my Pc...seems that in my test environment all is working.

To understand the difference between your environment where "room join" event is not notified and my environment, please could you perform the following test?

1) Start SmartFoxServer
2) Run the sample MMODemo that is delivered with client API
This sample creates a MMO room
After few seconds you can kill MMODemo, we use it only to create the UnityMMODemo room.
3) Run the sample SimpleChat
Press the login button to connect SmartFoxServer
On the top-right you will see the list of existing rooms; it should contain two rooms: "The Lobby" and “UnityMMODemo”
Select with mouse button one room in the list: if room join event is received you should see the message "You joined the room..." in the left panel

Thanks
Attachments
ImageSimpleChat.png
(233.03 KiB) Not downloaded yet
User avatar
hoangdoanh
Posts: 253
Joined: 21 Jun 2013, 04:54
Location: Vietnam

Re: Could not get room join event

Postby hoangdoanh » 23 May 2014, 03:31

Hi MBagnati

I saw that your test result is on desktop ? isn't it ?

Actually we met this problem on C++ Client library on iphone. I think different platforms produces different result.

Could you please investigate this issue on ios ?

Thanks,
Doanh
User avatar
Lapo
Site Admin
Posts: 23027
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Could not get room join event

Postby Lapo » 23 May 2014, 07:52

Hi Doanh,
there is very little chance that code will produce different results on a different platform.
Using different compilers is not going to affect the code flow.

I would like to see the client-side debug transcript of the test you have described in the first post.

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X C++ API”

Who is online

Users browsing this forum: No registered users and 42 guests