Skip to content
The code for Baystation12's branch of SS13
Branch: dev
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update May 24, 2019
code Adds Chaplain insignia to loadout; adds Sikhism to human religions Jul 19, 2019
config Added a webhook system based on the Aurora implementation. Jul 2, 2019
fonts/Shage Adds the Shage language Jan 2, 2018
html Automatic changelog update [ci skip] Jul 19, 2019
icons Adds Chaplain insignia to loadout; adds Sikhism to human religions Jul 19, 2019
ingame_manuals Implements github suggestions May 23, 2015
interface Removes outdated and empty skin category Jun 28, 2019
maps Adds Chaplain insignia to loadout; adds Sikhism to human religions Jul 19, 2019
nano parent 9bb8699 Jun 20, 2019
news_articles Removes mentions of things that have been nuked from lore. Oct 29, 2018
scripts Reduces Travis spam. Dec 7, 2018
sound Split grinder into reagent grinder and juicer Jul 14, 2019
sql Add SQL migrate thing Apr 7, 2018
test Added a recipe codex category and SScuisine. Jul 7, 2019
tools Handle errors in dmitool Jul 12, 2019
~code Moves chem reactions onto SSchemistry. Sep 23, 2018
.dockerignore Dockerize database and gameserver Dec 18, 2017
.editorconfig Edits .editorconfig. Feb 3, 2017
.gitattributes Adds the .gitattribute newline enforcement. Jan 17, 2017
.gitignore Updated .gitignore. Jul 11, 2019
.travis.yml Adds a webhook for Travis failures. Jul 10, 2019
Dockerfile Sets up webhook docker stuff. Jul 8, 2019
GPL3.txt GitHub license recognition part 2 Feb 15, 2019
LICENSE GitHub license recognition part 2 Feb 15, 2019 Added a webhook for the Skrell ship. Jul 11, 2019
azure-pipelines.yml fix custom items, missing arg in pipeline build Oct 9, 2018
baystation12.dme Adds Chaplain insignia to loadout; adds Sikhism to human religions Jul 19, 2019
docker-compose.yml Dockerize database and gameserver Dec 18, 2017 Might improve quality of runtime logging. Oct 6, 2018
flyway.conf Use flyway for SQL setup/migration Feb 9, 2016 Add fancy testing script, make Travis use it Mar 31, 2017
libmysql.dll Added libmysql.dll, a required file many lack to get the MySQL functi… Sep 1, 2010


Website - Code - Discord - IRC


The code for Baystation12 is licensed under the GNU Affero General Public License v3, which can be found in full in LICENSE.

Code with a git authorship date prior to 1420675200 +0000 (2015/01/08 00:00) is licensed under the GNU General Public License version 3, which can be found in full in GPL3.txt.

All code where the authorship dates are not prior to 1420675200 +0000 is assumed to be licensed under AGPL v3, if you wish to license under GPL v3 please make this clear in the commit message and any added files.

If you wish to develop and host this codebase in a closed source manner you may use all commits prior to 1420675200 +0000, which are licensed under GPL v3. The major change here is that if you host a server using any code licensed under AGPLv3 you are required to provide full source code for your servers users as well including addons and modifications you have made.

See here for more information.

tgui clientside is licensed as a subproject under the MIT license. Font Awesome font files, used by tgui, are licensed under the SIL Open Font License v1.1 tgui assets are licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

See tgui/ for the MIT license. See tgui/assets/fonts/ for the SIL Open Font License.

All assets including icons and sound are under a Creative Commons 3.0 BY-SA license unless otherwise indicated.


The simplest way to obtain the code is using the github .zip feature.

Click here to get the latest code as a .zip file, then unzip it to wherever you want.

The more complicated and easier to update method is using git. You'll need to download git or some client from here. When that's installed, right click in any folder and click on "Git Bash". When that opens, type in:

git clone

(hint: hold down ctrl and press insert to paste into git bash)

This will take a while to download, but it provides an easier method for updating.


First-time installation should be fairly straightforward. First, you'll need BYOND installed. You can get it from here.

This is a sourcecode-only release, so the next step is to compile the server files. Open baystation12.dme by double-clicking it, open the Build menu, and click compile. This'll take a little while, and if everything's done right you'll get a message like this:

saving baystation12.dmb (DEBUG mode)

baystation12.dmb - 0 errors, 0 warnings

If you see any errors or warnings, something has gone wrong - possibly a corrupt download or the files extracted wrong, or a code issue on the main repo. Ask on IRC.

Once that's done, open up the config folder. You'll want to edit config.txt to set the probabilities for different gamemodes in Secret and to set your server location so that all your players don't get disconnected at the end of each round. It's recommended you don't turn on the gamemodes with probability 0, as they have various issues and aren't currently being tested, so they may have unknown and bizarre bugs.

You'll also want to edit admins.txt to remove the default admins and add your own. "Game Master" is the highest level of access, and the other recommended admin levels for now are "Game Admin" and "Moderator". The format is:

byondkey - Rank

where the BYOND key must be in lowercase and the admin rank must be properly capitalised. There are a bunch more admin ranks, but these two should be enough for most servers, assuming you have trustworthy admins.

Finally, to start the server, run Dream Daemon and enter the path to your compiled baystation12.dmb file. Make sure to set the port to the one you specified in the config.txt, and set the Security box to 'Trusted'. Then press GO and the server should start up and be ready to join.


If you wish to use Discord webhooks, which are a way of passing information from the server to a Discord channel, you will need to copy webhooks.json into config/ from config/example/ and add definitions pointing the desired event at the desired Discord webhook URL. Valid webhook IDs as of time of writing are as follows:

  • webhook_roundend: The round has ended. Will include the mode name and summarize survivors and ghosts.
  • webhook_roundstart: The master controller has finished initializing and the round will begin soon.
  • webhook_submap_loaded: A submap has been loaded and placed, and is available for people to join. Includes the name of the submap.
  • webhook_submap_vox: The vox submap specifically has been loaded and placed. This is distinct for the purposes of tagging vox players with a @mention.
  • webhook_submap_skrell: The Skrell submap specifically has been loaded and placed. This is distinct for the purposes of tagging Skrell players with a @mention.
  • webhook_custom_event: The custom event text for the round has been set or changed.

Each definition can optionally include an array of roles to mention when the webhook is called. Roles must be provided using the role ID (ex. <@&555231866735689749>), which can be obtained by writing \@somerole into the chat, in order for pinging to work correctly.

Webhooks additionally require a HTTP POST library called byhttp. The compiled lib, byhttp.dll on Windows or on Linux, must be placed in the lib directory by default in order for webhooks to function. The DLL location can be customized by supplying WINDOWS_HTTP_POST_DLL_LOCATION UNIX_HTTP_POST_DLL_LOCATION, or HTTP_POST_DLL_LOCATION as preprocessor macros containing the desired path.


To update an existing installation, first back up your /config and /data folders as these store your server configuration, player preferences and banlist.

If you used the zip method, you'll need to download the zip file again and unzip it somewhere else, and then copy the /config and /data folders over.

If you used the git method, you simply need to type this in to git bash:

git pull

When this completes, copy over your /data and /config folders again, just in case.

When you have done this, you'll need to recompile the code, but then it should work fine.


For a basic setup, simply copy every file from config/example to config.

SQL Setup

The SQL backend for the library/stats and bans requires a MySQL server. Your server details go in config/dbconfig.txt.

For initial setup and migrations refer to sql/

You can’t perform that action at this time.