- server/
- config/
- enabled/
- disabled/
- binaries/
- start.sh
server/
is the main project folder for the teeworlds server repo,
config/
is for all of the configuration files, and
binaries/
is for all of the actual server code / compiled binaries.
The contents of binaries/
should be gitignored.
./start.sh [--help, -h] [--version, -v] [--config, -c]
- No args, --help: output help message
- --version [version string]: control which version of teeworlds is used (version strings like '0.6.5', '0.6.4', 'fng' would correspond to the name of the folders within
binaries/
) - --version all: loops through all available versions in
binaries/
- --config [config file]: loads a custom config file from
config/
- --config all: loads all available config files in
config/enabled/
and starts a server for each
- Different gamemodes like DDNet / FNG use different commands to start a server, so it might be necessary to keep a list of server binary names and check if they exist in a folder.
- For example: teeworlds-server, DDNet-server, openfng_srv