pelican-eggs / Palworld-Config-Parser-Tool

A simple aplication that edits the Palword server config based on variables
MIT License
13 stars 11 forks source link

Add parameter directyle to the command #2

Closed MrBretze closed 6 months ago

MrBretze commented 6 months ago

Hello, it's possible to add a config key to the command args directly like

./PalworldServerConfigParser -BUILD_OBJECT_DETERIORATION_DAMAGE_RATE=0.00000 -DEATH_PENALTY=NONE -EXP_RATE=5

Because it's not very user-friendly to add a variable to the pterodactyl eggs for every parameter

Regards, MrBretzel.

QuintenQVD0 commented 6 months ago

Hello, it's possible to add a config key to the command args directly like

./PalworldServerConfigParser -BUILD_OBJECT_DETERIORATION_DAMAGE_RATE=0.00000 -DEATH_PENALTY=NONE -EXP_RATE=5

Because it's not very user-friendly to add a variable to the pterodactyl eggs for every parameter

Regards, MrBretzel.

To be honest it is way cleaner as else the startup command will be huge, and you would still need a variable for every thing that should be changeable. as it still would be -BUILD_OBJECT_DETERIORATION_DAMAGE_RATE={{VARIABLE}}

But ENV variables that not exitis will not be parsed, so its up to yourself to change / add the ones you want to be able to be parsed / changed.

QuintenQVD0 commented 6 months ago

I could do it but I personally find that not needed

MrBretze commented 6 months ago

But ENV variables that not exitis will not be parsed, so its up to yourself to change / add the ones you want to be able to be parsed / changed.

Oh okay, I didn't know it sorry

QuintenQVD0 commented 6 months ago

https://github.com/QuintenQVD0/Palword-server-config-parser/blob/main/main.go#L263-L270

if you were interested, this is the logic that will be false (the ok variable) if the variable does not exits and then just skip