mirror of
https://github.com/ineedbots/t4_bot_warfare.git
synced 2025-04-22 16:05:44 +00:00
new server config
This commit is contained in:
parent
8655d5ab5d
commit
b62734298b
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,6 +8,7 @@
|
|||||||
!/.gitattributes
|
!/.gitattributes
|
||||||
|
|
||||||
!/z_server.bat
|
!/z_server.bat
|
||||||
|
!/z_server_wine.sh
|
||||||
!/README.md
|
!/README.md
|
||||||
!/out
|
!/out
|
||||||
|
|
||||||
|
15
z_server.bat
15
z_server.bat
@ -6,7 +6,7 @@ set rcon_password=
|
|||||||
::Name of the config file the server should use.
|
::Name of the config file the server should use.
|
||||||
set cfg=server.cfg
|
set cfg=server.cfg
|
||||||
::Name of the server shown in the title of the cmd window. This will NOT bet shown ingame.
|
::Name of the server shown in the title of the cmd window. This will NOT bet shown ingame.
|
||||||
set name=PT4 Bot Warfare
|
set name=PT4MP Bot Warfare
|
||||||
::Port used by the server (default: 28960)
|
::Port used by the server (default: 28960)
|
||||||
set port=28968
|
set port=28968
|
||||||
::What ip to bind too
|
::What ip to bind too
|
||||||
@ -15,15 +15,22 @@ set ip=0.0.0.0
|
|||||||
set mod=
|
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!
|
::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%
|
set gamepath=%cd%
|
||||||
|
::Your plutonium install path (leave default!)
|
||||||
|
set pluto_path=%LOCALAPPDATA%\Plutonium
|
||||||
|
:: Gamemode; oneof t4sp, t4mp, t5sp, t5mp, iw5mp, t6mp, t6zm
|
||||||
|
set pluto_game_mode=t4mp
|
||||||
|
:: Other things to send to cmd
|
||||||
|
set cmd_extras=""
|
||||||
|
|
||||||
title PlutoniumT4 MP - %name% - Server restarter
|
|
||||||
|
title Plutonium - %name% - Server restarter
|
||||||
echo Visit plutonium.pw / Join the Discord (a6JM2Tv) for NEWS and Updates!
|
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 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 To shut down the server close this window first!
|
||||||
echo (%date%) - (%time%) %name% server start.
|
echo (%date%) - (%time%) %name% server start.
|
||||||
|
|
||||||
cd /D %LOCALAPPDATA%\Plutonium
|
cd /D %pluto_path%
|
||||||
:server
|
:server
|
||||||
start /wait /abovenormal "%name%" "bin\plutonium-bootstrapper-win32.exe" t4mp "%gamepath%" -dedicated -key "%key%" +set net_ip "%ip%" +set net_port "%port%" +set rcon_password "%rcon_password%" +set fs_game "%mod%" +exec "%cfg%" +map_rotate
|
start /wait /abovenormal /b "%name%" "bin\plutonium-bootstrapper-win32.exe" %pluto_game_mode% "%gamepath%" -dedicated -key "%key%" +set net_ip "%ip%" +set net_port "%port%" +set rcon_password "%rcon_password%" +set fs_game "%mod%" +exec "%cfg%" %cmd_extras% +map_rotate
|
||||||
echo (%date%) - (%time%) WARNING: %name% server closed or dropped... server restarts.
|
echo (%date%) - (%time%) WARNING: %name% server closed or dropped... server restarts.
|
||||||
goto Server
|
goto Server
|
||||||
|
27
z_server_wine.sh
Normal file
27
z_server_wine.sh
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
#/bin/bash
|
||||||
|
|
||||||
|
# For anyone that might be asking for steamdeck support for plutonium:
|
||||||
|
|
||||||
|
# Install Lutris's flatpack via Discover
|
||||||
|
# Use this install script https://lutris.net/games/install/30919/view to install the wine prefix with needed dependencies
|
||||||
|
# Open the recently installed Wine's configuration, and set all of the xinput library overrides to builtin, native.
|
||||||
|
# Add Lutris or the recently installed Modern Warfare 3 to Steam as a non steam game
|
||||||
|
# Play in game-mode, steam deck controls should work (hold Steam button and use touch pad to move and click mouse)
|
||||||
|
# For MW3, for calling in killstreaks, one could add a radial menu to the left touch pad to press 4, 5 and 6.
|
||||||
|
|
||||||
|
|
||||||
|
# Beware of installing other apps in the wine prefix (like steam), it could break xinput for some reason
|
||||||
|
|
||||||
|
|
||||||
|
# your WINEPREFIX
|
||||||
|
export WINEPREFIX="/home/deck/Games/call-of-duty-modern-warfare-3-multiplayer/"
|
||||||
|
|
||||||
|
# which wine runner you are using
|
||||||
|
export WINE_LOCATION="/home/deck/.var/app/net.lutris.Lutris/data/lutris/runners/wine/lutris-7.2-2-x86_64/bin/wine"
|
||||||
|
|
||||||
|
# which bat to execute
|
||||||
|
export SERVER_BAT_LOCATION="./z_server.bat"
|
||||||
|
|
||||||
|
|
||||||
|
# exec it
|
||||||
|
$WINE_LOCATION $SERVER_BAT_LOCATION
|
Loading…
x
Reference in New Issue
Block a user