2016-10-04 00:48:47 -06:00
Player vs Player Gaming Network - PRO
2014-01-08 03:20:34 -07:00
=====
2014-09-01 11:18:23 -06:00
![](http://i.imgur.com/LfI3hXo.png)
2014-01-08 03:20:34 -07:00
2016-10-04 00:48:47 -06:00
PvPGN is a free and open source cross-platform server software that supports Battle.net and and Westwood Online game clients. PvPGN-PRO is a fork of the official PvPGN project, whose development stopped in 2011, and aims to provide continued maintenance and additional features for PvPGN.
2014-09-01 11:19:14 -06:00
2016-10-04 00:48:47 -06:00
[![License (GPL version 2) ](https://img.shields.io/badge/license-GNU%20GPL%20version%202-blue.svg?style=flat-square )](http://opensource.org/licenses/GPL-2.0)
![Language (C++) ](https://img.shields.io/badge/powered_by-C++-brightgreen.svg?style=flat-square )
[![Language (Lua) ](https://img.shields.io/badge/powered_by-Lua-red.svg?style=flat-square )](https://lua.org)
[![Github Releases (by Release) ](https://img.shields.io/github/downloads/pvpgn/pvpgn-server/1.99.7.1-PRO/total.svg?maxAge=2592000 )]()
2014-01-08 03:20:34 -07:00
2016-10-04 00:48:47 -06:00
[![Compiler (Microsoft Visual C++) ](https://img.shields.io/badge/compiled_with-Microsoft%20Visual%20C++-yellow.svg?style=flat-square )](https://msdn.microsoft.com/en-us/vstudio/hh386302.aspx)
[![Compiler (LLVM/Clang) ](https://img.shields.io/badge/compiled_with-LLVM/Clang-lightgrey.svg?style=flat-square )](http://clang.llvm.org/)
[![Compiler (GCC) ](https://img.shields.io/badge/compiled_with-GCC-yellowgreen.svg?style=flat-square )](https://gcc.gnu.org/)
2015-03-22 15:49:11 -06:00
2016-10-04 00:48:47 -06:00
[![Build Status ](https://travis-ci.org/pvpgn/pvpgn-server.svg?branch=master )](https://travis-ci.org/pvpgn/pvpgn-server)
[![Build status ](https://ci.appveyor.com/api/projects/status/dqoj9lkvhfwthmn6 )](https://ci.appveyor.com/project/HarpyWar/pvpgn)
2014-05-27 00:31:41 -06:00
2016-10-04 01:08:03 -06:00
[Deleaker ](http://www.deleaker.com/ ) helps us find memory leaks.
2014-09-01 11:19:14 -06:00
2016-10-04 00:48:47 -06:00
## Tracking
By default, tracking is enabled and is only used for the purpose of sending informational data (e.g. server description, homepage, uptime, amount of users) to tracking servers. To disable tracking, set ````track = 0```` in ````conf/bnetd.conf````.
2014-05-27 00:31:41 -06:00
2016-10-04 01:08:03 -06:00
## Support
[Create an issue ](https://github.com/pvpgn/pvpgn-server/issues ) if you have any questions, suggestions, or anything else to say about PvPGN-PRO. Please note that D2GS is not part of the PvPGN project and is therefore unsupported here.
## Development
Submit pull requests to contribute to this project. Utilize C++11 features and adhere to the [C++ Core Guidelines ](https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md ) whenever possible.
2016-10-04 00:48:47 -06:00
## Building
See [docs/ports.md ](https://github.com/pvpgn/pvpgn-server/blob/master/docs/ports.md ) for operating systems and compilers that have been confirmed to work with PvPGN. Any operating system that supports WinAPI or POSIX, and any C++11 compliant compiler should be able to build PvPGN.
2014-04-07 11:29:27 -06:00
#### Windows
2016-12-26 14:27:42 -07:00
Use [Magic Builder ](https://github.com/pvpgn/pvpgn-server-magic-builder ).
2014-04-07 11:29:27 -06:00
2016-12-26 14:27:42 -07:00
Alternatively, use cmake to generate the .sln project and build it from Visual Studio.
```
cmake -g "Visual Studio 14 2015" -H./ -B./build
```
This will generate .sln in `build` directory.
2014-01-09 09:56:48 -07:00
2016-12-26 14:27:42 -07:00
#### Linux in general
Do not blindly run these commands. The main problem with older distributions is installing CMake 3.2.x and GCC 5, so external repositories are used in the examples.
```
2016-10-04 00:48:47 -06:00
apt-get install git install cmake make build-essential zlib1g-dev
apt-get install liblua5.1-0-dev #Lua support
apt-get install mysql-server mysql-client libmysqlclient-dev #MySQL support
cd /home
git clone https://github.com/pvpgn/pvpgn-server.git
cmake -D CMAKE_INSTALL_PREFIX=/usr/local/pvpgn -D WITH_MYSQL=true -D WITH_LUA=true ../
make
make install
2016-12-26 14:27:42 -07:00
```
#### Ubuntu 16.04
```
sudo apt-get -y install build-essential git cmake zlib1g-dev
git clone https://github.com/pvpgn/pvpgn-server.git
cd pvpgn-server & & cmake -G "Unix Makefiles" -H./ -B./build
cd build & & make
```
#### Ubuntu 14.04
```
sudo apt-get -y install build-essential zlib1g-dev git
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get -y update
sudo apt-get -y install gcc-5 g++-5
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5
sudo add-apt-repository -y ppa:george-edison55/cmake-3.x
sudo apt-get update
sudo apt-get -y install cmake
git clone https://github.com/pvpgn/pvpgn-server.git
cd pvpgn-server & & cmake -G "Unix Makefiles" -H./ -B./build
cd build & & make
```
#### Debian 8
```
sudo apt-get -y install build-essential zlib1g-dev clang libc++-dev git
wget https://cmake.org/files/v3.7/cmake-3.7.1-Linux-x86_64.tar.gz
tar xvfz cmake-3.7.1-Linux-x86_64.tar.gz
git clone https://github.com/pvpgn/pvpgn-server.git
cd pvpgn-server & & CC=/usr/bin/clang CXX=/usr/bin/clang++ ../cmake-3.7.1-Linux-x86_64/bin/cmake -G "Unix Makefiles" -H./ -B./build
cd build & & make
```
2017-01-04 11:15:34 -07:00
#### CentOS 7
2016-12-26 14:27:42 -07:00
```
sudo yum -y install yum-utils epel-release git
2016-12-29 18:57:32 -07:00
sudo yum -y install cmake3 centos-release-scl zlib-devel
2017-01-04 11:15:34 -07:00
sudo yum -y install devtoolset-4-gcc*
2016-12-26 14:27:42 -07:00
sudo ln -s /usr/bin/cmake3 /usr/bin/cmake
git clone https://github.com/pvpgn/pvpgn-server.git
cd pvpgn-server
CC=/opt/rh/devtoolset-4/root/usr/bin/gcc CXX=/opt/rh/devtoolset-4/root/usr/bin/g++ cmake -G "Unix Makefiles" -H./ -B./build
cd build & & make
```
#### Fedora 25
```
sudo dnf -y install gcc-c++ gcc make zlib-devel cmake git
git clone https://github.com/pvpgn/pvpgn-server.git
cd pvpgn-server
cmake -G "Unix Makefiles" -H./ -B./build
cd build & & make
```
#### FreeBSD 11
```
sudo pkg install -y git cmake
git clone https://github.com/pvpgn/pvpgn-server.git
cd pvpgn-server
cmake -G "Unix Makefiles" -H./ -B./build
cd build & & make
```
2016-10-04 00:48:47 -06:00
Full instructions: [Русский ](http://harpywar.com/?a=articles&b=2&c=1&d=74 ) | [English ](http://harpywar.com/?a=articles&b=2&c=1&d=74&lang=en )
## License
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.