Debian Codegraph @

README.md

raw symbols SCIP
1 Player vs Player Gaming Network - PRO
2 =====
3 ![](http://i.imgur.com/LfI3hXo.png)
4
5 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.
6
7 [![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)
8 ![Language (C++)](https://img.shields.io/badge/powered_by-C++-brightgreen.svg?style=flat-square)
9 [![Language (Lua)](https://img.shields.io/badge/powered_by-Lua-red.svg?style=flat-square)](https://lua.org)
10 [![Github Releases (by Release)](https://img.shields.io/github/downloads/pvpgn/pvpgn-server/1.99.7.2.1/total.svg?maxAge=2592000)]()
11
12 [![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)
13 [![Compiler (LLVM/Clang)](https://img.shields.io/badge/compiled_with-LLVM/Clang-lightgrey.svg?style=flat-square)](http://clang.llvm.org/)
14 [![Compiler (GCC)](https://img.shields.io/badge/compiled_with-GCC-yellowgreen.svg?style=flat-square)](https://gcc.gnu.org/)
15
16 [![Build Status](https://travis-ci.org/pvpgn/pvpgn-server.svg?branch=master)](https://travis-ci.org/pvpgn/pvpgn-server)
17 [![Build status](https://ci.appveyor.com/api/projects/status/dqoj9lkvhfwthmn6)](https://ci.appveyor.com/project/HarpyWar/pvpgn)
18
19 [Deleaker](http://www.deleaker.com/) helps us find memory leaks.
20
21 ## Tracking
22 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````.
23
24 ## Supported Clients
25 - **WarCraft 2: Battle.net Edition**: 2.02a, 2.02b
26 - **WarCraft 3: Reign of Chaos**\*: 1.13a, 1.13b, 1.14a, 1.14b, 1.15a, 1.16a, 1.17a, 1.18a, 1.19a, 1.19b, 1.20a, 1.20b, 1.20c, 1.20d, 1.20e, 1.21a, 1.21b, 1.22a, 1.23a, 1.24a, 1.24b, 1.24c, 1.24d, 1.24e, 1.25b, 1.26a, 1.27a, 1.27b, 1.28, 1.28.1, 1.28.2, 1.28.4, 1.28.5
27 - **WarCraft 3: The Frozen Throne**\*: 1.13a, 1.13b, 1.14a, 1.14b, 1.15a, 1.16a, 1.17a, 1.18a, 1.19a, 1.19b, 1.20a, 1.20b, 1.20c, 1.20d, 1.20e, 1.21a, 1.21b, 1.22a, 1.23a, 1.24a, 1.24b, 1.24c, 1.24d, 1.24e, 1.25b, 1.26a, 1.27a, 1.27b, 1.28, 1.28.1, 1.28.2, 1.28.4, 1.28.5
28 - **StarCraft**: 1.08, 1.08b, 1.09, 1.09b, 1.10, 1.11, 1.11b, 1.12, 1.12b, 1.13, 1.13b, 1.13c, 1.13d, 1.13e, 1.13f, 1.14, 1.15, 1.15.1, 1.15.2, 1.15.3, 1.16, 1.16.1, 1.17.0, 1.18.0
29 - **StarCraft: Brood War**: 1.08, 1.08b, 1.09, 1.09b, 1.10, 1.11, 1.11b, 1.12, 1.12b, 1.13, 1.13b, 1.13c, 1.13d, 1.13e, 1.13f, 1.14, 1.15, 1.15.1, 1.15.2, 1.15.3, 1.16, 1.16.1, 1.17.0, 1.18.0
30 - **Diablo**: 1.09, 1.09b
31 - **Diablo 2**: 1.10, 1.11, 1.11b, 1.12a, 1.13c, 1.14a, 1.14b, 1.14c, 1.14d
32 - **Diablo 2: Lord of Destruction**: 1.10, 1.11, 1.11b, 1.12a, 1.13c, 1.14a, 1.14b, 1.14c, 1.14d
33 - **Westwood Chat Client**: 4.221
34 - **Command & Conquer**: Win95 1.04a (using Westwood Chat)
35 - **Command & Conquer: Red Alert**: Win95 2.00 (using Westwood Chat), Win95 3.03
36 - **Command & Conquer: Red Alert 2**: 1.006
37 - **Command & Conquer: Tiberian Sun**: 2.03 ST-10
38 - **Command & Conquer: Tiberian Sun Firestorm**: 2.03 ST-10
39 - **Command & Conquer: Yuri's Revenge**: 1.001
40 - **Command & Conquer: Renegade**: 1.037
41 - **Nox**: 1.02b
42 - **Nox Quest**: 1.02b
43 - **Dune 2000**: 1.06
44 - **Emperor: Battle for Dune**: 1.09
45
46 \* WarCraft 3 clients are unable to connect to PvPGN servers without a client-side modification, through tools such as [W3L](https://github.com/w3lh/w3l), to disable server signature verification.
47 \* StarCraft clients beginning with patch 1.18 will not be supported by PvPGN-PRO due to protocol changes. A 1.18.0 versioncheck entry is included for compatibility with bot software.
48
49 ## Support
50 [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.
51 Set `loglevels = fatal,error,warn,info,debug,trace` in `bnetd.conf` before obtaining logs and posting them.
52
53 ## Development
54 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.
55
56 ## Building
57 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. The CMake files have been hardcoded to reject compilers older than Visual Studio 2015 and GCC 5.1.
58
59 #### Windows
60 Use [Magic Builder](https://github.com/pvpgn/pvpgn-magic-builder).
61
62 Alternatively, use cmake to generate the .sln project and build it from Visual Studio.
63 ```
64 cmake -g "Visual Studio 14 2015" -H./ -B./build
65 ```
66 This will generate .sln in `build` directory.
67
68 #### Linux in general
69 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.
70
71 ```
72 apt-get install git install cmake make build-essential zlib1g-dev
73 apt-get install liblua5.1-0-dev #Lua support
74 apt-get install mysql-server mysql-client libmysqlclient-dev #MySQL support
75 cd /home
76 git clone https://github.com/pvpgn/pvpgn-server.git
77 cmake -D CMAKE_INSTALL_PREFIX=/usr/local/pvpgn -D WITH_MYSQL=true -D WITH_LUA=true ../
78 make
79 make install
80 ```
81
82 #### Ubuntu 16.04
83 ```
84 sudo apt-get -y install build-essential git cmake zlib1g-dev
85 git clone https://github.com/pvpgn/pvpgn-server.git
86 cd pvpgn-server && cmake -G "Unix Makefiles" -H./ -B./build
87 cd build && make
88 ```
89
90 #### Ubuntu 14.04
91 ```
92 sudo apt-get -y install build-essential zlib1g-dev git
93 sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
94 sudo apt-get -y update
95 sudo apt-get -y install gcc-5 g++-5
96 sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5
97 sudo add-apt-repository -y ppa:george-edison55/cmake-3.x
98 sudo apt-get update
99 sudo apt-get -y install cmake
100 git clone https://github.com/pvpgn/pvpgn-server.git
101 cd pvpgn-server && cmake -G "Unix Makefiles" -H./ -B./build
102 cd build && make
103 ```
104
105 #### Debian 8
106 ```
107 sudo apt-get -y install build-essential zlib1g-dev clang libc++-dev git
108 wget https://cmake.org/files/v3.7/cmake-3.7.1-Linux-x86_64.tar.gz
109 tar xvfz cmake-3.7.1-Linux-x86_64.tar.gz
110 git clone https://github.com/pvpgn/pvpgn-server.git
111 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
112 cd build && make
113 ```
114
115 #### CentOS 7
116 ```
117 sudo yum -y install epel-release centos-release-scl
118 sudo yum -y install git zlib-devel cmake3 devtoolset-4-gcc*
119 sudo ln -s /usr/bin/cmake3 /usr/bin/cmake
120 git clone https://github.com/pvpgn/pvpgn-server.git
121 cd pvpgn-server
122 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
123 cd build && make
124 ```
125
126 #### Fedora 25
127 ```
128 sudo dnf -y install gcc-c++ gcc make zlib-devel cmake git
129 git clone https://github.com/pvpgn/pvpgn-server.git
130 cd pvpgn-server
131 cmake -G "Unix Makefiles" -H./ -B./build
132 cd build && make
133 ```
134
135 #### FreeBSD 11
136 ```
137 sudo pkg install -y git cmake
138 git clone https://github.com/pvpgn/pvpgn-server.git
139 cd pvpgn-server
140 cmake -G "Unix Makefiles" -H./ -B./build
141 cd build && make
142 ```
143
144 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)
145
146 ## License
147
148 This program is free software; you can redistribute it and/or
149 modify it under the terms of the GNU General Public License
150 as published by the Free Software Foundation; either version 2
151 of the License, or (at your option) any later version.
152
153 This program is distributed in the hope that it will be useful,
154 but WITHOUT ANY WARRANTY; without even the implied warranty of
155 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
156 GNU General Public License for more details.
157
158 You should have received a copy of the GNU General Public License
159 along with this program; if not, write to the Free Software
160 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.