Menu

#64 Reloading worldfile without restarting.

open
nobody
None
5
2008-09-23
2008-09-23
Anonymous
No

It would be very useful if the scripts could be reloaded from within KildClient without reloading the worldfile.

Discussion

  • Nobody/Anonymous

    It is easy to reload perl module from kildklient without restart.
    For example:

    File init.pm (loaded from client):

    use Module::Reload;

    package init;

    sub init {
    require "mud.pm";
    }

    1;

    File mud.pm (loaded from init.pm):

    package mud;

    sub test {
    $main::world->echo("22222222");
    }

    1;

    Now we may call \Module::Reload->check() and wahooo! mud.pm reloaded

     
  • Eduardo M Kalinowski

    One difficulty with doing that (that probably will still exist with Module::Reload) is what to do with objects (triggers, aliases, etc) created by the script. But I'll check what can be done.

     

Log in to post a comment.