GCH (Garry's Mod Content Helper) is your ultimate tool for preparing Garry's Mod addons for compression with GAC (Garry's Mod Addon Compressor). GCH3 introduces significant enhancements, including invoke-based threading for improved stability and a reworked UI for better legibility.
- Invoke-Based Threading: I've replaced the previous task-based threading system with invoke-based threading. This change reduces crashes, freezes, and errors, ensuring a smoother experience.
- Reworked UI: The interface has been updated to make it more user-friendly and easier to navigate.
- Full Featureset: There are no longer any expirimental functions in GCH, they have all been fixed and added to the full feature pool.
For a visual guide, check out this comprehensive video tutorial on using GCH3 for Garry's Mod content packs.
Before using GCH3, make sure you have:
- GCH3 installed on your system.
.gma
files of the addons you want to work with. These can be obtained from the Garry's Mod workshop folder or the legacy addons folder.
- Create a working directory on your system for your addons.
- Copy the
.gma
files you wish to extract and optimize into this directory.
- Open GCH3 and navigate to your working directory.
- Click the "Open Directory" button. If you encounter errors, it might be due to too many files to read.
- Once the directory is successfully opened, click the "Extract" button.
- GCH3 will extract the contents of the
.gma
files into the same directory.
- Download and open GAC (Garry's Mod Addon Compressor) from here.
- In GAC, select the folder where you extracted the addon contents using GCH3.
- GAC will compress the addons into the final format.
To repack the compressed addons:
- After GAC finishes compressing, return to GCH3.
- Click the "Pack" button.
- GCH3 will repack the compressed addons into
.gma
files, ready for use.
To create the content pack:
- Click the "Create" button in GCH3.
- The creation process will take a moment. Pay attention to any file conflicts alerted by GCH3.
- Once complete, you'll find two folders:
- release: Contains raw content pack information (not in
.gma
format). - bin: Contains the
gchcontentpack.gma
file, which you can upload to the workshop.
- release: Contains raw content pack information (not in
-
Asynchronous Merging: GCH3 includes a full release of asynchronous merging, providing notable speed improvements over its predecessor.
-
Debugging GMAD Errors: If you encounter GMAD-related issues, uncomment specific lines in the GCH3 code for error debugging. Locate the following lines in the code:
/* This is for debugging errors in GMAD, not GCH !!!!!!!!! THIS NEEDS TO BE CHANGED !!!!!!!!!!! IT IS DONE A DIFFERENT WAY NOW -- process.ErrorDataReceived += Process_ErrorDataReceived; -- process.OutputDataReceived += Process_OutputDataReceived; */
Remove the
/*
and*/
to uncomment these lines for more detailed error information. -
Logging: Unlike GCH2, GCH3 has improved the logging system, making it more verbose, and more reliable.
-
Addon.json File Replacement: GCH3 creates a new
addon.json
file for each extracted.gma
file. If anaddon.json
file already exists, it will be replaced with the updated version to reflect any changes made during optimization.