This commit is contained in:
2023-11-20 00:25:25 -06:00
parent 60b6fe9bff
commit 67d33f4967
5 changed files with 0 additions and 0 deletions

View File

@@ -1,136 +0,0 @@
# ==================================================================
# Inactive
# ==================================================================
############ Legacy Gun Play
############ https://steamcommunity.com/sharedfiles/filedetails/?id=2560589980
###########2560589980^legacygunplay
############### advanced weapon scopes
################ https://steamcommunity.com/sharedfiles/filedetails/?id=2143128974
###############2143128974^advancedweaponscopes
############ tactical flava
############# https://steamcommunity.com/sharedfiles/filedetails/?id=2646817942
###########2646817942^tacticalflava
############## sGunplay
############## https://steamcommunity.com/sharedfiles/filedetails/?id=2507204412
#############2507204412^sgunplay
################## enough stamina
################## https://steamcommunity.com/sharedfiles/filedetails/?id=2337398072
#################2337398072^enoughstamina
# ==================================================================
# Generic / All Servers
# ==================================================================
# Dabs Framework
# https://steamcommunity.com/sharedfiles/filedetails/?id=2545327648
2545327648^dabsframework
# CF
# https://steamcommunity.com/sharedfiles/filedetails/?id=1559212036
1559212036^cf
# VPP Admin Tools
# https://steamcommunity.com/sharedfiles/filedetails/?id=1828439124
1828439124^vppadmintools
# Notes
# https://steamcommunity.com/sharedfiles/filedetails/?id=1999076953
1999076953^notes
# Ear Plugs
# https://steamcommunity.com/workshop/filedetails/?id=1819514788
1819514788^earplugs
# health regen 2x when blood is full
# https://steamcommunity.com/sharedfiles/filedetails/?id=2434838000&searchtext=health
2434838000^healthregen
# tent backpacks
# https://steamcommunity.com/sharedfiles/filedetails/?id=2884638645
2884638645^tentbackpacks
# durable suppressors (1.5x health)
# https://steamcommunity.com/sharedfiles/filedetails/?id=2880585815
2880585815^durablesuppressors
# Zen's Cause of Death
# https://steamcommunity.com/sharedfiles/filedetails/?id=2810260908
2810260908^causeofdeath
# Bear Buff (bears aggro from further away, chase players)
# https://steamcommunity.com/sharedfiles/filedetails/?id=2692521272
2692521272^bearbuff
# Custom Animations
# https://steamcommunity.com/sharedfiles/filedetails/?id=2545980712
2545980712^customanimations
# Worn Repair
# https://steamcommunity.com/sharedfiles/filedetails/?id=2581770969
2581770969^wornrepair
# No DepthOfField
# https://steamcommunity.com/sharedfiles/filedetails/?id=1721317955
1721317955^nodof
# Zen's Fire Fuel
# https://steamcommunity.com/sharedfiles/filedetails/?id=2866862200
2866862200^firefuel
# Zen's Gun Move Sounds
# https://steamcommunity.com/sharedfiles/filedetails/?id=2832627966
2832627966^gunmovesounds
# Bad Food
# https://steamcommunity.com/sharedfiles/filedetails/?id=2155069271
2155069271^badfood
# ==================================================================
# sUDE
# ==================================================================
# sFramework
# https://steamcommunity.com/sharedfiles/filedetails/?id=2614334381
2614334381^sframework
# sVisual
# https://steamcommunity.com/sharedfiles/filedetails/?id=2469448088
2469448088^svisual
# ==================================================================
# Chernarus Specific
# ==================================================================
# spurgles bagz
# https://steamcommunity.com/sharedfiles/filedetails/?id=2489196158
2489196158^spurglesbagz
# fliptransport
# https://steamcommunity.com/sharedfiles/filedetails/?id=1832448183
1832448183^fliptransport
# no weapon raise
# https://steamcommunity.com/sharedfiles/filedetails/?id=2098390861
2098390861^noweaponraise
# no vehicle damage
# https://steamcommunity.com/sharedfiles/filedetails/?id=1735947752
1735947752^novehicledamage
# Doc's Car Fixes
# https://steamcommunity.com/sharedfiles/filedetails/?id=2886222035
2886222035^docscarfixes
# Lag's Lighting Overhaul
# https://steamcommunity.com/sharedfiles/filedetails/?id=2873016243
2873016243^ladslightingoverhaul
# Uncuepa's Civilian Clothing
# https://steamcommunity.com/sharedfiles/filedetails/?id=1762444175
1762444175^uncuepascivilianclothing

View File

