Changeset 353 for scripts/usr/local


Ignore:
Timestamp:
Mar 5, 2019, 5:27:27 PM (6 years ago)
Author:
alloc
Message:

Scripts 112

Location:
scripts/usr/local/lib/7dtd
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • scripts/usr/local/lib/7dtd/VERSION

    r344 r353  
    1 Version: 111
    2 Release: 2019-01-05
     1Version: 112
     2Release: 2019-03-05
    33
  • scripts/usr/local/lib/7dtd/commands/backup.sh

    r308 r353  
    2929                for I in $(getInstanceList); do
    3030                        if [ $(isRunning $I) -eq 1 ]; then
    31                                 telnetCommand $I saveworld 2
     31                                telnetCommand $I saveworld 2 > /dev/null
    3232                        fi
    3333                done
  • scripts/usr/local/lib/7dtd/serverconfig.sh

    r344 r353  
    441441
    442442
     443
     444serverconfig_XPMultiplier_QueryName() {
     445        echo "XP gain multiplier (%)"
     446}
     447serverconfig_XPMultiplier_Type() {
     448        echo "number"
     449}
     450serverconfig_XPMultiplier_Default() {
     451        echo "100"
     452}
     453
     454
    443455serverconfig_PartySharedKillRange_QueryName() {
    444456        echo "Party range to share kill / quest XP rewards"
     
    700712
    701713
    702 serverconfig_BlockDurabilityModifier_QueryName() {
    703         echo "Block durability (%)"
    704 }
    705 serverconfig_BlockDurabilityModifier_Type() {
    706         echo "number"
    707 }
    708 serverconfig_BlockDurabilityModifier_Default() {
     714serverconfig_BlockDamagePlayer_QueryName() {
     715        echo "Block damage modifier for players (%)"
     716}
     717serverconfig_BlockDamagePlayer_Type() {
     718        echo "number"
     719}
     720serverconfig_BlockDamagePlayer_Default() {
    709721        echo "100"
    710722}
     723
     724
     725serverconfig_BlockDamageAI_QueryName() {
     726        echo "Block damage modifier for AIs (%)"
     727}
     728serverconfig_BlockDamageAI_Type() {
     729        echo "number"
     730}
     731serverconfig_BlockDamageAI_Default() {
     732        echo "100"
     733}
     734
     735
     736serverconfig_BlockDamageAIBM_QueryName() {
     737        echo "Block damage modifier for AIs during blood moons (%)"
     738}
     739serverconfig_BlockDamageAIBM_Type() {
     740        echo "number"
     741}
     742serverconfig_BlockDamageAIBM_Default() {
     743        echo "100"
     744}
     745
    711746
    712747
     
    955990        echo "--------------------------------"
    956991        for CV in \
     992                        XPMultiplier \
    957993                        PartySharedKillRange PlayerKillingMode PersistentPlayerProfiles \
    958994                        PlayerSafeZoneLevel PlayerSafeZoneHours \
    959995                        BuildCreate \
    960                         BlockDurabilityModifier \
     996                        BlockDamagePlayer BlockDamageAI BlockDamageAIBM \
    961997                        ; do
    962998                $1 $CV
     
    12141250#  - AdminFileName is made to point to the local instance admins.xml
    12151251#  - SaveGameFolder is made to point to the instance folder
     1252#  - UserDataFolder (for GeneratedWorlds) is made to point to the <user home directory>/serverdata/
    12161253# Params:
    12171254#   1: Instance name
     
    12201257        configCurrent_AdminFileName=admins.xml
    12211258        configCurrent_SaveGameFolder="$(getInstancePath "$1")"
     1259        configCurrent_UserDataFolder=$SDTD_BASE/serverdata
    12221260}
    12231261
     
    12751313saveCurrentConfigValues() {
    12761314        local CV
    1277         for CV in $(listConfigValues) TelnetEnabled AdminFileName SaveGameFolder; do
     1315        for CV in $(listConfigValues) TelnetEnabled AdminFileName SaveGameFolder UserDataFolder; do
    12781316                local currentValName=configCurrent_$CV
    12791317                local val="${!currentValName}"
Note: See TracChangeset for help on using the changeset viewer.