# XYZGrid contrib ```{versionadded} 1.0 ``` This optional contrib adds a 'coordinate grid' to Evennia. It allows for defining the grid as simple ascii maps that are then spawned into rooms that are aware of their X, Y, Z coordinates. The system includes shortest-path pathfinding, auto-stepping and in-game map visualization (with visibility range). Grid-management is done outside of the game using a new evennia-launcher option. ``` #-#-#-# # | / d #-# | # \ u |\ o---#-----#---+-#-# | ^ |/ | | # v | \ #-#-#-#-#-# #---# |x|x| / #-#-# #- ``` ``` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #---# / @- -~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dungeon Entrance To the east, a narrow opening leads into darkness. Exits: northeast and east ``` ## Installation 1. XYZGrid requires the `scipy` library. Easiest is to just install the optional/contrib requirements in `evennia/requirements_extra.txt` by doing (cd to evennia/ folder) pip install -r requirements_extra.txt (then go back to your mygame/ folder) This will install all optional requirements of Evennia. 2. Import and add the `evennia.contrib.commands.XYZGridCmdSet` to the `CharacterCmdset` cmdset in `mygame/commands.default_cmds.py`. Reload the server. This makes the `map`, `goto/path` and the modified `teleport` and `open` commands available in-game. 3. Edit `mygame/server/conf/settings.py` and add EXTRA_LAUNCHER_COMMANDS['xyzgrid'] = 'evennia.contrib.launchcmd.xyzcommand' and PROTOTYPE_MODULES += [’evennia.contrib.grid.xyzgrid.prototypes’] This will add the new ability to enter `evennia xyzgrid