You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Jordan Brown 7cf0ba8916
Attempt 2 at getting licensing detection to work
2 years ago
.github Adds mapping standards to 2 years ago
SQL JSON feedback (#32188) 2 years ago
_maps Various Meta area fixes (#32856) 2 years ago
code Merge pull request #32844 from ShizCalev/code-cleanup 2 years ago
config Merge remote-tracking branch 'mrstonedone/myhill' into HEAD 2 years ago
goon Makes firealarm sound quieter also stops it from looping 3 years ago
html Automatic changelog generation for PR #32894 [ci skip] 2 years ago
icons Fixes default green banded airlocks missing expanded click area in their sprite. (#32894) 2 years ago
interface Massive research refactor; changes research system to techwebs; Decentralized research 2 years ago
sound Makes you turn when pulling and adds sound to rolling bed and chair (#32778) 2 years ago
strings Merge pull request #31947 from AnturK/yarr 2 years ago
tgui Massive research refactor; changes research system to techwebs; Decentralized research 2 years ago
tools Webhook processor will comment negative PR balances on unlabelled PRs (#32771) 2 years ago
.editorconfig Adds an editorconfig 3 years ago
.gitattributes Merge remote-tracking branch 'upstream/master' into ihateuall 4 years ago
.gitignore Fixes some computer dirs 2 years ago
.travis.yml Updates travis version 2 years ago
LICENSE Attempt 2 at getting licensing detection to work 2 years ago
LICENSE-GPLv3.txt buffs licensing meme 5 years ago Updates the of the repo by changing the links to have https:// (#31854) 2 years ago
TGS3.json Server tools API v3.1 (#31000) 3 years ago
libmysql.dll Updates libmysql.dll to 6.1.6 3 years ago
tgstation.dme Cleans up unused code 2 years ago

/tg/station codebase

Build Status Krihelimeter
Percentage of issues still open Average time to resolve an issue Coverage
forthebadge forthebadge forinfinityandbyond

IRC: irc:// or if you dont have an IRC client, you can click here.


There are a number of ways to download the source code. Some are described here, an alternative all-inclusive guide is also located at

Option 1: Follow this:

Option 2: Download the source code as a zip by clicking the ZIP button in the code tab of (note: this will use a lot of bandwidth if you wish to update and is a lot of hassle if you want to make any changes at all, so it’s not recommended.)


First-time installation should be fairly straightforward. First, you’ll need BYOND installed. You can get it from Once you’ve done that, extract the game files to wherever you want to keep them. This is a sourcecode-only release, so the next step is to compile the server files. Open tgstation.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 tgstation.dmb (DEBUG mode)
tgstation.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. If problems persist, ask for assistance in 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, except Extended, as they have various issues and aren’t currently being tested, so they may have unknown and bizarre bugs. Extended is essentially no mode, and isn’t in the Secret rotation by default as it’s just not very fun.

You’ll also want to edit config/admins.txt to remove the default admins and add your own. “Game Master” is the highest level of access, and probably the one you’ll want to use for now. You can set up your own ranks and find out more in config/admin_ranks.txt

The format is

byondkey = Rank

where the admin rank must be properly capitalised.

Finally, to start the server, run Dream Daemon and enter the path to your compiled tgstation.dmb file. Make sure to set the port to the one you specified in the config.txt, and set the Security box to ‘Safe’. Then press GO and the server should start up and be ready to join. It is also recommended that you set up the SQL backend (see below).


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

Then, extract the new files (preferably into a clean directory, but updating in place should work fine), copy your /config and /data folders back into the new install, overwriting when prompted except if we’ve specified otherwise, and recompile the game. Once you start the server up again, you should be running the new version.


If you’d like a more robust server hosting option for tgstation and its derivatives. Check out our server tools suite at


/tg/station currently comes equipped with five maps.

All maps have their own code file that is in the base of the _maps directory. Maps are loaded dynamically when the game starts. Follow this guideline when adding your own map, to your fork, for easy compatibility.

The map that will be loaded for the upcoming round is determined by reading data/next_map.json, which is a copy of the json files found in the _maps tree. If this file does not exist, the default map from config/maps.txt will be loaded. Failing that, tgstation2 will be loaded. If you want to set a specific map to load next round you can use the Change Map verb in game before restarting the server or copy a json from _maps to data/next_map.json before starting the server. Also, for debugging purposes, ticking a corresponding map’s code file in Dream Maker will force that map to load every round.

If you are hosting a server, and want randomly picked maps to be played each round, you can enable map rotation in config.txt and then set the maps to be picked in the maps.txt file.

Anytime you want to make changes to a map it’s imperative you use the Map Merging tools


/tg/station supports loading away missions however they are disabled by default.

Map files for away missions are located in the _maps/RandomZLevels directory. Each away mission includes it’s own code definitions located in /code/modules/awaymissions/mission_code. These files must be included and compiled with the server beforehand otherwise the server will crash upon trying to load away missions that lack their code.

To enable an away mission open config/awaymissionconfig.txt and uncomment one of the .dmm lines by removing the #. If more than one away mission is uncommented then the away mission loader will randomly select one the enabled ones to load.


The SQL backend requires a MySQL server. SQL is required for the library, stats tracking, admin notes, and job-only bans, among other features, mostly related to server administration. Your server details go in /config/dbconfig.txt, and the SQL schema is in /SQL/tgstation_schema.sql and /SQL/tgstation_schema_prefix.sql depending on if you want table prefixes. More detailed setup instructions are located here:


Included in the repository is a python3 compatible IRC bot capable of relaying adminhelps to a specified IRC channel/server, see the /tools/minibot folder for more


Please see


All code after commit 333c566b88108de218d882840e61928a9b759d8f on 2014/31/12 at 4:38 PM PST is licensed under GNU AGPL v3.

All code before commit 333c566b88108de218d882840e61928a9b759d8f on 2014/31/12 at 4:38 PM PST is licensed under GNU GPL v3. (Including tools unless their readme specifies otherwise.)

See LICENSE-AGPLv3.txt and LICENSE-GPLv3.txt for more details.

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. The TGS3 API is licensed as a subproject under the MIT license.

See tgui/ for the MIT license. See tgui/assets/fonts/ for the SIL Open Font License. See the footers of code/__DEFINES/, code/modules/server_tools/, and code/modules/server_tools/ for the MIT license.

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