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: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 06 Jan 2010, 16:57

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

Postby ffourcad » 26 Mar 2010, 15:22

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: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 27 Mar 2010, 12:19

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

Postby ffourcad » 29 Mar 2010, 07:14

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: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 29 Mar 2010, 08:09

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

Postby ffourcad » 29 Mar 2010, 14:24

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

Postby Sanxion » 09 Apr 2010, 10:40

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: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 12 Apr 2010, 17:19

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

Postby PeredereevBoris » 25 Jan 2011, 11:48

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: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 25 Jan 2011, 12:25

This is not possible.
Paolo Bax
The SmartFoxServer Team

Return to “OpenSpace v1 discussions and help”

Who is online

Users browsing this forum: No registered users and 21 guests