[Tutorial] GModCEFCodecFix - macOS

Well just an update. I haven't played much this month and I did the latest update ad applied the script which took much longer than others(downloads I saw) and it was working, but next morning I get same problems from full to half as shown below. Do I have to always launch garrysmod via the script as I've been using via steam.
 

Attachments

  • Screenshot 2023-10-19 at 10.54.26.png
    Screenshot 2023-10-19 at 10.54.26.png
    766.2 KB · Views: 2
  • Screenshot 2023-10-18 at 20.36.01.png
    Screenshot 2023-10-18 at 20.36.01.png
    1.1 MB · Views: 2
Well just an update. I haven't played much this month and I did the latest update ad applied the script which took much longer than others(downloads I saw) and it was working, but next morning I get same problems from full to half as shown below. Do I have to always launch garrysmod via the script as I've been using via steam.
These issues in your screenshots most likely have nothing to do with GMod CEF Codec Fix. GMod exhibits weird behavior on OpenGL sometimes, and this seems to be more of that. You can report these issues on the GMod Issues Github repo instead. Make it clear they're affecting you on macOS and how to reproduce them. If you report these issues, be sure to follow the guidelines here.

That being said, sometimes GMod's x86-64 branch receives updates, and when it does you will need to launch through the GMod CEF Codec Fix executable. You'll know when this happens now because the effect of this will be either a crash on launch or no main menu on title screen.
 
Last edited:
Hey everyone, we're making some progress on improving/enhancing macOS support (see my recent pull request for details on how), but we could use your help!

If you are technically proficient with macOS and have an Apple CPU system on hand especially, we would love some help with finding out what is causing the crashes on some systems and how we can resolve them. This will go a long way in ensuring as many people as possible are able to enjoy Garry's Mod for years to come. For more info on what we're looking for and how you can help, see @WinterPhoenix's latest issue on Github and our latest update announcement here or talk with us in the #cefcodecfix channel on our Discord.
 
Been while since played and reinstall my Mac. Im trying to run the chmod +x command but when I drag file I get zsh user permission denied. Ive got full access to terminal in security preferences swell as file and folders, yet it continues.
 
Been while since played and reinstall my Mac. Im trying to run the chmod +x command but when I drag file I get zsh user permission denied. Ive got full access to terminal in security preferences swell as file and folders, yet it continues.
I don't really want to try and troubleshoot this issue when we're moving away from the old method soon enough anyway. Try the DMG here.
 
Updated directions to guide people to favor the .dmg release, which should be a more simple and familiar install process for most macOS users.
 
Step-by-step Guide to setting up GModCEFCodecFix on macOS
Note: Garry's Mod must be closed before following this guide.
GModCEFCodecFix officially supports macOS Catalina and newer. Support for older macOS version not guaranteed.
macOS versions supported by GModCEFCodecFix are subject to change.
If you are already on the [x86-64] branch, skip to step 4!
Other tutorials: Windows | Linux
Issues? Read the FAQ!

1. Open Steam, then right click Garry's Mod from your Library games list. Select Properties from the menu.

yOCx6KX.png


2. In the properties window, switch to the "Betas" tab, click on the Dropdown menu and select "x86-64 - Chromium + 64-bit Binaries"

vwqryaX.png


3. Now you can close the properties window and wait for the update to download.

4. Navigate to the latest Release on the GModCEFCodecFix Github page.

5. From that page, under Assets, click the appropriate package for your operating system. We'll use the .dmg file in this guide.

h0BT260.png


6. Open the .dmg file (this will mount it to your filesystem), then drag GModCEFCodecFix into the provided Applications folder shortcut to install it.
Note: You can eject the .dmg file and delete it if you wish after following this step.

qFhefwe.png


Z5LlZII.png


7. Run GModCEFCodecFix from your Applications folder. When the app runs, it will tell you what it is doing throughout the process. If the files are not patched yet, the patches will download. Depending on your internet speed, this step can take a moment.
Note: If it's your first time running GModCEFCodecFix from a .dmg download, you'll need to allow it to run through "System Settings ▸ Privacy & Security"

2pJT1zh.png


8. When finished, you can launch GMod from the GModCEFCodecFix window by typing "y" and pressing Enter. If you do not wish to run GMod now, type "n" and press Enter.

ckXU9rF.png


Congratulations! If you made it this far, you're done. Luckily the application does pretty much all of the work for us this time.

To avoid the file patches reverting to the files included with GMod, be sure to use the GModCEFCodecFix application to launch GMod, or launch GMod via your games list. Using most methods of game launching on Steam forces a file validation pass which will revert these patches. You'll have to run the application again to re-patch the files if you do this.
--------------------------------------------------------------------------------------------------------------------
1. Open Steam, then right click Garry's Mod from your Library games list. Select Properties from the menu.

yOCx6KX.png


2. In the properties window, switch to the "Betas" tab, click on the Dropdown menu and select "x86-64 - Chromium + 64-bit Binaries"

vwqryaX.png


3. Now you can close the properties window and wait for the update to download.

4. Navigate to the latest Release on the GModCEFCodecFix Github page.

5. From that page, under Assets, click the appropriate package for your operating system to download the script. Use the version closest to the top of the page, that's the newest one!

sUblmnx.png


6. Open Terminal from Applications ▸ ⁨Utilities or using Spotlight, then type the command
Code:
chmod +x
(make sure there's a space following the x) and drag the file you downloaded onto the Terminal window. Press Enter to run the command. This makes the Codec Fix executable. You will notice the icon for the GModCEFCodecFix file change if you've done this correctly.
Note: If this command fails, you may have to allow Terminal access to your disk within Security preferences.

URLoLuV.png


1CqUVLT.png


7. Double click the GModCEFCodecFix file in Finder. When the script runs, it will say what it is doing. If the files are not patched yet, the patches will download. Depending on your internet speed, this step can take a moment.

OEb9met.png


8. When finished, you can launch GMod from the GModCEFCodecFix window by typing "y" and pressing Enter. If you do not wish to run GMod now, type "n" and press Enter.

ckXU9rF.png


Congratulations! If you made it this far, you're done. Luckily the application does pretty much all of the work for us this time.

To avoid the file patches reverting to the files included with GMod, be sure to use the GModCEFCodecFix application to launch GMod, or launch GMod via your games list. Using most methods of game launching on Steam forces a file validation pass which will revert these patches. You'll have to run the application again to re-patch the files if you do this.
--------------------------------------------------------------------------------------------------------------------



Visual Install Guide

was playing the game earlier today but got this now(i did verify integrity) 1708632528552.png
 
was playing the game earlier today but got this now(i did verify integrity
On macOS, this will happen every time GMod x86-64 receives an update. This is because with every GMod update, codesign is updated for every file we patch, and thus invalidates our patches. It can take as much as 6 hours for us to regenerate patches (at worse), if we're not available to do it manually, because the automation of the pipeline is run on a 6 hour timer.

Any time this happens, the best thing to do is wait and try again later.

GMod is updated monthly, for around 2-5 days at a time on average (daily). During these days, this sort of thing should be expected.
 
Back
Top