[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  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] Refresh page


Posted by ScrapHeap   (2 posts)  [Biography] bio
Date Wed 09 Dec 2009 01:10 PM (UTC)
Message
How do I enable the keep-alive option in MUSHclient 4.44?
[Go to top] top

Posted by Hanaisse   Canada  (114 posts)  [Biography] 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
[Go to top] top

Posted by ScrapHeap   (2 posts)  [Biography] 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.
[Go to top] top

Posted by Twisol   USA  (2,257 posts)  [Biography] 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
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] 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
[Go to top] top

Posted by HlaoJOsanagokoro   (2 posts)  [Biography] 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.
[Go to top] top

Posted by HlaoJOsanagokoro   (2 posts)  [Biography] 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!
[Go to top] 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.


31,289 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]