Skip to Content
ConfigurationProtocol Reference

Protocol Reference

MudForge receives game data via GMCP or MSDP protocols. This reference explains what data is used and how to configure it for your MUD.


What is GMCP/MSDP?

These protocols let your MUD send structured data to the client:

  • GMCP - Generic MUD Communication Protocol (JSON-based)
  • MSDP - MUD Server Data Protocol (simpler key-value format)

Most modern MUDs support at least one of these.


Status Bar Data

The status bar needs these fields:

Health/Mana/Movement

DataGMCP FieldMSDP Variables
Current HPChar.Vitals.hpHEALTH, HP
Max HPChar.Vitals.maxhpHEALTH_MAX, HP_MAX
Current ManaChar.Vitals.manaMANA, MN
Max ManaChar.Vitals.maxmanaMANA_MAX, MN_MAX
Current MoveChar.Vitals.movementMOVEMENT, MV
Max MoveChar.Vitals.maxmoveMOVEMENT_MAX, MV_MAX

Character Info

DataGMCP FieldMSDP Variable
NameChar.Base.nameCHARACTER_NAME
LevelChar.Base.levelLEVEL
ClassChar.Base.classCLASS
RaceChar.Base.raceRACE

Map Data

The mapper needs room information:

DataGMCP FieldMSDP Variable
Room IDRoom.Info.numROOM_VNUM
Room NameRoom.Info.nameROOM_NAME
ZoneRoom.Info.zoneROOM_ZONE
TerrainRoom.Info.terrainROOM_TERRAIN
ExitsRoom.Info.exitsROOM_EXITS

Group Data

The group widget needs:

DataGMCP Package
Party MembersGroup.Members
EnemiesGroup.Enemies

Enabling Protocols

On Your MUD

Many MUDs require you to enable GMCP in your account settings:

  1. Log into your MUD
  2. Look for settings or configuration commands
  3. Enable GMCP or “Client Communication”

In MudForge

Protocols are enabled by default. Check Settings → Debug for:

  • MXP settings
  • MCCP (compression) settings

Debugging

If widgets aren’t receiving data:

  1. Check protocol support: Not all MUDs support GMCP/MSDP
  2. Enable in your account: Some MUDs require opt-in
  3. View raw data: Type gmcpdebug or msdpdebug in the terminal
  4. Configure field mappings: Map Widget has protocol configuration

Configuring Field Mappings

If your MUD uses different field names, you can configure the mapper:

  1. Open Map Widget settings
  2. Go to Protocol Configuration
  3. Choose GMCP or MSDP
  4. Edit the field mappings to match your MUD

Common Variations

StandardSome MUDs Use
numvnum, id
zonearea, region
terrainenvironment, sector
x, y, zcoord.x, coord.y, coord.z

Protocol Echo Color

When debug mode is on, protocol messages appear in yellow (xterm color 220).

You can change this in Settings → Debug → Protocol Echo Color.

Last updated on