Update 'README.md'
This commit is contained in:
parent
82e740f20b
commit
62ca7d0d4d
1 changed files with 50 additions and 45 deletions
95
README.md
95
README.md
|
@ -24,8 +24,10 @@ Presents
|
||||||
- Download lastest archive https://git.echosystem.fr/Erreur32/DayZ-Stat-Server/archive/0.32.zip
|
- Download lastest archive https://git.echosystem.fr/Erreur32/DayZ-Stat-Server/archive/0.32.zip
|
||||||
|
|
||||||
|
|
||||||
> ## or Use the lastest version with git
|
#### or Use the lastest version with git
|
||||||
> git clone https://git.echosystem.fr/Erreur32/DayZ-Stat-Server.git
|
|
||||||
|
>
|
||||||
|
git clone https://git.echosystem.fr/Erreur32/DayZ-Stat-Server.git
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -33,12 +35,13 @@ Presents
|
||||||
|
|
||||||
- Set the *config.php* file in *config* directory and fill your `ip` , `port` , `query` and `omega server port mod`.
|
- Set the *config.php* file in *config* directory and fill your `ip` , `port` , `query` and `omega server port mod`.
|
||||||
|
|
||||||
> ### edit config/config.php
|
#### edit config/config.php
|
||||||
>
|
|
||||||
> $ipserv = "6.6.6.6"; // IP server game
|
>
|
||||||
> $portserv = "2302" ; // Game Server Port
|
$ipserv = "6.6.6.6"; // IP server game
|
||||||
> $modport = "2312" ; // Mod port omega (+10)
|
$portserv = "2302" ; // Game Server Port
|
||||||
> $queryport= "27016"; // Queryport
|
$modport = "2312" ; // Mod port omega (+10)
|
||||||
|
$queryport= "27016"; // Queryport
|
||||||
|
|
||||||
- Omega manager (to check list mod only, but higly suggered !)
|
- Omega manager (to check list mod only, but higly suggered !)
|
||||||
|
|
||||||
|
@ -48,42 +51,43 @@ Presents
|
||||||
- mysql database (to store status server for graph)
|
- mysql database (to store status server for graph)
|
||||||
Create `dayzstat` database first + user privilege. Checkout Schema database in SQL/table.sql
|
Create `dayzstat` database first + user privilege. Checkout Schema database in SQL/table.sql
|
||||||
|
|
||||||
> ### edit config/consql.php
|
#### edit config/consql.php
|
||||||
|
|
||||||
> -- Adminer 4.7.8 MySQL dump
|
>
|
||||||
>
|
> -- Adminer 4.7.8 MySQL dump
|
||||||
> SET NAMES utf8;
|
>
|
||||||
> SET foreign_key_checks = 0;
|
> SET NAMES utf8;
|
||||||
> SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
|
> SET foreign_key_checks = 0;
|
||||||
>
|
> SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
|
||||||
> SET NAMES utf8mb4;
|
>
|
||||||
>
|
> SET NAMES utf8mb4;
|
||||||
> CREATE TABLE `StatServer_5` (
|
>
|
||||||
> `id` int(11) NOT NULL AUTO_INCREMENT,
|
> CREATE TABLE `StatServer_5` (
|
||||||
> `date` datetime DEFAULT NULL ON UPDATE current_timestamp(),
|
> `id` int(11) NOT NULL AUTO_INCREMENT,
|
||||||
> `name` varchar(74) NOT NULL DEFAULT 'Offline',
|
> `date` datetime DEFAULT NULL ON UPDATE current_timestamp(),
|
||||||
> `players` varchar(32) NOT NULL DEFAULT '0',
|
> `name` varchar(74) NOT NULL DEFAULT 'Offline',
|
||||||
> `maxplayers` varchar(4) DEFAULT NULL,
|
> `players` varchar(32) NOT NULL DEFAULT '0',
|
||||||
> `map` varchar(19) DEFAULT NULL,
|
> `maxplayers` varchar(4) DEFAULT NULL,
|
||||||
> `game` varchar(4) DEFAULT NULL,
|
> `map` varchar(19) DEFAULT NULL,
|
||||||
> `version` varchar(15) DEFAULT NULL,
|
> `game` varchar(4) DEFAULT NULL,
|
||||||
> `timeserver` varchar(12) DEFAULT NULL,
|
> `version` varchar(15) DEFAULT NULL,
|
||||||
> `timespeed` varchar(5) DEFAULT NULL,
|
> `timeserver` varchar(12) DEFAULT NULL,
|
||||||
> `timespeedn` varchar(5) DEFAULT NULL,
|
> `timespeed` varchar(5) DEFAULT NULL,
|
||||||
> `mod` varchar(5) DEFAULT NULL,
|
> `timespeedn` varchar(5) DEFAULT NULL,
|
||||||
> `battleye` tinytext DEFAULT NULL,
|
> `mod` varchar(5) DEFAULT NULL,
|
||||||
> `hive` varchar(11) DEFAULT NULL,
|
> `battleye` tinytext DEFAULT NULL,
|
||||||
> `connect` varchar(32) DEFAULT NULL,
|
> `hive` varchar(11) DEFAULT NULL,
|
||||||
> `secure` tinytext DEFAULT NULL,
|
> `connect` varchar(32) DEFAULT NULL,
|
||||||
> `ping` varchar(3) DEFAULT '0',
|
> `secure` tinytext DEFAULT NULL,
|
||||||
> PRIMARY KEY (`id`),
|
> `ping` varchar(3) DEFAULT '0',
|
||||||
> KEY `timeserver` (`timeserver`),
|
> PRIMARY KEY (`id`),
|
||||||
> KEY `date` (`date`)
|
> KEY `timeserver` (`timeserver`),
|
||||||
> ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
> KEY `date` (`date`)
|
||||||
>
|
> ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||||
>
|
>
|
||||||
> -- 2021-02-05 10:22:08
|
>
|
||||||
>
|
> -- 2021-02-05 10:22:08
|
||||||
|
|
||||||
|
|
||||||
- **2 Differents way for your crontab** with Shell or php (recommended).
|
- **2 Differents way for your crontab** with Shell or php (recommended).
|
||||||
|
|
||||||
|
@ -117,15 +121,16 @@ ENJOY :)
|
||||||
|
|
||||||
### Library used:
|
### Library used:
|
||||||
|
|
||||||
|
>
|
||||||
> [PHP-Source-Query](https://github.com/xPaw/PHP-Source-Query) - PHP library to query servers that implement Steam query protocol (also known as Source Engine Query protocol)
|
> [PHP-Source-Query](https://github.com/xPaw/PHP-Source-Query) - PHP library to query servers that implement Steam query protocol (also known as Source Engine Query protocol)
|
||||||
>
|
>
|
||||||
> Morris - library for graph
|
> [Morris](https://morrisjs.github.io/morris.js/) - PHP library to generate graph.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### sample:
|
### sample:
|
||||||
|
|
||||||
> [example live page](https://dayz.echosystem.fr/git-DayZ-server-stat/)
|
> [example live page](https://dayz.echosystem.fr/git-DayZ-server-stat/)
|
||||||
|
|
||||||
|
|
||||||
# Author : Erreur32
|
# Author : Erreur32
|
||||||
|
|
Loading…
Reference in a new issue