• 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.
So my mod keeps crashing after initializing the caususbelli database, not really sure what's causing it. My mod is attached
 

Attachments

  • mapalpha.zip
    3,5 MB · Views: 0
Hey! Just wanted to say, this tool has been hugely helpful in the development of our mod. It turned a tedious drag into a relatively quick and painless process.

I've got one little request, if it's not too much. I've noticed that defined barony names, beyond the assigned max in the province, are not processed by the mapfiller tool into the text files. This result in issues with the reaper's due features relating to the extra holding slots that can be gained through prosperity - as there is no defined barony for that holding slot, it stays greyed out and nothing can be built in it.

We can manually add these (#b_whatever_x) to each file manually, but I was wondering if it would be feasible for the tool to be updated to take this into account, if it's still being developed. Otherwise it's not too big of an issue (especially given how much time and frustration the base tool has saved us already), but it would be nice not only for us but anyone making a mod of a similar scale.

Many thanks!
 
Thanks a lot man!

I'll change the barony generation algorithm accordingly. Just don't expect a release before July ;)

Awesome! Really appreciate it - and I'm sure others will too. Will eagerly await. :)
 
Hi, first I would like to say that your tutorial is very good, thank you very much for it.
Next, I have a problem when I start mapfiller.bat, it don't works, here is what is displayed :

C:\Users\quent\Desktop\Modding\CK2Tools-v19>java -Xmx256m -jar CK2Tools.jar
Not found: C:\Documents\Paradox Interactive\Crusader Kings II\mod\Map_Test\map\provinces.bmp
javax.imageio.IIOException: Can't read input file!
at 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\quent\Desktop\Modding\CK2Tools-v19>pause
Appuyez sur une touche pour continuer...


I have tried many things but nothing change, so I hope you will help me,

Thanks once again for what you have done.
 
I'm getting the following error when running mapFiller.bat v19 with Witcher Kings provinceDef.xls:
(...)
No country, line 860 ---
|482.0|80.0|226.0|239.0|E Northern Sea||||||Great Ocean||0.0|
provinceDef has wrong format!?
No country, line 861 ---

ignored ids: []
Exception in thread "main" java.lang.NullPointerException
at kld.ck2tools.mapfiller.ConvertXlsToProvinces.getLocalNames(ConvertXlsToProvinces.java:277)
at kld.ck2tools.mapfiller.ConvertXlsToProvinces.parseLocalisation(ConvertXlsToProvinces.java:217)
at kld.ck2tools.mapfiller.ConvertXlsToProvinces.start(ConvertXlsToProvinces.java:167)
at kld.ck2tools.mapfiller.ConvertXlsToProvinces.main(ConvertXlsToProvinces.java:153)
After the execution localisation/00_province_names.csv was overridden, but not landed_titles or other localization files.
 
The main issue is that the Witcher Kings provinceDef needs an empty column added between F and G.
Also *someone* felt the need to remove the de jure imperial titles of Temeria, Kaedwen, etc.

So the xls needs a little work additionally to that. I've spent some time on it now. I hope I get to push any of that ;)
 
Last edited:
Hi, great tutoriall, but the .bat isn't working, it gives the following error message


provinceDef has wrong format!?
No country, line 744 ---

Province [6] ignored [198, 15, 15] : Q
Province [35] ignored [133, 33, 39] : D
Province [81] ignored [172, 39, 49] : A
Province [202] ignored [ 58,145, 17] : X
Province [237] ignored [112, 29, 30] : P
Province [458] ignored [208,153, 80] : Q
Province [505] ignored [250,157, 98] : R
Province [577] ignored [ 12,139, 99] : S
Province [591] ignored [ 69,168,131] : T
ignored ids: [81, 577, 35, 6, 505, 202, 458, 237, 591]


"Write title history for c_zaylohar @Qotheran|Galoyans|Rizeyroq: c_zaylohar
Exception in thread "main" java.lang.NullPointerException
at kld.ck2tools.mapfiller.bean.County.getType(County.java:229)
at kld.ck2tools.mapfiller.ConvertXlsToProvinces.writeHistoryTitle(Conver
tXlsToProvinces.java:1515)
at kld.ck2tools.mapfiller.ConvertXlsToProvinces.writeHistTitles(ConvertX
lsToProvinces.java:1460)
at kld.ck2tools.mapfiller.ConvertXlsToProvinces.start(ConvertXlsToProvin
ces.java:195)
at kld.ck2tools.mapfiller.ConvertXlsToProvinces.main(ConvertXlsToProvinc
es.java:153)

