A simple python script to enable GMod addons from specific collections.
Tested on Python 3.9
- Disable all addons in GMod and close the game
- Install Python 3.9 or newer and then install requirements:
pip install -r requirements.txt
(run this in the folder of the script) - Run
python main.py
in the folder and input the collection IDs - Select addonnomount.cfg from the GarrysMod/garrysmod/cfg folder in the file selection dialogue
- The addons from the specified collections are enabled, while the rest of the disabled/enabled addons are untouched
- Supports linked collections (function flag to get mods from them or not)
- Invalid collection IDs will be ignored
Users are expressly allowed to reuse code for any purpose, even if it is a part of proprietary software, under the terms of the MIT license. As long as they provide the original copy of the MIT license, users are allowed to modify the code to suit their own needs. The MIT license must be copied by developers and placed in the appropriate places in source files. Because of its open wording, the MIT License is suitable for both teams and community developers who want to produce proprietary software using pre-existing MIT licensed code.