Dedicated Server ignores config.cfg

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
EadZ1
Engineer
Engineer
Posts: 3
Joined: 10 Mar 2019 01:45

Dedicated Server ignores config.cfg

Post by EadZ1 » 10 Mar 2019 08:48

Good morning!

For 2 days I've been trying to change settings for my dedicated server. The settings are applied in the config.cfg, but not applied in the game. I couldn't find a solution either here in the forum or in the wiki. That's why I hope for your help.

At first I changed all settings as desired. When no change was made, I saved the config.cfg separately and reinstalled the server. Then I try to chang only single settings, for example, city names from English to German or the starting year. But the game is running with default settings.

What can this be?

Regards

User avatar
jfs
Route Supervisor
Route Supervisor
Posts: 501
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: Dedicated Server ignores config.cfg

Post by jfs » 10 Mar 2019 10:27

Usually the config file is named openttd.cfg, if you named yours differently are you sure you're passing the right filename to the -c commandline parameter?

EadZ1
Engineer
Engineer
Posts: 3
Joined: 10 Mar 2019 01:45

Re: Dedicated Server ignores config.cfg

Post by EadZ1 » 10 Mar 2019 10:44

I didn't change the name if this file, so i think it isn't necessary to use the parameter.

User avatar
jfs
Route Supervisor
Route Supervisor
Posts: 501
Joined: 08 Jan 2003 23:09
Location: Denmark

Re: Dedicated Server ignores config.cfg

Post by jfs » 10 Mar 2019 14:07

Let's try again: If you want OpenTTD to find your config file without using commandline parameter, the name of the file must be "openttd.cfg".

User avatar
planetmaker
OpenTTD Developer
OpenTTD Developer
Posts: 9276
Joined: 07 Nov 2007 22:44
Location: Sol d

Re: Dedicated Server ignores config.cfg

Post by planetmaker » 10 Mar 2019 14:07

Make sure to have your server NOT running when you change the config file; OpenTTD makes a save of the settings upon terminating and might overwrite the changes you made while it was running.

Or use the -c configfilename flag to load from a non-default file which will not be overwritten when OpenTTD terminates.

EadZ1
Engineer
Engineer
Posts: 3
Joined: 10 Mar 2019 01:45

Re: Dedicated Server ignores config.cfg

Post by EadZ1 » 10 Mar 2019 15:47

Oh, I'm sorry. The filename is openttd.cfg and not config.cfg as I wrote above.

I just reinstalled the server again und stopped it immediately. Then I copied the openttd.cfg I've saved before and restarted the server - it works! This I also tried the last 2 days. Don't know why it's running now.

Thanks for your help!

Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 2 guests