环境配置
系统:Ubuntu 22.04.3 LTS配置:8C16G
创建steam用户并切换至steam用户
# 创建steam用户sudo useradd -m steam# 增加steam用户sudo权限sudo usermod -aG sudo steam# 修改steam用户密码sudo passwd steam# 切换至steam用户sudo -u steam -s# 进入steam用户家目录cd /home/steam
安装steamcmd
# 启用 Multiverse 存储库sudo add-apt-repository multiverse# 增加i386架构支持sudo dpkg --add-architecture i386# 更新软件包缓存sudo apt update# 安装steamcmdsudo apt install steamcmd
安装Manually
# 安装lib32gcc-s1库sudo apt-get install lib32gcc-s1# 创建steam目录mkdir ~/Steam# 进入steam目录cd ~/Steam# 安装Manuallycurl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
下载服务器
# 进入steam目录cd ~/Steam# 运行steamcmd./steamcmd.sh# 匿名模式登陆:login anonymous# (显示OK后就登陆成功了)# 下载服务器app_update 2394010# 还需要下载一个服务器依赖的包app_update 1007# 下载可能有点慢,多等等# 退出SteamCMDquit
建立库链接
# 新建.steam文件夹mkdir ~/.steam# 新建sdk64文件夹mkdir ~/.steam/sdk64# 复制动态库cp ~/Steam/steamapps/common/Steamworks/ SDK/ Redist/linux64/steamclient.so ~/.steam/sdk64/
修改配置文件
# 进入PalServer目录cd /home/steam/Steam/steamapps/common/PalServer# 启动PalServer./PalServer.sh# 使用ctrl+C退出# 复制默认配置文件至配置文件目录cp DefaultPalWorldSettings.ini Pal/Saved/Config/LinuxServer/PalWorldSettings.ini# 修改配置文件vim Pal/Saved/Config/LinuxServer/PalWorldSettings.ini
配置自动启动
# 编辑自启文件sudo vim /etc/systemd/system/palserver.service
自启配置文件
[Unit]Description=PalServerAfter=network.target[Service]User=steamExecStart=/usr/bin/sudo -u steam /home/steam/Steam/steamapps/common/PalServerRestart=always[Install]WantedBy=default.target
设置自动启动
# 设置开机自启sudo systemctl enable palserver# 启动sudo systemctl start palserver# 查看状态sudo systemctl status palserver
配置文件参数
Difficulty | 英文 | 机翻 |
---|---|---|
DayTimeSpeedRate | Day time speed | 白天速度 |
NightTimeSpeedRate | Night time speed | 夜间速度 |
ExpRate | EXP rate | 经验率 |
PalCaptureRate | Pal capture rate | 好友捕获率 |
PalSpawnNumRate | Pal appearance rate | Pal出现率 |
PalDamageRateAttack | Damage from pals multipiler | 好友倍增器造成的伤害 |
PalDamageRateDefense | Damage to pals multipiler | 对好友倍增器造成伤害 |
PlayerDamageRateAttack | Damage from player multipiler | 玩家倍增造成的伤害 |
PlayerDamageRateDefense | Damage to player multipiler | 对玩家造成的伤害乘数 |
PlayerStomachDecreaceRate | Player hunger depletion rate | 玩家饥饿消耗率 |
PlayerStaminaDecreaceRate | Player stamina reduction rate | 玩家体力减少率 |
PlayerAutoHPRegeneRate | Player auto HP regeneration rate | 玩家自动HP回复率 |
PlayerAutoHpRegeneRateInSleep | Player sleep HP regeneration rate | 玩家睡眠HP回复率 |
PalStomachDecreaceRate | Pal hunger depletion rate | 伙伴饥饿消耗率 |
PalStaminaDecreaceRate | Pal stamina reduction rate | 帕尔耐力减少率 |
PalAutoHPRegeneRate | Pal auto HP regeneration rate | Pal自动HP回复率 |
PalAutoHpRegeneRateInSleep | Pal sleep health regeneration rate (in Palbox) | Pal 睡眠健康恢复率(Palbox 中) |
BuildObjectDamageRate | Damage to structure multipiler | 多层结构损坏 |
BuildObjectDeteriorationDamageRate | Structure determination rate | 结构测定率 |
CollectionDropRate | Getherable items multipiler | 可收集物品倍增器 |
CollectionObjectHpRate | Getherable objects HP multipiler | 可收集的物体 HP 倍增器 |
CollectionObjectRespawnSpeedRate | Getherable objects respawn interval | 可收集物体的重生间隔 |
EnemyDropItemRate | Dropped Items Multipiler | 掉落物品倍增器 |
DeathPenalty | Death penalty None : No lost, Item : Lost item without equipment, ItemAndEquipment : Lost item and equipment, All : Lost All item, equipment, pal(in inventory) | 死刑 None : 没有丢失, Item : 丢失的没有装备的物品, ItemAndEquipment : 丢失的物品和装备, All : 丢失所有物品、装备、朋友(库存中) |
GuildPlayerMaxNum | Max player of Guild | 公会最大玩家数 |
PalEggDefaultHatchingTime | Time(h) to incubate massive egg | 孵化大蛋的时间(h) |
ServerPlayerMaxNum | Maximum number of people who can join the server | 服务器最多可加入人数 |
ServerName | Server name | 服务器名称 |
ServerDescription | Server description | 服务器描述 |
AdminPassword | AdminPassword | 管理员密码 |
ServerPassword | Set the server password. | 设置服务器密码。 |
PublicPort | Public port number | 公共端口号 |
PublicIP | Public IP | 公共IP |
RCONEnabled | Enable RCON | 启用RCON |
RCONPort | Port number for RCON | RCON 的端口号 |