OpenSpace & NPCs

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

Moderators: Lapo, Bax

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

Post by Bax »

laxersaz wrote:Is there any way for a client to get the calculated path for himself? That would be the easiest way to let map elements follow the player's avatar - which we want to achieve.
No, sorry.
Paolo Bax
The SmartFoxServer Team
ffourcad
Posts: 130
Joined: 25 Feb 2010, 10:26

Post by ffourcad »

Hello,

you wrote in one of the first posts, that the server has to parse the map Xml, but I can't how to achieve this... Where is the XML Map, where you're on the server-side ?
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

ffourcad wrote:Hello,

you wrote in one of the first posts, that the server has to parse the map Xml, but I can't how to achieve this... Where is the XML Map, where you're on the server-side ?
First of all please notice that this post was referred to OpenSpace 1. There's no answer to your question, because there is no out-of-the-box feature. You have to crete your own server side code which loads a map, parses it, etc.
Paolo Bax
The SmartFoxServer Team
ffourcad
Posts: 130
Joined: 25 Feb 2010, 10:26

Post by ffourcad »

okay, but how can we attach a map to a room, if we do it ourselves ? Can we have a doc on parsing a .map file ?
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

ffourcad wrote:okay, but how can we attach a map to a room, if we do it ourselves ? Can we have a doc on parsing a .map file ?
From you other posts, I know you are working with OpenSpace 2, right?
If you are referring to OS 2, then please create a new post with your questions. Otherwise if you are still referring to the topic of this post, and to OS 1, let us know and we will reply here.
Paolo Bax
The SmartFoxServer Team
ffourcad
Posts: 130
Joined: 25 Feb 2010, 10:26

Post by ffourcad »

Sorry, I'll create a new post.
Sanxion
Posts: 17
Joined: 02 Feb 2007, 10:52

Post by Sanxion »

bax wrote:At the same time, the user variables storing the avatar position (see previous post) must be updated with the path's final coordinates, so that new users entering the same room will see the NPC in its final position.
Is/should the final position be set:
1) As soon as walking the path starts?
2) As soon as walking the path ends?
3) Along each step of the path, using e.g. a timer or frame based simulated animation on the server?
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

The first one: as soon as walking the path starts.
Paolo Bax
The SmartFoxServer Team
PeredereevBoris
Posts: 16
Joined: 09 Aug 2010, 13:49

Post by PeredereevBoris »

Hi Paolo. Thank You for server side implementation of avatar appearing.
All works properly but I have a problem avatar appear in the bottom part of screen. How can we set centerViewport = true from server side?
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

This is not possible.
Paolo Bax
The SmartFoxServer Team
Post Reply