DayZ-Stat-Server/README.md

94 lines
2.6 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-04 22:30:40 +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-04 22:30:40 +01:00
Inspired by Omega namager template.
> *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-02-04 22:36:07 +01:00
## Installation
2021-01-31 13:16:02 +01:00
2021-02-04 22:36:07 +01:00
### Download Archive
git clone https://git.echosystem.fr/Erreur32/DayZ-Stat-Server.git
or
Download last archive https://git.echosystem.fr/Erreur32/DayZ-Stat-Server/archive/0.32.zip
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-04 22:36:07 +01:00
- Omega manager (to check list mod only, but higly suggered !)
2021-02-01 18:41:36 +01:00
2021-02-04 22:36:07 +01:00
## Crontab to fill Database.
2021-02-01 18:41:36 +01:00
2021-02-04 22:30:40 +01:00
- Omega manager (to check list mod only, but higly suggered !)
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.
2021-02-04 22:30:40 +01:00
> Checkout Schema database in SQL/table.sql
2021-02-01 14:45:18 +01:00
2021-02-04 21:04:31 +01:00
- **2 Differents way for your crontab** with Shell or php. Put *statserver_json.sh* in your crontab for mysql insert & creation of json file.
2021-02-04 18:10:15 +01:00
2021-02-04 21:04:31 +01:00
> ## For Shell (SQL insert + json)
2021-02-04 22:30:40 +01:00
> */5 * * * * /usr/sbin/sh /pathto/SQL/statserver_json.sh 2>&1
2021-02-04 18:10:15 +01:00
OR
2021-02-04 21:04:31 +01:00
> ## For php (SQL insert)
2021-02-04 22:30:40 +01:00
> */5 * * * * /usr/local/bin/php -f /your/path/SQL/dayz2json_parser_sql.php 2>&1
2021-01-31 13:16:02 +01:00
2021-02-03 11:26:47 +01:00
2021-02-04 22:14:31 +01:00
Check your time zone here.
https://www.php.net/manual/en/timezones.others.php
2021-02-03 11:26:47 +01:00
### TODO
2021-02-04 22:30:40 +01:00
- make ~~Regex to catch~~ time serv to auto detect it, and it's fucking hard :p)
- Need to finish SQL part for stat USER
- Admin section with usefull info from your log server.
2021-02-03 11:26:47 +01:00
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