Preferences aren't saved

Problems with the Linux version of Darwinia

Moderators: jelco, bert_the_turtle, Chris, andy, John

coolsi
level5
level5
Posts: 3990
Joined: Wed Apr 10, 2002 6:46 pm

Preferences aren't saved

Postby coolsi » Tue Dec 21, 2004 11:48 pm

It seems that any options chosen in the menu aren't saved to disk, as when Darwinia is restarted all options are back to their defaults. Looking in ~/.darwinia/, there are no files except for a dir called 'demo' which is also empty.
User avatar
sysrq
level2
level2
Posts: 123
Joined: Wed Mar 20, 2002 4:52 am

Postby sysrq » Wed Dec 22, 2004 12:21 am

in the demo dir `touch preferences.txt`
DEATH TO DUCKS!!!
coolsi
level5
level5
Posts: 3990
Joined: Wed Apr 10, 2002 6:46 pm

Postby coolsi » Wed Dec 22, 2004 12:24 am

Doing that causes the following to happen:

Code: Select all

simon@super:~/darwinia$ ./darwinia
SDL Version: Compiled against 1.2.8, running with 1.2.8
Creating ResourceManager: 1.0

Creating SoundSystem: 1.7

Creating ClientToServer: 1.7

Couldn't open language file
simon@super:~/darwinia$


I'd try it with an existing preferences.txt but I haven't got any.
User avatar
sysrq
level2
level2
Posts: 123
Joined: Wed Mar 20, 2002 4:52 am

Postby sysrq » Wed Dec 22, 2004 12:25 am

DEATH TO DUCKS!!!
coolsi
level5
level5
Posts: 3990
Joined: Wed Apr 10, 2002 6:46 pm

Postby coolsi » Wed Dec 22, 2004 12:29 am

It runs now, with your preferences, but still doesn't save any changes I make in the menu :|
User avatar
sysrq
level2
level2
Posts: 123
Joined: Wed Mar 20, 2002 4:52 am

Postby sysrq » Wed Dec 22, 2004 12:32 am

check permissions of the file and its subdirectorys? Also might try running an strace to see whats going on. I ran an strace and found that whens its trying to open the preferences file with write permisions the path is incorrect, must be a typo in the code.
DEATH TO DUCKS!!!
coolsi
level5
level5
Posts: 3990
Joined: Wed Apr 10, 2002 6:46 pm

Postby coolsi » Wed Dec 22, 2004 12:42 am

I can confirm this:

simon@super:~/darwinia$ cat hate | grep preferences.txt
open("/home/simon/.darwinia/demo/preferences.txt", O_RDONLY) = 5
open("/home/simon/.darwinia/demo//home/simon/.darwinia/demo/preferences.txt", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 ENOENT (No such file or directory)
open("/home/simon/.darwinia/demo//home/simon/.darwinia/demo/preferences.txt", O_WRONLY|O_CREAT|O_TRUNC, 0666) = -1 ENOENT (No such file or directory)
User avatar
John
Introversion Staff
Introversion Staff
Posts: 511
Joined: Sun Dec 10, 2000 6:22 pm
Location: London, UK

Postby John » Fri Dec 24, 2004 4:49 pm

Thanks. Should be fixed next beta

Return to “Linux Issues”

Who is online

Users browsing this forum: No registered users and 12 guests