Error: No access point available in current map

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

Moderators: Lapo, Bax

User avatar
Gloryride
Posts: 17
Joined: 26 Oct 2010, 14:50

Error: No access point available in current map

Postby Gloryride » 23 May 2011, 15:35

Stack Trace:

Code: Select all

com.smartfoxserver.openspace.engine.control::OpenSpaceController/createMyAvatar at /Users/Paolo/gotoAndPlay/SmartFoxServer/OpenSpace/Client/Classes/src/com/smartfoxserver/openspace/engine/control/OpenSpaceController.as:827
com.smartfoxserver.openspace.components.flash:OpenSpace/createMyAvatar
com.filament.fge.openspace::OpenSpaceCtrl/os_onMapRendered at ..\openspace\OpenSpaceCtrl.as:188
com.smartfoxserver.openspace.engine.control::OpenSpaceController/dispatchEvent at /Users/Paolo/gotoAndPlay/gotoAndPlay/SmartFoxServer/OpenSpace/Client/Classes/src/com/smartfoxserver/openspace/engine/control/OpenSpaceController.as:2166
com.smartfoxserver.openspace.engine.control::OpenSpaceController/completeMapRendering at /Users/Paolo/gotoAndPlay/gotoAndPlay/SmartFoxServer/OpenSpace/Client/Classes/src/com/smartfoxserver/openspace/engine/control/OpenSpaceController.as:1938
com.smartfoxserver.openspace.engine.control::OpenSpaceController/onMapRendered at /Users/Paolo/gotoAndPlay/gotoAndPlay/SmartFoxServer/OpenSpace/Client/Classes/src/com/smartfoxserver/openspace/engine/control/OpenSpaceController.as:1283


The code that runs in OpenSpaceCtrl::os_onMapRendered (our code)

Code: Select all

private function os_onMapRendered(e:OpenSpaceEvent):void {
         mOs.removeEventListener(OpenSpaceEvent.MAP_RENDERED, os_onMapRendered);
         mOs.avatarAppDomain = mGlobalAvatarAppDomain;
         var params:AvatarCreationParams = new AvatarCreationParams();
         params.type = mAvatarType;
         params.name = mClient.myUserName;
         mOs.createMyAvatar(params);
         mLoaded = true;
         onLoaded.trigger(this);
      }



Our mmo loads and unloads maps fine.. about 90% of the time. When moving from one map to another in quick succession (back and forth) after about every 10 attempts this error is fired. Could you fine gentlemen look into the code at the lines listed and where the error is fired (I would, but we don't own the source) and let me know if you found anything that could be causing it (or if you know of any other problem we could be causing ourselves with destroying and creating maps)? I can't really offer much else other than.. .createMyAvatar() is ONLY ever called after the map has been rendered (which should be correct).

I can post more of our code if necessary.

As always, thanks guys (bax, lapo). :)
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 25 May 2011, 06:43

Line 827 of the code (supposed you are using the latest version of OpenSpace) throws an InvalidMapCoordinatesException (you can get it using a try-catch).
The reason is that you are trying to create an avatar on a map with no access point in it.
Paolo Bax
The SmartFoxServer Team

Return to “OpenSpace v2 discussions and help”

Who is online

Users browsing this forum: No registered users and 22 guests