-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmaputils.py
More file actions
53 lines (51 loc) · 1.53 KB
/
Copy pathmaputils.py
File metadata and controls
53 lines (51 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import gzip
import math
import random
import os.path
maps = {
"ac_aqueous": {"ctf": True},
"ac_arabian": {"ctf": True},
"ac_arctic": {"ctf": False},
"ac_arid": {"ctf": False},
"ac_avenue": {"ctf": True},
"ac_cavern": {"ctf": True},
"ac_complex": {"ctf": False},
"ac_depot": {"ctf": True},
"ac_desert": {"ctf": False},
"ac_desert2": {"ctf": True},
"ac_desert3": {"ctf": True},
"ac_douze": {"ctf": False},
"ac_edifice": {"ctf": True},
"ac_elevation": {"ctf": True},
"ac_gothic": {"ctf": True},
"ac_iceroad": {"ctf": True},
"ac_industrial": {"ctf": True},
"ac_ingress": {"ctf": True},
"ac_keller": {"ctf": True},
"ac_lainio": {"ctf": True},
"ac_mines": {"ctf": True},
"ac_outpost": {"ctf": True},
"ac_power": {"ctf": True},
"ac_rattrap": {"ctf": False},
"ac_scaffold": {"ctf": False},
"ac_shine": {"ctf": True},
"ac_snow": {"ctf": False},
"ac_stellar": {"ctf": True},
"ac_sunset": {"ctf": True},
"ac_swamp": {"ctf": True},
"ac_terros": {"ctf": True},
"ac_toxic": {"ctf": False},
"ac_urban": {"ctf": False},
"ac_venison": {"ctf": True},
"ac_wasteland": {"ctf": False},
"ac_werk": {"ctf": True},
}
# Figure out the size of each map
"""totsize = 0
for mapname in maps.keys():
mapfile = os.path.abspath("./packages/maps/official/%s.cgz"%mapname)
size = len(gzip.GzipFile(mapfile).read())
#maps[mapname]["size"] = os.path.getsize(mapfile)
maps[mapname]["size"] = size
totsize += maps[mapname]["size"]
"""