From f8eb250bd1c42324d9b240c74de6a8de70487868 Mon Sep 17 00:00:00 2001 From: Rim Date: Thu, 20 Feb 2025 06:52:46 -0500 Subject: [PATCH] chore: update server configs --- cfg/!start_client.bat | 14 ++----- cfg/!start_horde_server.bat | 23 ----------- cfg/!start_mp_server.bat | 38 +++++++++++------- cfg/!start_zm_horde_server.bat | 30 ++++++++++++++ cfg/!start_zm_server.bat | 39 +++++++++++-------- cfg/s1/{server.cfg => server_mp.cfg} | 2 +- cfg/s1/server_zm.cfg | 2 +- .../{server_horde.cfg => server_zm_horde.cfg} | 4 +- 8 files changed, 83 insertions(+), 69 deletions(-) delete mode 100644 cfg/!start_horde_server.bat create mode 100644 cfg/!start_zm_horde_server.bat rename cfg/s1/{server.cfg => server_mp.cfg} (99%) rename cfg/s1/{server_horde.cfg => server_zm_horde.cfg} (94%) diff --git a/cfg/!start_client.bat b/cfg/!start_client.bat index c5dfe61..b7da577 100644 --- a/cfg/!start_client.bat +++ b/cfg/!start_client.bat @@ -1,14 +1,6 @@ @echo off -:: Either put the batch in the Advanced Warfare install dir, or change the value below to the Advanced Warfare install dir -set AW_INSTALL=%~dp0 +set game_exe=s1-mod.exe -:: Remove this line if automatic updates on start should be disabled -start /W alterware-launcher.exe --update - -:://///////////////////////////////////////////////////////////////////// -:://You're done!! WARNING!!! Don't mess with anything below this line // -:://///////////////////////////////////////////////////////////////////// - -set GAME_EXE=s1-mod.exe -start %GAME_EXE% +cd /D "%~dp0" +start %game_exe% diff --git a/cfg/!start_horde_server.bat b/cfg/!start_horde_server.bat deleted file mode 100644 index 6a6305c..0000000 --- a/cfg/!start_horde_server.bat +++ /dev/null @@ -1,23 +0,0 @@ -@echo off - -set ServerFilename=server_horde.cfg - -::///////////////////////////////////////////////////////////////////////////// -::// What port do you want the server to run on? // -::// You must port forward this port & allow it through your firewall // -::///////////////////////////////////////////////////////////////////////////// -set port=27016 - - -:: Either put the batch in the Advanced Warfare install dir, or change the value below to the Advanced Warfare install dir -set AW_INSTALL=%~dp0 - -:: Remove this line if automatic updates on start should be disabled -start /W alterware-launcher.exe --update - -:://///////////////////////////////////////////////////////////////////// -:://You're done!! WARNING!!! Don't mess with anything below this line // -:://///////////////////////////////////////////////////////////////////// - -set GAME_EXE=s1-mod.exe -start %GAME_EXE% -dedicated +survival 1 +set net_port "%port%" +exec %ServerFilename% +map_rotate diff --git a/cfg/!start_mp_server.bat b/cfg/!start_mp_server.bat index c88975e..4bafc8a 100644 --- a/cfg/!start_mp_server.bat +++ b/cfg/!start_mp_server.bat @@ -1,22 +1,30 @@ @echo off +:://///////////////////////////////////////////////////////////////////// +::// S1-Mod Server Configuration startup file // +:://///////////////////////////////////////////////////////////////////// +::// This config best view with Notepad++ or other non-windows notepad // +:://///////////////////////////////////////////////////////////////////// +::// Your edited server_mp.cfg goes in the "s1/" folder // +::// This is were you edit your hostname, map & gamemodes from // +:://///////////////////////////////////////////////////////////////////// -set ServerFilename=server.cfg - -::///////////////////////////////////////////////////////////////////////////// -::// What port do you want the server to run on? // -::// You must port forward this port & allow it through your firewall // -::///////////////////////////////////////////////////////////////////////////// +set cfg=server_mp.cfg set port=27016 - -:: Either put the batch in the Advanced Warfare install dir, or change the value below to the Advanced Warfare install dir -set AW_INSTALL=%~dp0 - -:: Remove this line if automatic updates on start should be disabled -start /W alterware-launcher.exe --update +set name="S1 MP 1" :://///////////////////////////////////////////////////////////////////// -:://You're done!! WARNING!!! Don't mess with anything below this line // +::// You're done! WARNING! Do not mess with anything below this line // :://///////////////////////////////////////////////////////////////////// -set GAME_EXE=s1-mod.exe -start %GAME_EXE% -dedicated +set net_port "%port%" +exec %ServerFilename% +map_rotate +set game_exe=s1-mod.exe + +title S1 - %name% - Server restarter +echo Server "%name%" will load %cfg% and listen on port %port% UDP! +echo To shut down the server close this window first! +echo (%date%) - (%time%) %name% server start. + +cd /D "%~dp0" +:server +start /wait /abovenormal %game_exe% -dedicated +set net_port "%port%" +exec %cfg% +map_rotate +echo (%date%) - (%time%) WARNING: %name% server closed or dropped... server restarts. +goto server diff --git a/cfg/!start_zm_horde_server.bat b/cfg/!start_zm_horde_server.bat new file mode 100644 index 0000000..7666619 --- /dev/null +++ b/cfg/!start_zm_horde_server.bat @@ -0,0 +1,30 @@ +@echo off +:://///////////////////////////////////////////////////////////////////// +::// S1-Mod Server Configuration startup file // +:://///////////////////////////////////////////////////////////////////// +::// This config best view with Notepad++ or other non-windows notepad // +:://///////////////////////////////////////////////////////////////////// +::// Your edited server_zm_horde.cfg goes in the "s1/" folder // +::// This is were you edit your hostname, map & gamemodes from // +:://///////////////////////////////////////////////////////////////////// + +set cfg=server_zm_horde.cfg +set port=27016 +set name="S1 Horde 1" + +:://///////////////////////////////////////////////////////////////////// +::// You're done! WARNING! Do not mess with anything below this line // +:://///////////////////////////////////////////////////////////////////// + +set game_exe=s1-mod.exe + +title S1 - %name% - Server restarter +echo Server "%name%" will load %cfg% and listen on port %port% UDP! +echo To shut down the server close this window first! +echo (%date%) - (%time%) %name% server start. + +cd /D "%~dp0" +:server +start /wait /abovenormal %game_exe% -dedicated +set survival 1 +set net_port "%port%" +exec %cfg% +map_rotate +echo (%date%) - (%time%) WARNING: %name% server closed or dropped... server restarts. +goto server diff --git a/cfg/!start_zm_server.bat b/cfg/!start_zm_server.bat index 929e4bb..b82333f 100644 --- a/cfg/!start_zm_server.bat +++ b/cfg/!start_zm_server.bat @@ -1,23 +1,30 @@ @echo off +:://///////////////////////////////////////////////////////////////////// +::// S1-Mod Server Configuration startup file // +:://///////////////////////////////////////////////////////////////////// +::// This config best view with Notepad++ or other non-windows notepad // +:://///////////////////////////////////////////////////////////////////// +::// Your edited server_zm.cfg goes in the "s1/" folder // +::// This is were you edit your hostname, map & gamemodes from // +:://///////////////////////////////////////////////////////////////////// -set ServerFilename=server_zm.cfg - -::///////////////////////////////////////////////////////////////////////////// -::// What port do you want the server to run on? // -::// You must port forward this port & allow it through your firewall // -::///////////////////////////////////////////////////////////////////////////// +set cfg=server_zm.cfg set port=27016 - - -:: Either put the batch in the Advanced Warfare install dir, or change the value below to the Advanced Warfare install dir -set AW_INSTALL=%~dp0 - -:: Remove this line if automatic updates on start should be disabled -start /W alterware-launcher.exe --update +set name="S1 ZM 1" :://///////////////////////////////////////////////////////////////////// -:://You're done!! WARNING!!! Don't mess with anything below this line // +::// You're done! WARNING! Do not mess with anything below this line // :://///////////////////////////////////////////////////////////////////// -set GAME_EXE=s1-mod.exe -start %GAME_EXE% -dedicated +zombiesMode 1 +set net_port "%port%" +exec %ServerFilename% +map_rotate +set game_exe=s1-mod.exe + +title S1 - %name% - Server restarter +echo Server "%name%" will load %cfg% and listen on port %port% UDP! +echo To shut down the server close this window first! +echo (%date%) - (%time%) %name% server start. + +cd /D "%~dp0" +:server +start /wait /abovenormal %game_exe% -dedicated +set zombiesMode 1 +set net_port "%port%" +exec %cfg% +map_rotate +echo (%date%) - (%time%) WARNING: %name% server closed or dropped... server restarts. +goto server diff --git a/cfg/s1/server.cfg b/cfg/s1/server_mp.cfg similarity index 99% rename from cfg/s1/server.cfg rename to cfg/s1/server_mp.cfg index 82f16b3..d2abc5d 100644 --- a/cfg/s1/server.cfg +++ b/cfg/s1/server_mp.cfg @@ -20,7 +20,7 @@ // // ////////////////////////////////////////////////// -set sv_hostname "S1 Default Server" // Sets the server hostname. +set sv_hostname "S1 Default MP Server" // Sets the server hostname. set sv_motd "" // Sets a custom motd which is shown on the intel message loadscreen when a player joins. Leave blank for default intel messages. ////////////////////////////////////////////////// diff --git a/cfg/s1/server_zm.cfg b/cfg/s1/server_zm.cfg index 72cd61e..fa4ae38 100644 --- a/cfg/s1/server_zm.cfg +++ b/cfg/s1/server_zm.cfg @@ -20,7 +20,7 @@ // // ////////////////////////////////////////////////// -set sv_hostname "S1 Default Server" // Sets the server hostname. +set sv_hostname "S1 Default ZM Server" // Sets the server hostname. set sv_motd "" // Sets a custom motd which is shown on the intel message loadscreen when a player joins. Leave blank for default intel messages. ////////////////////////////////////////////////// diff --git a/cfg/s1/server_horde.cfg b/cfg/s1/server_zm_horde.cfg similarity index 94% rename from cfg/s1/server_horde.cfg rename to cfg/s1/server_zm_horde.cfg index 4628773..749601d 100644 --- a/cfg/s1/server_horde.cfg +++ b/cfg/s1/server_zm_horde.cfg @@ -20,7 +20,7 @@ // // ////////////////////////////////////////////////// -set sv_hostname "S1 Default Server" // Sets the server hostname. +set sv_hostname "S1 Default Horde Server" // Sets the server hostname. set sv_motd "" // Sets a custom motd which is shown on the intel message loadscreen when a player joins. Leave blank for default intel messages. ////////////////////////////////////////////////// @@ -104,4 +104,4 @@ set scr_horde_promode "0" // // ////////////////////////////////////////////////////////// -set sv_maprotation "gametype horde map mp_lab2 mp_venus mp_detroit mp_refraction mp_levity mp_comeback mp_terrace mp_instinct mp_greenband mp_solar mp_recovery mp_laser2 mp_prison mp_clowntown3 mp_lost mp_torqued mp_urban" +set sv_maprotation "gametype horde map mp_lab2 map mp_venus map mp_detroit map mp_refraction map mp_levity map mp_comeback map mp_terrace map mp_instinct map mp_greenband map mp_solar map mp_recovery map mp_laser2 map mp_prison map mp_clowntown3 map mp_lost map mp_torqued map mp_urban"