Patches for Garry's Mod. Updates/Improves CEF and Fixes common launch/performance issues (esp. on Linux/Proton/macOS). Formerly GModCEFCodecFix.
Patches for Garry's Mod. Updates/Improves CEF and Fixes common launch/performance issues (esp. on Linux/Proton/macOS). Formerly GModCEFCodecFix.
GModPatchTool does what Facepunch don't!
Created by Solstice Game Studios (solsticegamestudios.com)
-chromium_fps_max Launch Option for GMod-chromium_remote_debugging_port Launch Option for GMod-chromium_remote_debugging_port 9222-chromium_mute_audio Launch Option for GMod-multirun) without doubled-up sound--no-sourcescheme argument when running the toolGMOD_ENABLE_LD_PRELOAD=1 %command% in GMod's Launch Options to try it!mesa_glthread=true for more OpenGL performance with Mesa driversulimit -n $(ulimit -Hn) to fix issues opening/mounting many files (many addons, Lua autorefresh, etc)hl2.sh to help multi-GPU users quickly point GMod to use the correct GPU (typically Laptops)--skip-rosetta-prewarm argument when running the toolDownload the Latest Release and run the application.
Need a more in-depth guide? Take a look at https://solsticegamestudios.com/fixmedia/
You don't need any of these to patch normally - just run the tool. But if you want more control:
| Option | What it does |
|---|---|
-l, --launch-gmod |
Launch Garry's Mod after successfully patching |
-s, --skip-exit-prompt |
Skip "Press Enter to exit..." on tool exit |
--steam-path |
Force a specific Steam install path (NOT a Steam library path) |
--no-sourcescheme |
Don't apply SourceScheme (VGUI Theme) changes |
--skip-clear-chromiumcache |
Skip deleting ChromiumCache/ChromiumCacheMultirun/chromium.log from the GarrysMod directory |
--skip-rosetta-prewarm |
Skip pre-warming Rosetta translations of patched libraries on Apple Silicon (macOS only) |
--disable-cache |
Force redownload all patch files from scratch and clear the GModPatchTool cache directory on exit |
--no-system-proxy |
Don't use the OS proxy configuration for HTTP requests - try this if the tool can't download files behind a proxy/VPN |
--ignore-gmod-running |
Apply patches even if Garry's Mod is currently running (may cause issues!) |
The tool exits non-zero if patching fails, in case you're scripting around it.
Direct players to follow the Players' instructions above. This patch is CLIENTSIDE only!
To Detect Patched CEF: Check out our Lua detection example.
[!WARNING] Our CEF builds have Site Isolation enabled, which means you must pay attention to where you're calling JavaScript-related DHTML functions!
If you call DHTML.AddFunction, DHTML.QueueJavascript, or DHTML.RunJavascript before the page begins loading, it WILL NOT WORK! Make sure you're calling them in HTML.OnBeginLoadingDocument or later.
Site Isolation destroys JavaScript state on navigation like how real web browsers work.
This tool includes a patch for mainmenu.lua that addresses GMod's own issues not using the correct approach, but this is a breaking change for any addon that doesn't handle HTML panel states properly for JS.
If you want to go more in-depth: Check out our fork of gmod-html and our CEF build scripts.
This project is open source and provided free of charge for the Garry's Mod community.
If you like what we're doing here, consider throwing a few dollars our way! Our work is 100% funded by users of the tool!
No open issues yet, or sync has not completed.