thijsvanloef / palworld-server-docker

A Docker Container to easily run a Palworld dedicated server.
https://hub.docker.com/r/thijsvanloef/palworld-server-docker
MIT License
2.43k stars 295 forks source link

0.18 doesn't properly set the server name #197

Closed urbenlegend closed 9 months ago

urbenlegend commented 9 months ago

Describe the bug

With the 0.18 update, it seems like the server name is no longer set correctly. For example, my server name is Frag End, but in the game's server browser, it now shows up as "Frag. This only started happening with today's update.

To Reproduce

Steps to reproduce the behavior:

  1. Update to 0.18
  2. Set the server name to something with multiple words
  3. Go into the in-game server list and browse by Recent.
  4. Notice that the server name begins with opening double quotes and is truncated.

Expected behavior

Server name is properly set

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information)

docker-compose.yml contents

services:
   palworld:
      image: thijsvanloef/palworld-server-docker:latest
      restart: always
      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=true
         - RCON_ENABLED=true
         - RCON_PORT=25575
         - ADMIN_PASSWORD="redacted"
         - 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="redacted"
         - SERVER_NAME="Frag End"
      volumes:
         - ./palworld:/palworld/

Container/Host Logs

Additional context

Add any other context about the problem here.

thijsvanloef commented 9 months ago

@urbenlegend I'll check it later tonight, thanks for the report

thijsvanloef commented 9 months ago

As a troubleshooting step, what happens when you remove the quotes from the ENV var?

okashi-ya commented 9 months ago
thijsvanloef commented 9 months ago

and does the SERVER_DESCRIPTION honor spaces?

Wanhack commented 9 months ago

Having a similar issue, tried changing the server name to a different one.

Original Server name: "Test Server" What it shows in Game: "Test

Tried to change it to different ones but it hasn't changed. Did not have a server description when I launched the server and I added one later but it hasn't added anything.

Updated to recent container: When the server started it refreshed the world and set a new name which was Test_Server (No quotes in the compose file) could it be that it only sets a name on start and keeps it until the server has been reset?

thijsvanloef commented 9 months ago

@urbenlegend I can 100% recreate this error, and found a possible fix, will open a PR and release fix later tonight. Sorry for the inconvenience caused.

urbenlegend commented 9 months ago

@thijsvanloef Thanks for the quick debug and fix!