2021-02-01 16:06:56 +01:00
## Hi Survivor ☠ !!
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-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
## 🔥 STILL in Devlopment ... not ready yet
### 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:
- Omega manager (to check mod only)
2021-02-01 14:45:18 +01:00
- mysql database (to store status server for graph)
2021-02-01 14:48:14 +01:00
> Schema database is not ready yet.
2021-02-01 14:45:18 +01:00
2021-02-03 11:14:20 +01:00
- put *statserverjson.sh* in crontab like this for mysql insert & creation of json file. (for shell bash only)
2021-02-01 18:50:33 +01:00
> */5 * * * * /bin/sh /your/path/statserver_json.sh
2021-02-02 23:34:59 +01:00
OR
2021-02-03 11:14:20 +01:00
> */5 * * * * /usr/local/bin/php -f /your/path/dayz2json.php > /your/path/server.json
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:31:32 +01:00
## 🔥 STILL in Devlopment ... not ready to be on 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