diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-06-14 17:10:12 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-06-14 17:10:12 -0300 |
commit | eafd1076c5971aa1fe350d67f1d474889e92591b (patch) | |
tree | 9184b607402d81db17890ddb2eadfbb11b0c8f05 /exp_conv.py | |
parent | 416a9a7b40b9ef7caffaeebadaf852161cd7d28d (diff) | |
download | tools-eafd1076c5971aa1fe350d67f1d474889e92591b.tar.gz tools-eafd1076c5971aa1fe350d67f1d474889e92591b.tar.bz2 tools-eafd1076c5971aa1fe350d67f1d474889e92591b.tar.xz tools-eafd1076c5971aa1fe350d67f1d474889e92591b.zip |
Experience Database Converter
Diffstat (limited to 'exp_conv.py')
-rwxr-xr-x | exp_conv.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/exp_conv.py b/exp_conv.py new file mode 100755 index 0000000..9acf468 --- /dev/null +++ b/exp_conv.py @@ -0,0 +1,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() |