![maximum.ammou.t of addons for gmod maximum.ammou.t of addons for gmod](https://i.ytimg.com/vi/gmlfhxLF33o/maxresdefault.jpg)
maxfails => The maximum amount of A2S_INFO response failures before attempting to restart the game server/container.scantime => How often to scan a game server/container in seconds.port => The port to send A2S_INFO requests to.ip => The IP to send A2S_INFO requests to.enable => If true, this server will be scanned.The servers array should contain the following members: servers => An array of servers to check against (read below).token => The bearer token to use when sending HTTP POST requests to the Pterodactyl API.This should be a JSON array including the API URL, token, and an array of servers to check against.
![maximum.ammou.t of addons for gmod maximum.ammou.t of addons for gmod](https://i.ytimg.com/vi/VttVd3RPwVc/maxresdefault.jpg)
The config file's default path is /etc/pterowatch/nf. This only supports game servers that respond to the A2S_INFO query (a Valve Master Server query). There are probably improvements I can make but the program ultimately works and I've tested it!Ī tool programmed in Go to automatically restart 'hung' game servers/containers via a Pterodactyl API (version 0.7). I'd like to mention I'm still fairly new to Golang.
#MAXIMUM.AMMOU.T OF ADDONS FOR GMOD OFFLINE#
This is helpful for servers that are hung meaning they technically didn't crash, but something is taking up so many resources that the server is unplayable or offline (most likely a poorly coded addon with an infinite loop).
![maximum.ammou.t of addons for gmod maximum.ammou.t of addons for gmod](https://i.ytimg.com/vi/6nbOzLmi63I/maxresdefault.jpg)
If the server fails to respond to x amount of A2S_INFO requests, it will attempt to kill the server and start it again via the Pterodactyl API. This Go tool sends A2S_INFO requests to specified servers inside of a config file. I just wanted to share my newest project! I decided to switch up for one day and instead of programming in C, program in Go/GoLang. GMOD Clone Wars RP Game Master Applications