mirror of
https://github.com/ineedbots/iw5_bot_warfare.git
synced 2025-05-16 15:04:50 +00:00
server bat
This commit is contained in:
parent
b3ce689a92
commit
1d5da1614e
31
z_server.bat
31
z_server.bat
@ -1,2 +1,29 @@
|
||||
pushd "%LOCALAPPDATA%\Plutonium"
|
||||
start "" "%LOCALAPPDATA%\Plutonium\bin\plutonium-bootstrapper-win32.exe" iw5mp "%PLUTONIUM_IW5_PATH%" -dedicated -lan +set key "LANKEYXD" +set net_port "27016" +set sv_config "server.cfg"
|
||||
@echo off
|
||||
::Paste the server key from https://platform.plutonium.pw/serverkeys here
|
||||
set key=
|
||||
::RemoteCONtrol password, needed for most management tools like IW4MADMIN and B3. Do not skip if you installing IW4MADMIN.
|
||||
set rcon_password=
|
||||
::Name of the config file the server should use. (default: dedicated.cfg)
|
||||
set cfg=server.cfg
|
||||
::Name of the server shown in the title of the cmd window. This will NOT bet shown ingame.
|
||||
set name=IW5 Bot Warfare
|
||||
::Port used by the server (default: 4976)
|
||||
set port=27020
|
||||
::What ip to bind too
|
||||
set ip=0.0.0.0
|
||||
::Mod name (default "")
|
||||
set mod=""
|
||||
::Only change this when you don't want to keep the bat files in the game folder. MOST WON'T NEED TO EDIT THIS!
|
||||
set gamepath=%cd%
|
||||
|
||||
title PlutoniumIW5 MP - %name% - Server restarter
|
||||
echo Visit plutonium.pw / Join the Discord (a6JM2Tv) for NEWS and Updates!
|
||||
echo Server "%name%" will load "%cfg%" and listen on port "%port%" UDP with IP "%ip%"!
|
||||
echo To shut down the server close this window first!
|
||||
echo (%date%) - (%time%) %name% server start.
|
||||
|
||||
cd /D %LOCALAPPDATA%\Plutonium
|
||||
:server
|
||||
start /wait /abovenormal bin\plutonium-bootstrapper-win32.exe iw5mp "%gamepath%" -dedicated +unattended -sv_config "%cfg%" -key "%key%" -net_ip "%ip%" -net_port "%port%" -rcon_password "%rcon_password%"
|
||||
echo (%date%) - (%time%) WARNING: %name% server closed or dropped... server restarts.
|
||||
goto Server
|
Loading…
x
Reference in New Issue
Block a user