Statistics: Posted by AwarE — 31 Jul 2013, 00:45
Statistics: Posted by CopyyyCattt — 30 Jul 2013, 14:44
import re
unranked = False
fopen = open(r"DeltaSiegeDry V7_script.lua")
temp = []
for line in fopen:
temp.append(line.rstrip())
text = " ".join(temp)
pattern = re.compile("function OnPopulate\(\)(.*?)end")
match = re.search(pattern, text)
if match:
script = match.group(1).replace("ScenarioUtils.InitializeArmies()", "").replace(" ","").strip()
if len(script) > 0:
if len(script.lower().replace(" ","").replace("scenarioframework.setplayablearea('area_1',false)", "").strip()) > 0:
unranked = True
if unranked:
print "this map is unranked"
else :
print "this map is ranked"
fopen.close()
Statistics: Posted by Ze_PilOt — 30 Jul 2013, 10:41
Statistics: Posted by CopyyyCattt — 29 Jul 2013, 23:21
Statistics: Posted by Ze_PilOt — 29 Jul 2013, 22:00
Statistics: Posted by CopyyyCattt — 29 Jul 2013, 21:40
Statistics: Posted by Ze_PilOt — 29 Jul 2013, 12:19