Loading and versions

How the dedicated server finds and starts gamemodes, and how Godfather versions work.

How the server finds gamemodes and how versions work.

plugins/#

The dedicated server loads every DLL in its plugins/ folder when it starts, finds the classes marked [Gamemode], and starts the one server.json names in "gameMode". The server log says what it found:

text
1[Alt-SA][Godfather] found gamemode 'hello-godfather' 0.1.0 in HelloGodfather2[Alt-SA][Godfather] activated 'hello-godfather' 0.1.0 (Godfather API 0.2.0), storage in ...\data\godfather\godfather.db
JSON
1{2  "name": "My server",3  "port": 7777,4  "gameMode": "hello-godfather"5}

You can also choose it on the command line: Alt-SA-Server.exe -batchmode -nographics -dedicated -gameMode hello-godfather.

Godfather.dll itself ships with the engine; don't copy it into plugins/. If the named gamemode isn't found, the log lists the ones that were.

Versioning#

Godfather follows semantic versioning from v1.0. Before that, minor versions may break gamemodes, and every break is listed in the Godfather changelog. The engine and Godfather versions a server runs are in its log.