-
Notifications
You must be signed in to change notification settings - Fork 18
/
README
109 lines (68 loc) · 2.87 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
Fiveserver
==========
Copyright (C) 2011-2021 juce and reddwarf
License: BSD-style
ABOUT
=====
Fiveserver is a pure-Python implementation of network server for the
following games:
Pro Evolution Soccer 5
Winning Eleven 9
Winning Eleven 9 Liveware Evolution
Pro Evolution Soccer 6
Winning Eleven 2007
Notable features:
* Full support for network play, including 2-vs-2 for PES6
* Persistent accounts and full game statistics, stored in MySQL database
* Administrative web-interface
* REST api to retrieve live stats
INSTALL
=======
The following two-step installation sequence should work as is on any Unix OS,
such as Linux (any flavour), FreeBSD or Mac OSX. If you are using Windows, then
it is recommended that you download a pre-built Windows-specific package from
http://sites.google.com/site/fiveservercom/
1. Python 3 and dependencies
If you are on modern Debian or Ubuntu Linux then this should install everything
you need:
sudo apt-get -y update
sudo apt-get install libmysqlclient-dev python3 python3-venv python3-dev gcc make
Otherwise, you will need to use your OS tools to install:
* Python 3
* libmysqlclient.
* gcc or clang
* make
2. Return to fiveserver source directory and install Python environment and
packages by issuing this command (as yourself, not root):
make install
This will create an isolated Python environment and install all Python packages
needed to run Fiveserver/Sixserver
CONFIGURE MYSQL DATABASES
=========================
The following instructions assume that you can use a command-line mysql client
utility to connect to your MySQL server with a root account.
For Fiveserver (PES5/WE9/WE9LE), you will need to create a database and grant
appropriate permissions. If you use default database name and login/password
(you can change all of those in ./etc/conf/fiveserver.yaml), then it would be this:
create database fiveserver;
create user 'fiveserver'@'%' identified by 'we9le';
grant select, insert, update on sixserver.* to 'fiveserver'@'%';
use fiveserver;
source ./sql/schema.sql
For Sixserver (PES6/WE2007), you will need to create a database and grant
appropriate permissions. If you use default database name and login/password
(you can change all of those in ./etc/conf/sixserver.yaml), then it would be this:
create database sixserver;
create user 'sixserver'@'%' identified by 'proevo';
grant select, insert, update on sixserver.* to 'sixserver'@'%';
use sixserver;
source ./sql/schema6.sql
USAGE
=====
The service.sh script can be used to run both services (fiveserver and sixserver) or
to launch them in the background. Just run the script without any arguments to see
all available options:
./service.sh
Usage ./service.sh {fiveserver|sixserver} {run|start|stop|status}
For example, to start fiveserver service, you would do:
./service.sh fiveserver start