
I personally use MinGW, but it's a pain on Windows.
Install a C compiler (see Installing Cython). Make sure the python and pip commands point to Python 3.9.x (future versions should work too). Copy the entire source to another location (sorry) and put the files outside of TF2 Rich Presence into that folder. Either clone the repo or download the source. Building from sourceįor making and testing changes, or simply always running the most up-to-date code. The game process is also queried for its start time and install path, and the server you're playing on is queried for player count or kill counts. For transparency, here's the complete list of external files that are read from and/or written to: \tf\console.log, \tf\cfg\*class*.cfg and steam_appid.txt in TF2's install, and \userdata\*id*\config\localconfig.vdf and \steamapps\libraryfolders.vdf in Steam's. The game's runtime and memory are never touched in any way to read its state. If you don't want to risk it then fair enough, but I've run this on my main account for years and feel comfortable with it. Alternatively, following most or all of the "building from source" instructions might work, or possibly running python resources/launcher.py in a -nocython build. Contributors are very welcome! Also check out cyclowns/tf2-discord, which is confirmed to work on both Windows and Linux, or EmeraldSnorlax/TF2-RPC, which is a much less mature program but is built on Linux and theoretically cross-platform too. They probably work since Jan200101 did some work on Linux a while ago, but the release builds are formatted for Windows.
ChangelogsĪt the moment, both are considered unsupported. Requires Discord and Steam to be running as well, and will wait until the game and both programs are running. Note that having Python installed is not required. Installer: TF2RichPresence_v2.1_setup (14.6 MB)Īlternatively, get the latest autobuild (may be untested/buggy): TF2RichPresence_v2.1_setup Version 2 (GUI, map images, and more): out now!.Configurable, reliable, and performance-efficient.
Detects current game state, queue info, playtime, and more.Discord Rich Presence for Team Fortress 2