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
Could not get room join event
Moderators: Lapo, Bax, MBagnati
- hoangdoanh
- Posts: 253
- Joined: 21 Jun 2013, 04:54
- Location: Vietnam
- hoangdoanh
- Posts: 253
- Joined: 21 Jun 2013, 04:54
- Location: Vietnam
Re: Could not get room join event
Hi all
Could you please help us to understand this issue .
Thanks & best regards,
Doanh
Could you please help us to understand this issue .
Thanks & best regards,
Doanh
Re: Could not get room join event
Hi Doanh,
I am investigating the issue.
I will notify you as soon as possible
Best regards
Massimo
I am investigating the issue.
I will notify you as soon as possible
Best regards
Massimo
- hoangdoanh
- Posts: 253
- Joined: 21 Jun 2013, 04:54
- Location: Vietnam
Re: Could not get room join event
Thank you for response
I am waiting
Cheers,
Doanh
I am waiting
Cheers,
Doanh
- hoangdoanh
- Posts: 253
- Joined: 21 Jun 2013, 04:54
- Location: Vietnam
Re: Could not get room join event
Hi MBagnati
Is there something updated on this issue ?
Thanks,
Doanh
Is there something updated on this issue ?
Thanks,
Doanh
Re: Could not get room join event
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
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
- hoangdoanh
- Posts: 253
- Joined: 21 Jun 2013, 04:54
- Location: Vietnam
Re: Could not get room join event
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
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
Re: Could not get room join event
I am sorry but your post is not clear enough.
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
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
- hoangdoanh
- Posts: 253
- Joined: 21 Jun 2013, 04:54
- Location: Vietnam
Re: Could not get room join event
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
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
Re: Could not get room join event
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
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
- hoangdoanh
- Posts: 253
- Joined: 21 Jun 2013, 04:54
- Location: Vietnam
Re: Could not get room join event
Thanks Lapo
Cheers
Doanh
Cheers
Doanh
- hoangdoanh
- Posts: 253
- Joined: 21 Jun 2013, 04:54
- Location: Vietnam
Re: Could not get room join event
Hi Lapo
I have feeling is that this issue is not small, isn't it ?
Cheers,
Doanh
I have feeling is that this issue is not small, isn't it ?
Cheers,
Doanh
Re: Could not get room join event
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
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
- hoangdoanh
- Posts: 253
- Joined: 21 Jun 2013, 04:54
- Location: Vietnam
Re: Could not get room join event
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
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
Re: Could not get room join event
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
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
Who is online
Users browsing this forum: No registered users and 42 guests