Page 1 of 1
settings are not stored
Posted: 25 Jun 2009 21:12
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)
Re: settings are not stored
Posted: 25 Jun 2009 21:38
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
Re: settings are not stored
Posted: 25 Jun 2009 22:25
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/"?
Re: settings are not stored
Posted: 25 Jun 2009 22:30
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"
Re: settings are not stored
Posted: 25 Jun 2009 23:41
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.
Re: settings are not stored
Posted: 26 Jun 2009 00:47
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
Re: settings are not stored
Posted: 26 Jun 2009 01:29
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!
