-
-
Notifications
You must be signed in to change notification settings - Fork 829
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ARK] Duplicate parameters | Server config files are overwritten at every server restart. #1104
Comments
@adgriff2 As far as I know usage correct encoding of the file will help solve the problem. Try UTF-16 LE. |
@Smile42RU Thanks for the hand, i got no clue about this. |
I've been running an ark server on this same box for around a year with my own (quite humble) steamcmd script and never had a config encoding issue, odd. My backup configs are all ascii. This is the first time I've tried LGSM. That said, I used iconv to change the encoding to UTF-16LE. This had no effect and was overwritten as soon as the server was started. |
It appears that some options are defined in the startup parms and also in the config file. Maybe these are in conflict? |
Well spotted, it could be ! |
I've reverted to using my previous script for the time being. I'll try to schedule some downtime at some point to play with it. |
We had several people complaining about this recently. So we need to get our hands in it i guess anyways. |
From what I find, this is what Ark does with a config file with an error. My recommendation is to put all of your settings in the |
Are you generating your gameusersettings.ini and copy/pasting it in? |
At first I was, but then I deleted all the configs and let the starting server recreate them. I then restarted the server without altering the configs. The starting server overwrote the configs it had just created. This seems to confirm that the problem isn't linked to a user altering them. |
Here's what I currently use that doesn't have the config overwriting problem. It's just a small script I wrote to stop the server via systemd, forceupdate it, then start it back up via systemd. Below that is the systemd 'script' that contains the startup command that works. It's much more abbreviated than the one used in LGSM. I'm thinking the LGSM startup command may be the problem. [Service] [Install] |
Changing the '#parms variable in arkserver.sh to be more like my old startup command seems to have fixed the problem. I removed args for MultiHome, MaxPlayers, QueryPort, RCONPort, Port, and ServerAdminPassword. I think these are taken care of in the config. |
BTW we have to chose anyways if we put stuff inside the .ini or start parameters in LGSM. There are currently some duplicate parameters. |
I'm on it. |
So, here is what config looks like now
Pull-requesting for a main script fix soon. |
This has been merged.
|
I'm having this issue myself, using the latest and greatest arkserver scripts. Nothing I've tried so far has stopped my config from being overwritten every time I start the server. The weird thing is that I see no message echo'd, and my default config, which I edited, remains intact. I don't know where it's even getting the config file it's using or where in the code it's doing this. |
@jkdoug What are you editing your config with ? Are you sure you're putting settings at the right location ? Are you editing config files while the server is off ? (you should) |
Yes, I stopped the server, edited serverfiles/ShooterGame/Saved/Config/LinuxServer/GameUserSettings.ini with vi, and started the server again. I tried editing arkserver to use the develop branch. It seems that the features are not merged into the master very often. |
@jkdoug Once a week. Changes mentioned here are already implemented. |
Well, I'm sorry, but the changes are not fixing anything for me. Maybe I'll try deleting everything and starting over. |
@jkdoug Any mistake in Ark's config file will make it overwritten. LGSM part about it has been fixed unless proved otherwise. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
All files in these locations are overwritten at every server start:
/home/arkserver/serverfiles/ShooterGame/Saved/Config/LinuxServer/
/home/arkserver/serverfiles/ShooterGame/Saved/Config/CleanSourceConfigs/
arkserver@Server01:~/serverfiles/ShooterGame/Saved/Config/LinuxServer$ stat GameUserSettings.ini
File: ‘GameUserSettings.ini’
Size: 2916 Blocks: 8 IO Block: 4096 regular file
Device: 801h/2049d Inode: 394032 Links: 1
Access: (0600/-rw-------) Uid: ( 1003/arkserver) Gid: ( 1003/arkserver)
Access: 2016-10-06 00:25:36.020873072 -0400
Modify: 2016-10-06 00:39:19.087156534 -0400
Change: 2016-10-06 00:39:19.087156534 -0400
Birth: -
arkserver@Server01:~/serverfiles/ShooterGame/Saved/Config/LinuxServer$ ~/arkserver start
[ OK ] Starting ark-server: ark-server
arkserver@Server01:~/serverfiles/ShooterGame/Saved/Config/LinuxServer$ stat GameUserSettings.ini
File: ‘GameUserSettings.ini’
Size: 2916 Blocks: 8 IO Block: 4096 regular file
Device: 801h/2049d Inode: 394032 Links: 1
Access: (0600/-rw-------) Uid: ( 1003/arkserver) Gid: ( 1003/arkserver)
Access: 2016-10-06 00:41:25.573665726 -0400
Modify: 2016-10-06 00:41:25.577665678 -0400
Change: 2016-10-06 00:41:25.577665678 -0400
Birth: -
I've even tried deleting the entire contents of both folders. The files get recreated and any config changes made are overwritten.
The text was updated successfully, but these errors were encountered: