Skip to content
linuxgamer edited this page May 26, 2026 · 7 revisions

Injecting guide

Using Protontricks

  1. Install protontricks with your packet manager (apt, dnf, etc...)

  2. Download this injector. Use x64 (release) version.

  3. IMPORTANT! Put both injector and cheat into tf2's prefix. Path:/home/<your username>/.local/share/Steam/steamapps/compatdata/440/pfx/drive_c/

1
_Path is different because tf2 is installed on different drive_
  1. Create a .bat file in tf2's prefix with this inside:
@echo off
setlocal

:: config
set GAME_EXE=tf_win64.exe
set INJECTOR_PATH=<YOUR INJECTOR NAME>.exe
set DLL_PATH=<YOUR CHEAT NAME>.dll

:: inject DLL
"%INJECTOR_PATH%" "%DLL_PATH%" "%GAME_EXE%"

Replace < YOUR XXX > with needed names, obviously. NOTE: injector, cheat, and the .bat file MUST be located in the same folder.

  1. Launch TF2

  2. cd into TF2's prefix.

  3. Use command protontricks-launch --appid 440 <YOUR .BAT NAME>.bat to inject the cheat.

  4. Enable Insecure dialog bypass option

5
  1. Automation: You can make a shell script that cd's into tf2 prefix and automatically lauches the .bat file, put it in ~/.local/bin and even make a .desktop file for it!

Flatpak protontricks: NOT RECOMMENDED due to weird flatpak packaging

  1. Download this injector. Use x64 (release) version.

  2. IMPORTANT! Put both injector and cheat into tf2's prefix. Path:/home/<your username>/.local/share/Steam/steamapps/compatdata/440/pfx/drive_c/

1
_Path is different because tf2 is installed on different drive._
  1. Install flatpak and set up flathub repo.

  2. Install protontricks using this command: flatpak install flathub com.github.Matoking.protontricks

  3. Launch TF2

  4. Open protontricks GUI using command (flatpak run com.github.Matoking.protontricks) or a shortcut

  5. Click on TF2 in the opened menu

1g
  1. Click on Select the default wineprefix

  2. Click on Run wine cmd, after winecmd opens, inject cheat with this command: ``` tf_win64.exe:

3
  1. Enable Insecure dialog bypass option
5

Injecting on Windows

Linux fork runs on windows flawlessly! Any injector can be used, but Xenos is the best one.

Injecting on BSD

Because BSD doesnt have native protontricks and steam, using steam/tf2 in WINE is the only option. Steps would probably be like this:

  1. Download this injector and put it in drive_c folder in .wine

  2. Install steam using winetricks gui, then install tf2

  3. Run tf2 and wine cmd (using winetricks)

  4. Inject: <injector name> <cheat name> tf_win64.exe

  5. Enable Insecure dialog bypass option

I dont use BSD, so i could have made some mistakes in this part of guide.

Known problems:

  1. I wont give any support for FreeBSD injection: I never used it #2

  2. Protontricks break: The only solution MAY be using Prefixer but i didnt test this. #6

  3. Injection can break with flatpak protontricks: Try install protontricks with pipx or your packaging manager, flatpak version of it behaves weirdly #6

Also its a good idea to look at all issues if a random problem appears, maybe it was already resolved there.

If guide has a mistake or you have problems:

Read this guide again, or make an issue here.