summaryrefslogtreecommitdiff
path: root/exp_conv.py
blob: 9acf4682650eae1762aa097aeb1dca2c6f14409c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/python2

print("Please be sure the legacy database is on exp.txt,")
print("And you have a template ready. It'll output to EDITME.")
print("Max value and races will be disregarded.")

f=open("exp.txt", "r")
o=open("EDITME", "w")

for a in f:
    b=a.split(',')
    cnt=0
    for x in b:
        if cnt not in [0, 1]:
            o.write(x+',')
        cnt+=1
        if (cnt-2) % 10 == 0:
            o.write('\n')

f.close()
o.close()