settings are not stored

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
indietrash
Engineer
Engineer
Posts: 7
Joined: 31 Mar 2008 18:20
Location: Norway
Contact:

settings are not stored

Post by indietrash »

hi,

when I start the game I can choose my preferred currency and what side of the road the cars drive on and whatever - but when I restart the game, it doesn't remember my settings. thus I have to set them all over again whenever I reset the game. is it meant to be like this? any help would be good.

(I am running the game in a GNU environment)
no big deal
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: settings are not stored

Post by Eddi »

make sure you have write permissions to openttd.cfg.

change a setting from the main menu, exit the game and restart it to confirm that settings can now be stored
indietrash
Engineer
Engineer
Posts: 7
Joined: 31 Mar 2008 18:20
Location: Norway
Contact:

Re: settings are not stored

Post by indietrash »

hi,

I don't actually have an openttd.cfg file. can I just make one? and should it be in ~/.openttd or somewhere in "/usr/share/games/openttd/"?
no big deal
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: settings are not stored

Post by Eddi »

if you do not have a config file, it should automatically be created in ~/.openttd the first time you quit.

there is probably debug output where it searches for the cfg, try "-d misc=3"
indietrash
Engineer
Engineer
Posts: 7
Joined: 31 Mar 2008 18:20
Location: Norway
Contact:

Re: settings are not stored

Post by indietrash »

Code: Select all

dbg: [misc] Scanning for tars
dbg: [misc] Scan complete, found 0 files
dbg: [misc] /home/alexander/.openttd/ found as personal directory
dbg: [misc] [Ap] #count   4; #term  0 (0grp); #helipad  0 (0grp); entries   0,   1,   2,   3
dbg: [misc] [Ap] #count  22; #term  2 (1grp); #helipad  0 (0grp); entries  16,  16,  16,  16
dbg: [misc] [Ap] #count  30; #term  3 (1grp); #helipad  0 (0grp); entries  26,  29,  27,  28
dbg: [misc] [Ap] #count  27; #term  3 (1grp); #helipad  0 (0grp); entries  20,  20,  20,  20
dbg: [misc] [Ap] #count  51; #term  6 (2grp); #helipad  2 (1grp); entries  37,  37,  37,  37
dbg: [misc] [Ap] #count  77; #term  8 (2grp); #helipad  2 (1grp); entries  43,  43,  43,  43
dbg: [misc] [Ap] #count   9; #term  0 (0grp); #helipad  1 (1grp); entries   7,   7,   7,   7
dbg: [misc] [Ap] #count   9; #term  0 (0grp); #helipad  1 (1grp); entries   7,   7,   7,   7
dbg: [misc] [Ap] #count  37; #term  3 (1grp); #helipad  2 (1grp); entries  21,  21,  21,  21
dbg: [misc] [Ap] #count  18; #term  0 (0grp); #helipad  1 (1grp); entries   4,   4,   4,   4
dbg: [misc] [Ap] #count  33; #term  0 (0grp); #helipad  3 (1grp); entries  25,  25,  25,  25
dbg: [misc] Loading sound effects...
dbg: [misc] Loading blitter...
does this tell you anything? doesn't look like it makes any attempts to save or whatever.
no big deal
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: settings are not stored

Post by Eddi »

indietrash wrote:

Code: Select all

dbg: [misc] /home/alexander/.openttd/ found as personal directory
this is the place where openttd tries to save the cfg

the cfg is written on exit, but apparently, it is never checked whether writing actually worked. if the file could not be created, check if that directory has write permissions
indietrash
Engineer
Engineer
Posts: 7
Joined: 31 Mar 2008 18:20
Location: Norway
Contact:

Re: settings are not stored

Post by indietrash »

owwwwwww. I created it as root by a mistake. I was symlinking the scenarios from /usr/share/games/openttd/scenarios to ~/.openttd - and I did it as root without realising. I chowned the folder now though so all is good. thanks heaps! :)
no big deal
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: Ahrefs [Bot] and 14 guests