Script execution while disconnected

Posted by Vaejor on Wed 16 Apr 2003 01:59 PM — 5 posts, 19,325 views.

#0
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.
USA #1
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. ;)
#2
That seems to work great for the chatting part of it. Thanks. :)
Australia Forum Administrator #3
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.
#4
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.