Fix the watchdog

This commit is contained in:
ineed bots 2022-01-22 21:51:18 -06:00
parent a28db1e2fd
commit 94142d7aa9
5 changed files with 19 additions and 12 deletions

View File

@ -3,7 +3,7 @@
/////////////////////////////////////////////////// ///////////////////////////////////////////////////
//This config best view with Notepad++ OR // //This config best view with Notepad++ OR //
//Other non-windows notepad of your choice. // //Other non-windows notepad of your choice. //
/////////////////////////////////////////////////// ///////////////////////////////////////////////////
////////////////////////////////////////////////// //////////////////////////////////////////////////
// SERVER NAME & COLORS TIPS // // SERVER NAME & COLORS TIPS //
@ -154,7 +154,7 @@ set scr_xpscale "10" // IWs way of Double XP.
// higher weights increase selection chance // // higher weights increase selection chance //
////////////////////////////////////////////////// //////////////////////////////////////////////////
// set scr_airdrop_ac130 "3" // set scr_airdrop_ac130 "3"
set scr_airdrop_ammo "15" set scr_airdrop_ammo "15"
// set scr_airdrop_counter_uav "15" // set scr_airdrop_counter_uav "15"
set scr_airdrop_emp "2" set scr_airdrop_emp "2"
@ -207,7 +207,7 @@ set scr_dm_playerrespawndelay "0" // How long player will wait until respawn
set scr_dm_numlives "0" // Number of lives per player 0 for unlimited. set scr_dm_numlives "0" // Number of lives per player 0 for unlimited.
set scr_dm_roundlimit "1" // Rounds per game. set scr_dm_roundlimit "1" // Rounds per game.
set scr_dm_winlimit "1" // amount of wins needed to win a round-based game set scr_dm_winlimit "1" // amount of wins needed to win a round-based game
set scr_dm_promode "0" set scr_dm_promode "0"
////////////////////////////////////////////////// //////////////////////////////////////////////////
// TEAM DEATHMATCH GAMETYPE SETTINGS // // TEAM DEATHMATCH GAMETYPE SETTINGS //
@ -217,10 +217,10 @@ set scr_war_scorelimit "25600" // Score limit to win the game.
set scr_war_timelimit "10" // Duration in minutes for the game to end if the score limit isnt reached. set scr_war_timelimit "10" // Duration in minutes for the game to end if the score limit isnt reached.
set scr_war_playerrespawndelay "0" // How long player will wait until respawn. set scr_war_playerrespawndelay "0" // How long player will wait until respawn.
set scr_war_waverespawndelay "0" // Duration is seconds before the first respawn in each round. set scr_war_waverespawndelay "0" // Duration is seconds before the first respawn in each round.
set scr_war_numlives "0" // Number of lives per player 0 for unlimited. set scr_war_numlives "0" // Number of lives per player 0 for unlimited.
set scr_war_roundlimit "1" // Rounds per game. set scr_war_roundlimit "1" // Rounds per game.
set scr_war_winlimit "1" // amount of wins needed to win a round-based game set scr_war_winlimit "1" // amount of wins needed to win a round-based game
set scr_war_promode "0" set scr_war_promode "0"
////////////////////////////////////////////////// //////////////////////////////////////////////////
// DOMINATION GAMETYPE SETTINGS // // DOMINATION GAMETYPE SETTINGS //
@ -489,8 +489,8 @@ set iw4x_onelog ""
// CUSTOM // CUSTOM
set bot_pvb_helper_noPlayersOnTeam "allies" set bot_pvb_helper_noPlayersOnTeam "axis"
set bot_pvb_helper_customBotClassTeam "axis" set bot_pvb_helper_customBotClassTeam "allies"
set scr_showHP "1" set scr_showHP "1"
set scr_allowFPSBooster "1" set scr_allowFPSBooster "1"
set bot_sniperCheck "1" set bot_sniperCheck "1"
@ -526,15 +526,15 @@ set bots_manage_fill "9"
set bots_manage_fill_spec "0" set bots_manage_fill_spec "0"
set bots_manage_fill_mode "1" set bots_manage_fill_mode "1"
set bots_manage_fill_kick "1" set bots_manage_fill_kick "1"
set bots_team "custom" set bots_team "axis"
set bots_team_amount "0" set bots_team_amount "0"
set bots_team_force "1" set bots_team_force "1"
set bots_team_mode "1" set bots_team_mode "1"
set bots_skill "8" set bots_skill "8"
set bots_skill_axis_hard "1" set bots_skill_axis_hard "0"
set bots_skill_axis_med "0" set bots_skill_axis_med "4"
set bots_skill_allies_hard "0" set bots_skill_allies_hard "0"
set bots_skill_allies_med "3" set bots_skill_allies_med "4"
set bots_loadout_reasonable "0" set bots_loadout_reasonable "0"
set bots_loadout_allow_op "0" set bots_loadout_allow_op "0"
set bots_loadout_rank "-1" set bots_loadout_rank "-1"
@ -553,7 +553,7 @@ set bots_play_ads "1"
// iw4madmin // iw4madmin
set sv_printradarupdates "1" set sv_printradarupdates "0"
// _killcam // _killcam

