SPRING-HEADLESS(6)
okay so bestie, pull up a chair π this is spring-headless β section 6, the Games corner of the manual β and it's the headless build of Spring, an open source RTS game engine. No graphics, no sound, all vibes. Let's get into it. π¦
β¨ NAME β¨
spring-headless β an open source RTS game engine, the Headless Engine era. π
π SYNOPSIS π
okay so here's every single way you can summon her, verbatim, no cap:
spring-headless [--safemode] [-s|--server IP_OR_HOSTNAME]
[-p|--projectiledump] [--benchmark TIME [--benchmarkstart TIME]]
[-i|--isolation] [--isolation-dir PATH] [-n|--name STRING] [-C|--config
FILE] SCRIPT
spring-headless --list-ai-interfaces
spring-headless --list-skirmish-ais
spring-headless --list-def-tags
spring-headless --list-config-vars
spring-headless [-h|--help]
spring-headless --sync-version
spring-headless [-V|--version]
πΈ DESCRIPTION πΈ
Spring is a versatile 3D RTS game engine, and the way she does it is by using Lua extensively for scripting the game-specific code β which means nearly every single aspect of the engine is customizable. GUI? Lua. Unit AI? Lua. Pathfinding? You guessed it, bestie. Lua. ππ
She's mainly designed around online multiplayer games, but she can absolutely also be played in single-player mode against AIs. main character energy either way.
This is the engine version without graphics or sound output. She still runs the full simulation, while spring-dedicated basically only redirects network traffic. So if you wanna test and simulate AI-only games at high speeds on systems that don't have graphics and sound output support β this is the one. periodt. π₯
π OPTIONS π
-h,--helpβ prints the options help message and exits. short, sweet, helpful.-V,--versionβ displays the program version and exits.--sync-versionβ displays the program sync version (for online gaming) and exits.--nocolorβ disables colorized stdout. sad, but okay.--quietβ ignore unrecognized arguments. she's unbothered fr fr.--safemodeβ turns off many things that are known to cause problems (i.e. on PC/Mac's with lower-end graphic cards). safety first, bestie π«Ά-s,--serverIP_OR_HOSTNAME β run as a server on the given address.-i,--isolationβ limit the data-dir (games & maps) scanner to one directory (see--isolation-dirand theSPRING_ISOLATEDenv var).--isolation-dirPATH β specify the isolation-mode data-dir (see--isolationand theSPRING_ISOLATEDenv var).--write-dirPATH β specify the directory used for all saving.-n,--nameNAME β set your player name.-C,--configFILE β exclusive configuration file.--list-ai-interfacesβ dump a list of available AI Interfaces to STDOUT.--list-skirmish-aisβ dump a list of available Skirmish AIs to STDOUT.--list-def-tagsβ dump a list of available Definition Tags in JSON-format to STDOUT.--list-ceg-classesβ dump a list of available Projectile classes in JSON-format to STDOUT.--list-config-varsβ dump all default config vars in JSON-format to STDOUT.-g,--gameGAME β instantly start the GAME with a minimal setup. Requires--mapto be present, too. Sets the modoptionminimalsetup = 1.-m,--mapMAP β requires--gameto be set, too. see--game.
π FILES π
~/.config/spring/β the default data-directory (see section DATA DIR).~/.config/spring/springsettings.cfgβ contains the users settings for the engine, for things like graphic and sound./etc/spring/datadirβ contains the:separated paths to additional data-dirs (see section DATA DIR).
π ENVIROMENT VARIABLES π
(that's how the section is spelled, and I'm not gonna fight her on it π)
SPRING_LOG_SECTIONSβ selective functionality to change the verbosity (separated by,).SPRING_WRITEDIRβ define custom primary write DATA DIR. Place where spring saves logs, settings, ...SPRING_DATADIRβ adds additional DATA DIRs Spring will search for files (separated by:).SPRING_ISOLATEDβ if defined, Spring will stop searching files outside of the binaries directory. If it is set to a valid directory path, it will be used as the isolation directory. See the--isolationand the--isolation-diroptions.SPRING_NOCOLORβ same asspring --nocolor.
π§ SCRIPT π§
The SCRIPT argument can either be a:
- Spring URL (
spring://[username[:password]@]host[:port]) - start script (often named
script.txt) - replay file (
*.sdfz) - save game (
*.ssf)
π PORTABLE MODE π
An all-in-one-folder setup, which allows you to run Spring without installation. To do so, all relevant files (binaries & basecontent) must be in a single folder β esp. spring(.exe), libunitsync.so/unitsync.dll and springsettings.cfg. Spring will then use the all-in-one-folder for writing and won't do so anywhere else on the system β but it may open other files & directories for reading. she stays in her lane, mostly. π
π¦ ISOLATION MODE π¦
Not to be confused with Portable Mode, this mode disables all automatic Data Dir scanning and limits reading & writing to a single folder. This is super useful when games want to run separate from other Spring games. Isolation mode can be enabled by placing an empty isolated.txt next to the spring executable, or by setting the SPRING_ISOLATED env var. π
π DATA DIRS π
Data directories are searched for content, and among other things, may contain:
- config files
- logs
- games
- maps
- AIs
- cache
Sorted by priority, the engine may use multiple data directories β but it will use only the one with the highest priority as writable, to write cache & log files to. The hierarchy the engine loads DATA DIRs in can be grouped into 3 sections:
- high priority β section: custom user write
- normal:
-e directorydefined via--write-dir,SPRING_WRITEDIRenvvar - portable:
-e directorydefined via--write-dir,SPRING_WRITEDIRenvvar - isolation:
-e directorydefined via--write-dir,SPRING_WRITEDIRenvvar
- normal:
- priority: (blank in the original table) β section: automatic scanned
- normal:
-e CONFIG_HOME,ETC_DIRS,USR_SHARE - portable:
-e INSTALL_DIR,CONFIG_HOME,ETC_DIRS,USR_SHARE - isolation:
ISOLATION_DIR
- normal:
- low priority β section: custom user read
- normal:
-e SPRING_DATADIRenvvar,SpringDataconfigtag - portable:
-e SPRING_DATADIRenvvar,SpringDataconfigtag - isolation:
-e SPRING_DATADIRenvvar,SpringDataconfigtag
- normal:
π CONFIG_HOME π
Config directories in user's home.
*nix/MacOSX:
${XDG_CONFIG_HOME-"~/.config"}/spring~/.spring
Windows:
C:/.../My Documents/My Games/Spring/C:/.../My Documents/Spring/C:/.../All Users/Applications/Spring/
β INSTALL_DIR β
Location of the spring-headless binary.
πΈ ETC_DIRS πΈ
Additional : separated DATA DIRs defined in /etc/spring/datadir.
π USR_SHARE π
- *nix/MacOSX:
/usr/.../share/spring& binary dir if is Data Dir - MacOSX:
.../Spring.app/Contents/Resources/share/games/spring/base/ - Windows: Install directory
π₯ ISOLATION_DIR π₯
- Mode A (
--isolation):INSTALL_DIR - Mode B (
--isolation-dir): supplied dir
okay that's the whole data-dir tea for now β and bestie, we're only like halfway π part 2 is coming, don't go anywhere πβ¨
πΎ CONFIG FILES πΎ
okay so bestie, Spring can load configurations from multiple files and merge them. so it's literally the same vibe as DATA DIRs β there's one file where the engine writes to and multiple read-only files. one writer, many readers, main character and the supporting cast, you know how it is π
It scans following directories for config files:
- priority:
exclusiveβ the file defined via--config(when defined, only this is loaded, like it's the only one invited to the party) - priority:
highβ write DATA DIR - priority: (blank) β this one has no priority label, it's just vibing:
-e(skipped in Isolated mode)*nix/MacOSX:~/.springrcWindows:C:\Users\USER\AppData\Local\springsettings.cfg
- priority:
lowβ all read DATA DIRs
(The one with highest priority will be used for writing.) so like, the loudest one in the group chat gets the pen βοΈ
The filename of such config files can be as following:
- priority:
highβspringsettings-%Engine_Version%.cfg - priority: (blank) β
springsettings.cfg - priority: (blank) β
springrc-%Engine_Version%(*nix/MacOSX only) - priority:
lowβspringrc(*nix/MacOSX only)
(An example for a versioned config file is "springsettings-94.1.cfg".) π
π SEE ALSO π
spring(6) spring-legacy(6) spring-dedicated(6)
go read those too, they're the rest of the friend group π«Ά
π HOMEPAGE π
More information about Spring can be found at link: https://springrts.com
https://springrts.com β bookmark it bestie, fr fr β
π AUTHOR π
Spring was written by the Spring developers.
This manual page was written by Marco Amadori <marco.amadori@gmail.com[1]>, for the Debian project (and may be used by others).
so much respect to them, iconic behavior honestly π
π NOTES π
marco.amadori@gmail.commailto:marco.amadori@gmail.com
and that's the whole page bestie!! π¦ this was the Spring package, dated 11/23/2021, and you just finished reading SPRING-HEADLESS(6) π no cap, you ate that. go run something slay β¨π
π¦ where this page comes from
- ubuntu jammy: spring 105.0.1+dfsg-4 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms