A modern web client for MUME using DecafMUD that is hosted on mume.org.
The target audience is new players who don't want to install desktop applications to test MUME, and other players who can't use their usual setup for some reason (not at home etc). It is not intended to replace a full-featured client + mapper.
It is a Bad Idea to self-host a copy of Play MUME! for general usage because you will encourage players to input their MUME passwords into random websites and expose themselves to phishing attacks.
Please contact the Valar on MUME before doing this. We'll discuss other options.
Great! You'll need a little setup described below. If you get stuck, do not hesitate to contact the Valar on MUME!
The Github contribution workflow requires that you sign up on Github and fork the repository, Play MUME!.
Doing so now will save you time later when you want to send pull requests.
In this document we will use YOU as a placeholder for your Github username.
You could skip this step and use MUME as YOU, but you'll eventually have
to sign up, fork, and then replace your remote URLs (an advanced topic).
Github has a 4 mins tutorial on forking repositories and sending pull requests.
You'll need a clone of the repository. If you're using the command line, cd
to the directory where you store your projects and run:
git clone https://github.com/YOU/play-mume.git play
cd play
Remember to replace YOU with your Github username.
The best part of Play MUME! is written in TypeScript (src/*) and will need to
be compiled to JavaScript (build/*) before your browser can use it.
You can use docker-compose to quickly get a working developer environment up
and running. This will run the TypeScript compiler and expose Play MUME! on
port 4000 running on node.js within a Docker container:
docker-compose up --build
If you do not want to use Docker you will need to set up your developer environment manually. First, install the dependencies:
npm install
Then, to build the project, run:
npm run dev
The map data is an export of a MMapper map into a special web-friendly format that allows the browser to only load the surrounding area instead of the whole 35k+ rooms.
MMapper has a feature to "Export Web Map" that will generate the required
mapdata folder. Alternatively, you can grab the mapdata folder from a
recent release .zip.
The map display works only if served over HTTP(S), as opposed to just opening local files in your browser (or you'd have to disable security checks in your browser).
Setting up a production server is outside of the scope of this document, but for testing purposes you can use:
- https://cesanta.com/ (untested!) for Windows.
python -m SimpleHTTPServerorpython -m http.serveron GNU/Linux from your project's directory (ie.mume/).
After one of these commands starts succesfully, point your browser to http://127.0.0.1:8000/play/.
Just keep the current settings in index.html and you'll use the official MUME WebSocket proxy.
If everything went well, you should see your very own Play MUME! running on 127.0.0.1 in your browser! Check that the map seems to work.
This is where you reap the benefit of the forks above. Write awesome commits (possibly in a feature branch), send a pull request, et voilà!
WebSocket is a modern browser technology that lets Javascript code create data streams (such as Telnet for MUDs) inside HTTP(S).
index.html configures the DecafMUD Javascript code to securely connect to
MUME's official WebSocket URL at https://mume.org/ws-play/ with these
settings:
hostset tomume.orgset_socket.wspathset tows-play/set_socket.wsportset to 443 (*)set_socket.sslset to true (*)