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
➜ Suggestions
➜ Script execution while disconnected
Script execution while disconnected
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Vaejor
(120 posts) Bio
|
Date
| Wed 16 Apr 2003 01:59 PM (UTC) |
Message
| I'd like to suggest adding in the ability to execute scripts without being required to connect to a specific server.
This primarily comes from the new chat scripting, which I have an interest of maintaining in it's own 'world' screen. But I have seen some use for it in the past when I wanted to look at some data I had available through scripting that didn't send anything directly to the server.
I'd guess this would require the check for disconnect from just typing something in the input box on the world screen to actually sending data to the server (world.send, etc), but I'm sure it's at least 12 times more difficult. ;)
This should probably incorporate all aliases, aliases calling scripting, and pure scripting calls. Only when there is a direct request to send information to the server should it check for connection status and determine what to do at that point. If the command type is causing just processing, or only echoing data to the local screen, then it shouldn't require the reconnect.
| Top |
|
Posted by
| Shadowfyr
USA (1,791 posts) Bio
|
Date
| Reply #1 on Wed 16 Apr 2003 05:32 PM (UTC) |
Message
| Check out my toy at www.magnumsworld.com/muds - Phantom. It is an echo proxy that lets you connect to 127.0.0.1 port 1066 (default). You can thus use it to test things when not even connected to the internet, or in your case, to 'connect' a world to the echoer and have Mushclient treat it as though it was connected to a real server. ;) | Top |
|
Posted by
| Vaejor
(120 posts) Bio
|
Date
| Reply #2 on Wed 16 Apr 2003 06:20 PM (UTC) |
Message
| That seems to work great for the chatting part of it. Thanks. :)
| Top |
|
Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
Date
| Reply #3 on Wed 16 Apr 2003 10:09 PM (UTC) |
Message
| This behaviour has been tightened up in version 3.37 - see the release notes.
Now, it only checks if you are connected if it actually needs to send to the world. However things like:
* A script instruction in the command window, eg.
/world.note "hello"
or
* An alias that just sets variables, calls a script etc. do not check.
Thus you should be able to script away. I did a lot of testing of the chat plugin without needing to connect. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Vaejor
(120 posts) Bio
|
Date
| Reply #4 on Thu 17 Apr 2003 12:23 AM (UTC) |
Message
| I could have sworn I tested it before I posted (as that was what made me think of the post).
I'll see if I can make it request a connect without me attempting to send data to the server again.
| 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.
16,770 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top