• 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.
Hey, I've encountered a problem of some sort. When I run the mapfiller.bat, I get this code:

Code:
C:\Users\Jasper\Desktop\ck2tools>java -Xmx256m -jar CK2Tools.jar
Not found: H:\Downloads\Help Files\Esperanto Dev Diary\map\provinces.bmp
javax.imageio.IIOException: Can't read input file!
        at javax.imageio.ImageIO.read(Unknown Source)
        at kld.ck2tools.bmpvalues.ColorPaletteExtractor.getColors(ColorPaletteEx
tractor.java:42)
        at kld.ck2tools.mapfiller.ConvertXlsToProvinces.preParseColors(ConvertXl
sToProvinces.java:330)
        at kld.ck2tools.mapfiller.ConvertXlsToProvinces.start(ConvertXlsToProvin
ces.java:141)
        at kld.ck2tools.mapfiller.ConvertXlsToProvinces.main(ConvertXlsToProvinc
es.java:132)

C:\Users\Jasper\Desktop\ck2tools>pause
Press any key to continue . . .

I am incredibly confused by the Esperanto line. What did I do wrong to cause this?
 
Hello guys, i'm having a problem with this message:

[error report]

Any clue what is causing this? thanx.

I encountered this as well, but don´t remember how I fixed this.

I do remember finding an error in my provincedev recently though. Due to unoriginal Icelanders a few baronies shared the same name. Are Spaniards as unoriginal :) ?
 
Name duplicates shouldn't be a problem in the provincedef file ;)

Well then :D, need to worry then. His error says country, not county though.

Btw, the default.map part of the mapfiller needs a tiny update.It should create a default.map with

region = "island_region.txt"
geographical_region = "geographical_region.txt"

instead of

region = "region.txt"
 
Well then :D, need to worry then. His error says country, not county though.

Btw, the default.map part of the mapfiller needs a tiny update.It should create a default.map with



instead of

Just add this to the config file under where it says defaultMap_center:

Code:
region = "island_region.txt"\n\
geographical_region = "geographical_region.txt"\n\
 
  • 1
Reactions:
Just add this to the config file under where it says defaultMap_center:

Code:
region = "island_region.txt"\n\
geographical_region = "geographical_region.txt"\n\

Ah thanks, I did it manually, but this will make my life easier though when I am rerunning it :).
 
That's a directory that exists on the computer Paradox uses to compile the game. It usually comes up if there's some file/folder the game is looking for but can't find.
 
@JaakLeuk

Whenever I got this issue it was because of the Regions in the default.map, check that the files it's looking for actually exist in your map folder. If that's not it, then it must be another file it's looking for.

To expand on that, the mapfiller for some reason creates the following passage in the default.map.

region = "region.txt"

instead of

region = "island_region.txt"
geographical_region = "geographical_region.txt"

Replace the former with the latter if you haven't already done so.
 
It is just absolutely not working.

I have the most recent version of the tool, and everything to the best of my knowledge is perfect.

I fixed the region.txt manually but the error persisted. only difference is the prompt couldn't even tell me what it was looking for.
 
  • 1
Reactions:
As always: post your xls and I will have a look.
https://www.dropbox.com/s/laabqewh8s4s8at/provinceDef.xls?dl=0

Here's mine

Config as well:
moddirectory=C:\\Users\\Blackdragon\\Documents\\Paradox Interactive\\Crusader Kings II\\mod\\Azerothian Kings
moddirectory2=D:\\Program Files\\Steam\\steamapps\\common\\Crusader Kings II

landedTitlesName=01_landed_titles.txt
writeTitleHistory=true
writeTechnologyHistory=true
PLACEHOLDER_FLAG_CHECKSUMS=730032328,2982430784,2136429345,686042394,1250550140,4068395823,1226274226
PLACEHOLDER_FLAG=default_flag.tga

templateTop = # {name}\n\
\n\
# County Title\n\
title = {name}\n\
\n\
# Settlements\n\
max_settlements = {maxSettlements}\n

templateBottom = \n\
# Misc\n\
culture = {culture}\n\
religion = {religion}\n\
{terrain}

header = ###### AUTO GENERATED CONTENT (c) CKTools v16 ######\n\n

