1. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Mapcycle Generator 1.0.1

Generates a mapcycle.cfg file from a folder of maps

  1. JaytleBee
    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:
    1. Download&unzip the script
    2. Place it in the folder that contains your maps (usually /Maps/)
    3. Run it
    4. Find the results in the file mapcycle.cfg
    5. Give 0 stars
    6. Notice reverse psychology
    As I said, the script is really simple. In fact, the whole source fits nicely into a spoiler tag
    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.
    PUNK123 and norill like this.

Recent Updates

  1. Hotfix

Recent Reviews

  1. jonipro
    jonipro
    5/5,
    Version: 1.0.1
    It's so helpful,it would take for ever otherwise making a big mapcycle!
  2. bunnie
    bunnie
    5/5,
    Version: 1.0.1
    Now i won't need punk123 for my mapcycles
  3. Diprog
    Diprog
    1/5,
    Version: 1.0.1
    lel, good thing
  4. Vamist
    Vamist
    1/5,
    Version: 1.0.1
    i cant give 0 stars like you said, 10/10 amazing mod.