• 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.
There's an error when I launch the map filler

Code:
Exception in thread "main" java.lang.NullPointerException: Cannot read the array length because "<local5>" is null
at kld.ck3tools.mapfiller.ConvertXlsToProvinces.generateMapFiles(ConvertXlsToProvinces.java:285)
at kld.ck3tools.mapfiller.ConvertXlsToProvinces.start(ConvertXlsToProvinces.java:164)
at kld.ck3tools.mapfiller.ConvertXlsToProvinces.main(ConvertXlsToProvinces.java:146)
Did you configure installdir so that it points to the right directory?
 
  • 1Like
Reactions:
Would be great if you could find out / investigate what causes your CTD. Maybe removing some of the generated files makes the mod load up again and then I have an easier time figuring this out.
With trial and error I've narrowed it down to history\province_mapping. For some reason your empty files causes a ctd. I'm not even sure what the purpose of those files are in vanilla. It seems to be some sort of grouping of provinces.
 
  • 2
Reactions:
With trial and error I've narrowed it down to history\province_mapping. For some reason your empty files causes a ctd. I'm not even sure what the purpose of those files are in vanilla. It seems to be some sort of grouping of provinces.
Same here, it crashed, I read your reply and tried erasing province_mapping and now it works
 
Same here, it crashed, I read your reply and tried erasing province_mapping and now it works
Funnily enough I came to the same conclusion independently of you guys earlier today. Have to check how to properly address that. I do have wrong cultures/religions present when I load with the vanilla province_mappings present. But it loads and that is step 1.
 
CK3Tools.jar should be there, right next to the .bat file. If it is not you'd get an error like that
Screenshot_6.png

Launch without admin:
Screenshot_4.png
Installed: JDK 13 and JRE 8.
 
You are running JRE 8 in the console
  • Java SE 14 = 58
  • Java SE 13 = 57
  • Java SE 12 = 56 (0x38 hex)
  • Java SE 11 = 55 (0x37 hex)
  • Java SE 10 = 54
  • Java SE 9 = 53
  • Java SE 8 = 52
  • Java SE 7 = 51
  • Java SE 6.0 = 50
  • Java SE 5.0 = 49
  • JDK 1.4 = 48
  • JDK 1.3 = 47
  • JDK 1.2 = 46
  • JDK 1.1 = 45
The JRE used in the cmd console counts (and needs to be JRE 13). For running this you don't need a JDK at all. Should work if you remove the JRE 8 from your PATH environment variable and replace it with the PATH for JRE 13 (from inside of the jdk folder).

Lots of info on this particular issue on google:
 
Last edited:
You are running JRE 8 in the console
  • Java SE 14 = 58
  • Java SE 13 = 57
  • Java SE 12 = 56 (0x38 hex)
  • Java SE 11 = 55 (0x37 hex)
  • Java SE 10 = 54
  • Java SE 9 = 53
  • Java SE 8 = 52
  • Java SE 7 = 51
  • Java SE 6.0 = 50
  • Java SE 5.0 = 49
  • JDK 1.4 = 48
  • JDK 1.3 = 47
  • JDK 1.2 = 46
  • JDK 1.1 = 45
The JRE used in the cmd console counts (and needs to be JRE 13). For running this you don't need a JDK at all. Should work if you remove the JRE 8 from your PATH environment variable and replace it with the PATH for JRE 13 (from inside of the jdk folder).

Lots of info on this particular issue on google:
I figured it out, without JRE 8 there was also an error, I removed JDK and JRE and reinstalled JDK 13 from the Oracle website and it worked. Although there is no JRE inside the JDK(Anyway, I don't know how it should look). Thank you.
 
I figured it out, without JRE 8 there was also an error, I removed JDK and JRE and reinstalled JDK 13 from the Oracle website and it worked. Although there is no JRE inside the JDK(Anyway, I don't know how it should look). Thank you.
The /bin folder doubles as a JRE. The java.exe is located there.
 
  • 1
Reactions:
@JonStryker - do you know if it is possible to use a slightly larger map than what CK3 does? In CK2 you could make the map slightly larger as long as you didn't go over 12 megapixels; not sure if this is the case now.
 
What about the holding buildings like cities, castles and churches? I can't see them on the map

What about lakes? The territories I labeled lakes are called lakes in game, but visually they're just grass like the rest of the map. Do they necessarily have to be at sea level for water to show up? I don't think so because lake Geneva in vanilla is above sea level for example, isn't it?

And what about lakes as objects in the map editor? I've seen that in the vanilla map there are actual objects where the lakes are, but I can't place them when I'm in the editor. I select the object, switch to spawning mode, click on my lakes, but nothing happens
 
I've been thinking that a column for assigning a province holder could be a valuable addition. If the province is the county capital its holder gains the count title otherwise it is simple barony-level titles. Duchies, kingdoms and empires are probably best done manually. Or at least I don't have a good idea to assigning them via the mapfiller.
 
Is there a way to set baronies as empty rather than having pre built holdings everywhere?
 
  • 1Like
Reactions:
yes, it is in the instructions of second post.

Thanks, I tried before and it didn't work, now I tried again and it works, I probably didn't cancel the title history before rerunning the filler last time
 
This looks aweomse and will be agreat help but I am at my wits end, I have spent the entire day trying to get past the same error Mrtwos was getting "This version of Java only recognises class file version up to 52.0" I have uninstalled older versions of Java, INstalled JDK13.02 and the latest JRE from Java... Is there an older JRE I should donwload from somewhere?

Oh wait.. when I unistalled the JRE but left the JDK it worked!! :p Not sure if I should delete this post or leave in case it helps some one else
1601204303588.png
 
Last edited: