AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   [REQ] Restart server if VAC is disabled (https://forums.alliedmods.net/showthread.php?t=235150)

pizzahut 02-09-2014 10:39

[REQ] Restart server if VAC is disabled
 
Could someone please write a plugin which does the following:
  • Regularly, e.g. every 10 minutes, check if VAC is enabled and if there are any players on the server.
  • If VAC is disabled and the server is empty, restart it.
The problem is that some servers lose VAC protection after a restart sometimes. The work-around so far is that I check the VAC status in HLSW and restart the ones (rcon exit) which don't have VAC.

The plugin should work with TF2 at least, but I suppose this is a rather generic thing to do so it'll probably work with any game which uses the Source engine.

friagram 02-09-2014 16:36

Re: [REQ] Restart server if VAC is disabled
 
This should not happen, but .i think steamtools can check vac status

TnTSCS 02-09-2014 21:50

Re: [REQ] Restart server if VAC is disabled
 
I've never had a problem with VAC dropping... is this a widespread thing? Could it be your connection to valve is spotty?

friagram 02-10-2014 01:21

Re: [REQ] Restart server if VAC is disabled
 
I think it can happen if you have strange iptable rules, also I think it happens if you start the server while steam is down. Only seen it a few times.

Ade 02-10-2014 03:31

Re: [REQ] Restart server if VAC is disabled
 
that wouldnt help, for me it's too random, both the insecure status appearing, and the fix; restart doesn't actually do it, most of the time it just fixes by itself in time :(

AlfredSpain 02-10-2014 03:53

Re: [REQ] Restart server if VAC is disabled
 
I have also noticed this problem many times, but no problem if VAC or another factor.

pizzahut 02-10-2014 06:07

Re: [REQ] Restart server if VAC is disabled
 
Quote:

Originally Posted by friagram (Post 2098066)
This should not happen, but .i think steamtools can check vac status

Thanks for the hint. :)

Quote:

Originally Posted by TnTSCS (Post 2098127)
I've never had a problem with VAC dropping... is this a widespread thing? Could it be your connection to valve is spotty?

Happens every day, e.g. right now it looks like this:

http://imageshack.com/a/img850/5672/95lq.png

Quote:

Originally Posted by friagram (Post 2098177)
I think it can happen if you have strange iptable rules, also I think it happens if you start the server while steam is down. Only seen it a few times.

Could be, can't check since someone else is maintaining the firewall.

Powerlord 02-10-2014 10:24

Re: [REQ] Restart server if VAC is disabled
 
Are these Linux servers? Are you using -steamport on their startup lines?

pizzahut 02-10-2014 13:22

Re: [REQ] Restart server if VAC is disabled
 
Yes it's Linux. I guess it would help to assign a Steam port for each server?

Start-up line:

screen -dmS port_27015_server_01 ./srcds_run -game tf +ip 94.136.46.32 -port 27015 +tv_port 27020 -autoupdate -steam_dir ~/steamcmd -steamcmd_script ~/steamcmd/update_27015.txt -tickrate 66 +exec server.cfg +map pl_goldrush +log on

Different SourceTV port for each.

Powerlord 02-10-2014 18:04

Re: [REQ] Restart server if VAC is disabled
 
Quote:

Originally Posted by pizzahut (Post 2098407)
Yes it's Linux. I guess it would help to assign a Steam port for each server?

Start-up line:

screen -dmS port_27015_server_01 ./srcds_run -game tf +ip 94.136.46.32 -port 27015 +tv_port 27020 -autoupdate -steam_dir ~/steamcmd -steamcmd_script ~/steamcmd/update_27015.txt -tickrate 66 +exec server.cfg +map pl_goldrush +log on

Different SourceTV port for each.

The TF2 update on Friday broke running multiple servers on the same IP without manually adding -steamport to each.

It's covered in this thread:
https://forums.alliedmods.net/showth...=235045&page=2

Valve's Fletcher Dunn is aware of the problem and said last week that "We should be able to ship a fix for this early next week."


All times are GMT -4. The time now is 06:57.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.