Admin tool, can't refresh rooms in a zone with Reload Zone

Need help with SmartFoxServer? You didn't find an answer in our documentation? Please, post your questions here!

Moderators: Lapo, Bax

Post Reply
Bru
Posts: 8
Joined: 13 Oct 2006, 17:36

Admin tool, can't refresh rooms in a zone with Reload Zone

Post by Bru »

I can't refresh (add, remove or update) the rooms inside a zone when I press the Reload Zone button in the admin tool. It only seems to refresh the zone properties (like maxUsers).

Am I doing something wrong?

Is this feature suppose to work?

I am using Smarfox Server PRO 1.4 on windows.

Thanks!
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

hi Bru,
not all the Zone parameters can be refreshed at runtime. One of them is the room list. If you need to alter the boot-time room list you will need to restart the server.

I can also suggest a better approach for controlling rooms at runtime: create a Zone for your application with no rooms defined and then have your extension create all the necessary rooms in the init() method.

This allows you to better control server owned and dynamic rooms from your extension without the need to restart

hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply