DayZ-Stat-Server/README.md

82 lines
2.3 KiB
Markdown
Raw Normal View History

2021-02-03 11:40:07 +01:00
## Hi Dayz Survivor !!
## 🔥 STILL in Devlopment ... not ready yet
2021-01-31 13:16:02 +01:00
2021-01-31 19:09:32 +01:00
![https://dayz.echosystem.fr](https://git.echosystem.fr/repo-avatars/191)
2021-02-03 11:38:00 +01:00
☠ TEAM DayZ - https://dayz.echosystem.fr ☠
2021-01-31 19:09:32 +01:00
2021-01-31 13:16:02 +01:00
2021-02-01 16:08:40 +01:00
# Simple live Stat for Dayz Standalone server ☠.
2021-02-03 11:26:47 +01:00
Inspired by Omega namager template.
2021-02-01 18:41:36 +01:00
2021-02-03 11:26:47 +01:00
*The [OmegaManager](https://cftools.de/) is a local application to run your DayZ servers. It automatically deploys, runs, watches, restarts and updates your server.*
2021-02-01 18:41:36 +01:00
2021-01-31 13:16:02 +01:00
2021-02-03 11:26:47 +01:00
### Configuration Required
2021-01-31 13:16:02 +01:00
2021-02-01 18:48:19 +01:00
- Set the *config.php* file and fill your `ip` , `port` , `query` and `omega server port mod`.
2021-02-01 18:41:36 +01:00
2021-02-01 18:48:19 +01:00
> $ipserv = "6.6.6.6"; // IP server game
> $portserv = "2302" ; // Game Server Port
> $modport = "2312" ; // Mod port omega (+10)
> $queryport= "27016"; // Queryport
2021-02-01 18:41:36 +01:00
### OPTIONAL:
2021-02-04 18:02:35 +01:00
- Omega manager (to check list mod only)
2021-02-01 18:41:36 +01:00
2021-02-04 18:02:35 +01:00
- mysql database (to store status server for graph)
2021-02-04 18:00:02 +01:00
Create dayzstat database first + user privilege.
> Schema database is in table.sql
2021-02-01 14:45:18 +01:00
2021-02-04 18:10:15 +01:00
- 2 Choice for your crontab, with Shell or php. Put *statserver_json.sh* in your crontab for mysql insert & creation of json file.
> ## For Shell
> */5 * * * * /bin/sh /your/path/statserver_json.sh 2>&1
OR
> ## JSON creation file
> */5 * * * * /usr/local/bin/php -f /your/path/dayz2json.php > /your/path/server.json
> ## for SQL insert
> */5 * * * * /usr/local/bin/php -f /your/path/dayz2json_parser_sql.php 2>&1
2021-01-31 13:16:02 +01:00
2021-02-03 11:26:47 +01:00
### TODO
- make Regex to check time serv ( auto detect )
- Need to finish SQL part for stat USER
- Admin section with usefull info from your log server.
2021-02-01 18:48:19 +01:00
### Library used:
2021-01-31 13:16:02 +01:00
2021-02-01 18:41:36 +01:00
[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)
2021-01-31 13:36:35 +01:00
2021-02-01 18:41:36 +01:00
2021-02-01 18:48:19 +01:00
2021-01-31 13:36:35 +01:00
2021-02-01 18:50:33 +01:00
### sample:
2021-01-31 13:44:49 +01:00
2021-02-03 11:31:32 +01:00
[example live page](https://dayz.echosystem.fr/git-DayZ-server-stat/)
2021-02-01 18:50:33 +01:00
2021-02-02 11:32:14 +01:00
![https://git.echosystem.fr/Erreur32/DayZ-Stat-Server/raw/master/assets/Screenshot_2021-02-01.png](https://git.echosystem.fr/Erreur32/DayZ-Stat-Server/raw/master/assets/Screenshot_2021-02-01.png)
2021-01-31 13:43:54 +01:00
2021-01-31 13:16:02 +01:00
2021-02-03 11:40:07 +01:00
## 🔥 STILL in Devlopment ... not ready for production.
2021-01-31 13:16:02 +01:00
2021-01-31 13:43:54 +01:00
2021-01-31 13:16:02 +01:00
-----
Website: [dayz.echosystem.fr](https://dayz.echosystem.fr)
2021-02-01 16:06:56 +01:00
Author : Erreur32