empireTemplate = \
e_{name} = {\n\
\tcolor={ {red} {green} {blue} }\n\
\tcolor2={ 255 255 20 }\n\
\t\n\
\tcapital = {capitalId} # {capital}\n\
\tculture = {culture}\n\
\t\n

kingdomTemplate = \
k_{name} = {\n\
\tcolor={ {red} {green} {blue} }\n\
\tcolor2={ 255 255 255 }\n\
\t\n\
\tcapital = {capitalId} # {capital}\n\
\tculture = {culture}\n\
\t\n

duchyTemplate = \
d_{name} = {\n\
\tcolor={ {red} {green} {blue} }\n\
\tcolor2={ 255 255 255 }\n\
\t\n\
\tallow = {\n\
\t\tOR = {\n\
\t\t\tlower_tier_than = KING\n\
\t\t\tany_demesne_province = { {any_county_clause} }\n\
\t\t}\n\
\t}\n\
\tcapital = {capitalId} # {capital}\n\
\t\n

countyTemplate = \
c_{name} = { # {countyId}\n\
\tcolor={ {red} {green} {blue} }\n\
\tcolor2={ 255 255 255 }\n\
\t\n

baronyTemplate = \
b_{name} = {\n\
{content}\
\n

titlePreamble_B = \
# {topLiege}\n\
500.1.1={\n\
\tlaw = agnatic_succession\n\
\tlaw = succ_gavelkind\n\
}\n
titlePreamble_C = \
# {topLiege}\n\
500.1.1={\n\
\tlaw = agnatic_succession\n\
}\n
titlePreamble_T = \
# {topLiege}\n

titleLiegeDefinition = \
800.1.1={\n\
\tliege={liege}\n\
}\n

defaultMap_Center = \
definitions = "definition.csv"\n\
provinces = "provinces.bmp"\n\
positions = "positions.txt"\n\
terrain = "terrain.bmp"\n\
rivers = "rivers.bmp"\n\
terrain_definition = "terrain.txt"\n\
heightmap = "topology.bmp"\n\
tree_definition = "trees.bmp"\n\
continent = "continent.txt"\n\
adjacencies = "adjacencies.csv"\n\
climate = "climate.txt"\n\
region = "island_region.txt"\n\
geographical_region = "geographical_region.txt"\n\
static = "static.txt"\n\
seasons = "seasons.txt"

defaultMap_Trees = \
# Define which indices in trees.bmp palette which should count as trees for automatic terrain assignment\n\
tree = { 3 4 7 10 }\n

# first bookmark date
#tech1.year=1200
#tech1.military=0.5
#tech1.economy=1.0
#tech1.culture=1.0

# last date
#tech2.year=1600
#tech2.military=5.0
#tech2.economy=5.0
#tech2.culture=5.0

# first bookmark date
tech1.year=1
tech1.military=2.0
tech1.economy=2.0
tech1.culture=2.0

# last date
tech2.year=20000
tech2.military=5.0
tech2.economy=5.0

There's been some changes to static.txt now that it is in its own folder, is that anything we should be aware of?
 
blckdrgn -> missing column G
That did it, thanks dude you're amazing.

I think I was using on older version of the sheet and thats what lead to this, I just shuffled everything over one box and pow, works. I'm still getting the null error for prov 540 and then half a dozen provIDs that aren't actually on the XML but I guess I'll look into that later since this fixes most of my issue.
 
@JonStryker May I request that you give some kind of guide or instructions as to how to use the reverse mapfiller? I'm still stuck at the errorI reported a while back when trying to reverse-mapfill the SWMH map.

(also, I think it would be much easier for the user that the output of the reverse mapfiller be printed in a .txt file, with the columns separated by ;s, instead of blank spaces, that way, the user would have the ability to instantly open it iwth a spreadsheet editor not needing any previous work.

Thank you very much.

)Also, does the current version deal with province_setup?).
 
  • 1
Reactions:
@JonStryker May I request that you give some kind of guide or instructions as to how to use the reverse mapfiller? I'm still stuck at the errorI reported a while back when trying to reverse-mapfill the SWMH map.

(also, I think it would be much easier for the user that the output of the reverse mapfiller be printed in a .txt file, with the columns separated by ;s, instead of blank spaces, that way, the user would have the ability to instantly open it iwth a spreadsheet editor not needing any previous work.

Thank you very much.

)Also, does the current version deal with province_setup?).
You can use notepad++ and CTRL + H to auto replace all the relevant spaces with ;

Use a regular expression if needed