Hi there,
I would like to introduce you to a tool program that I wrote. The tool is called "CK2-Cultures-Parser" and it is intended to help modders who wish to cross-link the given name lists of the vanilla game or of their own mods.
The tool is an executable which you can place in the directory where your "00_cultures.txt" file is located. You double-click the executable, it will automatically load the 00_cultures file into memory, and then you can pick one of two options:
Having the name lists in the form of tables that can be edited by a spreadsheet program is nice, because this allows you to easily check which names are linked and which aren't. You can create links between names in two ways:
The ZIP file contains the executable, two sample spreadsheets created from the vanilla 00_cultures.txt file, and the C++ source code for the parser. (Don't bash me if you find it crude or inefficiently written, this was my C++ learning project.)
Download it through this attachment:
View attachment CK2-Cultures-Parser.zip
Some remarks:
I would like to introduce you to a tool program that I wrote. The tool is called "CK2-Cultures-Parser" and it is intended to help modders who wish to cross-link the given name lists of the vanilla game or of their own mods.
The tool is an executable which you can place in the directory where your "00_cultures.txt" file is located. You double-click the executable, it will automatically load the 00_cultures file into memory, and then you can pick one of two options:
- Write the name lists from the 00_cultures.txt file into spreadsheet tables where linked names are put onto the same row, like this:
- Load the spreadsheet tables, process them into lists of properly linked names, and update the 00_cultures.txt file with these name lists.
Having the name lists in the form of tables that can be edited by a spreadsheet program is nice, because this allows you to easily check which names are linked and which aren't. You can create links between names in two ways:
- Within the column that contains the name list for one culture, you can move a name up or down into the same row as another name to which you want it to be linked. If that name does not yet have a reference version, write one into the "reference" column on that row.
- You can also simply add a "reference" name in the reference column, this will create a link to all other names with the same reference name. They don't have to be on the same row.
The ZIP file contains the executable, two sample spreadsheets created from the vanilla 00_cultures.txt file, and the C++ source code for the parser. (Don't bash me if you find it crude or inefficiently written, this was my C++ learning project.)
Download it through this attachment:
View attachment CK2-Cultures-Parser.zip
Some remarks:
- Before you process a 00_cultures.txt file, you have to replace all tabs (\t) with spaces. Notepad++ will do this for you if you search & replace the expression \t with a couple of spaces. (Sorry for the inconvenience)
- I built a couple of "safety catch" functions into the file, which will abort the program if something wasn't read properly. It will show you a pop-up saying "Ck2-Cultures-Parser.exe has stopped working. What do you want to do?" ignore this and try to read what it says in the black screen.
- Don't use double-names that have a space in them. Four or five of these are in the vanilla 00_cultures.txt file ("Abu Bakr", "Ramon Berenguer", and some others) and they are fine, as long as you don't try to crosslink them. Use a dash to separate the two names instead.