From b62734298b40f648009a59254bb507efc5ef1965 Mon Sep 17 00:00:00 2001 From: ineed bots Date: Mon, 2 Jan 2023 15:23:56 -0600 Subject: [PATCH] new server config --- .gitignore | 1 + z_server.bat | 15 +++++++++++---- z_server_wine.sh | 27 +++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 z_server_wine.sh diff --git a/.gitignore b/.gitignore index 061c078..f899794 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ !/.gitattributes !/z_server.bat +!/z_server_wine.sh !/README.md !/out diff --git a/z_server.bat b/z_server.bat index b8ab9d0..402d52e 100644 --- a/z_server.bat +++ b/z_server.bat @@ -6,7 +6,7 @@ set rcon_password= ::Name of the config file the server should use. set cfg=server.cfg ::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) set port=28968 ::What ip to bind too @@ -15,15 +15,22 @@ set ip=0.0.0.0 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% +::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 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 +cd /D %pluto_path% :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. goto Server diff --git a/z_server_wine.sh b/z_server_wine.sh new file mode 100644 index 0000000..67d9396 --- /dev/null +++ b/z_server_wine.sh @@ -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