• 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.
Hi, I've got a little problem, ck2tools.bat doesn't work. Can you help me? I'm not able to find the mistake, possibly something wrong with Java?
Here's a little screen: zqpacyey.png
Thanks for help!
 
Oh, wow, first post ;)

The config of the map filler tool by default points to my local directories. So you would have to put your own path in first to use it. You seem to have skipped 1)-3) of the tutorial ;)
 
Oh, wow, first post ;)

The config of the map filler tool by default points to my local directories. So you would have to put your own path in first to use it. You seem to have skipped 1)-3) of the tutorial ;)
Yes, first post :D
Perhaps a silly question, but there are five "moddirectory=". What shall I do with the four other of them?
#moddirectory=E:\\Documents\\Paradox Interactive\\Crusader Kings II\\mod\\Witcher
#moddirectory=E:\\Documents\\Paradox Interactive\\Crusader Kings II\\mod\\Europe
#moddirectory=D:\\Dropbox\\_Witcher\\trunk\\MOD\\Witcher
moddirectory=G:\\Dropbox\\_Stuff\\birthright\\Birthright2
#moddirectory=D:\\Dropbox\\_Stuff\\birthright\\Birthright2
I have to replace the first path, right?
 
4 are commented out. Just edit the one that isn't commented out to point to your mod. (Or comment that one out and uncomment and edit one of the others, if it's easier.)
 
v11
--------------------

Small bugfix release ;)



Edit:
If you get a NullPointerException try to add this to your config.txt:
Code:
titlePreamble_B = \
500.1.1={\n\
\tlaw = agnatic_succession\n\
\tlaw = succ_gavelkind\n\
}\n
titlePreamble_C = \
 500.1.1={\n\
 \tlaw = agnatic_succession\n\
 }\n
titlePreamble_T =

Edit2: For a fixed version re-download from the same link
 
Last edited:
Some starting difficulty but worked fine. Nice tool.

Note: the entry titlePreamble_B and titlePreamble_C werent in config.properties

Note2: if you add culture and religion to a sea zone it try to produce the title history and crash, change it so that is based on numH onlu

P.S. If someone is intrested i just made a proviceDef for the vanilla map, it's filled with a dummy religion and culture but for the rest is fine

Edit: also are sea zones and oceans set up? it's not really a problem but it at the moment i have to delete the generated default.map
 
Last edited:
Some starting difficulty but worked fine. Nice tool.

Note: the entry titlePreamble_B and titlePreamble_C werent in config.properties

Note2: if you add culture and religion to a sea zone it try to produce the title history and crash, change it so that is based on numH onlu

P.S. If someone is intrested i just made a proviceDef for the vanilla map, it's filled with a dummy religion and culture but for the rest is fine

Okidokey, said and done. But giving culture and religion to ocean provinces sure is a stupid idea :p

Vanilla proviceDef sounds like a lot of work. All the many, many duchy names :eek:hmy:
 
Last edited:
I can't get it to work, and don't know why. Running the jar file does nothing; running the bat file reports the following (translated from Spanish):

C:\Users\usuario\Documents\Paradox Interactive\Crusader Kings II\mod\maptesting>java -Xmx256m -jar CK2Tools.jar
"java" is not recognised as an internal or external command, program or executable file.

C:\Users\usuario\Documents\Paradox Interactive\Crusader Kings II\mod\maptesting>pause
Press a button to continue...

Of course, pressing a button exits the programm.

I have a recient installation of java, so outdatedness is not the source of the problem. What else can be causing it?
 
I can't get it to work, and don't know why. Running the jar file does nothing; running the bat file reports the following (translated from Spanish):

C:\Users\usuario\Documents\Paradox Interactive\Crusader Kings II\mod\maptesting>java -Xmx256m -jar CK2Tools.jar
"java" is not recognised as an internal or external command, program or executable file.

C:\Users\usuario\Documents\Paradox Interactive\Crusader Kings II\mod\maptesting>pause
Press a button to continue...

Of course, pressing a button exits the programm.

I have a recient installation of java, so outdatedness is not the source of the problem. What else can be causing it?

http://stackoverflow.com/questions/...recognized-as-an-internal-or-external-command

tl;dr: You probably, did not, in fact install the newest version of java. Or your path system variable isn't correct. Also keep in mind that JRE and JDK are not the same.
 
Thanks! Adding a column for terrain did make the tool work!

Sorry to bother you with another question, but my mod seems to keep crashing at 'creating trees'; any idea what might cause this?
I have same problem. My map with whole one province seems to be crashing at the same part of loading.
 
Code:
C:\Users\BLANK\Documents\Paradox Interactive\Crusader Kings II\tools\CK2Tools-
v12>java -Xmx256m -jar CK2Tools.jar
no main manifest attribute, in CK2Tools.jar


C:\Users\BLANK\Documents\Paradox Interactive\Crusader Kings II\tools\CK2Tools-
v12>pause
Press any key to continue . . .

So what would this be causing this? I just reinstalled Java.
 
Code:
C:\Users\BLANK\Documents\Paradox Interactive\Crusader Kings II\tools\CK2Tools-
v12>java -Xmx256m -jar CK2Tools.jar
no main manifest attribute, in CK2Tools.jar


C:\Users\BLANK\Documents\Paradox Interactive\Crusader Kings II\tools\CK2Tools-
v12>pause
Press any key to continue . . .

So what would this be causing this? I just reinstalled Java.

Ooooh :sad:
Please re-download from the same link. I might've forgotten to put the manifest file into the jar ;)
 
Can you make the colors.bat work automaticly without having to type the path? I just can't make the bat work and I don't want to type all the paths again and again.


Also, Should I be using Apache Open Office or Microsoft Excel with your .xls? I think that might be causing some problems for me.
 
Last edited:
Can you make the colors.bat work automaticly without having to type the path? I just can't make the bat work and I don't want to type all the paths again and again.


Also, Should I be using Apache Open Office or Microsoft Excel with your .xls? I think that might be causing some problems for me.

Sorry for answering so late.
There might be some issue with the color extraction batch script. I can of course change it so that it always searches for a file with a specific name in the same folder
Also there might be some issue with v12; I'll release a v13 shortly that'll take Charlemagne changes into account.
 
Hi! I am getting a java exception thrown for some reason. Here's the relevant code:

Code:
Exception in thread "main" java.lang.NumberFormatException: For input string: "R
ed"
        at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
        at java.lang.Double.parseDouble(Unknown Source)
        at kld.ck2tools.ConvertXlsToProvinces.parseCounties(ConvertXlsToProvince
s.java:271)
        at kld.ck2tools.ConvertXlsToProvinces.start(ConvertXlsToProvinces.java:6
6)
        at kld.ck2tools.ConvertXlsToProvinces.main(ConvertXlsToProvinces.java:59
)

I get a similar java exception when I use your scenario editor. I'm using Java 7 64-bit.
 
In the excel file there is the title line: ID, Red, green blue; You are supposed to write the numbers of the rgb colors below that. If you write something that is not a number there this kind of exception will show up. It tried to parse a number out of "Red" which is, in fact, not a number.