RidgeLifter
by TheDevCache
README.md
# RidgeLifter

RidgeLifter is MCP server built to facilitate collaborative terrain development with an AI agent. You build a map as a stack of layers (an island, hills, ridges, rivers, dunes, roads, painted surfaces, imported meshes), look at it in a browser editor in 2D and 3D, check that it flies and drives the way you meant, and export a heightmap (with masks and road lines) for Unreal or Unity. The map is plain data you can edit by hand, or let an AI agent edit through MCP while you watch.
## What you need
- Windows 10 or 11.
- Python 3.11, 3.12 or 3.13 from [python.org](https://www.python.org/downloads/) (tick "Add python.exe to PATH").
- A modern browser (Chrome, Edge or Firefox) for the editor.
- About 8 GB of memory for the example; big maps and close-up views use more.
Node.js is not needed: the editor ships already built.
## Install
1. Download or clone this folder.
2. Double-click `setup.bat`. It makes a private Python environment in `.venv`, installs the packages, writes `mcp_config.json` (for an AI agent, below) and makes your data folder. It prints each step and says what to install if something is missing.
## First launch
Double-click `RidgeLifter.bat`. The engine starts and the editor opens at http://127.0.0.1:8765. Leave the black window open while you work; close it to stop the engine.
Your projects, reference pictures and exports live in **`Documents\RidgeLifter`** (`projects\`, `references\`, `out\`). To keep them somewhere else, put that folder's path on the first line of a file named `data_root.txt` next to `ridgelifter.py`.
## Connecting an AI agent
RidgeLifter is driven by an AI agent: you describe the map, the agent builds it with RidgeLifter's tools, and the editor shows the result live while you look, make small edits, undo and leave notes on the map. It is an MCP server, so any agent that supports MCP (Claude, for one) can use it.
1. Run `setup.bat` (it writes `mcp_config.json` here).
2. Open the agent's settings and add the `ridgelifter` entry from `mcp_config.json` under `mcpServers` (for Claude Desktop that is `claude_desktop_config.json`: Settings > Developer > Edit config). Paste it exactly as written: the file already has the Windows paths escaped.
3. Restart the agent. It starts the engine and editor by itself if they are not running.
4. **Then ask your agent to explain RidgeLifter** (or pick the `explain_ridgelifter` prompt). It reads RidgeLifter's own guides and tells you what it can make, how to start, and what it cannot do, including how to bring the result into Unreal or Unity.
## Where files go
| What | Where |
| --- | --- |
| Projects | `Documents\RidgeLifter\projects\*.rl.json` |
| Pictures and meshes you bring in | `Documents\RidgeLifter\references\` |
| Exports and renders | `Documents\RidgeLifter\out\` |
| Folders an export may also write to (your game project) | `Documents\RidgeLifter\export_dirs.txt`: one full path per line; only you edit it |
| Engine log | `Documents\RidgeLifter\out\v3\engine.log` |
## Controls
| Control | What it does |
| --- | --- |
| Right-drag or middle-drag | pan the map (2D and 3D) |
| Mouse wheel | zoom |
| Left-drag with the Select tool | move a vertex, node or handle; on empty map it draws a selection box (Shift adds to the selection) |
| Left-drag in the 3D view | orbit (Shift + left-drag changes the vertical exaggeration) |
| Arrow keys, `+`, `-` | pan, zoom |
| `F` | fit the whole map in the window |
| Alt + hover | the layer stack at that point: why the ground has this height |
| `Ctrl+Z`, `Ctrl+Shift+Z` | undo, redo |
The `?` button in the top bar shows the same list and the version.
## Tests
`run_tests.bat fast` runs the Python tests (a few minutes). `run_tests.bat full` runs everything, and `run_tests.bat browser` the editor tests (they need Chromium). `golden_check.bat` checks that a code change did not move any height. Tests run on GitHub on every push.
## Licence
The code is licensed under the GNU Affero General Public License v3.0 or later (see `LICENSE`).
**The heightmaps, project files and any other files you create with it are yours.** Use them however you like, including in commercial games. The licence covers the program, not what you make with it.
Third-party components are listed in `THIRD_PARTY_NOTICES.md`. The version history is in `CHANGELOG.md`.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues