This guide will help you set up both the server and client for Cataclysm: Looming Darkness.
- Python 3.8 or higher (Download from python.org)
- Windows 10/11 (or Linux/macOS with appropriate modifications to scripts)
Download and install Python from python.org. Make sure to check "Add Python to PATH" during installation.
- Open Command Prompt or PowerShell in the game directory
- Run:
run_server.bat- This will create necessary directories and start the server
- The server will listen on port 6317 by default
- Open a new Command Prompt or PowerShell window
- Run:
run_client.bat- This will install required Python packages and start the client
- The client will connect to localhost:6317 by default
# Create required directories
mkdir accounts world log
# Start the server
python server.py# Install client dependencies
pip install -r client_requirements.txt
# Start the client
python client.pyEdit server.cfg to modify server settings:
listen_address: Server IP address (default: 127.0.0.1)listen_port: Server port (default: 6317)city_size: Size of generated cities (default: 1)time_per_turn: Game turn speed in seconds (default: 1)
The client accepts command-line arguments:
python client.py --host 192.168.1.100 --port 6317- Start the server first
- Start the client
- Press ENTER to login with default credentials
- Create a new character (press C) or select an existing one
- Use arrow keys or numpad to move around
- Movement: Arrow keys or numpad (8=north, 2=south, 4=west, 6=east, etc.)
- Look: L
- Character sheet: C
- Recipes: R
- Help: H
- Quit: ESC
- Move around and explore the generated city
- Look around (L) to see items and terrain
- Bash furniture to get materials
- Craft items using known recipes
- Take items and put them in containers
- Work on blueprints to build structures
To play with friends:
- Configure
server.cfgwith your external IP address - Forward port 6317 in your router/firewall
- Start the server with
run_server.bat - Share your external IP address with friends
- Run:
python client.py --host <friend's-ip> --port 6317 - Create your character and start playing
"Python is not recognized"
- Reinstall Python and check "Add Python to PATH"
- Or use the full path:
C:\Python39\python.exe
"tcod could not be resolved"
- Run:
pip install tcod - If that fails, try:
pip install --upgrade pipthen retry
"Connection refused"
- Make sure the server is running first
- Check that the IP address and port are correct
- Verify firewall settings
Server crashes on startup
- Check that all required files are present in the data/ directory
- Ensure accounts/ and world/ directories exist
Client shows black screen
- Try running with different renderer by modifying client.py
- Update graphics drivers
- Try the default tcod font by not placing any custom fonts
Character creation fails
- Check server console for error messages
- Ensure the data/json/ directory contains profession and recipe files
- Reduce city_size in server.cfg
- Increase time_per_turn for slower gameplay
- Close unnecessary programs
- Check server console for detailed error messages
- Enable additional logging in server code if needed
- Use print statements for debugging client issues
CataclysmLD/
├── server.py # Main server
├── server.cfg # Server configuration
├── client.py # Main tcod client
├── run_server.bat # Windows server launcher
├── run_client.bat # Windows client launcher
├── client_requirements.txt # Python dependencies
├── src/ # Server source code
├── data/ # Game data files
├── accounts/ # Player accounts (created automatically)
├── world/ # World save files (created automatically)
└── log/ # Log files (created automatically)
Once you have the game running:
- Explore the generated city
- Learn the crafting system
- Try multiplayer with friends
- Modify the code to add new features
- Create custom content in the data/ directory
The game is designed to be moddable and extensible. Check the source code for examples of how to add new items, recipes, monsters, and map generation.