Changeset 344
- Timestamp:
- Jan 5, 2019, 1:12:17 PM (6 years ago)
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
bundle_creation/makefile
r255 r344 1 HOST=1 78.63.97.2031 HOST=136.243.11.25 2 2 PORT=51010 3 3 SERVERPATH=/srv/www/illy.bz/http/fi/7dtd/ -
scripts/usr/local/lib/7dtd/VERSION
r310 r344 1 Version: 11 02 Release: 201 7-08-261 Version: 111 2 Release: 2019-01-05 3 3 -
scripts/usr/local/lib/7dtd/commands/updateengine.sh
r310 r344 235 235 fi 236 236 if [ "$DOCHECK" = "yes" ]; then 237 echo "Updating version information..." 237 238 rm /root/Steam/appcache/appinfo.vdf 238 239 cd $SDTD_BASE/steamcmd -
scripts/usr/local/lib/7dtd/monitor-log.sh
r308 r344 73 73 74 74 handleChat() { 75 echo "$(timestamp): $1: $2 " >> $CHATLOG75 echo "$(timestamp): $1: $2 (SteamID $3, EntityID $4, Target $5)" >> $CHATLOG 76 76 77 77 for H in $(getHooksFor chat $INSTANCE); do 78 $H $INSTANCE "$1" "$2" 78 $H $INSTANCE "$1" "$2" "$3" "$4" "$5" 79 79 done 80 80 } … … 167 167 handleGmsg "$msg" 168 168 unset msg 169 #Chat: 'name': .*$ 170 elif [ -n "$(echo "$line" | grep -E '^Chat: .+')" ]; then 171 name=$(expr "$line" : "Chat: '\(.*\)': .*$") 172 msg=$(expr "$line" : "Chat: '.*': \(.*\)$") 173 handleChat "$name" "$msg" 174 unset name msg 169 #Chat (from '<steamid>', entity id '<entityid>', to '<targettype>'): '<senderchatname>': <msg> 170 elif [ -n "$(echo "$line" | grep -E '^Chat .+')" ]; then 171 steamId=$(expr "$line" : "Chat (from '\(.+\)', entity id '[0-9]+', to '[a-fA-F:0-9.]+'): '.*': .*$") 172 entityId=$(expr "$line" : "Chat (from '.+', entity id '\([0-9]+\)', to '[a-fA-F:0-9.]+'): '.*': .*$") 173 targetType=$(expr "$line" : "Chat (from '.+', entity id '[0-9]+', to '\([a-fA-F:0-9.]+\)'): '.*': .*$") 174 name=$(expr "$line" : "Chat (from '.+', entity id '[0-9]+', to '[a-fA-F:0-9.]+'): '\(.*\)': .*$") 175 msg=$(expr "$line" : "Chat (from '.+', entity id '[0-9]+', to '[a-fA-F:0-9.]+'): '.*': \(.*\)$") 176 handleChat "$name" "$msg" "$steamId" "$entityId" "$targetType" 177 unset name msg steamId entityId targetType 175 178 #Executing command ".*" from client ".*"$ 176 179 elif [ -n "$(echo "$line" | grep '^Executing command '.*' from client')" ]; then -
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.