Coder Social home page Coder Social logo

Comments (11)

xHyperElectric avatar xHyperElectric commented on August 15, 2024

I would love to be able to edit any value in the "Pal/Saved/Config/LinuxServer/PalWorldSettings.ini" file, but I'm not sure the best way to do it. Maybe with some guidance, I could submit a PR. Would the best way to handle it just be cd /.../Pal/Saved/Config/LinuxServer/ and something like: sed -i 's/RCONEnabled=False/RCONEnabled=true/' PalWorldSettings.ini?

from palworld-server-docker.

thijsvanloef avatar thijsvanloef commented on August 15, 2024

@xHyperElectric Probably just sed the RCONEnabled in the DefaultPalServerSettings.ini and after all the changes have been made, copy it to the PalServerSettings.ini in /.../Pal/Saved/Config/LinuxServer/

from palworld-server-docker.

xHyperElectric avatar xHyperElectric commented on August 15, 2024

What would be the best way to allow all of the settings in PalWorldSettings.ini to be changed in the docker file?

from palworld-server-docker.

thijsvanloef avatar thijsvanloef commented on August 15, 2024

@xHyperElectric Feel free to open a PR even if you are unsure, we can always take a look at it together :)

from palworld-server-docker.

thijsvanloef avatar thijsvanloef commented on August 15, 2024

@xHyperElectric most user friendly way would be via environment variables

from palworld-server-docker.

xHyperElectric avatar xHyperElectric commented on August 15, 2024

So is it practical to make an environment variable option for all 62 options?

from palworld-server-docker.

thijsvanloef avatar thijsvanloef commented on August 15, 2024

@xHyperElectric no not really practical, that is partly the reason i've yet to work on it, because there isn't really any other "user friendly" way

from palworld-server-docker.

xHyperElectric avatar xHyperElectric commented on August 15, 2024

I think the best way to do it is to add a second Volume for Server Config Storage and have the PalWorldSettings.ini file in there and it overwrites the one in /.../Pal/Saved/Config/LinuxServer/. I think it's recommended to use a bind-mount for this but I am by no means a docker expert.

from palworld-server-docker.

Twinki14 avatar Twinki14 commented on August 15, 2024

On theorizing, it may be possible to dynamically search for environment variables based off DefaultPalServerSettings.ini

For example, given this setting found in DefaultPalServerSettings.ini, bEnablePlayerToPlayerDamage, check if a value is in B_ENABLE_PLAYER_TO_PLAYER_DAMGE, and if so, write to PalServerSettings.ini

This would require generating a PalServerSettings.ini on init. You could loop through all given settings in DefaultPalServerSettings.ini using regex, then see if the given setting has a value in the environment converting the setting string from camelCase to SNAKE_CASE, and then write each setting as you loop to PalServerSettings.ini, defaulting to the default value if the environment variable isn't present.

from palworld-server-docker.

avail avatar avail commented on August 15, 2024

This is unreal engine, meaning https://docs.unrealengine.com/5.2/en-US/configuration-files-in-unreal-engine/ applies.
As such ("Override Configuration from the Command-line" section), you are able to override specific values via commandline

from palworld-server-docker.

Twinki14 avatar Twinki14 commented on August 15, 2024

This is unreal engine, meaning https://docs.unrealengine.com/5.2/en-US/configuration-files-in-unreal-engine/ applies. As such ("Override Configuration from the Command-line" section), you are able to override specific values via commandline

Even better, need to figure out the right syntax for palworld-specific ini settings

from palworld-server-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.