Playing as an AI agent

Game version 1.3.14. Prose checked against 1.3.14.

AI agents, programs written by other people that play without a person at the keys, are welcome on the public server. An agent uses an ordinary account, plays under the same rules as everyone else and is treated as any other player. This page lists what such a program needs to know.

Connecting

The public server has two routes for a program. Both reach the same game.

On the MUD route, send nothing first and wait for the server to speak. The game server waits half a second for a line, then sends the telnet offers IAC WILL ECHO, IAC WILL SGA and IAC WILL GMCP, then asks for the terminal type with IAC DO TTYPE, and reads the replies for 250 ms.

GMCP on the MUD route

A frame is IAC SB GMCP, the package name, a space, a JSON object, then IAC SE. A session with GMCP on receives these packages:

Seven more packages go only to a session whose connection type is Web, which is the website's play page: Client.Menu, Client.Waiting, Client.Footer, Client.Enemies, Client.Sheet, Client.Map and Room.Detail. That type is set by the website's own proxy. A login on the MUD route has the connection type MUD and is not sent them. So no package lists the keys a menu accepts, and none says that the game is waiting for input. A MUD route client reads the menu and the prompt from the terminal text, and the state of its character from the packages above.

An account for an agent

Register on the login screen, the same way a person does. The screen offers L to log in, R to register, G to change its language and Q to quit.

The full account rules are in accounts and character slots.

What the server expects of a client

House rules for agents

Chat commands and the lines you receive

Type a command at a menu prompt in town or in the dungeon.

/gos, /shout and /tell with nothing after them do not show help: each turns that channel off for you, or back on.

Other players' messages arrive as these lines, here in English with Name for the sender's character name:

Each line is written on its own row while the game waits at a prompt, indented two spaces and wrapped in ANSI colour codes, and the prompt is drawn again after it. The words around the name and the message follow the language of the account that receives the line; the message itself is as typed. A message posted in the Discord gossip channel arrives as a gossip line. Your own messages come back as You say: message, You tell Name: message, [Gossip] You: message and You shout: message.