Changeset 344 for scripts/usr/local/lib/7dtd/serverconfig.sh
- Timestamp:
- Jan 5, 2019, 1:12:17 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
scripts/usr/local/lib/7dtd/serverconfig.sh
r308 r344 56 56 } 57 57 serverconfig_ServerDisabledNetworkProtocols_Values() { 58 config_allowed_values=("None" " UNET" "UNET,SteamNetworking" "UNET,RakNet" "UNET,SteamNetworking,RakNet" "SteamNetworking" "SteamNetworking,RakNet" "RakNet")59 } 60 61 62 serverconfig_Server IsPublic_QueryName() {58 config_allowed_values=("None" "SteamNetworking" "SteamNetworking,LiteNetLib" "LiteNetLib") 59 } 60 61 62 serverconfig_ServerVisibility_QueryName() { 63 63 echo "Public server" 64 64 } 65 serverconfig_ServerIsPublic_Type() { 66 echo "boolean" 67 } 68 serverconfig_ServerIsPublic_Default() { 69 echo "true" 70 } 71 serverconfig_ServerIsPublic_ErrorMessage() { 72 echo "Not a valid boolean given (true/false or yes/no or y/n)." 73 } 74 65 serverconfig_ServerVisibility_Type() { 66 echo "number" 67 } 68 serverconfig_ServerVisibility_Default() { 69 echo "2" 70 } 71 serverconfig_ServerVisibility_Range() { 72 echo "0-2" 73 } 74 serverconfig_ServerVisibility_Values() { 75 config_allowed_values=("Not listed" "Friends only (only works while at least one player is connected manually. Dedi servers do not have friends!)" "Public") 76 } 75 77 76 78 … … 233 235 } 234 236 serverconfig_GameWorld_Values() { 235 config_allowed_values=("Random Gen" "Navezgane") # "MP Wasteland Horde" "MP Wasteland Skirmish" "MP Wasteland War" 237 config_allowed_values=("RWG" "Navezgane") # "MP Wasteland Horde" "MP Wasteland Skirmish" "MP Wasteland War" 238 } 239 240 241 242 serverconfig_WorldGenSeed_QueryName() { 243 echo "Random generation seed (if world RWG)" 244 } 245 serverconfig_WorldGenSeed_Type() { 246 echo "string" 247 } 248 serverconfig_WorldGenSeed_Validate() { 249 if [ ! -z "$1" ]; then 250 echo "1" 251 else 252 echo "0" 253 fi 254 } 255 serverconfig_WorldGenSeed_ErrorMessage() { 256 echo "Seed cannot be empty." 257 } 258 259 260 261 serverconfig_WorldGenSize_QueryName() { 262 echo "Random generation map size (if world RWG)" 263 } 264 serverconfig_WorldGenSize_Type() { 265 echo "number" 266 } 267 serverconfig_WorldGenSize_Default() { 268 echo "6144" 269 } 270 serverconfig_WorldGenSize_Range() { 271 echo "2048-16384" 236 272 } 237 273 … … 239 275 240 276 serverconfig_GameName_QueryName() { 241 echo " Random gen seed"277 echo "World decoration seed" 242 278 } 243 279 serverconfig_GameName_Type() { … … 285 321 } 286 322 serverconfig_GameMode_Values() { 287 config_allowed_values=("GameModeSurvival MP" "GameModeSurvivalSP")288 } 289 290 291 292 serverconfig_Zombie sRun_QueryName() {293 echo "Zombie s run"294 } 295 serverconfig_Zombie sRun_Type() {296 echo "number" 297 } 298 serverconfig_Zombie sRun_Default() {323 config_allowed_values=("GameModeSurvival") 324 } 325 326 327 328 serverconfig_ZombieMove_QueryName() { 329 echo "Zombie speed, regular" 330 } 331 serverconfig_ZombieMove_Type() { 332 echo "number" 333 } 334 serverconfig_ZombieMove_Default() { 299 335 echo "0" 300 336 } 301 serverconfig_ZombiesRun_Range() { 302 echo "0-2" 303 } 304 serverconfig_ZombiesRun_Values() { 305 config_allowed_values=("Default day/night walk/run" "Never run" "Always run") 306 } 337 serverconfig_ZombieMove_Range() { 338 echo "0-4" 339 } 340 serverconfig_ZombieMove_Values() { 341 config_allowed_values=("Walk" "Jog" "Run" "Sprint" "Nightmare") 342 } 343 344 345 346 serverconfig_ZombieMoveNight_QueryName() { 347 echo "Zombie speed, night" 348 } 349 serverconfig_ZombieMoveNight_Type() { 350 echo "number" 351 } 352 serverconfig_ZombieMoveNight_Default() { 353 echo "3" 354 } 355 serverconfig_ZombieMoveNight_Range() { 356 echo "0-4" 357 } 358 serverconfig_ZombieMoveNight_Values() { 359 config_allowed_values=("Walk" "Jog" "Run" "Sprint" "Nightmare") 360 } 361 362 363 364 serverconfig_ZombieFeralMove_QueryName() { 365 echo "Zombie speed, ferals" 366 } 367 serverconfig_ZombieFeralMove_Type() { 368 echo "number" 369 } 370 serverconfig_ZombieFeralMove_Default() { 371 echo "3" 372 } 373 serverconfig_ZombieFeralMove_Range() { 374 echo "0-4" 375 } 376 serverconfig_ZombieFeralMove_Values() { 377 config_allowed_values=("Walk" "Jog" "Run" "Sprint" "Nightmare") 378 } 379 380 381 382 serverconfig_ZombieBMMove_QueryName() { 383 echo "Zombie speed, bloodmoons" 384 } 385 serverconfig_ZombieBMMove_Type() { 386 echo "number" 387 } 388 serverconfig_ZombieBMMove_Default() { 389 echo "3" 390 } 391 serverconfig_ZombieBMMove_Range() { 392 echo "0-4" 393 } 394 serverconfig_ZombieBMMove_Values() { 395 config_allowed_values=("Walk" "Jog" "Run" "Sprint" "Nightmare") 396 } 397 307 398 308 399 … … 346 437 serverconfig_DayLightLength_Range() { 347 438 echo "0-24" 439 } 440 441 442 443 serverconfig_PartySharedKillRange_QueryName() { 444 echo "Party range to share kill / quest XP rewards" 445 } 446 serverconfig_PartySharedKillRange_Type() { 447 echo "number" 448 } 449 serverconfig_PartySharedKillRange_Default() { 450 echo "100" 348 451 } 349 452 … … 490 593 491 594 595 serverconfig_TelnetFailedLoginLimit_QueryName() { 596 echo "Max failed login attempts (0 to disable)" 597 } 598 serverconfig_TelnetFailedLoginLimit_Type() { 599 echo "number" 600 } 601 serverconfig_TelnetFailedLoginLimit_Default() { 602 echo "10" 603 } 604 605 606 607 serverconfig_TelnetFailedLoginsBlocktime_QueryName() { 608 echo "Telnet login blocktime after failed logins (seconds)" 609 } 610 serverconfig_TelnetFailedLoginsBlocktime_Type() { 611 echo "number" 612 } 613 serverconfig_TelnetFailedLoginsBlocktime_Default() { 614 echo "10" 615 } 616 617 618 492 619 serverconfig_DropOnDeath_QueryName() { 493 620 echo "Drop on Death" … … 767 894 echo "--------------------------------" 768 895 for CV in \ 769 ServerName ServerPassword Server IsPublicServerPort ServerDisabledNetworkProtocols ServerDescription ServerWebsiteURL \896 ServerName ServerPassword ServerVisibility ServerPort ServerDisabledNetworkProtocols ServerDescription ServerWebsiteURL \ 770 897 HideCommandExecutionLog MaxUncoveredMapChunksPerPlayer EACEnabled MaxSpawnedZombies MaxSpawnedAnimals \ 771 898 ; do … … 795 922 for CV in \ 796 923 ControlPanelEnabled ControlPanelPort ControlPanelPassword \ 797 TelnetPort TelnetPassword \924 TelnetPort TelnetPassword TelnetFailedLoginLimit TelnetFailedLoginsBlocktime \ 798 925 ; do 799 926 if [ "$CV" = "TelnetPort" ]; then … … 815 942 echo "--------------------------------" 816 943 for CV in \ 817 GameName GameWorld GameMode \944 GameName GameWorld WorldGenSeed WorldGenSize GameMode \ 818 945 ; do 819 946 $1 $CV … … 828 955 echo "--------------------------------" 829 956 for CV in \ 830 P layerKillingMode PersistentPlayerProfiles \957 PartySharedKillRange PlayerKillingMode PersistentPlayerProfiles \ 831 958 PlayerSafeZoneLevel PlayerSafeZoneHours \ 832 959 BuildCreate \ … … 872 999 echo "--------------------------------" 873 1000 for CV in \ 874 GameDifficulty Zombie sRun\1001 GameDifficulty ZombieMove ZombieMoveNight ZombieFeralMove ZombieBMMove \ 875 1002 EnemySpawnMode EnemyDifficulty \ 876 1003 BloodMoonEnemyCount BedrollDeadZoneSize \
Note:
See TracChangeset
for help on using the changeset viewer.