MCE Online 设置
MCE Online adds a complete MMORPG layer to the Monster Capture Engine using Nakama as the backend. This guide walks you through setting up the server, configuring the client, and testing connectivity.
在 Online 版本及以上可用。
什么是 Nakama?
Nakama is an open-source game server that provides:
- User authentication (email, device, SSO).
- Real-time multiplayer (WebSockets).
- Server-authoritative game logic (RPCs).
- Matchmaking with ELO-based ratings.
- Leaderboards, achievements, and live events.
- Cloud save and storage.
- Chat, friends, guilds.
MCE Online wraps Nakama with 18 specialized services for the monster capture genre.
前提条件
- MCE Core installed and working.
- Docker Desktop (for local development) or a hosted Nakama instance.
- MCE Online addon imported into your project.
步骤 1:启动 Nakama 服务器
本地开发(Docker)
MCE includes a docker-compose.yml for local Nakama:
# From your project root or the MCE_Online server directory
docker-compose up -d
This starts:
- Nakama server on port 7350 (gRPC) and 7351 (HTTP/console).
- CockroachDB as the database on port 26257.
Access the Nakama admin console at: http://localhost:7351
Default admin credentials:
- Username:
admin - Password:
password
Production
The default Docker configuration is for development only. For production, use a hosted Nakama instance (Heroic Cloud or self-hosted with proper security configuration).