A Python script that randomizes the mapcycle for any Garry's Mod server.
- Click the 'Clone or download' button and download ZIP
- Open the downloaded ZIP file and move gmod_mapcycle_rand.py into your Garry's Mod server folder
- Go to the link below and download the latest version of python 3: https://www.python.org/downloads/
- Make this the first line in your start_server.sh file for your server:
python3 gmod_mapcycle_rand.py
Clone the repo
git clone https://github.com/duecknoah/gmod-mapcycle-randomizer
Move gmod_mapcycle_rand.py into your server directory. Then install python 3 using the following:
sudo apt-get install python3
Or download the latest version of python 3 here: https://www.python.org/downloads/
Run this command in the root directory of your server, or put it as the first line in your startup script:
python3 gmod_mapcycle_rand.py path/to/mapcycle.txt
Example server startup script
python3 gmod_mapcycle_rand.py ./garrysmod/cfg/mapcycle.txt
./srcds_run -game garrysmod +maxplayers 12 +map gm_flatgrass +host_workshop_collection 844193892 -authkey 123456789101112131415 -mapcyclefile -port 27015