Skip to content
gamespice-platformPublic

About

The dotserve shell script, which starts a GameSpice Server dedicated server without needing to know how GameSpice Server works. Sensible defaults, a join address printed at startup, and options for the game, port and web clients. Needs bash and a Godot 4.7+ binary; not a Godot addon.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

gsserve starts a GameSpice Server for you without you needing to know how GameSpice Server works. It is a shell script, not a Godot addon. It needs bash and a Godot 4.7+ binary.

GameSpice Server is very configurable (cvars, flags, server.cfg, autoexec.cfg, +command arguments, RCON, layered config from file, environment and command line). gsserve is the easy way in.

Install

./install.sh                         # symlinks into ~/.local/bin
PREFIX=/usr/local/bin sudo ./install.sh

Use

gsserve                             # sensible defaults, prints a join address
gsserve --game res://games/fc       # a specific game
gsserve --port 27015 --web          # also listen for browser clients
gsserve --restart                   # come back up after a crash
gsserve -- +sv_cheats 1 +map dm_box # pass cvars and commands to the server

The first run writes a commented server.cfg under ~/.config/gsserve, generates an RCON password and prints it once. Later runs read the file and never touch it.

What it does for you

Behaviour Why
Prints the address a friend can paste, including a LAN address "It started but my friend cannot connect" is nearly always a bind address or firewall, and knowing which address the server is on is the first step.
Refuses a guessable RCON password An empty one is fine and means RCON does not listen at all. A placeholder copied from a template or forum post is refused.
Never puts the RCON password on a command line server.cfg is written mode 600 first. Command lines and the environment are readable by other processes and end up in bug reports.
Never overwrites server.cfg Your edits are the server's configuration.

Options

Run gsserve --help for all of them. The ones worth knowing:

Option Does
--dry-run Print the command it would run, and exit.
--print-config Print the resolved configuration, and exit.
--install-service [NAME] Print a systemd unit for this invocation.
--restart Restart after a crash, with a growing delay that tops out at 60 seconds.
--web Also serve browser clients, over WebSocket on the game port.

Exit codes tell a supervisor a misconfiguration from a crash:

Code Meaning
2 Usage error
3 No Godot found
4 No project found
5 Bad config
6 Port in use

The generated systemd unit lists them under RestartPreventExitStatus.

Testing

Run tests/selftest.sh. It does not start a real server: a fake godot on PATH stands in for the engine, so it runs on a machine that has none.

Used by

No game vendors it, since it is a command-line tool and not a Godot addon.

The whole collection is at zeesgames.com.

Licence

MIT, see LICENSE. A GameSpice tool built with Claude Code, with a shell self-test you can run offline (see Testing). The games in Zee's Games run on GameSpice servers, but they do not vendor this tool; it is a command-line helper you install on your own machine. Report bugs on the issue tracker.

About

The dotserve shell script, which starts a GameSpice Server dedicated server without needing to know how GameSpice Server works. Sensible defaults, a join address printed at startup, and options for the game, port and web clients. Needs bash and a Godot 4.7+ binary; not a Godot addon.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages