Page 1 of 1
Create a room forever...
Posted: 07 Apr 2006, 23:45
by Portuguese
How can i create a room that stays forever in the server?
Sorry for mi english

Posted: 08 Apr 2006, 01:05
by goodguy20k
Welcome to the forum.
What version of SmartFox are you running and what edition (Lite, Basic, Pro)?
The answer is yes and no. When you let me know what you have, I'll be able to share my knowlege. Otherwise, hold on the line and Lapo will be with you shortly, I'm sure.

Posted: 08 Apr 2006, 05:28
by Lapo
All the rooms specified in the config.xml file will exist forever.
You can define your own by simply adding new ones in the config file and restarting the server.
For more details about all the room properties make sure to read our online documentation >
http://www.smartfoxserver.com/docs/
Im using the PRO one, the 1.4..
Posted: 08 Apr 2006, 14:59
by Portuguese
Im using the PRO one, the 1.4 version, and the 20 users free license, yeah i know that i can create them at the config.xml but I one make that a visitant creates his own Room by the .SWF file and stays for ever in the server also if the user disconnect from the server.
Posted: 08 Apr 2006, 15:07
by Lapo
To do so, you need to create a room from a server side extension, passing a null user/owner.
By doing so the room owner is the Server itself and the room will never be destroyed.
You should check the documentation of the _server.createRoom() method, which allows dynamic room creation
hope it helps

thanks i will try it
Posted: 08 Apr 2006, 17:04
by Portuguese
thanks i will try it but i don't need to add an Extension right?
Posted: 08 Apr 2006, 17:23
by Virusescu
Wrong. You will need to add an extension. That function is form the SFS extension framework.
Don't worry. It's really easy to add one

.
how can i add one?
Posted: 08 Apr 2006, 17:26
by Portuguese
how can i add that extension and how can i make that extension that i need and wich one do i need?
sorry for the questions but i am new here

Posted: 08 Apr 2006, 21:50
by Virusescu
Read chapter 6.1 from the documentation -
http://www.smartfoxserver.com/docs/
and 6.2
is there any example?
Posted: 08 Apr 2006, 22:13
by Portuguese
is there any example of the extension i need? i have read the DOCs and i didn't understand at all, i just want to create a room that when somebody creates a room the room get owned by the Server so it will never destroy..