How do I enable the keep-alive option in MUSHclient 4.44?
Help with keep-alive option
Posted by ScrapHeap on Wed 09 Dec 2009 01:10 PM — 7 posts, 44,636 views.
From the release notes page..
Quote:
6. Added new world configuration option "send_keep_alives". This defaults to false.
There is no GUI interface for this, however you can do this to set it:
/SetOption ("send_keep_alives", 1)
This will cause the connection to the MUD to have the "keep_alive" option set, which will hopefully stop you being disconnected for inactivity by some routers.
Once you have set this option once (using SetOption) then just save the world file and it will be remembered for next time. You need to set the option before connecting to the MUD for it to take effect.
The keep-alive is sent every 2 minutes.
See: http://www.gammon.com.au/forum/?id=9848
6. Added new world configuration option "send_keep_alives". This defaults to false.
There is no GUI interface for this, however you can do this to set it:
/SetOption ("send_keep_alives", 1)
This will cause the connection to the MUD to have the "keep_alive" option set, which will hopefully stop you being disconnected for inactivity by some routers.
Once you have set this option once (using SetOption) then just save the world file and it will be remembered for next time. You need to set the option before connecting to the MUD for it to take effect.
The keep-alive is sent every 2 minutes.
See: http://www.gammon.com.au/forum/?id=9848
Yeah, I saw that. I just have no idea where to put it.
You just type it into the input area like you would a MUD command - except it's obviously not going to the MUD. You'll need to set a script prefix in the Game -> Configure -> Scripting dialog, on the upper right. Nick's example uses '/', which is pretty much the bog-standard prefix everyone uses. Any command beginning with the scripting prefix is treated like a script to execute.
Alternatively, you could hit Ctrl+I, type the SetOption() call there (minus the preceeding / ), and hit Run. The immediate window is useful for running short scripts.
Alternatively, you could hit Ctrl+I, type the SetOption() call there (minus the preceeding / ), and hit Run. The immediate window is useful for running short scripts.
Twisol is right. However the slash for typing in commands is off by default in case some MUDs use it for commands. So on a standard MUSHclient installation, do this:
The option should now be set. It only takes effect next time you connect (so if you were connected at this moment nothing will happen yet). Make sure you save the world file.
To confirm that option was set, you can edit the world file with a text editor, like Notepad. Inside it, a little way down, should be the line:
Another way of checking is to:
- Hit Ctrl+I to open the Immediate window
- Paste in:
check (SetOption ("send_keep_alives", 1))
- Click on "Run"
- Click on "Close"
- Save your world file.
The option should now be set. It only takes effect next time you connect (so if you were connected at this moment nothing will happen yet). Make sure you save the world file.
To confirm that option was set, you can edit the world file with a text editor, like Notepad. Inside it, a little way down, should be the line:
send_keep_alives="y"
Another way of checking is to:
- Hit Ctrl+I to open the Immediate window
- Paste in:
print ("keep alives =", GetOption ("send_keep_alives"))
- Click on "Run"
- In your output window you should now see:
keep alives = 1
- Click on "Close"
Error number -2146828275
Type mismatch: 'check'
I've been trying to get this to enable and it isn't working. V4.84
anyone able to help? Can't keep connected more than 3 minutes.
Type mismatch: 'check'
I've been trying to get this to enable and it isn't working. V4.84
anyone able to help? Can't keep connected more than 3 minutes.
.... I figured it out. So sorry, was doing VBscript instead of Lua.
I feel a fool but we'll see if this helps! Thank you!
I feel a fool but we'll see if this helps! Thank you!