Skip to content

Commit

Permalink
Release 1.0.0 latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
Sterbweise committed Dec 12, 2024
1 parent 0a62c86 commit 7263a50
Show file tree
Hide file tree
Showing 3 changed files with 336 additions and 93 deletions.
5 changes: 3 additions & 2 deletions .config/binaries/installGameBinaries.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,14 @@ installGameBinaries () {
checkAndInstallCommand "aria2c" "aria2"
# Clean up any existing pluto_t5_full_game files/directories in /tmp
rm -rf /tmp/pluto_t5_full_game*
aria2c --dir=/tmp --seed-time=0 --console-log-level=error --summary-interval=1 --select-file=$(aria2c -S "$WORKDIR/Resources/sources/pluto_t5_full_game.torrent" | grep -E "main/|zone/|binkw32.dll" | cut -d'|' -f1 | tr '\n' ',' | tr -d ' ') "$WORKDIR/Resources/sources/pluto_t5_full_game.torrent"
aria2c --dir=/tmp --seed-time=0 --console-log-level=error --summary-interval=1 --select-file=$(aria2c -S "$WORKDIR/Resources/sources/pluto_t5_full_game.torrent" | grep -E "main/|zone/|binkw32.dll|localization.txt" | cut -d'|' -f1 | tr '\n' ',' | tr -d ' ') "$WORKDIR/Resources/sources/pluto_t5_full_game.torrent"

# Move downloaded files to Resources
rsync -a "/tmp/pluto_t5_full_game/main" "$WORKDIR/Server/"
rsync -a "/tmp/pluto_t5_full_game/zone" "$WORKDIR/Server/"
rsync -a "/tmp/pluto_t5_full_game/binkw32.dll" "$WORKDIR/Server/binkw32.dll"

rsync -a "/tmp/pluto_t5_full_game/localization.txt" "$WORKDIR/Server/localization.txt"

# Clean up downloaded files
rm -rf /tmp/pluto_t5_full_game

Expand Down
14 changes: 2 additions & 12 deletions Plutonium/T5Server.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,6 @@ readonly MOD=""
# 2. Set CONFIG_FILE to "dedicated_zm.cfg"
# 3. Set GAME_MODE to "t5zm"

# Additional startup options
readonly ADDITIONAL_PARAMS=""
# Example:
# +set sv_network_protocol 1
# +set sv_maxclients 4
# +set sv_anticheat 1
# +set sv_pure 1


# Function to update server files
# This function uses the Plutonium updater to ensure your server is running the latest version
update_server() {
Expand Down Expand Up @@ -97,10 +88,9 @@ start_server() {
nice -n -10 wine ./bin/plutonium-bootstrapper-win32.exe $GAME_MODE $GAME_PATH -dedicated \
+set key $SERVER_KEY \
+set fs_game $MOD \
+sv_config $CONFIG_FILE \
+set net_port $SERVER_PORT \
+exec $CONFIG_FILE \
$ADDITIONAL_PARAMS \
+map_rotate \
+start_map_rotate \
2>/dev/null

# If the server stops, log the event and restart
Expand Down
Loading

0 comments on commit 7263a50

Please sign in to comment.