E:\CK2Tools-v19 (1)\CK2Tools-v19>pause
Press any key to continue . . ."

Could anyone translate this?
 
Why does it give me a definition like this?


province;red;green;blue;x;x
1;1;1;1;PLACEHOLDER1;x
2;1;1;2;PLACEHOLDER2;x
3;1;2;2;PLACEHOLDER3;x
4;2;2;2;PLACEHOLDER4;x
5;2;2;3;PLACEHOLDER5;x
6;2;3;3;PLACEHOLDER6;x
7;3;3;3;PLACEHOLDER7;x
8;3;3;4;PLACEHOLDER8;x
9;3;4;4;PLACEHOLDER9;x
10;4;4;4;PLACEHOLDER10;x
11;4;4;5;PLACEHOLDER11;x
12;4;5;5;PLACEHOLDER12;x
13;5;5;5;PLACEHOLDER13;x
14;5;5;6;PLACEHOLDER14;x
15;5;6;6;PLACEHOLDER15;x
16;6;6;6;PLACEHOLDER16;x
17;6;6;7;PLACEHOLDER17;x
18;6;7;7;PLACEHOLDER18;x
19;7;7;7;PLACEHOLDER19;x
20;7;7;8;PLACEHOLDER20;x
21;7;8;8;PLACEHOLDER21;x
22;8;8;8;PLACEHOLDER22;x
23;8;8;9;PLACEHOLDER23;x
24;8;9;9;PLACEHOLDER24;x
25;9;9;9;PLACEHOLDER25;x
26;9;9;10;PLACEHOLDER26;x
27;9;10;10;PLACEHOLDER27;x
28;10;10;10;PLACEHOLDER28;x
29;10;10;11;PLACEHOLDER29;x
30;10;11;11;PLACEHOLDER30;x

It does this even if I use your provinceDef



Edit: I thought this was my issue; but apparently I misdiagnosed late at night. It happens because it reads your provinces.bmp now, and puts in the placeholder bit for anything it doesn't find in your imagefile, despite what you've written in provinceDef. I'm not a fan of this change, spent a lot of time troubleshooting this when it worked fine before.
 
Last edited:
I tried the older version and it gave the definitions text I was expecting, so I would assume so.

It's not an issue anyway, I thought the weird definitions was causing the crashes, but it's the default file that puts the province numbers too low for some of the vanilla files still in use.
 
Thanks @knuckey for the praise. Means a lot coming from you ;)

I am very slow with updates these days. But I handed in one of my theses a week ago so there is more time than over the last few years.

I would usually make a second landed_titles file to "overwrite" some of the colors. That totally works as long as the load order is correct:

GtNet9N.png


Title renamings can be plugged into the landed_titles by way of the data columns. Could be done for colors as well. Problem is, though, that every line in the excel file is a county. Duchy/kingdom/empire information would need to be written into one of these lines. Or there would need to be a separate (properties) file from where those colors are taken.

If you have some nice(r) way to do this envisioned I'll gladly implement it like that.
 
Thanks @knuckey for the praise. Means a lot coming from you ;)
No problem!

I would usually make a second landed_titles file to "overwrite" some of the colors. That totally works as long as the load order is correct:

GtNet9N.png


Title renamings can be plugged into the landed_titles by way of the data columns. Could be done for colors as well. Problem is, though, that every line in the excel file is a county. Duchy/kingdom/empire information would need to be written into one of these lines. Or there would need to be a separate (properties) file from where those colors are taken.

If you have some nice(r) way to do this envisioned I'll gladly implement it like that.
I hadn't thought of doing it that way. The way I imagined was to perhaps set a colour for each de jure kingdom, perhaps in a separate properties file as you say, and then variations on that colour are somehow derived from that for all the sub titles. Whether that is possible I dont know, however the way you describe to define the colours seems easier in any case :D