Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ Lua ➜ 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 page


Posted by Tesagk   (52 posts)  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?
Top

Posted by Fiendish   USA  (2,555 posts)  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
Top

Posted by Tesagk   (52 posts)  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?
Top

Posted by Fiendish   USA  (2,555 posts)  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
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.


18,737 views.

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

Go to topic:           Search the forum


[Go to top] top

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