Changeset 302
- Timestamp:
- Jun 23, 2017, 1:03:52 PM (8 years ago)
- Location:
- scripts/usr/local/lib/7dtd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/usr/local/lib/7dtd/VERSION
r298 r302 1 Version: 10 62 Release: 201 6-12-081 Version: 107 2 Release: 2017-06-23 3 3 -
scripts/usr/local/lib/7dtd/serverconfig.sh
r296 r302 108 108 109 109 110 serverconfig_MaxUncoveredMapChunksPerPlayer_QueryName() { 111 echo "Max uncovered chunks per player" 112 } 113 serverconfig_MaxUncoveredMapChunksPerPlayer_Type() { 114 echo "number" 115 } 116 serverconfig_MaxUncoveredMapChunksPerPlayer_Default() { 117 echo "131072" 118 } 119 120 121 serverconfig_HideCommandExecutionLog_QueryName() { 122 echo "Hide command execution in log" 123 } 124 serverconfig_HideCommandExecutionLog_Type() { 125 echo "number" 126 } 127 serverconfig_HideCommandExecutionLog_Default() { 128 echo "0" 129 } 130 serverconfig_HideCommandExecutionLog_Range() { 131 echo "0-3" 132 } 133 serverconfig_HideCommandExecutionLog_Values() { 134 config_allowed_values=("Log all" "Log all but commands from Telnet/ControlPanel" "Also hide commands executed by clients" "Do not log any commands at all") 135 } 136 137 138 139 110 140 serverconfig_ServerMaxPlayerCount_QueryName() { 111 echo "Max players"141 echo "Max players" 112 142 } 113 143 serverconfig_ServerMaxPlayerCount_Type() { 114 echo "number"144 echo "number" 115 145 } 116 146 serverconfig_ServerMaxPlayerCount_Default() { … … 120 150 echo "1-64" 121 151 } 152 153 154 serverconfig_ServerReservedSlots_QueryName() { 155 echo "Reserved VIP slots" 156 } 157 serverconfig_ServerReservedSlots_Type() { 158 echo "number" 159 } 160 serverconfig_ServerReservedSlots_Default() { 161 echo "0" 162 } 163 serverconfig_ServerReservedSlots_Range() { 164 echo "1-64" 165 } 166 167 168 serverconfig_ServerReservedSlotsPermission_QueryName() { 169 echo "Permission level required for VIP slots" 170 } 171 serverconfig_ServerReservedSlotsPermission_Type() { 172 echo "number" 173 } 174 serverconfig_ServerReservedSlotsPermission_Default() { 175 echo "100" 176 } 177 serverconfig_ServerReservedSlotsPermission_Range() { 178 echo "0-2000" 179 } 180 181 182 serverconfig_ServerAdminSlots_QueryName() { 183 echo "Admin slots" 184 } 185 serverconfig_ServerAdminSlots_Type() { 186 echo "number" 187 } 188 serverconfig_ServerAdminSlots_Default() { 189 echo "0" 190 } 191 serverconfig_ServerAdminSlots_Range() { 192 echo "1-64" 193 } 194 195 196 serverconfig_ServerAdminSlotsPermission_QueryName() { 197 echo "Permission level required for admin slots" 198 } 199 serverconfig_ServerAdminSlotsPermission_Type() { 200 echo "number" 201 } 202 serverconfig_ServerAdminSlotsPermission_Default() { 203 echo "0" 204 } 205 serverconfig_ServerAdminSlotsPermission_Range() { 206 echo "0-2000" 207 } 208 122 209 123 210 … … 426 513 427 514 428 serverconfig_EnemySenseMemory_QueryName() {429 echo "Sense memory (seconds)"430 }431 serverconfig_EnemySenseMemory_Type() {432 echo "number"433 }434 serverconfig_EnemySenseMemory_Default() {435 echo "60"436 }437 438 439 515 serverconfig_EnemySpawnMode_QueryName() { 440 516 echo "Spawn mode" 441 517 } 442 518 serverconfig_EnemySpawnMode_Type() { 443 echo " number"519 echo "boolean" 444 520 } 445 521 serverconfig_EnemySpawnMode_Default() { 446 echo "3" 447 } 448 serverconfig_EnemySpawnMode_Range() { 449 echo "0-5" 450 } 451 serverconfig_EnemySpawnMode_Values() { 452 config_allowed_values=("Disabled" "50%" "75%" "100%" "125%" "150%") 522 echo "true" 523 } 524 serverconfig_EnemySpawnMode_ErrorMessage() { 525 echo "Not a valid boolean given (true/false or yes/no or y/n)." 453 526 } 454 527 … … 471 544 472 545 546 serverconfig_BloodMoonEnemyCount_QueryName() { 547 echo "Enemies per Player on Blood moons" 548 } 549 serverconfig_BloodMoonEnemyCount_Type() { 550 echo "number" 551 } 552 serverconfig_BloodMoonEnemyCount_Default() { 553 echo "8" 554 } 555 serverconfig_BloodMoonEnemyCount_Range() { 556 echo "0-64" 557 } 558 559 473 560 474 561 … … 505 592 serverconfig_LootRespawnDays_Default() { 506 593 echo "7" 594 } 595 596 serverconfig_BedrollDeadZoneSize_QueryName() { 597 echo "Bedroll deadzone size" 598 } 599 serverconfig_BedrollDeadZoneSize_Type() { 600 echo "number" 601 } 602 serverconfig_BedrollDeadZoneSize_Default() { 603 echo "15" 507 604 } 508 605 … … 657 754 echo "--------------------------------" 658 755 for CV in \ 659 ServerName ServerPassword ServerIsPublic ServerPort ServerMaxPlayerCount ServerDescription ServerWebsiteURL \ 660 EACEnabled MaxSpawnedZombies MaxSpawnedAnimals \ 756 ServerName ServerPassword ServerIsPublic ServerPort ServerDescription ServerWebsiteURL \ 757 HideCommandExecutionLog MaxUncoveredMapChunksPerPlayer EACEnabled MaxSpawnedZombies MaxSpawnedAnimals \ 758 ; do 759 $1 $CV 760 done 761 echo 762 } 763 764 configEditSlots() { 765 local CV 766 767 echo "Slots" 768 echo "--------------------------------" 769 for CV in \ 770 ServerMaxPlayerCount ServerReservedSlots ServerReservedSlotsPermission ServerAdminSlots ServerAdminSlotsPermission \ 661 771 ; do 662 772 $1 $CV … … 750 860 for CV in \ 751 861 GameDifficulty ZombiesRun \ 752 EnemySenseMemory EnemySpawnMode EnemyDifficulty \ 862 EnemySpawnMode EnemyDifficulty \ 863 BloodMoonEnemyCount BedrollDeadZoneSize \ 753 864 ; do 754 865 $1 $CV
Note:
See TracChangeset
for help on using the changeset viewer.