Avatar´s home - Dynamic rooms

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

Moderators: Lapo, Bax

User avatar
frcol
Posts: 99
Joined: 22 Aug 2010, 09:26
Location: Brazil
Contact:

Avatar´s home - Dynamic rooms

Postby frcol » 08 Jan 2013, 04:54

We have 2 kinds of rooms: static and dynamic.
The static ones are created using the config.xml properties, and load the map file related into the roomVar called _os_maid_ .

Code: Select all

<Room name="Caverna" maxUsers="50" isPrivate="false" isTemp="false" uCountUpdate="true">
    <Vars>
        <Var name="_os_mapId" type="s" private="false">1#m4_Caverna</Var>
    </Vars>
 </Room>


How can I create a Room dynamically using "dynamic maps data" instead of map files (like 1#m4_Caverna.map). Can I get the map data from DB and use it to create my room?

How each avatar can edit it´s map?

thanks.
Fabio Colombini
Brazil
User avatar
Bax
Site Admin
Posts: 4612
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Avatar´s home - Dynamic rooms

Postby Bax » 08 Jan 2013, 10:19

Take a look at the JavaDoc of the server-side sendAvatarToMap() method: http://openspace-engine.com/static/serv ... index.html
The method description should help to get started in your task.
Paolo Bax
The SmartFoxServer Team

Return to “OpenSpace v2 discussions and help”

Who is online

Users browsing this forum: No registered users and 16 guests