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.
 Entire forum ➜ MUSHclient ➜ General ➜ Help with keep-alive option

Help with keep-alive option

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


Posted by ScrapHeap   (2 posts)  Bio
Date Wed 09 Dec 2009 01:10 PM (UTC)
Message
How do I enable the keep-alive option in MUSHclient 4.44?
Top

Posted by Hanaisse   Canada  (114 posts)  Bio
Date Reply #1 on Wed 09 Dec 2009 01:18 PM (UTC)
Message
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

aka: Hana
Owner in Training of: Fury of the Gods
alm-dev.org:4000
Top

Posted by ScrapHeap   (2 posts)  Bio
Date Reply #2 on Wed 09 Dec 2009 01:27 PM (UTC)
Message
Yeah, I saw that. I just have no idea where to put it.
Top

Posted by Twisol   USA  (2,257 posts)  Bio
Date Reply #3 on Wed 09 Dec 2009 04:34 PM (UTC)
Message
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.

'Soludra' on Achaea

Blog: http://jonathan.com/
GitHub: http://github.com/Twisol
Top

Posted by Nick Gammon   Australia  (23,120 posts)  Bio   Forum Administrator
Date Reply #4 on Wed 09 Dec 2009 08:05 PM (UTC)

Amended on Wed 09 Dec 2009 08:06 PM (UTC) by Nick Gammon

Message
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:


  • 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"



- Nick Gammon

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

Posted by HlaoJOsanagokoro   (2 posts)  Bio
Date Reply #5 on Thu 29 Aug 2013 01:42 AM (UTC)
Message
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.
Top

Posted by HlaoJOsanagokoro   (2 posts)  Bio
Date Reply #6 on Thu 29 Aug 2013 02:10 AM (UTC)
Message
.... 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!
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.


34,159 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.