• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
I think adding 3 RGB slots in the ProvinceDef would be pretty useful, or adding some way to decide how the definition colour gets modified in config.properties for duchies, kingdoms and empires.
 
@Keanon
Currently colors for titles are computed in the following way:
EBzhOmD.png

Barony, County have an offset of 0; duchy 10; kingdom 30; empire 40;

Feel free to propose something better. There's probably better ways to compute a non-random color based on the information at hand. Before I had some algorithm that would just turn the title word into a color. Problem was that county/duchy/kingdom wouldn't necessarily have similar colors. If you want options for these give me the details ;)

Having three more columns for a second set of RBGs would be doable. But titles for which colors are normally changed are empire, kingdom and duchy. And I don't really know how those would be defined.
 
Last edited:
I think I'd be happy just being able to disable the offset actually, I don't mind them being the same colour as the capital all the way up, but the sudden neon colours as you move up do bother me.

As for how to put the RGB into the def, you could just have the columns only needing in the capital provinces and having the columns be defined as the title

FTjnt4yl.jpg


Since you already keep track of capitals it seems like it'd work
 
I'm getting this error when running the tool... Any help?


C:\Users\Sidebo\Desktop\CK2Tools-v19>java -Xmx256m -jar CK2Tools.jar
Not found: E:\Documents\Paradox Interactive\Crusader Kings II\mod\Europe\map\provinces.bmp
javax.imageio.IIOException: Can't read input file!
at java.desktop/javax.imageio.ImageIO.read(Unknown Source)
at kld.ck2tools.bmpvalues.ColorPaletteExtractor.getColors(ColorPaletteExtractor.java:42)
at kld.ck2tools.mapfiller.ConvertXlsToProvinces.preParseColors(ConvertXlsToProvinces.java:361)
at kld.ck2tools.mapfiller.ConvertXlsToProvinces.start(ConvertXlsToProvinces.java:162)
at kld.ck2tools.mapfiller.ConvertXlsToProvinces.main(ConvertXlsToProvinces.java:153)

C:\Users\Sidebo\Desktop\CK2Tools-v19>pause
Press any key to continue . . .
 
Now, I changed the moddirectory=C:\\Documents\\Paradox Interactive\\Crusader Kings II\\mod\\GAR from Europe to my mod - now it says it can't find the same provinces.bmp files even though it is there.
 
Now, I changed the moddirectory=C:\\Documents\\Paradox Interactive\\Crusader Kings II\\mod\\GAR from Europe to my mod - now it says it can't find the same provinces.bmp files even though it is there.
That sounds smug and all but that file is probably not there. Or the path is wrong. Try the path in the explorer (with \ instead of \\) and see if it works.
 
I remade the map, and did what you suggested. The same error still.
 
My map mod here crashes on loading databases after launch. I suspect it's something to do with rivers.bmp but I'm not sure. Everything else appears sound and the validator only complains about duplicate province names.

Would really appreciate a hand in figuring out what the problem is.
 

Attachments

  • Broken map.7z
    209,2 KB · Views: 3
My map mod here crashes on loading databases after launch. I suspect it's something to do with rivers.bmp but I'm not sure. Everything else appears sound and the validator only complains about duplicate province names.

Would really appreciate a hand in figuring out what the problem is.

I'll take a look for you when I finish work.

EDIT: Had a quick browse of the files at work before I leave and straight away I can see the trees.bmp file is 4 bit, it should be 8 bit

EDIT2: Snuck in a tiny bit more snooping and your techonlogy file in the history folder is off. Check your map filler settings for the starting and end year for setting up technology. For now though try setting the start year for tech to 600 and end to 1200 or so.

Also you have no bookmark to actually play as the character you made as he is alive at 600AD but the default bookmarks wont let you go back that far.

Finally you will want to use replace decisions and replace events in the mod file or you'll likely get crashes when playing a character due to events triggering for lands that dont exist and such.

EDIT3: Fixed the above issues I mentioned, added a bookmark with no localisation stuff, just placeholder, also added a bunch of the events and decisions that I know won't cause issues to start you out. Hope it helps!

PS. What is the mod about? Always happy to lend a hand, send me a PM
 

Attachments

  • Fixed Map.7z
    698,9 KB · Views: 9
Last edited:
A couple of questions:

1) I'm following your Total Conversion guide for a new map and I'm at Chapter 2. Currently my map has one land province and three sea provinces (for good measure since the map is 3072x2048).

My problem is that the program is "ignoring" the provinceDef row for the land province and thos not producing any of the related titles, localisation, etc.

This is the console output:

1 | 100 | 150 | 200 | Cerilia | Cerilia | Cerilia | Cerilia | irish | catholic | 1_4 | == c_cerilia @Cerilia|Cerilia|Cerilia
2 | 0 | 12 | 64 | Ocean NO | OCEAN | 0.0 |
3 | 0 | 12 | 101 | Ocean SO | OCEAN | 0.0 |
4 | 0 | 12 | 37 | Ocean E | OCEAN | 0.0 |

Province [1] ignored [100,150,200] : Cerilia
ignored ids: [1]
Warning: writeLocalisation called with empty or NULL list: []
Warning: writeLocalisation called with empty or NULL list: []
Warning: writeLocalisation called with empty or NULL list: []
Warning: writeLocalisation called with empty or NULL list: []
0 pre-existing flag files
0 flag files remaining after de jure landed_titles removal
0 flag files remaining after additional landed_titles removal
Climate file successfully written!
Wrote tech history for empires!
Wrote tech history for kingdoms!
Finished writing tech history!
Successfully finished!

C:\Users\pegnu\Documents\Paradox Interactive\Crusader Kings II\mod\_TOOLS\CK2Tools-v19>pause

Now, a couple more general questions:
2) the config.properties file has a few of text snippets. Would it be possible to modify them to alter the output, right? At least in a limited way (there's no possibility for the end user to add more columns to the spreadsheat and call the contents of the new columns from these snippets in config.properties, right?).
3) Would you be willing to share the source code of the program so that I could try and implement that extra functionality I want myself? Of course I'd understand if you wouldn't want to - I might even try to create my own program for that with my dull C# noobish abilities in that case.
 
Does this tool still work I see all the posts are pretty old and the tool hasn't been updated in a while and JonStryker hasn't really been active either. I just made my map files and I'm wondering if I'm wasting my time trying to use the tool.
 
Does this tool still work I see all the posts are pretty old and the tool hasn't been updated in a while and JonStryker hasn't really been active either. I just made my map files and I'm wondering if I'm wasting my time trying to use the tool.
The mapping part of modding hasn't changed in a while. The rest did of course but that is the modder's part to take care of.