Skip to content

Diablo World 1.4 Server Setting Up in Windows

9miao Mobile Game edited this page Aug 22, 2014 · 1 revision

Diablo World 1.4 Server Setting Up in Windows

This article was written by a user of 9miao. For more net friend on 9miao could quickly and conveniently finish the setting up job, he shares his installation process with you!

System environment of this example: Win7 64bit, eclipse environment. (Note: if your system version is Win32, please use corresponding eclipse software version)

All software in this article can be downloaded from the attachment.

Firstly, we install python
Here the author’s installation package is python-2.7.5.amd64. (You can download it from attachment)
The installation is simple, just click “next step” all the way down.
Add C:\Python27 to path:

Install python plugin to eclipse
Unzip PyDev+2.7.1.zip, and copy all two folders into eclipse installation directory, and directly choose ‘cover’ to finish adding without deleting its original files.
Then reboot eclipse.

Now we configure python environment, windows-->preference-->pydev-->Interpreter-Python, and then click ‘New’ button on the right side of screen to choose ‘Browse’, and find C:\Python27\python.exe, select all you found libs, job done.

Mysql installation
Here the author had not upload Mysql installation package since its 191M size, but you can download it from internet, example used version:
mysql-installer-community-5.6.14.0.msi.

Memcached installation
Download memcached_en32or64.zip, unzip to x64 directory in accordance with the 64 bit operation system.
Run cmd as an administrator,
Run memcached.exe -d install -m 500 to finish the installation,
You could check if there is memcached service from windows services list.
You can also see the mysql services that we installed before, and make sure they are started. If they are manual start services, remember start them at every time starting up.


Setuptools installation
This tool is convenient for us to install some other libraries of python
Download setuptools-1.1.6.tar.gz from attachment, and unzip
Open cmd and input python ez_setup.py to finish the installation.
Add C:\Python27\Scripts to path environment variables (same with aforementioned method)

Install third-party library dependence
Run in order in cmd:
easy_install twisted
easy_install python-memcached
easy_install DBUtils
easy_install zope.interface
easy_install affinity
easy_install MySQL-python (it seems that here the system will auto install 32 bit version, the author’s system version is 64 version, after several times failure, he manually installed it)

MySQL-python installation
Download attachment: MySQL-python-1.2.4.win-amd64-py2.7.exe (here is 64 bit version)
Double click to install.

pywin32-218.4 installation
Download attachment: pywin32-218.4.win-amd64-py2.7.exe (here is 64 bit version)
Double click to install.

Download firefly-alpha-v1.2.2
After unzip, open cmd and run python setup.py build and python setup.py install in target directory.

Download Diablo World Server Codes
This example uses Diablo World 1.4 version codes.
Import anheisj.sql to database: open MySQL Workbench, file-->open sql script--> select anheisj.sql file to execute, it’s shown below:

Create PyDev Project
Create a PyDev Project project in eclipse, and input project name and select creating src directory, then we copy files in anhei server 1.4/anheisg/ directory to src directory. Modify database IP, username, password and other related configuration of config.json in eclipse.

Open startmaster.py, and right click Run As-Python Run, all jobs done!!!


The author uploads his eclipse project AnHei.rar in attachment, you can use eclipse to import after download and unzip.

Problems:
If system reports a ‘port is being used’ error, it might cause by your previous start and yet closed operation, you can log off the system and start again. (note: this problem was caused by you incorrectly closed service process, the normal close service method is to use firefly-admin.py stopservice commands in cmd interface, only by doing so can you close all started processes. There are other solutions, see details at http://www.9miao.com/thread-33146-1-1.html)

Clone this wiki locally