mschnitzer / ark-survival-ascended-linux-container-image

A docker/podman container that is able to run an ARK: Survival Ascended on a Linux host.
85 stars 17 forks source link

How do I add a Password to the Server? #16

Closed christian-hager closed 11 months ago

christian-hager commented 11 months ago

Hey there. Could you give me a hint on how to add a password to the server? I tried adding ServerPassword to the Startup-Parameters and to the GameUserSettings.ini but neither seems to work.

DarkVentHead commented 11 months ago

In GameUserSettings.ini, It has to be under the section labeled [ServerSettings]

[ServerSettings] ServerPassword=mypassword

After verifying that it's there by going to (as root): /var/lib/docker/volumes/opt_server-files-1/_data/ShooterGame/Saved/Config/WindowsServer/GameUserSettings.ini

run: docker-compose down (make sure to save first if you've been playing within the last 15 minutes) run: docker-compose up -d

This should work. If not, Please post code / screenshots (blocking out passwords). I do believe Startup-params file was "discontinued" in rev 1.1 so please be sure to run: docker-compose pull (or a docker pull if not using docker-compose) to get the latest version.

If you're referring to asa_start_params in docker-compose then it should look like this: - ASA_START_PARAMS=TheIsland_WP?listen?Port=7777?RCONPort=27020?RCONEnabled=True?ServerPassword=mypassword -WinLiveMaxPlayers=50

christian-hager commented 11 months ago

Thanks, setting the password in the GameUserSettings.ini did actually work today, not sure why it didn't yesterday.