evennia

Evennia MU* creation system.

Online manual and API docs are found at http://www.evennia.com.

Flat-API shortcut names:

  • evennia.ANSIString

  • evennia.AccountDB

  • evennia.BASE_ACCOUNT_TYPECLASS

  • evennia.BASE_CHANNEL_TYPECLASS

  • evennia.BASE_CHARACTER_TYPECLASS

  • evennia.BASE_EXIT_TYPECLASS

  • evennia.BASE_GUEST_TYPECLASS

  • evennia.BASE_OBJECT_TYPECLASS

  • evennia.BASE_ROOM_TYPECLASS

  • evennia.BASE_SCRIPT_TYPECLASS

  • evennia.CHANNEL_HANDLER

  • evennia.ChannelDB

  • evennia.CmdSet

  • evennia.Command

  • evennia.DefaultAccount

  • evennia.DefaultChannel

  • evennia.DefaultCharacter

  • evennia.DefaultExit

  • evennia.DefaultGuest

  • evennia.DefaultObject

  • evennia.DefaultRoom

  • evennia.DefaultScript

  • evennia.EvEditor

  • evennia.EvForm

  • evennia.EvMenu

  • evennia.EvMore

  • evennia.EvTable

  • evennia.GLOBAL_SCRIPTS

  • evennia.InterruptCommand

  • evennia.MONITOR_HANDLER

  • evennia.Msg

  • evennia.OPTION_CLASSES

  • evennia.ObjectDB

  • evennia.SESSION_HANDLER

  • evennia.ScriptDB

  • evennia.TASK_HANDLER

  • evennia.TICKER_HANDLER

  • evennia.ansi

  • evennia.contrib

  • evennia.create_account

  • evennia.create_channel

  • evennia.create_help_entry

  • evennia.create_message

  • evennia.create_object

  • evennia.create_script

  • evennia.default_cmds

  • evennia.gametime

  • evennia.inputhandler

  • evennia.lockfuncs

  • evennia.logger

  • evennia.managers

  • evennia.search_account

  • evennia.search_channel

  • evennia.search_help

  • evennia.search_message

  • evennia.search_object

  • evennia.search_script

  • evennia.search_tag

  • evennia.set_trace

  • evennia.settings

  • evennia.signals

  • evennia.spawn

  • evennia.syscmdkeys

evennia.set_trace(term_size=140, 80, debugger='auto')[source]

Helper function for running a debugger inside the Evennia event loop.

Parameters
  • term_size (tuple, optional) – Only used for Pudb and defines the size of the terminal (width, height) in number of characters.

  • debugger (str, optional) – One of ‘auto’, ‘pdb’ or ‘pudb’. Pdb is the standard debugger. Pudb is an external package with a different, more ‘graphical’, ncurses-based UI. With ‘auto’, will use pudb if possible, otherwise fall back to pdb. Pudb is available through pip install pudb.

Notes

To use:

  1. add this to a line to act as a breakpoint for entering the debugger:

    from evennia import set_trace; set_trace()

  2. restart evennia in interactive mode

    evennia istart

  3. debugger will appear in the interactive terminal when breakpoint is reached. Exit with ‘q’, remove the break line and restart server when finished.