如果你想修改默认的死亡掉落规则、调整掉落倍率等游戏配置的话,可以这么做:
这里提供一段当前版本的文件内容,可以直接复制后去粘贴使用,后续可能会更新导致参数不一致,还是建议去帕鲁安装程序中找到对应的文件,文件内容:
; This configuration file is a sample of the default server settings.
; Changes to this file will NOT be reflected on the server.
; To change the server settings, modify Pal/Saved/Config/LinuxServer/PalWorldSettings.ini.
[/Script/Pal.PalGameWorldSettings]
OptionSettings=(Difficulty=None,DayTimeSpeedRate=1.000000,NightTimeSpeedRate=1.000000,ExpRate=1.000000,PalCaptureRate=1.000000,PalSpawnNumRate=1.000000,PalDamageRateAttack=1.000000,PalDamageRateDefense=1.000000,PlayerDamageRateAttack=1.000000,PlayerDamageRateDefense=1.000000,PlayerStomachDecreaceRate=1.000000,PlayerStaminaDecreaceRate=1.000000,PlayerAutoHPRegeneRate=1.000000,PlayerAutoHpRegeneRateInSleep=1.000000,PalStomachDecreaceRate=1.000000,PalStaminaDecreaceRate=1.000000,PalAutoHPRegeneRate=1.000000,PalAutoHpRegeneRateInSleep=1.000000,BuildObjectDamageRate=1.000000,BuildObjectDeteriorationDamageRate=1.000000,CollectionDropRate=1.000000,CollectionObjectHpRate=1.000000,CollectionObjectRespawnSpeedRate=1.000000,EnemyDropItemRate=1.000000,DeathPenalty=All,bEnablePlayerToPlayerDamage=False,bEnableFriendlyFire=False,bEnableInvaderEnemy=True,bActiveUNKO=False,bEnableAimAssistPad=True,bEnableAimAssistKeyboard=False,DropItemMaxNum=3000,DropItemMaxNum_UNKO=100,BaseCampMaxNum=128,BaseCampWorkerMaxNum=15,DropItemAliveMaxHours=1.000000,bAutoResetGuildNoOnlinePlayers=False,AutoResetGuildTimeNoOnlinePlayers=72.000000,GuildPlayerMaxNum=20,PalEggDefaultHatchingTime=72.000000,WorkSpeedRate=1.000000,bIsMultiplay=False,bIsPvP=False,bCanPickupOtherGuildDeathPenaltyDrop=False,bEnableNonLoginPenalty=True,bEnableFastTravel=True,bIsStartLocationSelectByMap=True,bExistPlayerAfterLogout=False,bEnableDefenseOtherGuildPlayer=False,CoopPlayerMaxNum=4,ServerPlayerMaxNum=32,ServerName="Default Palworld Server",ServerDescription="",AdminPassword="",ServerPassword="",PublicPort=8211,PublicIP="",RCONEnabled=False,RCONPort=25575,Region="",bUseAuth=True,BanListURL="https://api.palworldgame.com/api/banlist.txt")
好了,我们再说下完整路径吧:
Linux 的文件路径 :
/home/steam/Steam/steamapps/common/PalServer/DefaultPalWorldSettings.ini
(tips:Linux建议使用宝塔面板操作,方便一些,安装方法:https://www.bt.cn/new/download.html,注意:宝塔面板安装后防火墙默认开启,会导致帕鲁服务器无法连接,建议安装后关闭防火墙)
Windows 的文件路径 :
\steamcmd\steamapps\common\PalServer\DefaultPalWorldSettings.ini
找到这个文件后,全部复制,粘贴到下边的配置文件中即可。
目标配置文件路径:
Linux 操作系统的目标路径 :
/home/steam/Steam/steamapps/common/PalServer/Pal/Saved/Config/LinuxServer/PalWorldSettings.ini
Windows 操作系统的目标路径 :
\steamcmd\steamapps\common\PalServer\Pal\Saved\Config\WindowsServer\PalWorldSettings.ini
修改这些字段的值,然后保存关闭即可。
其他配置项含义可参考:https://www.bilibili.com/read/cv29976071/?jump_opus=1
官方(但是英文):https://tech.palworldgame.com/optimize-game-balance
重启办法可以查看:如何正确重启联机游戏服务器?