Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Installation guide of lordofpomelo

lwj edited this page Oct 25, 2012 · 26 revisions

Introduction to lordofpomelo

Lordofpomelo is a massively multiplayer online role-playing game for pomelo framework and composed of character, mob, equipment, battle, chat, skill, upgrade and task system etc.

It is completed less than two months and has about 6000 lines codes in server and client side respectively. Base on pomelo framework on server side and colorbox framework on client side, lordofpomelo supports 1000 players concurrent access in one scene and shorten the response time to 200 millisecond.

Runing environment

  • operating system: Linux or Mac os
  • database: mysql

Installation

Download source

git clone https://github.com/NetEase/lordofpomelo.git

Install dependencies

cd lordofpomelo && sh npm-install.sh

Create database

location of sql file: './game-server/config/schema/Pomelo.sql'

  • Install mysql database
  • Login database: mysql -uUsername -pPassword
  • Create database: mysql> create database Pomelo
  • Choose database: mysql> use Pomelo
  • Import sql file: mysql> source ./game-server/config/schema/Pomelo.sql

Modify database configuration

The database configuration locate in './game-server/config/mysql.json' which you can modify the parameters.

    {
      "development": 
      {
         "host": "127.0.0.1",
         "port": "3306",
         "database": "Pomelo",
         "user": "root",
         "password": "123456"
      },
      "production":
      {
         "host" : "127.0.0.1",
         "port" : "3306",
         "database" : "Pomelo",
         "user" : "root",
         "password" : "123456"
      }
    }

Run game

Both game-server and web-server should be started, and game-server can be started by command

pomelo start (Installation guide of lordofpomelo)

while web-server is

cd web-server && node app

Clone this wiki locally