• 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.
Are you planning on updating this tool for CK3 at some point? :)

I have refactored and updated the code for CK3, actually. Just have to thoroughly test it and figure out how to handle flags / coats of arms. I am open for CK3 functionality proposals :)

I also plan to release a "CK2 final" version that is working as good as possible with the latest CK2 version. Lots of problems people describe experiencing are due to minor changes to how maps are built that have been made since I released the most recent version of this tool.
 
Last edited:
  • 2Like
Reactions:
Is it possible to use the mapfiller at different years? For example, my world's main bookmark is 419, but there are vastly different kingdoms and duchies in 1199. Can I do it for different years, or do I have to write down manually those titles?
 
Is it possible to use the mapfiller at different years? For example, my world's main bookmark is 419, but there are vastly different kingdoms and duchies in 1199. Can I do it for different years, or do I have to write down manually those titles?
You'd have to write history entries for the second bookmark in history/titles.
The tool creates the de jure setup and just creates the history/title files if they don't exist. It doesn't change/add to/delete existing files in history/titles..
 
  • 1Like
Reactions:
You'd have to write history entries for the second bookmark in history/titles.
The tool creates the de jure setup and just creates the history/title files if they don't exist. It doesn't change/add to/delete existing files in history/titles..

Thanks for the fast reply. I started modding just a week ago and your tool helped me a lot already.
 
The game always crashes, when generating random characters to empty titles. The error log says character has invalid culture and religion. I think this is because no religion and culture is defined in the counties and baronies. Or do they use the same as the duchy? What causes this error?


Code:
[character.cpp:27444]: Character ' of ---(0)' has invalid culture
[character.cpp:27448]: Character ' of ---(0)' has invalid religion
 
Hi, I'm following your total conversion guide, and I used this. However the game crashes before even getting to the loading screen. I've gone through and checked everything I can think of. My error log has a run of 'Title already exists' errors for the provinces I made, a bunch of 'vanilla title is not a valid title', then 'not enough holy sites scripted for x religion', 'unknown culture in provincehistory', 'invalid coat of arms texture', 'duchy/county defined in region x not found', then ends with '[gfx_dx9.cpp:1490]: Error create vertices -2005530516 8 0 28' and '[gfx_dx9.cpp:1493]: managed'.

Is there anything there that jumps out as an error you've seen before?

I can understand the vanilla title not valid, holy site, coat of arms and region errors since they don't exist on the map and i haven't done any fiddling with it yet. But it seems to be failing to recognize the Algerian culture that's in the provinces as a placeholder, and I don't know what the title already exists errors come from. Ignoring this, the most likely cause of the crash (if it's even logged, rather than crashing before it can be) are the 'create vertices' and 'managed' lines. The maps are all multiples of 256 all ways and were created over the vanilla ones (albeit in GIMP, but I followed the instructions for that).

Oh, and it started with this 'Couldn't find texture file: gfx/models/hlup_normal.dds.'
 
Hi, I'm following your total conversion guide, and I used this. However the game crashes before even getting to the loading screen. I've gone through and checked everything I can think of. My error log has a run of 'Title already exists' errors for the provinces I made, a bunch of 'vanilla title is not a valid title', then 'not enough holy sites scripted for x religion', 'unknown culture in provincehistory', 'invalid coat of arms texture', 'duchy/county defined in region x not found', then ends with '[gfx_dx9.cpp:1490]: Error create vertices -2005530516 8 0 28' and '[gfx_dx9.cpp:1493]: managed'.

Is there anything there that jumps out as an error you've seen before?

I can understand the vanilla title not valid, holy site, coat of arms and region errors since they don't exist on the map and i haven't done any fiddling with it yet. But it seems to be failing to recognize the Algerian culture that's in the provinces as a placeholder, and I don't know what the title already exists errors come from. Ignoring this, the most likely cause of the crash (if it's even logged, rather than crashing before it can be) are the 'create vertices' and 'managed' lines. The maps are all multiples of 256 all ways and were created over the vanilla ones (albeit in GIMP, but I followed the instructions for that).

Oh, and it started with this 'Couldn't find texture file: gfx/models/hlup_normal.dds.'
A few thoughts on what you wrote:
  • "Title already exists" is fine, those you can disregard. CK2 allows to declare titles more than once, the result being all those declarations to be merged (in a specific order).
  • You can define holy titles in the spreadsheet, just go ahead and do that to rid yourself of those errors.
  • Generally ck2 map modding involves a lot around finding errors that crash the game but barely are mentioned in the game's logs.
    Map (image) files are quite often the culprits for crashes. I've always used my 10 years old copy of photoshop and only have minimal knowledge of how ck2-things are done in gimp.

  • For debugging purposes it is relevant to check when the game crashes during startup: It prints out what was the last successful step during startup. Whatever comes after in the startup process then is the likeliest culprit of crashing the game.
 
  • 1
Reactions:
Hey Jon, I'm here from your total conversion tutorial for ck2.

When I try to use the mapfiller.bat, an error pops up saying "Error: Unable to access jarfile CK2Tools.jar

So instead of using the batch file I just put the jar file in my map folder, which makes a folder named "Null" with another folder called localisation within it. How could I fix this?
 

Attachments

  • Capture.PNG
    Capture.PNG
    20,7 KB · Views: 0
  • Capt2ure.PNG
    Capt2ure.PNG
    210,1 KB · Views: 0
Last edited:
Hey Jon, I'm here from your total conversion tutorial for ck2.

When I try to use the mapfiller.bat, an error pops up saying "Error: Unable to access jarfile CK2Tools.jar

So instead of using the batch file I just put the jar file in my map folder, which makes a folder named "Null" with another folder called localisation within it. How could I fix this?
The bat file just starts up the code inside the jar file. If you are not starting anything it cannot work.
 
The bat file just starts up the code inside the jar file. If you are not starting anything it cannot work.
Sorry I should've been a bit more explicit in my wording - I am putting the jar file in the map folder and starting it, but all it does is create a folder named "null".


EDIT: I got it working, that problem is solved.
 
Last edited:
Irish has to come from somewhere. In your case, probably, you haven't added culture to "replace_path" so the whole vanilla folder is used in the mod.
Alright so I added the replace_path to the .mod file for cultures but now the test guy has "noculture", and the play button is greyed out. Should I make a cultures file in common and copy Irish over from vanilla?
 
Hey @JonStryker, sorry to drag you back to your old converter, but I found a bug in your reverse_mapfiller.

When it tries to parse pentarchy titles that use a non-boolean value it breaks.

it was changed a while back to accept religions as a value, so separate pentarchic religions can have different baronies for their pentarchs.

Exception in thread "main" java.lang.IllegalStateException: java.lang.IllegalArgumentException: Can not set java.lang.Boolean field kld.ck2tools.mapfiller_inverse.beans.titles.Title.pentarchy to null value.
 
Hey @JonStryker, sorry to drag you back to your old converter, but I found a bug in your reverse_mapfiller.

When it tries to parse pentarchy titles that use a non-boolean value it breaks.

it was changed a while back to accept religions as a value, so separate pentarchic religions can have different baronies for their pentarchs.

Exception in thread "main" java.lang.IllegalStateException: java.lang.IllegalArgumentException: Can not set java.lang.Boolean field kld.ck2tools.mapfiller_inverse.beans.titles.Title.pentarchy to null value.
I'll look into that, shouldn't be too hard to fix