jammsen / docker-palworld-dedicated-server

Docker container to easily provision and manage Palworld Dedicated Server
https://hub.docker.com/r/jammsen/palworld-dedicated-server
MIT License
911 stars 158 forks source link

[Bug Report] Your descriptive title here! #136

Closed tefuirZ closed 9 months ago

tefuirZ commented 9 months ago

Have you read the Important information text above

Current behavior

I set it using environment variables, but the configuration didn't take effect. I checked that the configuration file in the locally mapped /game/Pal/Saved/Config/LinuxServer/PalWorldSetting.ini has not been changed according to the preset environment variables. Is this a bug? The following are the details of the docker-compose.yml file and the details of the configuration file.

Desired behavior

This is the environment variable of docker: version: '3.9' services: palworld-dedicated-server:

build: .

container_name: palworld-dedicated-server
image: jammsen/palworld-dedicated-server:latest
restart: unless-stopped
ports:
  - target: 8211 # Gamerserver port inside of the container
    published: 8211 # Gamerserver port on your host
    protocol: udp
    mode: host
  - target: 25575 # RCON port inside of the container
    published: 25575 # RCON port on your host
    protocol: tcp
    mode: host
environment:
  - TZ=Asia/Shanghai # Change this for logging and backup, see "Environment-Variables" 
  - ALWAYS_UPDATE_ON_START=true
  - MULTITHREAD_ENABLED=true
  - COMMUNITY_SERVER=true
  - BACKUP_ENABLED=true
  - BACKUP_CRON_EXPRESSION=0 * * * *
  - STEAMCMD_VALIDATE_FILES=true
  - SERVER_SETTINGS_MODE=auto
  - NETSERVERMAXTICKRATE=120
  - DIFFICULTY=None
  - DAYTIME_SPEEDRATE=2.000000
  - NIGHTTIME_SPEEDRATE=4.000000
  - EXP_RATE=2.000000
  - PAL_CAPTURE_RATE=20.000000
  - PAL_SPAWN_NUM_RATE=5.000000
  - PAL_DAMAGE_RATE_ATTACK=1.500000
  - PAL_DAMAGE_RATE_DEFENSE=1.000000
  - PLAYER_DAMAGE_RATE_ATTACK=1.500000
  - PLAYER_DAMAGE_RATE_DEFENSE=1.000000
  - PLAYER_STOMACH_DECREASE_RATE=1.000000
  - PLAYER_STAMINA_DECREACE_RATE=1.000000
  - PLAYER_AUTO_HP_REGENE_RATE=1.000000
  - PLAYER_AUTO_HP_REGENE_RATE_IN_SLEEP=1.000000
  - PAL_STOMACH_DECREACE_RATE=1.000000
  - PAL_STAMINA_DECREACE_RATE=1.000000
  - PAL_AUTO_HP_REGENE_RATE=1.000000
  - PAL_AUTO_HP_REGENE_RATE_IN_SLEEP=1.000000
  - BUILD_OBJECT_DAMAGE_RATE=1.000000
  - BUILD_OBJECT_DETERIORATION_DAMAGE_RATE=1.000000
  - COLLECTION_DROP_RATE=1.000000
  - COLLECTION_OBJECT_HP_RATE=1.000000
  - COLLECTION_OBJECT_RESPAWN_SPEED_RATE=1.000000
  - ENEMY_DROP_ITEM_RATE=1.000000
  - DEATH_PENALTY=None
  - ENABLE_PLAYER_TO_PLAYER_DAMAGE=false
  - ENABLE_FRIENDLY_FIRE=false
  - ENABLE_INVADER_ENEMY=true
  - ACTIVE_UNKO=false
  - ENABLE_AIM_ASSIST_PAD=true
  - ENABLE_AIM_ASSIST_KEYBOARD=false
  - DROP_ITEM_MAX_NUM=5000
  - DROP_ITEM_MAX_NUM_UNKO=100
  - BASE_CAMP_MAX_NUM=256
  - BASE_CAMP_WORKER_MAXNUM=15
  - DROP_ITEM_ALIVE_MAX_HOURS=1.000000 
  - AUTO_RESET_GUILD_NO_ONLINE_PLAYERS=false
  - AUTO_RESET_GUILD_TIME_NO_ONLINE_PLAYERS=72.000000
  - GUILD_PLAYER_MAX_NUM=20
  - PAL_EGG_DEFAULT_HATCHING_TIME=0.000000
  - WORK_SPEED_RATE=2.000000 
  - IS_MULTIPLAY=true
  - IS_PVP=true
  - CAN_PICKUP_OTHER_GUILD_DEATH_PENALTY_DROP=false
  - ENABLE_NON_LOGIN_PENALTY=true
  - ENABLE_FAST_TRAVEL=true
  - IS_START_LOCATION_SELECT_BY_MAP=true
  - EXIST_PLAYER_AFTER_LOGOUT=false
  - ENABLE_DEFENSE_OTHER_GUILD_PLAYER=false
  - COOP_PLAYER_MAX_NUM=8
  - MAX_PLAYERS=32
  - SERVER_NAME=tefuir私服
  - SERVER_DESCRIPTION=Palworld-Dedicated-Server running in Docker by jammsen
  - ADMIN_PASSWORD=40061198
  - SERVER_PASSWORD=tefuir
  - PUBLIC_PORT=8211
  - PUBLIC_IP=
  - RCON_ENABLED=false
  - RCON_PORT=25575
  - REGION=
  - USEAUTH=true
  - BAN_LIST_URL=https://api.palworldgame.com/api/banlist.txt
volumes:
  - ./game:/palworld

The following is the configuration file generated by the server: [/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="tefuir私",ServerDescription="Palworld-Dedicated-Server running in Docker by jammsen",AdminPassword="40061198",ServerPassword="tefuir",PublicPort=8211,PublicIP="",RCONEnabled=false,RCONPort=25575,Region="",bUseAuth=True,BanListURL="https://api.palworldgame.com/api/banlist.txt")

Links to screenshots

No response

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Software setup

Hardware setup

Additional context

No response

jammsen commented 9 months ago

Hey @tefuirZ As i see this right now, some values and used and some dont.

Please do a fresh install of this image with a new game directory and force-pull the "latest" image, you might just dont have the latest bug-fixes downloaded.

xxwwjj commented 9 months ago

@tefuirZ 重建的时候在环境变量里改

tefuirZ commented 9 months ago

Hey @tefuirZ As i see this right now, some values and used and some dont.

Please do a fresh install of this image with a new game directory and force-pull the "latest" image, you might just dont have the latest bug-fixes downloaded.

It has been fixed now. It turns out it was really a version problem. Another problem is how do we roll back the file? If I replace the current file with the backup file, I will not be able to enter the server directly. Another suggestion is to add the server monitoring panel to the container https://github.com/Hoshinonyaruko/palworld-go This is a good server operation and maintenance panel

jammsen commented 9 months ago

Another problem is how do we roll back the file?

What file?

Another suggestion is to add the server monitoring panel to the container https://github.com/Hoshinonyaruko/palworld-go This is a good server operation and maintenance panel

You mean to solve your problem? Or for what is the suggestion?