I run a dedicated TTT server for friends, and I have the server set to restart every day to get addon updates. Is there a way to make it start on random map?


If you're using a linux host and have basename available you could adapt this launch.sh I wrote to do this for my server.

RANDOM_MAP=$(find gmod/garrysmod/maps -type f -name "*.bsp" | shuf -n 1 | xargs basename | cut -d. -f1)
./gmod/srcds_run +map $RANDOM_MAP

You'll just need to replace the path with your own maps directory path.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.