Search the Community
Showing results for tags 'tool'.
Found 3 results
I created a tool that allows you to basically delete a province from a map, just put the IDs for the provinces in the "provinces.txt" file, and run the exe, and you'll get basically empty files with the province IDs you wrote as the name inside the "provincefiles" folder. it's mostly just a tool for lazy people like me that don't want to copy and rename files for an eternity when making simple edits like deleting a continent. the program and provinces txt file have a tutorial inside them. Happy map editing. I guess. Province Deleter for AoC2.zip
I've made a tool, which converts a .png into a bunch of provinces, allowing someone to create a custom map more easily. Link to download : https://github.com/Timm638/aoc2_converter/raw/master/AoC2_Conv_0.1.jar Link to short guide: https://github.com/Timm638/aoc2_converter If you need help ask here or come over to the discord.
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. enjoy! Download: Mega: https://mega.nz/#!eVYnRCqJ!n8JHcOzv7WFU_hYcKkxHJMrfb_0PkaMsQjIVbEGLOxw 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): ')) if filename: filename = filename + '.txt' else: filename = 'mapAoC2_v2.txt' f= open(filename,'r') num_lines = sum(1 for line in open(filename)) line = 0 print(0/2) while line < num_lines: fo = open(str(int(line/2)),'w+') lin1 = f.readline() if line == num_lines-2: lin2 = f.readline()+'\n' else: lin2 = f.readline() fo.write(lin1[:-1]+';'+lin2[:-1]) fo.close line = line + 2 print(str(int(line/2)),'done') f.close 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. 0123.py