hi
I m using open space v2 (with smart fox server pro)for my project(mmo game). now i m facing a very strange problem.
suppose i have multiple avatar in a map (there are portals in every map so that a user can visit to other maps) and any avatar click on a portal the avatar moves on the selected map(suppose he select map2) the problem is every avatar in the previous map move to the selected map(map 2).
i lost 2 days without any solution.
thank you
pushpender singh
avatar portal problem
-
- Posts: 10
- Joined: 25 Jul 2011, 07:56
-
- Posts: 10
- Joined: 25 Jul 2011, 07:56
hi bax
once a user click on the portal i load a new map with openSpace.loadMap (room) method then open space load the new map and teleport all the player in the existing room to new room.
now after spending 3 days, i think i know the real problem but don't know how to solve it. The problem is when a user log in to smar fox he never logged out even after i close the swf file.
ex: suppose i log in with user a and then with user b. if i trace room.userlist() the length of the returning array is 2. now i logged out both the users and even close .swf files. now when i log in again with a user and trace the same method it shows me 3 players.if i do it again it shows 4 and 5 and so on. i think the problem is user is not logging out.
i m running this on local server.now if you understand my problem plz help me.
thank you
pushpender singh
once a user click on the portal i load a new map with openSpace.loadMap (room) method then open space load the new map and teleport all the player in the existing room to new room.
now after spending 3 days, i think i know the real problem but don't know how to solve it. The problem is when a user log in to smar fox he never logged out even after i close the swf file.
ex: suppose i log in with user a and then with user b. if i trace room.userlist() the length of the returning array is 2. now i logged out both the users and even close .swf files. now when i log in again with a user and trace the same method it shows me 3 players.if i do it again it shows 4 and 5 and so on. i think the problem is user is not logging out.
i m running this on local server.now if you understand my problem plz help me.
thank you
pushpender singh
Instead of checking the user list size, you should open the AdminTool and check if those users are still listed.
Also, when you load a new map, only the user who loaded it moves to that map, not all the users. In fact maps are linked to Rooms, and a client can request a room change for itself only, not for other clients.
Also, when you load a new map, only the user who loaded it moves to that map, not all the users. In fact maps are linked to Rooms, and a client can request a room change for itself only, not for other clients.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
-
- Posts: 10
- Joined: 25 Jul 2011, 07:56
-
- Posts: 15
- Joined: 14 Sep 2011, 19:44
Return to “OpenSpace v2 discussions and help”
Who is online
Users browsing this forum: No registered users and 57 guests