Page 1 of 1

settingsFile option

PostPosted: 10 Oct 2010, 10:16
by vsoljan
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)

Re: settingsFile option

PostPosted: 10 Oct 2010, 14:39
by H.G.Muller
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.

Re: settingsFile option

PostPosted: 10 Oct 2010, 16:55
by vsoljan
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!