[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Lua
. . -> [Subject]  How do I get subscripts to update on save?

How do I get subscripts to update on save?

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Tesagk   (52 posts)  [Biography] bio
Date Wed 19 Apr 2017 02:36 PM (UTC)
Message
I apologize if this has been asked before, none of the phrases I tried seemed to find a relevant question and subsequent answer.

I am using "dofile" in a main script of sorts in order to manage multiple scripts split into separate files based on what they do. The problem is, when I make a change to one of them and save it, it does not change the main script file and so it does not trigger a refresh and update.

I'm looking for some methods by which I can automate this process. How do I get the scripts to refresh on the update of a subscript?
[Go to top] top

Posted by Fiendish   USA  (2,514 posts)  [Biography] bio   Global Moderator
Date Reply #1 on Wed 19 Apr 2017 04:36 PM (UTC)
Message
You can't. You can make an alias to reload your main script, though.

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

Posted by Tesagk   (52 posts)  [Biography] bio
Date Reply #2 on Wed 19 Apr 2017 04:43 PM (UTC)
Message
Fiendish said:

You can't. You can make an alias to reload your main script, though.


What's the function to do that?
[Go to top] top

Posted by Fiendish   USA  (2,514 posts)  [Biography] bio   Global Moderator
Date Reply #3 on Wed 19 Apr 2017 08:25 PM (UTC)
Message
https://www.mushclient.com/scripts/doc.php?command=ReloadScriptFile

https://github.com/fiendish/aardwolfclientpackage
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


13,440 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]