Telnet control codes to keepalive.

Share your scripts and packages with other Mudlet users.
Post Reply
User avatar
Proxy
Posts: 27
Joined: Sun May 08, 2016 4:57 pm

Telnet control codes to keepalive.

Post by Proxy »

I play a MOO that doesn't have GCMP capabilities. Unfortunately I couldn't figure out a way to stop the game from kicking me after a few minutes. I tried using Mushclient combined with a this plugin a player posted on the boards and found that it worked: This is what the plugin looks like

I use Linux and prefer having such a solution on mudlet where I play all my text based games, plus not having to use WIne on my machine. Can anyone help me by telling me how to go about implementing this in mudlet?
Last edited by Proxy on Mon Jun 20, 2016 5:43 am, edited 1 time in total.

User avatar
SlySven
Posts: 1019
Joined: Mon Mar 04, 2013 3:40 pm
Location: Deepest Wiltshire, UK
Discord: SlySven#2703

Re: Telnet control codes to keepalve

Post by SlySven »

That plugin seems to be sending the Telnet NoOPeration sequence every two and a half minutes and I think you can quickly get the same effect by creating a "Timer" with the editor and setting the script area to contain something like:
Code: [show] | [select all] lua
local TN_IAC = 255
local TN_NOP = 241
local telnetSequence = string.char( TN_IAC, TN_NOP )
sendSocket( telnetSequence )
then set the time interval to 2 minutes 30 seconds as the original in that URL used and enable the timer when you are connected...

User avatar
Proxy
Posts: 27
Joined: Sun May 08, 2016 4:57 pm

Re: Telnet control codes to keepalve

Post by Proxy »

Thank you so much, SlySven! I just tested it and it works! :D

User avatar
SlySven
Posts: 1019
Joined: Mon Mar 04, 2013 3:40 pm
Location: Deepest Wiltshire, UK
Discord: SlySven#2703

Re: Telnet control codes to keepalve

Post by SlySven »

Ah ha - so that has incremented my successfully solved problem count today to a grand total of, wait for it, ONE so far. ;)

g3rman
Posts: 5
Joined: Sun Oct 22, 2017 5:47 pm

Re: Telnet control codes to keepalive.

Post by g3rman »

Late to the party, but this was very helpful. Thank you SlySven!

Post Reply