On This Page
Steam 控制台客户端 - Valve Developer Community (valvesoftware.com)
SteamCMD - Valve 开发者社区 (valvesoftware.com)
直接手动安装,apt安装有些无法获取源
sudo -u steam -s
:以steam用户代管理cd ~/Steam
:切换到用户目录./steamcmd.sh
:运行steamCmdlogin anonymous
:登录公共用户app_update 2394010
:拉取帕鲁服务器 appsudo -u steam -s
:以steam用户运行cd /home/steam/Steam/steamapps/common/PalServer
: cd到默认安装路径./PalServer.sh
: 启动服务器cd ~/Steam/steamapps/common/PalServer/Pal/Saved/Config/LinuxServer
:文件路径vim /home/steam/Steam/steamapps/common/PalServer/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini
:修改世界配置文件配置文件说明
Difficulty=None, 难度=None
DayTimeSpeedRate=1.000000, 白天时间速率=1.000000
NightTimeSpeedRate=1.000000, 夜晚时间速率=1.000000
ExpRate=5.000000, 经验倍率=5.000000
PalCaptureRate=1.000000, 宠物捕获倍率=1.000000
PalSpawnNumRate=1.000000, 宠物生成数量倍率=1.000000
PalDamageRateAttack=1.000000, 宠物攻击伤害倍率=1.000000
PalDamageRateDefense=1.000000, 宠物防御伤害倍率=1.000000
PlayerDamageRateAttack=1.000000, 玩家攻击伤害倍率=1.000000
PlayerDamageRateDefense=1.000000, 玩家防御伤害倍率=1.000000
PlayerStomachDecreaceRate=1.000000, 玩家饥饿减少速率=1.000000
PlayerStaminaDecreaceRate=0.100000, 玩家耐力减少速率=0.100000
PlayerAutoHPRegeneRate=1.000000, 玩家自动生命回复速率=1.000000
PlayerAutoHpRegeneRateInSleep=1.000000, 玩家睡眠中自动生命回复速率=1.000000
PalStomachDecreaceRate=1.000000, 宠物饥饿减少速率=1.000000
PalStaminaDecreaceRate=0.100000, 宠物耐力减少速率=0.100000
PalAutoHPRegeneRate=1.000000, 宠物自动生命回复速率=1.000000
PalAutoHpRegeneRateInSleep=1.000000, 宠物睡眠中自动生命回复速率=1.000000
BuildObjectDamageRate=1.000000, 建筑物损坏倍率=1.000000
BuildObjectDeteriorationDamageRate=1.000000, 建筑物劣化损坏倍率=1.000000
CollectionDropRate=2.000000, 收集物品掉落倍率=2.000000
CollectionObjectHpRate=2.000000, 收集物品耐久倍率=2.000000
CollectionObjectRespawnSpeedRate=0.500000, 收集物品重生速率倍率=0.500000
EnemyDropItemRate=1.000000, 敌人掉落物品倍率=1.000000
DeathPenalty=None, 死亡惩罚=None
bEnablePlayerToPlayerDamage=False, 启用玩家对玩家伤害=False
bEnableFriendlyFire=False, 启用友方伤害=False
bEnableInvaderEnemy=True, 启用入侵敌人=True
bActiveUNKO=False, 活跃UNKO=False
bEnableAimAssistPad=True, 启用手柄瞄准辅助=True
bEnableAimAssistKeyboard=False, 启用键盘瞄准辅助=False
DropItemMaxNum=3000, 掉落物品最大数量=3000
DropItemMaxNum_UNKO=100, UNKO掉落物品最大数量=100
BaseCampMaxNum=128, 基地最大数量=128
BaseCampWorkerMaxNum=15, 基地工人最大数量=15
DropItemAliveMaxHours=1.000000, 掉落物品存活最大小时数=1.000000
bAutoResetGuildNoOnlinePlayers=False, 自动重置无在线玩家公会=False
AutoResetGuildTimeNoOnlinePlayers=72.000000, 无在线玩家自动重置公会时间=72.000000
GuildPlayerMaxNum=20, 公会玩家最大数量=20
PalEggDefaultHatchingTime=0.100000, 宠物蛋默认孵化时间=0.100000
WorkSpeedRate=1.000000, 工作速率倍率=1.000000
bIsMultiplay=False, 多人游戏=False
bIsPvP=False, PvP游戏=False
bCanPickupOtherGuildDeathPenaltyDrop=False, 可以拾取其他公会死亡惩罚掉落=False
bEnableNonLoginPenalty=True, 启用非登录惩罚=True
bEnableFastTravel=True, 启用快速旅行=True
bIsStartLocationSelectByMap=True, 启动位置由地图选择=True
bExistPlayerAfterLogout=False, 登出后玩家仍然存在=False
bEnableDefenseOtherGuildPlayer=False, 启用防御其他公会玩家=False
CoopPlayerMaxNum=32, 合作玩家最大数量=32
ServerPlayerMaxNum=32, 服务器玩家最大数量=32
ServerName="HelloPalworld", 服务器名称="HelloPalworld"
ServerDescription="", 服务器描述=""
AdminPassword="andersen", 管理员密码=""
ServerPassword="", 服务器密码=""
PublicPort=8211, 公开端口=8211
PublicIP="", 公开IP=""
RCONEnabled=False, 启用RCON=False
RCONPort=25575, RCON端口=25575
Region="", 地区=""
bUseAuth=True, 使用身份验证=True
BanListURL="https://api.palworldgame.com/api/banlist.txt" 封禁列表URL="https://api.palworldgame.com/api/banlist.txt"
启动服务sh
#后台运行服务器并重定向日志
su - steam -c "nohup sh /home/steam/Steam/steamapps/common/PalServer/PalServer.sh -useperfthreads -NoAsyncLoadingThread -UseMultithreadForDS > /home/PalServer/logfile.log 2>&1 &"
echo "PalServer执行成功!"
停止服务sh
# 查询指定进程
PIDS=$(pgrep Pal)
if [ -z "$PIDS" ]; then
echo "未找到指定进程"
else
for PID in $PIDS; do
# 终止进程
kill $PID
echo "进程 $PID 已终止"
done
fi
备份存档sh
#当前时间
current_date=$(date +"%Y%m%d%H%M%S")
#copy存档文件到指定路径
mkdir -p /home/PalServer/save/$current_date/ && cp -r /home/steam/Steam/steamapps/common/PalServer/Pal/Saved/SaveGames /home/PalServer/save/$current_date/
echo "存档已备份,路径/home/PalServer/save/$current_date/"