MegaAntiCheat / client-backend

GNU General Public License v3.0
117 stars 24 forks source link

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)
    ip 0.0.0.0
    rcon_password mac_rcon
    net_start
  4. If you use mastercomfig, you will have to put your autoexec.cfg inside the overrides folder instead (more information)
  5. Launch TF2
  6. Run the application
  7. Click on the link in your console window or visit localhost:3621 in your browser
  8. You should get a webpage with the UI in it, prompting for a Steam API key and an RCON password.
  9. Get yourself a Steam Web API key from here
  10. Enter the RCON password you set in your autoexec.
  11. When you connect to a match it should show all the players in the match!
  12. Navigate to https://megaanticheat.com/provision to get a Masterbase API key. You will need to sign in with your Steam account.
  13. In the MegaAntiCheat UI, go to the preferences menu on the left sidebar.
  14. Put your Masterbase API key into the respective text field.
  15. Click the "Agree to TOS" checkbox and read the terms and conditions before agreeing.
  16. Now any demo files you record will be automatically streamed to our central server!
  17. 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:3621/ui/.

Contributing

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