way to cmd reload room ext on the fly?

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Post Reply
kyle
Posts: 33
Joined: 23 Mar 2008, 22:39

way to cmd reload room ext on the fly?

Post by kyle »

Hi Lapo,

Wondering if there is a way to 'load room extension on the fly' from maybe console level batch? From 'remote admin tool' I can just browse to a room, and toggle or reload the extension without restarting the server like ./sfs restart....so is there away i can reload a room extension?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

You can do it only from the Admin Tool
Lapo
--
gotoAndPlay()
...addicted to flash games
kyle
Posts: 33
Joined: 23 Mar 2008, 22:39

Post by kyle »

it is so true...lol...

But is there a way to strip it out to a shell script or sth like that, imagine if had to admin tool to the 200 servers and reload the extension one by one?

ps,
also seems reload on the fly only works for .as extension? .java extension always require sfs restart to make it effective, am i right?
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Post by Lapo »

But is there a way to strip it out to a shell script or sth like that, imagine if had to admin tool to the 200 servers and reload the extension one by one?
Nope there isn't anything like that available, I am sorry.
Btw, if you reload an extension you will loose the current state, which is breaking the current game.

A good approach is to simply deploy the new extension and that's it. New rooms will start using the new code, and those who already exist will keep finishing their life-cycle with the current code.
also seems reload on the fly only works for .as extension? .java extension always require sfs restart to make it effective, am i right?
Nope it works for all supported languages: Java, AS, and Python
Lapo
--
gotoAndPlay()
...addicted to flash games
Post Reply