settingsFile option

Discussions about the WinBoard protocol. Here you can also report bugs and request new features.

Moderators: hgm, Andres Valverde

settingsFile option

Postby vsoljan » 10 Oct 2010, 10:16

As I use different options when playing on FICS and when analyzing the game with engine I invoke FICS mode with "Winboard.exe @fics.ini"

My fics.ini looks like this:

/ics
/icshost="freechess.org"
/icshelper="timeseal"
/seekGraph=true
/autoRefresh=true
/engineOutputUp=false
/evalGraphUp=false
/soundBell=".\Sounds\move.wav"
/saveSettingsOnExit=false
/settingsFile=".\ficsuser.ini"

Last line was supposed to define a file to which "Save settings" will write the user settings so that "Save settings" command does not change winboard.ini nor fics.ini
But I cannot get Winboard to write settings to any other file than winboard.ini whatever I put in fics.ini or command line.
Is this a bug or I am doing something wrong?

(I am using latest experimental build of Winboard - http://hgm.nubati.net/winboard0526.zip)
vsoljan
 
Posts: 24
Joined: 28 Sep 2009, 14:15

Re: settingsFile option

Postby H.G.Muller » 10 Oct 2010, 14:39

The file given in /settingsFile only takes effect when settings are first succesfully read from there (i.e., it must pre-exist). I guess this was a safety feature to make sure the settings were written somewhere, in case the user would specify a file where he has no write premission; if the settingsFile name was already changed, there would be no way to switch back to the old one.

To circumvent this in cases where it is annoying, I created a new option /saveSettingsFile, which unconditionally redefines the name, and does not try to read the file first. You would either have to add that option, or first copy an existing ini file to the location you want.
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: settingsFile option

Postby vsoljan » 10 Oct 2010, 16:55

Now I remember seeing that "/saveSettingsFile" command somewhere but as I did not find it in help file I confused it with "/settingsFile" command.
With "/saveSettingsFile" it all works as I wanted.
Thanks!
vsoljan
 
Posts: 24
Joined: 28 Sep 2009, 14:15


Return to WinBoard development and bugfixing

Who is online

Users browsing this forum: No registered users and 7 guests