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 ➜ General ➜ Multiple scripts

Multiple scripts

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


Posted by Martijn   (20 posts)  Bio
Date Tue 22 May 2007 08:43 PM (UTC)
Message
I was wondering if it is possible to load scripts from the command line, and if it's possible to load multiple scripts at the same time, as a sort of plugins in different languages, or that they all have to be in one big script file
Top

Posted by Martijn   (20 posts)  Bio
Date Reply #1 on Tue 22 May 2007 09:31 PM (UTC)
Message
well, I food the plugins.. (oops) now how about command line loading?
Top

Posted by Martijn   (20 posts)  Bio
Date Reply #2 on Tue 22 May 2007 09:39 PM (UTC)
Message
Food? Where? Oh, same place I found the plugins.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #3 on Wed 23 May 2007 12:54 AM (UTC)
Message
Quote:

... now how about command line loading?



I'm not totally sure why you want to do command-line loading. Your main script file can contain as much as you want, and depending on the language, can load "include" files.

For example, in Lua, you can "require" or "dofile" to fetch extra files into the script space.

There have been posts before about doing something similar in VBscript. I'm not sure about other languages.

Probably the plugins are the simplest way of controlling large scripts - make a plugin to handle each distinct function, and each one can be in its own language.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Martijn   (20 posts)  Bio
Date Reply #4 on Fri 25 May 2007 11:14 PM (UTC)
Message
the rationale behind it is that I always make heaps of mistakes in coding. I like to be able to load a file, test it, edit it, and reload it without having to go through the gui
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #5 on Fri 25 May 2007 11:29 PM (UTC)
Message
If you are debugging your main script file, Shift+Ctrl+R reloads the script file in a single keystroke.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Martijn   (20 posts)  Bio
Date Reply #6 on Sun 27 May 2007 10:21 PM (UTC)
Message
<3
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.


17,456 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.