I am tired of copying every name of my maps into the maplist and mapcycle files. When you have +100 maps it's very long and very boring.
So I looked for a plugins but I did not find.
So I made a linux script to automatically generate these files.
Features
- delete the old maplist and mapcycle.txt files
- searches all maps, including in the workshop folder
- Rewrites maplist and mapcycle files and places them in the correct folder
Requirements
Code:
apt-get install dos2unix
Installation
- create a file and paste the code below or download the file.
- Replace "YOURPATH" by yours
CODE
Code:
rm /home/YOURPATH/csgo/maplist.txt;
rm /home/YOURPATH/csgo/mapcycle.txt;
cd /home/YOURPATH/csgo &&
find maps/ -type f -name "*.bsp*" > /home/YOURPATH/csgo/maplist.txt &&
find maps/ -type f -name "*.bsp*" > /home/YOURPATH/csgo/mapcycle.txt &&
sed -i 's/.bsp//g' /home/YOURPATH/csgo/maplist.txt &&
sed -i 's/.bsp//g' /home/YOURPATH/csgo/mapcycle.txt &&
sed -i 's/^maps//' /home/YOURPATH/csgo/maplist.txt &&
sed -i 's/^maps//' /home/YOURPATH/csgo/mapcycle.txt &&
sed -i 's/^.//' /home/YOURPATH/csgo/maplist.txt &&
sed -i 's/^.//' /home/YOURPATH/csgo/mapcycle.txt
and that's all