• 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.
Just curious, is there a reason the wastelands have to be at the top of the list?
 
Ah, great thanks to you, it after I divided up the "super provinces" I had I managed to get all the way to calculating naval distances without a crash, anyone has an idea what could cause a crash in that phase? Files. I tried dividing up the sea provinces more than fixing the calc. paths required(only needed the big province cut in half) but it didn't seem to help any. Could it be related to the number of adjectancies sea provinces have or? Any help greatly appreciated as always.

did anyone ever figure out what causes this? I'm having this problem and I can't work out how to get round it. I've made three separate maps and they all crash on "calculating naval distances".
 
did anyone ever figure out what causes this? I'm having this problem and I can't work out how to get round it. I've made three separate maps and they all crash on "calculating naval distances".

I had such problem when I didn't have a positions.txt in map directory, so the vanilla file was used, but after making new postitions.txt file (empty file will also do) everything worked.
 
When I run ck2tools.bat, it creates 'map\definition.csv' and 'localisation/_barony_names.csv', '_county_names.csv' and '_province_names.csv' before printing out the following error message and closing:
Code:
        Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.charAt(Unknown Source)
        at kld.ck2tools.ConvertXlsToProvinces.writeLocalisation(ConvertXlsToProvinces.java:329)
        at kld.ck2tools.ConvertXlsToProvinces.start(ConvertXlsToProvinces.java:63)
        at kld.ck2tools.ConvertXlsToProvinces.main(ConvertXlsToProvinces.java:49)

It could very possibly be a mistake I've made.
Do you think you know what might cause it? ;o
 
Last edited:
When I run ck2tools.bat, it creates 'map\definition.csv' and 'localisation/_barony_names.csv', '_county_names.csv' and '_province_names.csv' before printing out the following error message and closing:
Code:
        Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
        at java.lang.String.charAt(Unknown Source)
        at kld.ck2tools.ConvertXlsToProvinces.writeLocalisation(ConvertXlsToProvinces.java:329)
        at kld.ck2tools.ConvertXlsToProvinces.start(ConvertXlsToProvinces.java:63)
        at kld.ck2tools.ConvertXlsToProvinces.main(ConvertXlsToProvinces.java:49)

It could very possibly be a mistake I've made.
Do you think you know what might cause it? ;o

Well it is of course a bug as the tool shouldn't bug out when it encounters text it doesn't expect.
Here's what I am doing at that line where it breaks (329): All holdings get append "ian" to construct a basic adjective for them. While doing this I omit all vowels at the end of the holding name -> Austria gets Austrian and not Austriaian. In your case apparantly the name is very, very short (i.e. length 0) so it bugs out there.
Apparantly you've left some vital cells empty in your excel.

I'll probably upload a version where the tool continues to work after this point. But the result won't be all that excellent as something's gotta be wrong with the data.
 
Last edited:
My first question would be, how do you make a custom map?

I'd reccomend watching the series by 'SonicTheBluHedgehog', he explains it quite well.
First video: http://www.youtube.com/watch?v=fFtGv0iMYAY



I hope you don't mind me asking more questions. I've encountered an error when I try to launch the game with the mod.
While loading, it gets stuck on 'Initialising Map Logic' and the game stops responding.
In graphics.log, it prints:
Code:
[map.cpp:1334]: Province 1 has no pixels in provinces.bmp
[map.cpp:1334]: Province 2 has no pixels in provinces.bmp
[map.cpp:1334]: Province 3 has no pixels in provinces.bmp
[map.cpp:1334]: Province 4 has no pixels in provinces.bmp
[map.cpp:1334]: Province 5 has no pixels in provinces.bmp
[map.cpp:1334]: Province 6 has no pixels in provinces.bmp
[map.cpp:1334]: Province 7 has no pixels in provinces.bmp
[map.cpp:1334]: Province 8 has no pixels in provinces.bmp
.....
- Keeps going on down to province 101 -

And in error.log,
Code:
[texturehandler.cpp:181]: Couldn't find texture file: gfx//event_pictures//aztec_court.tga.
[spritetype.cpp:370]: Error initialising texture: gfx\\event_pictures\\aztec_court.tga for spritetype GFX_evt_emissary_mesoamerican
[spritetype.cpp:370]: Error initialising texture: gfx\\event_pictures\\aztec_court.tga for spritetype GFX_evt_throne_room_mesoamerican

Do you know any normal mistakes that can cause such an error/how the error can be fixed?
 
Last edited:
You have to link colored areas on your provinces.bmp to your definitions.csv (or the provinceDev.xls if you use the tool). It seems as if none of your defined provinces are actually on the provinces.bmp.

The errors from the error.log just mean that you are lacking the Sunset Invasion DLC. Nothing to worry about.
 
Huh, that's odd.
Are there some image editing programs that are better for mapping than others (Getting RGB codes)? I've had similar trouble with RGB colours (If that's the actual problem here) while doing webdesign.
If not, would you mind taking a quick look at it? :)
 
Last edited:
Huh, that's odd.
Are there some image editing programs that are better for mapping than others (Getting RGB codes)? I've had similar trouble with RGB colours (If that's the actual problem here) while doing webdesign.
If not, would you mind taking a quick look at it? :)

I usually use the Python script mentioned in the OP or Photoshop to get the RGB values out of the file.
 
Hm, Paint.NET, Gimp and Photoshop all give me the same RGB values, so it would be strange if that was the problem.
Would you mind taking a quick look at the mod to see if you can spot a mistake I've made? I'm pretty clueless at this point.
 
Hmm the tool doesn't seem to work properly for me.

I am currently using this to edit the vanilla map, so I am not sure if I wrote anything wrong in the provinceDef.

Here is the link to the file I am currently editing. I'm not sure if I am doing anything wrong.
https://www.dropbox.com/s/nfu2j5phlh2uwpj/provinceDef.xls

The vanilla map should NOT be edited with the tool. It is supposed to be used for when you start from blank.