View File

@ -30,6 +30,7 @@ watchSniper()
for ( ;; ) for ( ;; )
{ {
wait 15; wait 15;
logPrint("keepalive\n");
numPlayers = 0; numPlayers = 0;
numSnipers = 0; numSnipers = 0;

View File

@ -18,6 +18,7 @@ echo Visit plutonium.pw / Join the Discord (a6JM2Tv) for NEWS and Updates!
echo (%date%) - (%time%) %name% server watchdog start. echo (%date%) - (%time%) %name% server watchdog start.
::https://superuser.com/questions/699769/batch-file-last-modification-time-with-seconds ::https://superuser.com/questions/699769/batch-file-last-modification-time-with-seconds
dir "%log_path%"\"%log_file%" > nul
for /f "delims=" %%i in ('"forfiles /p "%log_path%" /m "%log_file%" /c "cmd /c echo @ftime" "') do set modif_time_temp=%%i for /f "delims=" %%i in ('"forfiles /p "%log_path%" /m "%log_file%" /c "cmd /c echo @ftime" "') do set modif_time_temp=%%i
:Server :Server
@ -25,6 +26,7 @@ for /f "delims=" %%i in ('"forfiles /p "%log_path%" /m "%log_file%" /c "cmd /c e
timeout /t %check_rate% /nobreak > nul timeout /t %check_rate% /nobreak > nul
dir "%log_path%"\"%log_file%" > nul
for /f "delims=" %%i in ('"forfiles /p "%log_path%" /m "%log_file%" /c "cmd /c echo @ftime" "') do set modif_time_temp=%%i for /f "delims=" %%i in ('"forfiles /p "%log_path%" /m "%log_file%" /c "cmd /c echo @ftime" "') do set modif_time_temp=%%i
if "%modif_time_temp%" == "%modif_time%" ( if "%modif_time_temp%" == "%modif_time%" (

View File

@ -18,6 +18,7 @@ echo Visit plutonium.pw / Join the Discord (a6JM2Tv) for NEWS and Updates!
echo (%date%) - (%time%) %name% server watchdog start. echo (%date%) - (%time%) %name% server watchdog start.
::https://superuser.com/questions/699769/batch-file-last-modification-time-with-seconds ::https://superuser.com/questions/699769/batch-file-last-modification-time-with-seconds
dir "%log_path%"\"%log_file%" > nul
for /f "delims=" %%i in ('"forfiles /p "%log_path%" /m "%log_file%" /c "cmd /c echo @ftime" "') do set modif_time_temp=%%i for /f "delims=" %%i in ('"forfiles /p "%log_path%" /m "%log_file%" /c "cmd /c echo @ftime" "') do set modif_time_temp=%%i
:Server :Server
@ -25,6 +26,7 @@ for /f "delims=" %%i in ('"forfiles /p "%log_path%" /m "%log_file%" /c "cmd /c e
timeout /t %check_rate% /nobreak > nul timeout /t %check_rate% /nobreak > nul
dir "%log_path%"\"%log_file%" > nul
for /f "delims=" %%i in ('"forfiles /p "%log_path%" /m "%log_file%" /c "cmd /c echo @ftime" "') do set modif_time_temp=%%i for /f "delims=" %%i in ('"forfiles /p "%log_path%" /m "%log_file%" /c "cmd /c echo @ftime" "') do set modif_time_temp=%%i
if "%modif_time_temp%" == "%modif_time%" ( if "%modif_time_temp%" == "%modif_time%" (

View File

@ -18,6 +18,7 @@ echo Visit plutonium.pw / Join the Discord (a6JM2Tv) for NEWS and Updates!
echo (%date%) - (%time%) %name% server watchdog start. echo (%date%) - (%time%) %name% server watchdog start.
::https://superuser.com/questions/699769/batch-file-last-modification-time-with-seconds ::https://superuser.com/questions/699769/batch-file-last-modification-time-with-seconds
dir "%log_path%"\"%log_file%" > nul
for /f "delims=" %%i in ('"forfiles /p "%log_path%" /m "%log_file%" /c "cmd /c echo @ftime" "') do set modif_time_temp=%%i for /f "delims=" %%i in ('"forfiles /p "%log_path%" /m "%log_file%" /c "cmd /c echo @ftime" "') do set modif_time_temp=%%i
:Server :Server
@ -25,6 +26,7 @@ for /f "delims=" %%i in ('"forfiles /p "%log_path%" /m "%log_file%" /c "cmd /c e
timeout /t %check_rate% /nobreak > nul timeout /t %check_rate% /nobreak > nul
dir "%log_path%"\"%log_file%" > nul
for /f "delims=" %%i in ('"forfiles /p "%log_path%" /m "%log_file%" /c "cmd /c echo @ftime" "') do set modif_time_temp=%%i for /f "delims=" %%i in ('"forfiles /p "%log_path%" /m "%log_file%" /c "cmd /c echo @ftime" "') do set modif_time_temp=%%i
if "%modif_time_temp%" == "%modif_time%" ( if "%modif_time_temp%" == "%modif_time%" (