I just lazy to change name of PROV file so I create this file to save my time.
thing that it this is just create province files for who missed the PROV file and who want to save time (like me).
How to use:
this is an python script so you must have python installed.
place my 0123.py file at same folder as mapAoC2_v2.txt or \editor_data\Provinces (I named this way because province files name is 0, 1, 2, 3...).
run it and type file name (without .txt) if file name is mapAoC2_v2.txt just type enter.
or below this post
If you have download problem you can just create python script by using code below:
filename=str(input('filename (without .txt): '))
filename = filename + '.txt'
filename = 'mapAoC2_v2.txt'
num_lines = sum(1 for line in open(filename))
line = 0
while line < num_lines:
fo = open(str(int(line/2)),'w+')
lin1 = f.readline()
if line == num_lines-2:
lin2 = f.readline()+'\n'
lin2 = f.readline()
line = line + 2
Isn't you post this before?:
Yes it is, but I noticed that my file have a problem (last province, last point, last digit just disappear) so I fixed it.
I'm bad at coding but I think this would help some people (like me). also sorry for my grammar, i'm not a native English speaker.