QuickMUD is a modern Python port of the legendary ROM 2.4b6 MUD engine, derived from ROM 2.4b6, Merc 2.1 and DikuMUD. This is a complete rewrite that brings the classic text-based MMORPG experience to modern Python with async networking, JSON world data, and comprehensive testing.
A "Multi-User Dungeon" (MUD) is a text-based MMORPG that runs over telnet. ROM is renowned for its fast-paced combat system and rich player interaction. ROM was also the foundation for Carrion Fields, one of the most acclaimed MUDs ever created.
- ๐ Modern Python Architecture: Fully async/await networking with SQLAlchemy ORM
- ๐ก Multi-User Telnet Server: Handle hundreds of concurrent players
- ๐บ๏ธ JSON World Loading: Easy-to-edit world data with 352+ room resets
- ๐ช Complete Shop System: Buy, sell, and list items with working economy
- โ๏ธ ROM Combat System: Classic ROM combat mechanics and skill system
- ๐ฅ Social Features: Say, tell, shout, and 100+ social interactions
- ๐ ๏ธ Admin Commands: Teleport, spawn, ban management, and OLC building
- ๐ 100% Test Coverage: 200+ tests ensure reliability and stability
pip install quickmudRun a QuickMUD server:
mud runserverThe server will start on localhost:4000. Connect with any telnet client:
telnet localhost 4000git clone https://github.com/Nostoi/rom24-quickmud-python.git
cd rom24-quickmud-python
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -e .[dev]pytest # Run all 200 tests (should complete in ~16 seconds)python -m mud # Start development server- Version: 1.2.0 (Production Ready)
- Test Coverage: 200/200 tests passing (100% success rate)
- Performance: Full test suite completes in ~16 seconds
- Compatibility: Python 3.10+, cross-platform
- Async Networking: Modern async/await telnet server
- SQLAlchemy ORM: Robust database layer with migrations
- JSON World Data: Human-readable area files with full ROM compatibility
- Modular Design: Clean separation of concerns (commands, world, networking)
- Type Safety: Comprehensive type hints throughout codebase
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please read our Contributing Guidelines and feel free to submit pull requests.
Experience the classic MUD gameplay with modern Python reliability! ๐โจ
For a fully reproducible environment, use the pinned requirements files generated with pip-tools:
pip install -r requirements-dev.txtTo update the pinned dependencies:
pip-compile requirements.in
pip-compile requirements-dev.inTools like Poetry provide a similar workflow if you prefer that approach.
Run tests with:
pytestTo release a new version to PyPI:
- Update the version in
pyproject.toml. - Commit and tag:
git commit -am "release: v1.2.3"
git tag v1.2.3
git push origin main --tagsThe GitHub Actions workflow will build and publish the package when the tag is pushed.
Game systems are implemented in Python modules:
mud/netprovides asynchronous telnet and websocket servers.mud/game_loop.pydrives the tick-based update loop.mud/commandscontains the command dispatcher and handlers.mud/combatandmud/skillsimplement combat and abilities.mud/persistence.pyhandles saving characters and world state.
Start the server with:
python -m mud runserverBuild and run the Python server with Docker:
docker build -t quickmud .
docker run -p 5000:5000 quickmudOr use docker-compose to rebuild on changes and mount the repository:
docker-compose upConnect via:
telnet localhost 5000The mud/models package defines dataclasses used by the game engine.
They mirror the JSON schemas in schemas/ and supply enums and registries
for loading and manipulating area, room, object, and character data.
While the ROM 2.4 Python port provides a fully functional MUD with all major subsystems implemented, several areas offer opportunities for enhanced ROM parity and improved gameplay features. These partially implemented or simplified systems can be extended by future developers:
- Defense Stubs: Basic defense calculations are implemented, but advanced ROM defense mechanics (dodge, parry, shield block) use simplified formulas that could be enhanced for full ROM parity
- Special Attacks: Core combat works, but special weapon attacks and combat maneuvers could be expanded
- Damage Types: Basic damage handling exists, but ROM's complex damage type interactions are simplified
- Learning Percentages: Skills can be learned and used, but the ROM skill improvement system with practice-based learning is partially implemented
- Spell Components: Basic spell casting works, but material component requirements and consumption are simplified
- Skill Prerequisites: Some skill dependencies and class restrictions could be more comprehensive
- Weight Limits: Basic encumbrance exists, but ROM's detailed weight penalties on movement and combat are simplified
- Movement Lag: Character movement works, but lag/wait state handling for movement restrictions could be enhanced
- Terrain Effects: Room sector types affect movement, but detailed terrain penalties are basic
- Reset Semantics: Areas reset properly, but complex ROM reset conditions and dependencies are simplified
- Population Limits: Basic mob/object limits work, but advanced population control algorithms could be improved
- Reset Timing: Reset schedules function, but fine-grained timing controls are basic
- Shop Inventory: Basic buying/selling works, but advanced shop inventory management and restocking is simplified
- Economic Balance: Price calculations exist, but ROM's complex economic balancing factors are basic
- Barter System: Simple transactions work, but advanced bartering mechanics could be enhanced
- Ban System: Basic IP banning exists, but comprehensive ban management (subnet, time-based, etc.) is partial
- Account Security: Basic login security works, but advanced password policies and account protection could be enhanced
- Admin Controls: Core admin commands exist, but comprehensive administrative tools are basic
- Save Validation: Character saving works, but comprehensive data validation and corruption detection is basic
- Backup Systems: Basic persistence exists, but automated backup and recovery systems could be enhanced
- Data Migration: Save/load works, but tools for data format migration and upgrades are minimal
- Channel Management: Basic channels work, but advanced channel administration and moderation tools are simplified
- Tell System: Private messaging works, but features like message history and blocking are basic
- Emote System: Basic emotes exist, but custom emote creation and management could be enhanced
- Online Creation: Basic OLC exists, but comprehensive online building tools with validation are partial
- Area Management: Area editing works, but advanced area management and version control is basic
- Builder Security: Basic builder permissions exist, but comprehensive security and audit trails are simplified
- Metrics Collection: Basic logging exists, but comprehensive performance monitoring and metrics are minimal
- Resource Management: Basic resource handling works, but advanced memory and CPU optimization could be enhanced
- Diagnostics: Error handling exists, but comprehensive diagnostic and debugging tools are basic
When enhancing these systems:
- ROM Parity First: Always reference the original ROM 2.4 C sources in
src/for canonical behavior - Test Coverage: Add comprehensive tests in
tests/with golden files derived from ROM behavior - Backward Compatibility: Ensure changes don't break existing save files or area data
- Documentation: Update relevant docs in
doc/and inline code documentation - Performance: Consider the impact on the main game loop and player experience
- Configuration: Make enhancements configurable where possible to support different playstyles
Each enhancement should maintain the MUD's core functionality while adding the specific ROM behaviors that make the game authentic to the original experience.