Home

Awesome

client-backend

The client app for MAC

Usage steps

  1. Download the latest version from releases, or build the application yourself (if you know what you're doing)
  2. Add -condebug -conclearlog -usercon -g15 to your TF2 launch options (Right click the game in your library -> Properties...)
  3. Add the following lines to your autoexec.cfg file (learn how to find yours here), substituting <password> for a password of your choice, and save it.
ip 0.0.0.0
rcon_password <password>
net_start
  1. If you use mastercomfig, you will have to put your autoexec.cfg inside the overrides folder instead (more information)
  2. Launch TF2
  3. Run the application
  4. Click on the link in your console window or visit localhost:1984 in your browser
  5. You should get a webpage with the UI in it, prompting for a Steam API key and an RCON password.
  6. Get yourself a Steam Web API key from here
  7. Enter the RCON password you set in your autoexec.
  8. When you connect to a match it should show all the players in the match!
  9. Navigate to https://megaanticheat.com/provision to get a Masterbase API key. You will need to sign in with your Steam account.
  10. In the MegaAntiCheat UI, go to the preferences menu on the left sidebar.
  11. Put your Masterbase API key into the respective text field.
  12. Click the "Agree to TOS" checkbox and read the terms and conditions before agreeing.
  13. Now any demo files you record will be automatically streamed to our central server!
  14. Enable automatic demo recordings by going into TF2's advanced options and setting "Recording Mode" to "Auto-record all matches"

Troubleshooting

Documentation

Documentation for the API can be found at https://github.com/MegaAntiCheat/client-backend/wiki/API-Specification

Config files for the application can be found at:

Building

  1. Install Rust from https://www.rust-lang.org/tools/install
  2. Navigate to inside the project folder using your favourite command line interface
  3. Build the UI by running the appropriate include_ui script, see the UI section below for more information
  4. Run with cargo run

UI

To include the provided frontend, run the include_ui.sh (linux/mac) or include_ui.bat (windows) before building with cargo. Some dependencies will need to be installed, they can be found here.

Alternatively, a custom web UI can be built into the project by placing any files in the ui folder at compile time, and they will be served from the web interface. The web UI should include an index.html file as this is where the root URL will redirect to.

File are served starting from http://127.0.0.1:1984/ui/.

Contributing

Always run cargo fmt and resolve any issues reported by cargo clippy before submitting your Merge Request.