Quote:
Originally Posted by zeroibis
btw is the mapcycle.cfg update next in line after the admin menu is working?
|
See post #
1205.
Also, I'm not exactly sure what you're referring to, but if it's the Simple Lists feature (use
maplists.cfg in
addons/sourcemod/configs to get an appropriate standard maplist), then I have to say that it's fairly low on my priority list.
The reason for this is because it's merely a convenience feature that requires a LOT of extra coding on my end (for minimal benefit), as well as there not really being a clean way to implement it without having duplicate modules of everything that currently uses the "complicated" mapcycle.
To be quite honest, there is a very simple way to to turn a standard maplist into one that works with UMC. I may write a little tool that does just that, since it's a lot less effort.
In fact, here's a simple script I just wrote in Python in 2mins:
Code:
import sys
print("\"umc_mapcycle\"\n{\n\t\"ARBITRARY\"\n\t{\n\t\t\"maps_invote\" \"ENTER A VALUE\"\n\n" + "\n".join(("\t\t\"" + line + '"' + " {}" for line in map(str.strip, sys.stdin.readlines()) if len(line) > 0 and not line.startswith('//'))) + "\n\t}\n}")
Which you can use like so from any command line on a system with python installed (where "umc-script.py" is a file with the code above as its contents and "mapcycle.txt" is your mapcycle with 1 map per line and "umc_mapcycle.txt" is the output):
Code:
python umc-script.py < mapcycle.txt > umc_mapcycle.txt
On an unrelated note, you have no idea how much I would kill to see the ability to script for SM in Python.
__________________