Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Arqade is a question and answer site for passionate videogamers on all platforms. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
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?
asked Mar 10, 2018 at 12:35
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.
answered Jul 6, 2018 at 14:39
12366 bronze badges
You must log in to answer this question.
Not the answer you're looking for? Browse other questions tagged