So when you're creating a new provinces.bmp, you also need to define definitions.csv with all the province names for the various RGB colour values. I've made a tool that will speed up the creation of definitions.csv if provinces.bmp has not yet been made.
What this tool will do is take your entire (or partial) list of provinces, parse through them, sequentially assign those provinces numbers, and give them random RGB values with no repetitions.
Also, you read that correctly - you don't need to define all the thousands of provinces your map will have at once! You can create lists of provinces by country, duchy, continent etc in different files - whatever makes sense to you, and then by supplying the correct arguments (the province start number) to the tool, you can create separate csvs for each of those files, and manually merge them without any grief. This tool will create a file where it will store all the RGB values it has already assigned, so you can ask the tool to read from that file and then ensure that there are no repeated colours to avoid conflicts. So that way you can share that file with your collaborators and avoid conflicts. You can also specify a custom-named text file to store those values in for convenience.
https://gny-001f2.github.io/CK2-Province-Script-Generator/
I must emphasize that the tool isn't properly tested right now. I need your help for that. The current release should only be considered an alpha version, although all the functionality described above is already implemented. The readme is lacking, but that will be correctly completed with the release of the first stable version of this tool.
As with my previous tool to automate music script generation, you will need Python 3, preferably the 3.5.1 reference implementation since that is what I am using to test these scripts. Use python3 psg.py -h to get the list of all the arguments available to you. Yeah, it's only command line right now. A future version may have GUI though.
If you have any questions, feel free to ask!
What this tool will do is take your entire (or partial) list of provinces, parse through them, sequentially assign those provinces numbers, and give them random RGB values with no repetitions.
Also, you read that correctly - you don't need to define all the thousands of provinces your map will have at once! You can create lists of provinces by country, duchy, continent etc in different files - whatever makes sense to you, and then by supplying the correct arguments (the province start number) to the tool, you can create separate csvs for each of those files, and manually merge them without any grief. This tool will create a file where it will store all the RGB values it has already assigned, so you can ask the tool to read from that file and then ensure that there are no repeated colours to avoid conflicts. So that way you can share that file with your collaborators and avoid conflicts. You can also specify a custom-named text file to store those values in for convenience.
https://gny-001f2.github.io/CK2-Province-Script-Generator/
I must emphasize that the tool isn't properly tested right now. I need your help for that. The current release should only be considered an alpha version, although all the functionality described above is already implemented. The readme is lacking, but that will be correctly completed with the release of the first stable version of this tool.
As with my previous tool to automate music script generation, you will need Python 3, preferably the 3.5.1 reference implementation since that is what I am using to test these scripts. Use python3 psg.py -h to get the list of all the arguments available to you. Yeah, it's only command line right now. A future version may have GUI though.
If you have any questions, feel free to ask!
Attachments
Last edited:
- 5
- 1