59eb045c1821560a98eeafca6ffd639a46c06115
[xboard.git] / manual / html_node / Load-and-Save-options.html
1 <html lang="en">
2 <head>
3 <title>Load and Save options - XBoard</title>
4 <meta http-equiv="Content-Type" content="text/html">
5 <meta name="description" content="XBoard">
6 <meta name="generator" content="makeinfo 4.13">
7 <link title="Top" rel="start" href="index.html#Top">
8 <link rel="up" href="Options.html#Options" title="Options">
9 <link rel="prev" href="ICS-options.html#ICS-options" title="ICS options">
10 <link rel="next" href="User-interface-options.html#User-interface-options" title="User interface options">
11 <link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
12 <meta http-equiv="Content-Style-Type" content="text/css">
13 <style type="text/css"><!--
14   pre.display { font-family:inherit }
15   pre.format  { font-family:inherit }
16   pre.smalldisplay { font-family:inherit; font-size:smaller }
17   pre.smallformat  { font-family:inherit; font-size:smaller }
18   pre.smallexample { font-size:smaller }
19   pre.smalllisp    { font-size:smaller }
20   span.sc    { font-variant:small-caps }
21   span.roman { font-family:serif; font-weight:normal; } 
22   span.sansserif { font-family:sans-serif; font-weight:normal; } 
23 --></style>
24 </head>
25 <body>
26 <div class="node">
27 <a name="Load-and-Save-options"></a>
28 <p>
29 Next:&nbsp;<a rel="next" accesskey="n" href="User-interface-options.html#User-interface-options">User interface options</a>,
30 Previous:&nbsp;<a rel="previous" accesskey="p" href="ICS-options.html#ICS-options">ICS options</a>,
31 Up:&nbsp;<a rel="up" accesskey="u" href="Options.html#Options">Options</a>
32 <hr>
33 </div>
34
35 <h3 class="section">4.4 Load and Save options</h3>
36
37 <p><a name="index-Options_002c-Load-and-Save-312"></a><a name="index-Load-and-Save-options-313"></a>
38      <dl>
39 <dt>-lgf or -loadGameFile file<dt>-lgi or -loadGameIndex index<dd><a name="index-lgf_002c-option-314"></a><a name="index-loadGameFile_002c-option-315"></a><a name="index-lgi_002c-option-316"></a><a name="index-loadGameIndex_002c-option-317"></a>If the <code>loadGameFile</code> option is set, XBoard loads the specified
40 game file at startup. The file name <samp><span class="file">-</span></samp> specifies the standard
41 input. If there is more than one game in the file, XBoard
42 pops up a menu of the available games, with entries based on their PGN
43 (Portable Game Notation) tags. 
44 If the <code>loadGameIndex</code> option is set to &lsquo;<samp><span class="samp">N</span></samp>&rsquo;, the menu is suppressed
45 and the N th game found in the file is loaded immediately. 
46 The menu is also suppressed if <code>matchMode</code> is enabled or if the game file
47 is a pipe; in these cases the first game in the file is loaded immediately. 
48 Use the <samp><span class="file">pxboard</span></samp> shell script provided with XBoard if you
49 want to pipe in files containing multiple games and still see the menu. 
50 If the loadGameIndex specifies an index -1, this triggers auto-increment
51 of the index in <code>matchMode</code>, which means that after every game the
52 index is incremented by one, causing each game of the match to be played
53 from the next game in the file. Similarly, specifying an index value of -2
54 causes the index to be incremented every two games, so that each game
55 in the file is used twice (with reversed colors). 
56 The <code>rewindIndex</code> option causes the index to be reset to the
57 first game of the file when it has reached a specified value. 
58 <br><dt>-rewindIndex n<dd>Causes a position file or game file to be rewound to its beginning after n
59 positions or games in auto-increment <code>matchMode</code>. 
60 See <code>loadPositionIndex</code> and <code>loadGameIndex</code>. 
61 default: 0 (no rewind). 
62 <br><dt>-td or -timeDelay seconds<dd><a name="index-td_002c-option-318"></a><a name="index-timeDelay_002c-option-319"></a>Time delay between moves during &lsquo;<samp><span class="samp">Load Game</span></samp>&rsquo; or &lsquo;<samp><span class="samp">Analyze File</span></samp>&rsquo;. 
63 Fractional seconds are allowed; try &lsquo;<samp><span class="samp">-td 0.4</span></samp>&rsquo;. 
64 A time delay value of -1 tells
65 XBoard not to step through game files automatically. Default: 1 second. 
66 <br><dt>-sgf or -saveGameFile file<dd><a name="index-sgf_002c-option-320"></a><a name="index-saveGameFile_002c-option-321"></a>If this option is set, XBoard appends a record of every game
67 played to the specified file. The file name <samp><span class="file">-</span></samp> specifies the
68 standard output. 
69 <br><dt>-autosave/-xautosave or -autoSaveGames true/false<dd><a name="index-autosave_002c-option-322"></a><a name="index-autoSaveGames_002c-option-323"></a>Sets the Auto Save menu option.  See <a href="Options-Menu.html#Options-Menu">Options Menu</a>.  Default: false. 
70 Ignored if <code>saveGameFile</code> is set. 
71 <br><dt>-lpf or -loadPositionFile file<dt>-lpi or -loadPositionIndex index<dd><a name="index-lpf_002c-option-324"></a><a name="index-loadPositionFile_002c-option-325"></a><a name="index-lpi_002c-option-326"></a><a name="index-loadPositionIndex_002c-option-327"></a>If the <code>loadPositionFile</code> option is set, XBoard loads the
72 specified position file at startup. The file name <samp><span class="file">-</span></samp> specifies the
73 standard input. If the <code>loadPositionIndex</code> option is set to N,
74 the Nth position found in the file is loaded; otherwise the
75 first position is loaded. 
76 If the loadPositionIndex specifies an index -1, this triggers auto-increment
77 of the index in <code>matchMode</code>, which means that after every game the
78 index is incremented by one, causing each game of the match to be played
79 from the next position in the file. Similarly, specifying an index value of -2
80 causes the index to be incremented every two games, so that each position
81 in the file is used twice (with the engines playing opposite colors). 
82 The <code>rewindIndex</code> option causes the index to be reset to the
83 first position of the file when it has reached a specified value. 
84 <br><dt>-spf or -savePositionFile file<dd><a name="index-spf_002c-option-328"></a><a name="index-savePositionFile_002c-option-329"></a>If this option is set, XBoard appends the final position reached
85 in every game played to the specified file. The file name <samp><span class="file">-</span></samp>
86 specifies the standard output. 
87 <br><dt>-pgnExtendedInfo true/false<dd><a name="index-pgnExtendedInfo_002c-option_0060-330"></a>If this option is set, XBoard saves depth, score and time used for each
88 move that the engine found as a comment in the PGN file. 
89 Default: false. 
90 <br><dt>-pgnEventHeader string<dd><a name="index-pgnEventHeader_002c-option_0060-331"></a>Sets the name used in the PGN event tag to string. 
91 Default: "Computer Chess Game". 
92 <br><dt>-saveOutOfBookInfo true/false<dd><a name="index-saveOutOfBookInfo_002c-option_0060-332"></a>Include the information on how the engine(s) game out of its opening book
93 in a special 'annotator' tag with the PGN file. 
94 <br><dt>-oldsave/-xoldsave or -oldSaveStyle true/false<dd><a name="index-oldsave_002c-option-333"></a><a name="index-oldSaveStyle_002c-option-334"></a>Sets the Old Save Style menu option.  See <a href="Options-Menu.html#Options-Menu">Options Menu</a>.  Default: false. 
95 <br><dt>-gameListTags string<dd><a name="index-gameListTags_002c-option-335"></a>The character string lists the PGN tags that should be printed in the
96 Game List, and their order. The meaning of the codes is e=event,
97 s=site, d=date, o=round, p=players, r=result, w=white Elo, b=black Elo,
98 t=time control, v=variant, a=out-of-book info, c=result comment. 
99 Default: "eprd"
100 <br><dt>-ini or -settingsFile filename<dt>-saveSettingsFile filename<dt>@filename<dd><a name="index-saveSettingsFile_002c-option-336"></a><a name="index-SettingsFile_002c-option-337"></a><a name="index-init_002c-option-338"></a><a name="index-at-sign_002c-option-339"></a>When XBoard encounters an option -settingsFile (or -ini for short),
101 or @filename, it tries to read the mentioned file,
102 and substitutes the contents of it (presumaby more command-line options)
103 in place of the option. 
104 In the case of -ini or -settingsFile, the name of a successfully read
105 settings file is also remembered as the file to use for saving settings
106 (automatically on exit, or on user command). 
107 An option of the form @filename does not affect saving. 
108 The option -saveSettingsFile does specify a name of the file to use
109 for saving, without reading any options from it, and is thus also effective
110 when the file did not exist yet. 
111 So the settings will be saved to the file specified in the last
112 -saveSettingsFile or succesfull -settingsFile / -ini command,
113 if any, and in /etc/xboard/xboard.conf otherwise. 
114 Usualy the latter is only accessible for the system administrator, though,
115 and will be used to contain system-wide default setings, amongst which
116 a -saveSettingsFile and -settingsFile options to specify a settings file
117 accessible to the individual user, such as ~/.xboardrc in the user's
118 home directory. 
119 </dl>
120
121    </body></html>
122