Fix Media: x86-64 / GModCEFCodecFix Guide (FAQ)
What is the x86-64 beta?
The x86-64 beta is a beta for Garry's Mod that enhances it with 64-bit builds, larger memory limits, a newer version of LuaJIT, and most importantly replaces Awesomium with gmod-html and Chromium Embedded Framework.
What are Awesomium / gmod-html / Chromium Embedded Framework?
Chromium Embedded Framework, aka CEF, is an embeddable and open-source version of Google Chrome that can be used in games and other applications.
It's basically GMod's built-in web browser. It's what allows gamemodes/addons like YukiTheater, Cinema, and Media Player to work.
gmod-html is the "glue" that connects GMod to CEF in the x86-64 beta.
Awesomium is a very old version of CEF that was never updated beyond Chrome 18 (circa 2012).
It can't connect to or interact with most websites now, but is still included on the main (non-beta) version of GMod.
What is GModCEFCodecFix?
GModCEFCodecFix is a tool that patches Garry's Mod, fixing many common issues playing videos/audio with CEF.
Using our custom fork of gmod-html, it:
- Brings CEF up to date
- Fixes GMod missing menu/launch issues on macOS and Linux in many scenarios
- Enables Proprietary Video/Audio codec, like H.264 (MP4) and AAC, support
- Enables Widevine support (but without VMP, so Netflix et al. don't work currently...)
- Enables Software WebGL
- Enables partial GPU acceleration
What are the System Requirements for GModCEFCodecFix?
- Windows: Windows 10 22H2 and newer.
- Linux: We only test on Ubuntu (20.04 and newer), and the current stable version of Steam OS. You may still be able to use this tool on other Linux distributions, but your mileage may vary.
- macOS: macOS 11 Big Sur and newer.
I'm getting "ConnectError," "SSL Error," "Connection forcibly closed", "Connection reset," or some other connection error when trying to run the tool
Your antivirus, internet service provider, or government is breaking the tool's connection to GitHub.
Try adding an exception for GModCEFCodecFix in your antivirus software.
If that doesn't work, using a VPN like ProtonVPN or Cloudflare WARP/1.1.1.1 will probably fix it.
I have no in-game menu after a GMod update / GMod suddenly stopped working even though I've applied the fix
Updates to Garry's Mod tend to wipe out our patches. You will need to go to Steam > Garry's Mod > Properties > Installed Files and click Verify integrity of game files.
Once Steam is done updating/verifying GMod, run GModCEFCodecFix again to reapply the patches.
I'm still getting a "Does Not Match" error even after verifying game integrity
It's likely a recent GMod update made our patches incompatible with it, so we'll have to regenerate/update them.
This automatically happens every 6-7 hours, but we can sometimes trigger it sooner.
Contact Us if you run into this error and don't want to wait for the automatic regeneration!
GModCEFCodecFix is trying to use the wrong Steam install (usually with "Multiple Steam Installations Detected")
You can use GModCEFCodecFix's -steam_path
argument to force using a specific path.
We strongly recommend only having one installation of Steam on your PC, if possible. There's a short list of legitimate reasons why you might need more than one.
Linux: I have no main menu even after applying the fix
CEF isn't being initialized. This usually means the game doesn't have access to unprivileged user_namespaces.
There are two common causes for this:
-
You're running GMod/Steam in a container or sandbox that doesn't allow for unprivileged user_namespaces.
This is most often the case with Flatpak.
GModCEFCodecFix should be able to deal with this automatically.
If it can't, try switching to the native packaged version of Steam for your distribution (and report the issue to us).
-
Your kernel does not have unprivileged user_namespaces enabled. Run the following in your Terminal application:
sudo sysctl -w kernel.unprivileged_userns_clone=1
Note: The command needed to enable it on your distribution may differ. The one above will work for Debian-based systems.
Linux: I'm getting "Error: Could not detect GMod EXE Launch Options!"
There's a bug with Steam where GMod's Proton state in Steam doesn't match the actual state.
Toggle Proton with Steam > Garry's Mod > Properties > Compatibility > Force the use of a specific Steam Play compatibility tool, then try again.
Linux: I'm getting "libnss3.so: version `NSS_3.30' not found"
You're missing libnss3, or you're REALLY out of date. Run the following in your Terminal application to get the latest version of NSS:
sudo apt install libnss3
macOS: I'm getting "(null) is not allowed to open documents in Terminal"
You're likely using macOS 13.0, which has a bug that prevents launching certain applications.
Update to the latest version of macOS 13 Ventura and try again.
If that doesn't work, make sure you're installing GModCEFCodecFix to the Applications folder before running it.
macOS: I have no main menu or the game isn't opening even after applying the fix
First, go to Steam > Garry's Mod > Properties > General > Launch Options and make sure the following is NOT present:
-nochromium
If it is, remove it and try again. If it isn't, try again anyway. GMod tends to crash the first time right after applying the patches on macOS.
If it's still crashing, go to Steam > Garry's Mod > Properties > General > Launch Options and add this to temporarily disable your addons:
-noaddons -noworkshop
There's a known issue with GMod on macOS where some addons will cause the game to crash on startup.
If it works with addons disabled, try removing them until you've found the one that's causing you to crash.
If it still crashing with the addon-disabling launch options, Contact Us, providing the following information:
- The most crash report for GMod as seen in macOS's Console.app (if available)
- GMod's in-game console output (if available)
- GModCEFCodecFix's output
- chromium.log (can be found with Steam > Garry's Mod > Properties > Installed Files > Browse...)
Please keep in mind that support for GMod on macOS is unfortunately not very reliable.
Is GModCEFCodecFix open source? Can I support the project somehow?
Yes it is! The GitHub repo can be found here: https://github.com/solsticegamestudios/GModCEFCodecFix
You can also find the GitHub repo for our fork of gmod-html, here: https://github.com/solsticegamestudios/gmod-html
💖 If you'd like to support the project, consider throwing a few dollars our way! You can also help us by contributing code directly with Pull Requests.
I want to completely uninstall GModCEFCodecFix. How do I do that?
- Go to Steam > Garry's Mod > Properties > Installed Files and click Verify integrity of game files. This will remove the changes made to the game files.
- Delete the GModCEFCodecFix executable you downloaded.
-
Remove the temporary files directory. On each operating system, it can be found at:
- Windows:
%LOCALAPPDATA%\Temp\GModCEFCodecFix
- macOS:
/Library/Caches/GModCEFCodecFix
- Linux / ChromeOS:
$XDG_CACHE_HOME/GModCEFCodecFix
- Windows:
For most users, just following Step 1 will achieve the desired effect. The other steps just delete any remnants of the tool from your storage.