1SPRING(6) Games SPRING(6)
2
3
4
6 spring - An open source RTS game engine - Default Engine
7
9 spring [-f|--fullscreen] [-w|--window] [-m|--minimise] [--safemode]
10 [-s|--server IP_OR_HOSTNAME] [-p|--projectiledump] [-t|--textureatlas]
11 [--benchmark TIME [--benchmarkstart TIME]] [-i|--isolation]
12 [--isolation-dir PATH] [-n|--name STRING] [-C|--config FILE] [SCRIPT]
13
14 spring --list-ai-interfaces
15
16 spring --list-skirmish-ais
17
18 spring --list-def-tags
19
20 spring --list-config-vars
21
22 spring [-h|--help]
23
24 spring --sync-version
25
26 spring [-V|--version]
27
29 Spring is a versatile 3D RTS game engine. Using extensively Lua for
30 scripting game-specific code to make nearly every aspect of the engine
31 customizable, from GUI, to unit AI, to pathfinding.
32
33 It is mainly designed around online multiplayer games but can also be
34 played in single-player mode against AIs.
35
36 The engine can run graphics and simulation in two separate threads,
37 depending on the game and engine settings. This will typically boost
38 the performance on multi-core systems.
39
41 -h, --help
42 Print the options help message and exit
43
44 -V, --version
45 Display program version and exit
46
47 --sync-version
48 Display program sync version (for online gaming) and exit
49
50 --nocolor
51 Disables colorized stdout
52
53 --quiet
54 Ignore unreccognized arguments
55
56 -f, --fullscreen
57 Run in fullscreen mode
58
59 -w, --window
60 Run in windowed mode
61
62 -b, --minimise
63 Start in background (minimised)
64
65 --safemode
66 Turns off many things that are known to cause problems (i.e. on
67 PC/Mac’s with lower-end graphic cards)
68
69 -s, --server::'IP_OR_HOSTNAME'
70 Run as a server on the given address
71
72 -t, --textureatlas
73 Dump each finalised textureatlas into textureatlasN.tga
74
75 --benchmark::'TIME'
76 Enable benchmark mode (writes a benchmark.data file). The given
77 number specifies the timespan to test.
78
79 --benchmarkstart::'TIME'
80 Benchmark start time in minutes.
81
82 -i, --isolation
83 Limit the data-dir (games & maps) scanner to one directory (see
84 --isolation-dir and the SPRING_ISOLATED env var)
85
86 --isolation-dir::'PATH'
87 Specify the isolation-mode data-dir (see --isolation and the
88 SPRING_ISOLATED env var)
89
90 --write-dir::'PATH'
91 Specify the directory used for all saving.
92
93 -n, --name::'NAME'
94 Set your player name
95
96 -C, --config::'FILE'
97 Exclusive configuration file
98
99 --list-ai-interfaces
100 Dump a list of available AI Interfaces to STDOUT
101
102 --list-skirmish-ais
103 Dump a list of available Skirmish AIs to STDOUT
104
105 --list-def-tags
106 Dump a list of available Definition Tags in JSON-format to STDOUT
107
108 --list-ceg-classes
109 Dump a list of available Projectile classes in JSON-format to
110 STDOUT
111
112 --list-config-vars
113 Dump all default config vars in JSON-format to STDOUT
114
115 -g, --game::'GAME'
116 instantly start the GAME with a minimal setup. Requires --map to be
117 present, too. Sets the modoption minimalsetup = 1
118
119 -m, --map::'MAP'
120 Requires --game to be set, too. see --game
121
123 ~/.config/spring/
124
125 The default data-directory (see section DATA DIR).
126
127 ~/.config/spring/springsettings.cfg
128
129 Contains the users settings for the engine, for things like graphic and
130 sound.
131
132 /etc/spring/datadir
133
134 Contains the : separated paths to additional data-dirs (see section
135 DATA DIR).
136
138 SPRING_LOG_SECTIONS Selective functionality to change the verbosity
139 (separated by ,).
140
141 SPRING_WRITEDIR Define custom primary write DATA DIR. Place where
142 spring saves logs, settings, ...
143
144 SPRING_DATADIR Adds additional DATA DIRs Spring will search for files
145 (separated by :).
146
147 SPRING_ISOLATED If defined, Spring will stop searching files outside of
148 the binaries directory. If it is set to a valid directory path, it will
149 be used as the isolation directory. See the --isolation and the
150 --isolation-dir options.
151
152 SPRING_NOCOLOR Same as spring --nocolor.
153
155 Can either be a:
156
157 · Spring URL (spring://[username[:password]@]host[:port])
158
159 · start script (often named script.txt)
160
161 · replay file (*.sdf)
162
163 · save game (*.ssf)
164
166 An all-in-one-folder setup, which allows to run Spring without
167 installation. To do so all relevant files (binaries & basecontent) must
168 be in a single folder, esp. spring(.exe), libunitsync.so/unitsync.dll
169 and springsettings.cfg. Spring will then use the all-in-one-folder for
170 writing and won’t do so anywhere else on the system, but it may open
171 other files & directories for reading.
172
174 Not to confuse with Portable Mode, this mode disables all automatic
175 Data Dir scanning and limit reading & writing to a single folder. This
176 is very useful when games want to run separate from other Spring games.
177 Isolation mode can be enabled by placing an empty isolated.txt next to
178 the spring executable or by setting SPRING_ISOLATED env var.
179
181 Data directories are searched for content, and among other things, may
182 contain:
183
184 · config files
185
186 · logs
187
188 · games
189
190 · maps
191
192 · AIs
193
194 · cache
195
196 Sorted by priority the engine may use multiple data directories, but it
197 will use only the one with the highest priority as writable, to write
198 cache & log files to. The hierarchy the engine loads DATA DIRs in can
199 be grouped in 3 sections:
200
201 ┌─────────┬─────────────┬─────────────────┬─────────────────┬─────────────────┐
202 │priority │ section │ normal │ portable │ isolation │
203 ├─────────┼─────────────┼─────────────────┼─────────────────┼─────────────────┤
204 │ │ │ │ │ │
205 │ high │ custom user │ directory │ directory │ directory │
206 │ │ write │ defined via │ defined via │ defined via │
207 │ │ │ --write-dir │ --write-dir │ --write-dir │
208 │ │ │ │ │ │
209 │ │ │ SPRING_WRITEDIR │ SPRING_WRITEDIR │ SPRING_WRITEDIR │
210 │ │ │ envvar │ envvar │ envvar │
211 ├─────────┼─────────────┼─────────────────┼─────────────────┼─────────────────┤
212 │ │ │ │ │ │
213 │ │ automatic │ CONFIG_HOME │ INSTALL_DIR │ ISOLATION_DIR │
214 │ │ scanned │ │ │ │
215 │ │ │ ETC_DIRS │ CONFIG_HOME │ │
216 │ │ │ │ │ │
217 │ │ │ USR_SHARE │ ETC_DIRS │ │
218 │ │ │ │ │ │
219 │ │ │ │ USR_SHARE │ │
220 ├─────────┼─────────────┼─────────────────┼─────────────────┼─────────────────┤
221 │ │ │ │ │ │
222 │ low │ custom user │ SPRING_DATADIR │ SPRING_DATADIR │ SPRING_DATADIR │
223 │ │ read │ envvar │ envvar │ envvar │
224 │ │ │ │ │ │
225 │ │ │ SpringData │ SpringData │ SpringData │
226 │ │ │ configtag │ configtag │ configtag │
227 └─────────┴─────────────┴─────────────────┴─────────────────┴─────────────────┘
228
229 CONFIG_HOME
230 Config directories in user’s home.
231
232 *nix/MacOSX:
233 ${XDG_CONFIG_HOME-"~/.config"}/spring
234
235 ~/.spring
236
237 Windows:
238 C:/.../My Documents/My Games/Spring/
239
240 C:/.../My Documents/Spring/
241
242 C:/.../All Users/Applications/Spring/
243
244 INSTALL_DIR Location of spring binary.
245
246 ETC_DIRS Additional : separated DATA DIRs defined in
247 /etc/spring/datadir.
248
249 USR_SHARE
250 *nix/MacOSX: /usr/.../share/spring & binary dir if is Data Dir
251
252 MacOSX: .../Spring.app/Contents/Resources/share/games/spring/base/
253
254 Windows: Install directory
255
256 ISOLATION_DIR
257 Mode A (--isolation): INSTALL_DIR
258
259 Mode B (--isolation-dir): supplied dir
260
262 Spring can load configurations from multiple files and merge them. So
263 similar to DATA DIRs there is one file where the engine writes to and
264 multiple read-only files.
265
266 It scans following directories for config files :
267
268 ┌──────────┬────────────────────────────────────────────────┐
269 │priority │ scanned directories │
270 ├──────────┼────────────────────────────────────────────────┤
271 │ │ │
272 │exclusive │ file defined via --config │
273 │ │ (when defined only this is │
274 │ │ loaded) │
275 ├──────────┼────────────────────────────────────────────────┤
276 │ │ │
277 │ high │ write DATA DIR │
278 ├──────────┼────────────────────────────────────────────────┤
279 │ │ │
280 │ │ (skipped in Isolated mode) │
281 │ │ │
282 │ │ *nix/MacOSX: ~/.springrc │
283 │ │ │
284 │ │ Windows: │
285 │ │ C:\Users\USER\AppData\Local\springsettings.cfg │
286 ├──────────┼────────────────────────────────────────────────┤
287 │ │ │
288 │ low │ all read DATA DIRs │
289 └──────────┴────────────────────────────────────────────────┘
290
291 (The one with highest priority will be used for writing.)
292
293 The filename of such config files can be as following:
294
295 ┌─────────┬─────────────────────────────────────┐
296 │priority │ filenames │
297 ├─────────┼─────────────────────────────────────┤
298 │ │ │
299 │ high │ springsettings-%Engine_Version%.cfg │
300 ├─────────┼─────────────────────────────────────┤
301 │ │ │
302 │ │ springsettings.cfg │
303 ├─────────┼─────────────────────────────────────┤
304 │ │ │
305 │ │ springrc-%Engine_Version% │
306 │ │ (*nix/MacOSX only) │
307 ├─────────┼─────────────────────────────────────┤
308 │ │ │
309 │ low │ springrc (*nix/MacOSX only) │
310 └─────────┴─────────────────────────────────────┘
311
312 (An example for a versioned config file is "springsettings-94.1.cfg".)
313
315 spring-legacy(6) spring-headless(6) spring-dedicated(6)
316
318 More information about Spring can be found at link:
319 http://springrts.com
320
322 Spring was written by the Spring developers.
323
324 This manual page was written by Marco Amadori
325 <marco.amadori@gmail.com[1]>, for the Debian project (and may be used
326 by others).
327
329 1. marco.amadori@gmail.com
330 mailto:marco.amadori@gmail.com
331
332
333
334Spring package 01/18/2018 SPRING(6)