【2024.01.23】搭建幻兽帕鲁palworld私人服务器,并配置难度

使用docker进行部署无疑是最快的

项目地址:https://github.com/thijsvanloef/palworld-server-docker

代码内容


services:
   palworld:
      image: thijsvanloef/palworld-server-docker:latest
      restart: unless-stopped
      container_name: palworld-server
      ports:
        - 8211:8211/udp
        - 27015:27015/udp
      environment:
         - PUID=1000
         - PGID=1000
         - PORT=8211 # Optional but recommended
         - PLAYERS=16 # Optional but recommended
         - MULTITHREADING=false
         - RCON_ENABLED=true
         - RCON_PORT=25575
         - ADMIN_PASSWORD="adminPasswordHere"
         - COMMUNITY=false  # Enable this if you want your server to show up in the community servers tab, USE WITH SERVER_PASSWORD!
         # Enable the environment variables below if you have COMMUNITY=true
         # - SERVER_PASSWORD="worldofpals"
         # - SERVER_NAME="World of Pals"
      volumes:
         - ./palworld:/palworld/
   rcon:
      image: outdead/rcon:latest
      entrypoint: ['/rcon', '-a', 'palworld:25575', '-p', 'adminPasswordHere']
      profiles: ['rcon'] 

配置

我选择的难度是比困难轻松一点儿

; 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=0.500000,PalCaptureRate=0.800000,PalSpawnNumRate=1.000000,PalDamageRateAttack=1.000000,PalDamageRateDefense=1.000000,PlayerDamageRateAttack=0.80000,PlayerDamageRateDefense=1.600000,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=Item,bEnablePlayerToPlayerDamage=True,bEnableFriendlyFire=True,bEnableInvaderEnemy=True,bActiveUNKO=False,bEnableAimAssistPad=True,bEnableAimAssistKeyboard=False,DropItemMaxNum=3000,DropItemMaxNum_UNKO=100,BaseCampMaxNum=128,BaseCampWorkerMaxNum=15,DropItemAliveMaxHours=0.100000,bAutoResetGuildNoOnlinePlayers=False,AutoResetGuildTimeNoOnlinePlayers=72.000000,GuildPlayerMaxNum=20,PalEggDefaultHatchingTime=8.000000,WorkSpeedRate=1.000000,bIsMultiplay=False,bIsPvP=False,bCanPickupOtherGuildDeathPenaltyDrop=True,bEnableNonLoginPenalty=True,bEnableFastTravel=True,bIsStartLocationSelectByMap=True,bExistPlayerAfterLogout=False,bEnableDefenseOtherGuildPlayer=True,CoopPlayerMaxNum=4,ServerPlayerMaxNum=16,ServerName="Default Palworld Server",ServerDescription="",AdminPassword="yklab123",ServerPassword="",PublicPort=8211,PublicIP="",RCONEnabled=False,RCONPort=25575,Region="",bUseAuth=True,BanListURL="https://api.palworldgame.com/api/banlist.txt")

GM命令

命令 描述
/shutdown {秒} {messageText} 使用可选的计时器和/或消息正常关闭服务器,以通知服务器中的玩家。
/DoExit 立即强制关闭服务器。不建议使用此选项,除非您遇到技术问题或可以接受可能丢失数据的情况。
/Broadcast {MessageText} 向服务器中的所有玩家广播消息。
/KickPlayer {PlayerUID 或 SteamID} 将玩家踢出服务器。有助于适度地吸引玩家的注意力。
/BanPlayer {PlayerUID 或 SteamID} 禁止玩家进入服务器。玩家在解禁之前将无法重新加入服务器。
/TeleportToPlayer {PlayerUID 或 SteamID} 仅限游戏内
立即传送到目标玩家
/TeleportToMe {PlayerUID 或 SteamID} 仅限游戏内
立即将目标玩家传送到您身边。
/ShowPlayers(表演播放器) 显示所有已连接玩家的信息
/Info 显示服务器信息
/Save 将世界数据保存到磁盘。有助于确保您的好友、玩家和其他数据在停止服务器或执行有风险的游戏选项之前得到保存。

posted @ 2024-01-23 08:31  Mokou  阅读(3763)  评论(0编辑  收藏  举报