环境配置
系统:Ubuntu 22.04.3 LTS
配置:8C16G
创建steam用户并切换至steam用户
# 创建steam用户sudouseradd -m steam
# 增加steam用户sudo权限sudousermod -aG sudo steam
# 修改steam用户密码sudopasswd steam
# 切换至steam用户sudo -u steam -s
# 进入steam用户家目录cd /home/steam
安装steamcmd
# 启用 Multiverse 存储库sudo add-apt-repository multiverse
# 增加i386架构支持sudo dpkg --add-architecture i386
# 更新软件包缓存sudoapt update
# 安装steamcmdsudoaptinstall steamcmd
安装Manually
# 安装lib32gcc-s1库sudoapt-getinstall 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# 下载可能有点慢,多等等# 退出SteamCMD
quit
建立库链接
# 新建.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
配置自动启动
# 编辑自启文件sudovim /etc/systemd/system/palserver.service
自启配置文件
[Unit]Description=PalServer
After=network.target
[Service]User=steam
ExecStart=/usr/bin/sudo -u steam /home/steam/Steam/steamapps/common/PalServer
Restart=always
[Install]WantedBy=default.target
设置自动启动
# 设置开机自启sudo systemctl enable palserver
# 启动sudo systemctl start palserver
# 查看状态sudo systemctl status palserver
配置文件参数
Difficulty英文机翻DayTimeSpeedRateDay time speed白天速度NightTimeSpeedRateNight time speed夜间速度ExpRateEXP rate经验率PalCaptureRatePal capture rate好友捕获率PalSpawnNumRatePal appearance ratePal出现率PalDamageRateAttackDamage from pals multipiler好友倍增器造成的伤害PalDamageRateDefenseDamage to pals multipiler对好友倍增器造成伤害PlayerDamageRateAttackDamage from player multipiler玩家倍增造成的伤害PlayerDamageRateDefenseDamage to player multipiler对玩家造成的伤害乘数PlayerStomachDecreaceRatePlayer hunger depletion rate玩家饥饿消耗率PlayerStaminaDecreaceRatePlayer stamina reduction rate玩家体力减少率PlayerAutoHPRegeneRatePlayer auto HP regeneration rate玩家自动HP回复率PlayerAutoHpRegeneRateInSleepPlayer sleep HP regeneration rate玩家睡眠HP回复率PalStomachDecreaceRatePal hunger depletion rate伙伴饥饿消耗率PalStaminaDecreaceRatePal stamina reduction rate帕尔耐力减少率PalAutoHPRegeneRatePal auto HP regeneration ratePal自动HP回复率PalAutoHpRegeneRateInSleepPal sleep health regeneration rate (in Palbox)Pal 睡眠健康恢复率(Palbox 中)BuildObjectDamageRateDamage to structure multipiler多层结构损坏BuildObjectDeteriorationDamageRateStructure determination rate结构测定率CollectionDropRateGetherable items multipiler可收集物品倍增器CollectionObjectHpRateGetherable objects HP multipiler可收集的物体 HP 倍增器CollectionObjectRespawnSpeedRateGetherable objects respawn interval可收集物体的重生间隔EnemyDropItemRateDropped Items Multipiler掉落物品倍增器DeathPenaltyDeath 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 : 丢失所有物品、装备、朋友(库存中)GuildPlayerMaxNumMax player of Guild公会最大玩家数PalEggDefaultHatchingTimeTime(h) to incubate massive egg孵化大蛋的时间(h)ServerPlayerMaxNumMaximum number of people who can join the server服务器最多可加入人数ServerNameServer name服务器名称ServerDescriptionServer description服务器描述AdminPasswordAdminPassword管理员密码ServerPasswordSet the server password.设置服务器密码。PublicPortPublic port number公共端口号PublicIPPublic IP公共IPRCONEnabledEnable RCON启用RCONRCONPortPort number for RCONRCON 的端口号
版权归原作者 杨英浩 所有, 如有侵权,请联系我们删除。