Problem using smartFoxClient.getRoomList()

Post here your questions about the OpenSpace 1.x or notify bugs and suggestions.

Moderators: Lapo, Bax

Post Reply
trispo
Posts: 28
Joined: 30 Jul 2008, 09:56

Problem using smartFoxClient.getRoomList()

Post by trispo »

Hello,

I have a question about using the sfsClient.getRoomList() function. Has somebody encountered a problem after using function after openspace is initialized?

After updating the list I get following error if I want to move my character:

Code: Select all

TypeError: Error #1009: Der Zugriff auf eine Eigenschaft oder eine Methode eines null-Objektverweises ist nicht möglich.
	at it.gotoandplay.smartfoxserver::SmartFoxClient/setUserVariables()
	at com.smartfoxserver.openspace::OpenSpace/setMyAvatarUserVariables()
	at com.smartfoxserver.openspace::OpenSpace/onNewAvatarPath()
	at flash.events::EventDispatcher/dispatchEventFunction()
	at flash.events::EventDispatcher/dispatchEvent()
	at com.smartfoxserver.openspace.mvc::IsoEngineModel/startMyAvatarMovement()
	at com.smartfoxserver.openspace.mvc::IsoEngineModel/onPathFound()
	at com.smartfoxserver.openspace.map.pathfind::DefaultPathFinder/search()
	at com.smartfoxserver.openspace.map::PathFinderNodesManager/searchPath()
	at com.smartfoxserver.openspace.mvc::IsoEngineModel/setMovementByTile()
	at com.smartfoxserver.openspace.mvc::MouseController/onMouseClick()
Any suggestions?

Thanks, trispo
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

Can you better explain your application flow, from connection till the error shows up?
Paolo Bax
The SmartFoxServer Team
trispo
Posts: 28
Joined: 30 Jul 2008, 09:56

Post by trispo »

I don't know how to explain. I cnnect to the smartfox server and receive the room list by default. but when i'm trying to call getRoomList I get the error explained above.

trispo
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

Why do you need to get the roomlist again?
Paolo Bax
The SmartFoxServer Team
trispo
Posts: 28
Joined: 30 Jul 2008, 09:56

Post by trispo »

In the mean time I found another solution for my feature so I don't need to call this function again.

Thanks anyway.


trispo
Post Reply