@@ -1,125 +0,0 @@
#!/bin/sh
DAYZ_GAME_ID=221100
DAYZ_SERVER_ID=223350
LOCAL_MODS_DIR="${HOME}/.steam/debian-installation/steamapps/workshop/content/$DAYZ_GAME_ID"
STEAM_USER="yzaddayz"
REMOTE_MAPS="/mnt/dayz/stock/maps"
alias do_sync='rsync -rvltDhu --delete --partial --progress'
msg() {
printf '[*] %s\n' "$*"
}
# ====================================================================================
update_server() {
msg "------------------ UPDATING DAYZ SERVER -------------------"
LOCAL_INSTALL_DIR="${HOME}/.steam/debian-installation/steamapps/common/DayZServer"
REMOTE_INSTALL_DIR="/mnt/dayz/stock/DayZServer"
steamcmd -tcp +login "$STEAM_USER" +app_update "$DAYZ_GAME_ID" +quit
steamcmd -tcp +login "$STEAM_USER" +app_update "$DAYZ_SERVER_ID" +quit
do_sync "$LOCAL_INSTALL_DIR"/ "$REMOTE_INSTALL_DIR"
msg "------- DONE UPDATING SERVER ---------------------"
}
# args: $1=server_name
update_mods() {
MODS_FILE="$HOME/modlists/$1.txt"
REMOTE_MODS_DIR="/mnt/dayz/mods/$1"
mkdir -p "$REMOTE_MODS_DIR"
tempfile=/tmp/mods-to-download.txt
:> "$tempfile"
while read -r mod ; do
# skip comments, blank lines
case "$mod" in
\#*|'')
;;
*)
mod=${mod%%^*}
printf "+workshop_download_item $DAYZ_GAME_ID %s\n" "$mod" >> "$tempfile"
mkdir -p "$LOCAL_MODS_DIR/$mod"
esac
done < "$MODS_FILE"
msg "----------- DOWNLOAD MODS -------------"
steamcmd -tcp +login "$STEAM_USER" $(cat "$tempfile" | xargs) +quit || exit 1
msg "----------- RENAMING MODS -------------"
rm -rf "$HOME/mods_to_copy" 2>/dev/null ||:
mkdir -p "$HOME/mods_to_copy"
:> "$HOME/mods_to_copy/mods.txt"
while read -r mod ; do
# skip comments, blank lines
case "$mod" in
\#*|'')
;;
*)
mod_id=${mod%%^*}
mod_name=${mod##*^}
do_sync "$LOCAL_MODS_DIR/$mod_id"/ "$HOME/mods_to_copy/@${mod_name}"
printf '@%s\n' "$mod_name" >> "$HOME/mods_to_copy/mods.txt"
esac
done < "$MODS_FILE"
msg "----------- SYNCING MODS -------------"
do_sync "$HOME/mods_to_copy"/ "$REMOTE_MODS_DIR"
rm "$tempfile" 2>/dev/null ||:
rm -rf "$HOME/mods_to_copy" 2>/dev/null ||:
}
update_stock_maps() {
msg "----------- UPDATING MAPS -------------"
cherno=dayzOffline.chernarusplus
namalsk=regular.namalsk
takistan=Offline.TakistanPlus
NAMALSK_MOD_ID=2289461232
TAKISTAN_MOD_ID=2563233742
do_sync \
"${HOME}/.steam/debian-installation/steamapps/common/DayZServer/mpmissions/$cherno"/ \
"$REMOTE_MAPS/$cherno"
msg "Updating Namalsk Survival"
steamcmd -tcp +login "$STEAM_USER" +workshop_download_item "$DAYZ_GAME_ID" "$NAMALSK_MOD_ID" +quit || exit 1
if [ -d "$LOCAL_MODS_DIR/$NAMALSK_MOD_ID/Extras/Regular/$namalsk" ] ; then
do_sync "$LOCAL_MODS_DIR/$NAMALSK_MOD_ID/Extras/Regular/$namalsk"/ "$REMOTE_MAPS/$namalsk" || \
die "failed to copy Namalsk map files"
fi
msg "Updating Optimized Namalsk Server PBOs"
#NAMALSK_OPTIMIZED
steamcmd -tcp +login "$STEAM_USER" +workshop_download_item "$DAYZ_GAME_ID" "$NAMALSK_MOD_ID" +quit || exit 1
msg "Updating TakistanPlus"
steamcmd -tcp +login "$STEAM_USER" +workshop_download_item "$DAYZ_GAME_ID" "$TAKISTAN_MOD_ID" +quit || exit 1
if [ -d "$LOCAL_MODS_DIR/$TAKISTAN_MOD_ID/Mission/$takistan" ] ; then
do_sync "$LOCAL_MODS_DIR/$TAKISTAN_MOD_ID/Mission/$takistan"/ "$REMOTE_MAPS/$takistan" || \
die "failed to copy Takistan map files"
fi
msg "NOTE: deer isle doesn't get automatic updates... Skipping"
}
main () {
update_server
update_stock_maps
for server in $(ls "$HOME/modlists" | xargs | sed 's/\.txt//g') ; do
rm -rf "$HOME/.steam/debian-installation/steamapps/workshop/downloads"
mkdir -p "$HOME/.steam/debian-installation/steamapps/workshop/downloads"
update_mods "$server"
done
}
main "$@"