Skip to content

Configuration

wizguin edited this page Apr 2, 2021 · 5 revisions

config.json

"world"
First rename config_example.json (in slippers/config/) to config.json, you can add worlds under this section, the format is as follows:

"world":{
  "1":{
    "host": "127.0.0.1",
    "port": 6114,
    "maxUsers": 100
  }
},

For a local hosted server this will work, the key of the world ("1") is just an ID used by Slippers to identify which server to run.

"database"
Update this section to match your database configuration.

login.php

You'll need to change the following lines in php/login.php, so that they match your database configuration:

const HOST = "127.0.0.1";
const USER = "root";
const PASSWORD = "password";
const DATABASE = "slippers";

setup.xml

setup.xml, found on the media server, includes most of the game configuration and should already be set up. If you aren't running the server locally you will need to change the world configuration:

<Worlds>
  <Blizzard>
     <IP>localhost</IP>
     <Port>6114</Port>
     <Zone>w1</Zone>
  </Blizzard>
</Worlds>

The port matches the world set up in config.json, which is what allows it to connect. You can also add more worlds here if you choose to. If you're using the 2007 client, then the worlds are a little more complex to change, and must be set in the chat___.swf file.

Setting game version

You'll need to change the version of the game in slippers/plugins/login/Login.py, depending on what media server you use.

2005

  • Change self.VERSION to "097" (This is the default so if you're using the 2005 media server you won't need to change anything).

2007

  • Change self.VERSION to "130".
  • Download the get plugin from slippers-plugins, and place it into the slippers/plugins folder.

Continue to next section

Table of Contents

Getting Started

Clone this wiki locally