The keep-alive Time-stamp and KildClient

Most ISPs (we really mean all) will drop stale connections. If you've been connected to the game too long without sending or receiving anything odds are incredibly high that you'll be disconnected. The easiest way around this is to ensure that the game keeps sending you output on a regular basis. Some players choose to use their @Atime to do this, but what if you want to put other code in there without tripping over a keep alive? What if you don't want to bother with setting up any code on the MARE side at all?

Enter the timestamp channel. On a regular basis (once per minute), the current date and time are sent to this channel. If you've joined, you'll receive it too, keeping your connection nice and fresh (and nobody likes a whiffy connection, geeze, just what were you DOING with it?). The output of this channel looks something like this:

[timestamp] Sat May 20 17:23:57 2017

Of course, you don't want your screen filling up with all those time stamps (You don't, do you? Gosh you're weird). This means you need your client to hide them. This is called gagging. No, not like that, like tying a gag over a mouth. In most clients, and in KildClient in particular, this is done with a trigger.

Creating a timestamp trigger in KildClient

First things first, you have to actually join the channel. So send this to the game:

+ch +timestamp
+ch public

and you'll see output that looks something like this:

[timestamp] * QBFreak has joined this channel.
Channel timestamp is now default.
Channel public is now default.

Now we create our trigger!

Click the World menu and choose Edit

timestamp-01.png

In the tree view in the Edit world window, expand Automation and then click Triggers. Then click the New button.

timestamp-02.png

In the Edit trigger window, enter the following information:

Field Value Comments
Name Timestamp You can actually set this to whatever you want
Pattern ^\[timestamp\] .* That's CARET, Backslash, Left brace, "timestamp", Backslash, Right brace, SPACE, DOT, Asterisk
Omit (gag) from output Checked This is what keeps it from displaying on your screen
Omit (gag) from log file Checked Optional but recommended, this will keep it out of your log files as well
Enabled Checked It wont work if it's not enabled

timestamp-03.png

Click OK to close the Edit trigger window. Click OK to close the Edit world window.

All set! If you want to test it, try sending this:

@echo [timestamp] test

You shouldn't see any output back from the game. If you did, something is wrong with your trigger. Check and make sure the Pattern is correct.

-- SolarQBFreak - 20 May 2017
Topic attachments
I Attachment Action Size Date Who Comment
timestamp-01.pngpng timestamp-01.png manage 8 K 20 May 2017 - 23:56 SolarQBFreak Step 1, edit the world
timestamp-02.pngpng timestamp-02.png manage 26 K 20 May 2017 - 23:56 SolarQBFreak Step 2, create a new trigger
timestamp-03.pngpng timestamp-03.png manage 18 K 21 May 2017 - 00:13 SolarQBFreak Step 3, fill in the trigger details
Topic revision: r1 - 21 May 2017, SolarQBFreak
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding WikiMARE? Send feedback