- Timestamp:
- Nov 22, 2014, 10:55:28 PM (10 years ago)
- Location:
- scripts/usr/local/lib/7dtd
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/usr/local/lib/7dtd/VERSION
r195 r204 1 Version: 6 12 Release: 2014- 09-183 DediBuild: 3852441 Version: 63 2 Release: 2014-11-22 3 DediBuild: 451483 4 4 -
scripts/usr/local/lib/7dtd/commands/start.sh
r72 r204 33 33 34 34 for H in $(getHooksFor serverPreStart); do 35 $H $ INSTANCE35 $H $1 36 36 done 37 37 … … 39 39 SSD_DAEMON="--background --no-close" 40 40 SSD_USER="--chuid $SDTD_USER:$SDTD_GROUP --user $SDTD_USER" 41 OPTS="-logfile $(getInstancePath $1)/logs/output_log.txt -configfile=$(getInstancePath $1)/config.xml -dedicated"41 OPTS="-logfile $(getInstancePath $1)/logs/output_log.txt -configfile=$(getInstancePath $1)/config.xml" 42 42 43 L D_LIBRARY_PATH=$SDTD_BASE/linux_files LC_ALL=C $SSD --start $SSD_PID $SSD_DAEMON $SSD_USER --chdir $SDTD_BASE/engine --exec $SDTD_BASE/engine/7DaysToDie.x86 -- $OPTS > $(getInstancePath $1)/logs/stdout.log 2>&143 LC_ALL=C $SSD --start $SSD_PID $SSD_DAEMON $SSD_USER --chdir $SDTD_BASE/engine --exec $SDTD_BASE/engine/7DaysToDie.x86 -- $OPTS > $(getInstancePath $1)/logs/stdout.log 2>&1 44 44 sleep 1 45 45 46 46 for H in $(getHooksFor serverPostStart); do 47 $H $ INSTANCE47 $H $1 48 48 done 49 49 -
scripts/usr/local/lib/7dtd/commands/stop.sh
r169 r204 28 28 if [ $res -eq 1 ]; then 29 29 for H in $(getHooksFor serverPreStop); do 30 $H $ INSTANCE30 $H $1 31 31 done 32 32 … … 54 54 55 55 for H in $(getHooksFor serverPostStop); do 56 $H $ INSTANCE56 $H $1 57 57 done 58 58 -
scripts/usr/local/lib/7dtd/commands/updateengine.sh
r102 r204 75 75 76 76 cd $SDTD_BASE/steamcmd 77 ./steamcmd.sh + @sSteamCmdForcePlatformType windows +login $STEAM_USER $STEAM_PASS +force_install_dir $SDTD_BASE/engine "+app_update 294420" validate +quit77 ./steamcmd.sh +login $STEAM_USER $STEAM_PASS +force_install_dir $SDTD_BASE/engine "+app_update 294420" validate +quit 78 78 79 cp $SDTD_BASE/linux_files/engine/* $SDTD_BASE/engine/ -R80 79 cp $SDTD_BASE/engine/7DaysToDie_Data/Managed/Assembly-CSharp.dll $SDTD_BASE/engine/7DaysToDie_Data/Managed/Assembly-CSharp.dll_orig 81 80 cp /usr/local/lib/7dtd/server-fixes/* $SDTD_BASE/engine/7DaysToDie_Data/Managed/ 82 cp $SDTD_BASE/engine/Install/32bit/SteamworksManaged.dll $SDTD_BASE/engine/7DaysToDie_Data/Managed/83 81 84 82 chown $SDTD_USER.$SDTD_GROUP -R $SDTD_BASE/engine -
scripts/usr/local/lib/7dtd/monitor-log.sh
r87 r204 100 100 $NOBUF tr -d '\r' | 101 101 $NOBUF grep -v "^(Filename: " | 102 $NOBUF sed -r 's/^[0-9]+ [.,][0-9]+ (.*)$/\1/' |102 $NOBUF sed -r 's/^[0-9]+-[0-9]+-[0-9]+T[0-9]+:[0-9]+:[0-9]+ [0-9]+[.,][0-9]+ (.*)$/\1/' | 103 103 while read line ; do 104 104 if [ -n "$line" ]; then -
scripts/usr/local/lib/7dtd/serverconfig.sh
r119 r204 66 66 67 67 68 serverconfig_ServerDescription_QueryName() { 69 echo "Server description" 70 } 71 serverconfig_ServerDescription_Type() { 72 echo "string" 73 } 74 75 76 77 serverconfig_ServerWebsiteURL_QueryName() { 78 echo "Server website URL" 79 } 80 serverconfig_ServerWebsiteURL_Type() { 81 echo "string" 82 } 83 84 85 68 86 serverconfig_ServerPassword_QueryName() { 69 87 echo "Server password" … … 106 124 107 125 serverconfig_GameName_QueryName() { 108 echo " Game name"126 echo "Random gen seed" 109 127 } 110 128 serverconfig_GameName_Type() { … … 119 137 } 120 138 serverconfig_GameName_ErrorMessage() { 121 echo " Game namecannot be empty."139 echo "Seed cannot be empty." 122 140 } 123 141 … … 125 143 126 144 serverconfig_GameDifficulty_QueryName() { 127 echo "Difficulty "145 echo "Difficulty (+ damage given / received)" 128 146 } 129 147 serverconfig_GameDifficulty_Type() { … … 134 152 } 135 153 serverconfig_GameDifficulty_Range() { 136 echo "0- 4"154 echo "0-5" 137 155 } 138 156 serverconfig_GameDifficulty_Values() { 139 config_allowed_values=(" Very easy" "Easy" "Medium" "Hard" "Very hard")157 config_allowed_values=("Scavenger (200% / 50%)" "Adventurer (150% / 75%)" "Nomad (100% / 100%)" "Warrior (75% / 150%)" "Survivalist (50% / 200%)" "Insane (25% / 250%)") 140 158 } 141 159 … … 175 193 176 194 177 serverconfig_ShowFriendPlayerOnMap_QueryName() {178 echo "Show friends on map"179 }180 serverconfig_ShowFriendPlayerOnMap_Type() {181 echo "boolean"182 }183 serverconfig_ShowFriendPlayerOnMap_Default() {184 echo "true"185 }186 serverconfig_ShowFriendPlayerOnMap_ErrorMessage() {187 echo "Not a valid boolean given (true/false or yes/no or y/n)."188 }189 190 191 192 195 serverconfig_BuildCreate_QueryName() { 193 196 echo "Item spawn menu" … … 197 200 } 198 201 serverconfig_BuildCreate_Default() { 199 echo " true"202 echo "false" 200 203 } 201 204 serverconfig_BuildCreate_ErrorMessage() { … … 212 215 } 213 216 serverconfig_DayNightLength_Default() { 214 echo "4 5"217 echo "40" 215 218 } 216 219 … … 227 230 } 228 231 serverconfig_FriendlyFire_ErrorMessage() { 229 echo "Not a valid boolean given (true/false or yes/no or y/n)."230 }231 232 233 234 serverconfig_DayCount_QueryName() {235 echo "Day Count (Horde)"236 }237 serverconfig_DayCount_Type() {238 echo "number"239 }240 serverconfig_DayCount_Default() {241 echo "3"242 }243 244 245 246 serverconfig_FragLimit_QueryName() {247 echo "Frag limit (DM)"248 }249 serverconfig_FragLimit_Type() {250 echo "number"251 }252 serverconfig_FragLimit_Default() {253 echo "5"254 }255 256 257 258 serverconfig_MatchLength_QueryName() {259 echo "Match length (DM)"260 }261 serverconfig_MatchLength_Type() {262 echo "number"263 }264 serverconfig_MatchLength_Default() {265 echo "15"266 }267 268 269 270 serverconfig_RebuildMap_QueryName() {271 echo "Rebuild map on round restart"272 }273 serverconfig_RebuildMap_Type() {274 echo "boolean"275 }276 serverconfig_RebuildMap_Default() {277 echo "false"278 }279 serverconfig_RebuildMap_ErrorMessage() {280 232 echo "Not a valid boolean given (true/false or yes/no or y/n)." 281 233 } … … 408 360 } 409 361 serverconfig_DropOnQuit_Default() { 410 echo " 0"362 echo "1" 411 363 } 412 364 serverconfig_DropOnQuit_Range() { … … 456 408 457 409 458 serverconfig_PlayerDamageGiven_QueryName() {459 echo "Damage Player->Zombies"460 }461 serverconfig_PlayerDamageGiven_Type() {462 echo "number"463 }464 serverconfig_PlayerDamageGiven_Default() {465 echo "2"466 }467 serverconfig_PlayerDamageGiven_Range() {468 echo "0-4"469 }470 serverconfig_PlayerDamageGiven_Values() {471 config_allowed_values=("50%" "75%" "100%" "150%" "200%")472 }473 474 475 serverconfig_PlayerDamageRecieved_QueryName() {476 echo "Damage Zombies->Player"477 }478 serverconfig_PlayerDamageRecieved_Type() {479 echo "number"480 }481 serverconfig_PlayerDamageRecieved_Default() {482 echo "2"483 }484 serverconfig_PlayerDamageRecieved_Range() {485 echo "0-4"486 }487 serverconfig_PlayerDamageRecieved_Values() {488 config_allowed_values=("50%" "75%" "100%" "150%" "200%")489 }490 491 492 410 serverconfig_EnemySenseMemory_QueryName() { 493 411 echo "Sense memory (seconds)" … … 670 588 } 671 589 serverconfig_AirDropFrequency_Default() { 672 echo " 24"590 echo "72" 673 591 } 674 592 … … 685 603 686 604 687 serverconfig_ VACEnabled_QueryName() {688 echo "Enable Valve AntiCheat"689 } 690 serverconfig_ VACEnabled_Type() {605 serverconfig_EACEnabled_QueryName() { 606 echo "Enable EasyAntiCheat" 607 } 608 serverconfig_EACEnabled_Type() { 691 609 echo "boolean" 692 610 } 693 serverconfig_ VACEnabled_Default() {611 serverconfig_EACEnabled_Default() { 694 612 echo "true" 695 613 } 696 serverconfig_ VACEnabled_ErrorMessage() {614 serverconfig_EACEnabled_ErrorMessage() { 697 615 echo "Not a valid boolean given (true/false or yes/no or y/n)." 698 616 } … … 710 628 echo "--------------------------------" 711 629 for CV in \ 712 ServerName ServerPassword ServerIsPublic ServerPort ServerMaxPlayerCount \713 DisableNAT VACEnabled MaxSpawnedZombies \630 ServerName ServerPassword ServerIsPublic ServerPort ServerMaxPlayerCount ServerDescription ServerWebsiteURL \ 631 DisableNAT EACEnabled MaxSpawnedZombies \ 714 632 ; do 715 633 $1 $CV … … 752 670 } 753 671 754 configEditGameTypeSpecific() {755 local CV756 757 echo "Options for specific game types"758 echo "--------------------------------"759 for CV in \760 DayCount FragLimit MatchLength RebuildMap \761 ; do762 $1 $CV763 done764 echo765 }766 767 672 configEditGeneric() { 768 673 local CV … … 771 676 echo "--------------------------------" 772 677 for CV in \ 773 ShowFriendPlayerOnMapFriendlyFire BuildCreate \678 FriendlyFire BuildCreate \ 774 679 BlockDurabilityModifier \ 775 680 ; do … … 814 719 for CV in \ 815 720 GameDifficulty ZombiesRun \ 816 PlayerDamageGiven PlayerDamageRecievedEnemySenseMemory EnemySpawnMode EnemyDifficulty \721 EnemySenseMemory EnemySpawnMode EnemyDifficulty \ 817 722 ; do 818 723 $1 $CV … … 839 744 configEditRemoteControl "$1" 840 745 configEditGameType "$1" 841 configEditGameTypeSpecific "$1"842 746 configEditGeneric "$1" 843 747 configEditDropLoot "$1"
Note:
See TracChangeset
for help on using the changeset viewer.