Avatar is stuck on a tile

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

Moderators: Lapo, Bax

Post Reply
Banjosan
Posts: 9
Joined: 04 Jan 2009, 08:22
Location: Denmark
Contact:

Avatar is stuck on a tile

Post by Banjosan »

Greetings all,

We have a problem with stuck avatars accompanied by this exception being thrown:

Code: Select all

## [Tweener] Error: [object Avatar] raised an error while executing the 'onComplete'handler. 
TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at com.smartfoxserver.openspace.avatar::Animator/getNewTile()
	at com.smartfoxserver.openspace.avatar::Animator/moveToNextTile()
	at com.smartfoxserver.openspace.avatar::Animator/onAvatarAnimationCompleted()
	at Function/http://adobe.com/AS3/2006/builtin::apply()
	at caurina.transitions::Tweener$/updateTweenByIndex()
	at caurina.transitions::Tweener$/updateTweens()
	at caurina.transitions::Tweener$/onEnterFrame()
Avatar's walk cycle keeps looping and it's not possible to move avatar to a new tile

It looks like that what is happening is this:
- The Flash client is "busy". E.g. 4 avatars in one scene moves at the same time
- The avatar to get stuck has a path along tiles that are not walkable
- Due to the "busy" Flash client Openspace does a miscalculation in the walk-sequence which sends the avatar on a de-tour to a tile which is not part of the calculated path and is not walkable
- The above exception is thrown and the avatar is stuck

This case is very easy to replicate. Happens five out of five test scenarios.

Questions:
1. Is it anyway possible to intercept the exception thrown ## [Tweener] Error: [object Avatar] ?
2. Is it possible to access the calculated path for the avatar?
3. Is the miscalculation bug which sends the avatar to a wrong tile fixed in version 2?

With kind regards :D
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Avatar is stuck on a tile

Post by Bax »

Banjosan wrote:Questions:
1. Is it anyway possible to intercept the exception thrown ## [Tweener] Error: [object Avatar] ?
2. Is it possible to access the calculated path for the avatar?
3. Is the miscalculation bug which sends the avatar to a wrong tile fixed in version 2?
1 and 2. Not possible.
3. Actually that is not a path miscalculation, but a wrong behavior when checking on which tile the avatar is currently moving during the animation. Anyway this issue was fixed in OpenSpace 2.0.
Paolo Bax
The SmartFoxServer Team
Banjosan
Posts: 9
Joined: 04 Jan 2009, 08:22
Location: Denmark
Contact:

Re: Avatar is stuck on a tile

Post by Banjosan »

Ok. Thanks for your time Bax.
We'll upgrade to version 2 then.

Cheers :)
3. Actually that is not a path miscalculation, but a wrong behavior when checking on which tile the avatar is currently moving during the animation. Anyway this issue was fixed in OpenSpace 2.0.
Post Reply