Server Running HLDS / Counter Strike 1.6: 184.88.194.160:27015
Respective HLTV Server: 184.88.194.160:27020
Trying to get my cs1.6 superhero bot server up on Twitch 24/7.
Using a service manager, the server can restart itself on crash. The amxmodx superhero package we run is less than stable, and prone to crash occasionally.
Respectively, we need a method to detect when the client connected to the hltv server gets disconnected.
We can use some python to query the server, but it cannot query the hltv server...so there is no way to discern when the client connected to the hltv disconnects; only the hltv server is shown as a connected user on the server - the hltv proxy connection hides the client username.
ref:
https://github.com/serverstf/python-valve
We found a reconnect script, but it's a method for cs:go reliant on console.log messages that aren't present in 1.6...so we're looking for alternate methods of disconnect detection.
ref:
https://github.com/LemuelKL/CSGO-Auto-Reconnect
We might end up throwing in the towel, and just detect map changes, and make the client connect to the server on every map change...but that's not a very dynamic solution.
Another option might be to use a debugger, and catch the disco functions being thrown by the executable. Not super familiar with how to go about doing that tho, would have to learn some things...
__________________