Since you can't specify "all maps" in your mapcycle.cfg, I've written this little script. Requires Python 3.4 or later (get it here)
How to use:
As I said, the script is really simple. In fact, the whole source fits nicely into a spoiler tag
- Download&unzip the script
- Place it in the folder that contains your maps (usually /Maps/)
- Run it
- Find the results in the file mapcycle.cfg
- Give 0 stars
- Notice reverse psychology
from pathlib import Path
f = open("mapcycle.cfg", "w")
#header
f.write("#Generated with JaytleBee's Mapcycle Generator\nmapcycle = ")
p = Path.cwd()
print(p.name)
for kagmap in sorted(p.glob("**/*.png")):
for i in range(len(p.parts), len(kagmap.parts)):
f.write("/" + kagmap.parts)
f.write(";\n")
f.close()
The MIT License (MIT)
Copyright (c) 2015 JaytleBee
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-
Hey Guest, is it this your first time on the forums?Dismiss Notice
Visit the Beginner's Box
Introduce yourself, read some of the ins and outs of the community, access to useful links and information.
Mapcycle Generator 1.0.1
Generates a mapcycle.cfg file from a folder of maps