Created
April 25, 2018 01:54
-
-
Save TurBoss/3624782dd3d50b035e117f232063a999 to your computer and use it in GitHub Desktop.
D2GS under Wine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I'am using Ubuntu 16.04.3 LTS (64-bit Server) with a user, having sudo permissions. The specifications of the server are: AMD Phenom II X4 965 3.4 GHz (Black Edition), 128 GB SSD, 16 GB DDR3 | |
/* | |
* PvPGN | |
*/ | |
1. Install the needed software | |
sudo apt-get install -y build-essential git cmake zlib1g-dev mysql-server mysql-client libmysqlclient-dev | |
2. Download and install PvPGN | |
cd ~ | |
git clone https://github.com/pvpgn/pvpgn-server.git | |
cd pvpgn-server | |
mkdir build | |
cd build | |
cmake -D CMAKE_INSTALL_PREFIX=~/pvpgn -D WITH_MYSQL=true -D WITH_LUA=true ../ | |
make | |
make install | |
3. Configure the PVPGN | |
nano ~/pvpgn/etc/*.conf | |
After that, you can run bnetd, d2cs and d2dbs from ~/pvpgn/sbin folder. | |
/* | |
* D2GS | |
*/ | |
1. Install the needed software | |
sudo dpkg --add-architecture i386 | |
sudo apt-get update -y | |
sudo apt-get install -y ia32-libs gcc-multilib g++-multilib xserver-xorg-dev:i386 libfreetype6-dev:i386 | |
wget http://dl.winehq.org/wine/source/2.0/wine-2.0.1.tar.xz | |
wget https://gist.githubusercontent.com/HarpyWar/cd3676fa4916ea163c50/raw/50fbbff9a310d98496f458124fac14bda2e16cf0/sock.c | |
tar xf wine-2.0.1.tar.xz | |
mv sock.c wine-2.0.1/server | |
mv wine-2.0.1 wine-source && mkdir wine-dirs && mv wine-source wine-dirs && cd wine-dirs && mkdir wine-build && cd wine-build | |
../wine-source/configure --without-x | |
make -j 10 | |
sudo make install -j 10 | |
2. Download and install D2GS (http://www.pvpgn.pl/d2gs/) and Diablo II (http://cdn.pvpgn.pro/diablo2/) | |
cd ~ | |
mv Diablo II/*.mpq ~/.wine/drive_c/D2GS | |
cd ~/.wine/drive_c/D2GS | |
3. Configure the D2GS | |
nano d2gs.reg | |
wine regedit d2gs.reg | |
After that, you can install the service (using: wine "C:\D2GS\D2GSSVC.exe" -i) and start it (using: wine net start D2GS). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment