Python / SQLite support in MUSHClient

MUSHClient comes with the ability to script in multiple languages, a lot of my scripts are written in Python and require the presence of a Python interpretor on your computer. This page details the steps needed to get Python working on MUSHClient.

  1. Download and install ActivePython from ActiveState’s website. Please download version 2.7 since version 3 is still under development and doesn’t work with MUSHClient They offer choices between x86 and x64 versions. If you know you’re on a 64-bit platform, go ahead and download the x64 version, otherwise go with the x86 version. You can check which platform you’re on at My Computer > Properties in Windows.
  2. Download and install Python for Windows extensions from SourceForge. Here you should see a number of build numbers, the highest number being the latest release. Open the latest build folder and download the version corresponding to your Python version and platform type.
  3. Download and install Microsoft Visual C++ 2010 Redistributable Package for 32-bit or 64-bit platform, whichever applies to your case.

The default SQLite engine that comes with ActivePython is a tad old and doesn’t support nifty things like FTS4, it doesn’t hurt to update it as well. This involves replacing a dll file in your Python path.

  1. Download the latest distribution from SQLite Download Page. Here you should see a number of download options, scroll down to ‘Precompiled Binaries for Windows’ and download the ZIP archive that contains the DLL for the SQLite library. Unzip the archive in your Python DLL path replacing the old dll file, this is usually C:\\Python27\DLLs for installations with default options.

Restart MUSHClient to let it register Python’s presence on your computer. You don’t need to set your default scripting language to Python for plugins in different languages to work, you can have plugins work in many different languages regardless of your selected language in the world properties.

If you’re stuck or confused at any step do let me know and I’ll see if I can help you out.

Previous topic

Welcome to Ada Young’s documentation!

Next topic

Personal Message Database

This Page