• 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.
Couple questions:

-Is there any quick way to detect miscoloured pixel, other than visual inspection, specially in indexed files?
-Is there any quick way to know which is the RGB value of a colour?
-How can I see the indexed colours of a map?

(I'm using paint.net and gimp, but I am a very poor and starter user of both)
 
In Paint.Net, use the color picker with the advanced color menu open to see the color. In Gimp, I think you can just mouse over a color.

Sorry I can't help with the other questions.
 
Thanks for the advise, but I don't know where is the advanced color menu :(

Anyhow, there is my testing files. They load almost until the end, in "loading graphics". Any advise?. I have two maybe potentially troublesome things: Rivers not set as rivers, but a very thin seas, in that pinky color, and discontinuous provinces (one province corresponding to the white color/land in the rivers image and other corresponding to the rose one/sea).

Could anyone please confirm/disconfirm if any of those is cause the CTD, or if there is something else that is wrong?

Thank you very much

https://www.mediafire.com/?k9bv9odsxc7ss7e

Edit: the graphics don't make sense.

Graphics logs states [spolier] [provincetemplate.cpp:255]: Province 2 has invalid origin
[pdxmapgeneration.cpp:222]: Too small river found at 652, 1530
[pdxmapgeneration.cpp:222]: Too small river found at 1453, 1182
[pdxmapgeneration.cpp:222]: Too small river found at 412, 882
[pdxmapgeneration.cpp:222]: Too small river found at 4294, 741
[pdxmapgeneration.cpp:222]: Too small river found at 1586, 518
[pdxmapgeneration.cpp:222]: Too small river found at 341, 401
[pdxmapgeneration.cpp:222]: Too small river found at 441, 1
[pdxmapgeneration.cpp:222]: Too small river found at 450, 1
[/spolier]

While I have no single river. I don't understand what does the province origin means.

Also, the validator reports bad syntax in the major_river clause in default.map. Could some tell me what is wrong there?
 
Last edited:
Thanks for the advise, but I don't know where is the advanced color menu :(

Anyhow, there is my testing files. They load almost until the end, in "loading graphics". Any advise?. I have two maybe potentially troublesome things: Rivers not set as rivers, but a very thin seas, in that pinky color, and discontinuous provinces (one province corresponding to the white color/land in the rivers image and other corresponding to the rose one/sea).

Could anyone please confirm/disconfirm if any of those is cause the CTD, or if there is something else that is wrong?

Thank you very much

https://www.mediafire.com/?k9bv9odsxc7ss7e

Edit: the graphics don't make sense.

Graphics logs states [spolier] [provincetemplate.cpp:255]: Province 2 has invalid origin
[pdxmapgeneration.cpp:222]: Too small river found at 652, 1530
[pdxmapgeneration.cpp:222]: Too small river found at 1453, 1182
[pdxmapgeneration.cpp:222]: Too small river found at 412, 882
[pdxmapgeneration.cpp:222]: Too small river found at 4294, 741
[pdxmapgeneration.cpp:222]: Too small river found at 1586, 518
[pdxmapgeneration.cpp:222]: Too small river found at 341, 401
[pdxmapgeneration.cpp:222]: Too small river found at 441, 1
[pdxmapgeneration.cpp:222]: Too small river found at 450, 1
[/spolier]

While I have no single river. I don't understand what does the province origin means.

Also, the validator reports bad syntax in the major_river clause in default.map. Could some tell me what is wrong there?

Oha. Another map of Thedas :D

You have wrong color spaces on the map files. Use the same ones vanilla uses.

Also the game doesn't like to start up when all land is in one province. You can paint parts of the land black and parts of the water white. There seem to be more lenient rules for black and white, the "unchartered lands" colors.
 
Oha. Another map of Thedas :D

Yeah, I just couldn't resist to try. It seems to be the Excalibur of the CK2 maps XD.

You have wrong color spaces on the map files. Use the same ones vanilla uses.

Excuse me for my blatant ignorance, but by color spaces what do you mean? Color tones? Also, could you please tell me what files are wrong? I foresee a frustrating day of pixel hunting and knowing which files are off would help inmensely

Also the game doesn't like to start up when all land is in one province. You can paint parts of the land black and parts of the water white. There seem to be more lenient rules for black and white, the "unchartered lands" colors.

In what map file should I panit white and black? The provinces.bmp? And, does wasteland sea and land province count for province maximum, province definition and such? And if so, (excuse me for asking this here) how do I imput wasteland provinces in the map filler tool?

Thanks

Edit: fixed the miscolored bits: Tere were of course in rivers.bmp. I'm such an idiot sometimes.

The crash still occurs, so I will need to put some wasteland, no see if that works. Basically, I will change that ocean mass in the right half of the map for a mass of land sourrounded by umpassable water to somehow represent the deep roads. I hope that works. However, the validator issue with major rivers in default.map subsist. Any help with that would be greatly helpful too. (And sorry again if these are too noobish questions -this is my first time at map modding.

Edit 2: Added second landmass. Result: the log still tells me that the second province (the ocean) has a wrong origin. In addition, this is the error log, in case this helps diagnosing:

[instanttextboxtype.cpp:92]: Not used, use maxWidth and maxHeight file: launcher/interface/main.gui line: 73
[instanttextboxtype.cpp:92]: Not used, use maxWidth and maxHeight file: launcher/interface/main.gui line: 90
[persistent.cpp:35]: Error: "Unexpected token: clr_global_flag, near line: 8484
" in file: "common/cb_types/00_cb_types.txt" near line: 8484
[persistent.cpp:35]: Error: "Unexpected token: ROOT, near line: 8485
" in file: "common/cb_types/00_cb_types.txt" near line: 8491
[persistent.cpp:35]: Error: "Unexpected token: FROM, near line: 8492
" in file: "common/cb_types/00_cb_types.txt" near line: 8494
[persistent.cpp:35]: Error: "Unexpected token: custom_tooltip, near line: 8498
" in file: "common/cb_types/00_cb_types.txt" near line: 8569
[persistent.cpp:35]: Error: "Unexpected token: clr_global_flag, near line: 8573
" in file: "common/cb_types/00_cb_types.txt" near line: 8573
[persistent.cpp:35]: Error: "Unexpected token: FROM, near line: 8574
" in file: "common/cb_types/00_cb_types.txt" near line: 8576
[persistent.cpp:35]: Error: "Unexpected token: ROOT, near line: 8577
" in file: "common/cb_types/00_cb_types.txt" near line: 8580
[persistent.cpp:35]: Error: "Unexpected token: clr_global_flag, near line: 8584
" in file: "common/cb_types/00_cb_types.txt" near line: 8584
[persistent.cpp:35]: Error: "Unexpected token: ROOT, near line: 8585
" in file: "common/cb_types/00_cb_types.txt" near line: 8589
[persistent.cpp:35]: Error: "Unexpected token: FROM, near line: 8590
" in file: "common/cb_types/00_cb_types.txt" near line: 8592
[persistent.cpp:35]: Error: "Unexpected token: any_defender, near line: 8593
" in file: "common/cb_types/00_cb_types.txt" near line: 8596
[persistent.cpp:35]: Error: "Unexpected token: any_defender, near line: 8597
" in file: "common/cb_types/00_cb_types.txt" near line: 8600
[persistent.cpp:35]: Error: "Unexpected token: clr_global_flag, near line: 8604
" in file: "common/cb_types/00_cb_types.txt" near line: 8604
[persistent.cpp:35]: Error: "Unexpected token: ROOT, near line: 8605
" in file: "common/cb_types/00_cb_types.txt" near line: 8607
[persistent.cpp:35]: Error: "Unexpected token: end_war, near line: 8608
" in file: "common/cb_types/00_cb_types.txt" near line: 8608
[persistent.cpp:35]: Error: "Unexpected token: factor, near line: 8612
" in file: "common/cb_types/00_cb_types.txt" near line: 8612
[persistent.cpp:35]: Error: "Unexpected token: factor, near line: 8616
" in file: "common/cb_types/00_cb_types.txt" near line: 8616
[persistent.cpp:35]: Error: "Unexpected token: factor, near line: 8620
" in file: "common/cb_types/00_cb_types.txt" near line: 8620
[persistent.cpp:35]: Error: "Unexpected token: factor, near line: 8624
" in file: "common/cb_types/00_cb_types.txt" near line: 8624
[persistent.cpp:35]: Error: "Unexpected token: =, near line: 8628
" in file: "common/cb_types/00_cb_types.txt" near line: 8628
[persistent.cpp:35]: Error: "Malformed token: {, near line: 39
" in file: "decisions/holy_order_decisions.txt" near line: 39
[persistent.cpp:35]: Error: "Malformed token: {, near line: 40
" in file: "decisions/holy_order_decisions.txt" near line: 40
[persistent.cpp:35]: Error: "Malformed token: {, near line: 42
" in file: "decisions/holy_order_decisions.txt" near line: 42
[persistent.cpp:35]: Error: "Malformed token: {, near line: 43
" in file: "decisions/holy_order_decisions.txt" near line: 43
[persistent.cpp:35]: Error: "Malformed token: PREV, near line: 43
" in file: "decisions/holy_order_decisions.txt" near line: 43
[persistent.cpp:35]: Error: "Malformed token: {, near line: 1639
" in file: "decisions/minor_decisions.txt" near line: 1639
[persistent.cpp:35]: Error: "Malformed token: no, near line: 1640
" in file: "decisions/minor_decisions.txt" near line: 1640
[persistent.cpp:35]: Error: "Malformed token: c_byzantion, near line: 352
" in file: "decisions/realm_decisions.txt" near line: 352
[persistent.cpp:35]: Error: "Malformed token: {, near line: 353
" in file: "decisions/realm_decisions.txt" near line: 353
[persistent.cpp:35]: Error: "Malformed token: {, near line: 354
" in file: "decisions/realm_decisions.txt" near line: 354
[persistent.cpp:35]: Error: "Malformed token: {, near line: 355
" in file: "decisions/realm_decisions.txt" near line: 355
[persistent.cpp:35]: Error: "Malformed token: orthodox, near line: 356
" in file: "decisions/realm_decisions.txt" near line: 356
[persistent.cpp:35]: Error: "Malformed token: nestorian, near line: 357
" in file: "decisions/realm_decisions.txt" near line: 357
[persistent.cpp:35]: Error: "Malformed token: monothelite, near line: 358
" in file: "decisions/realm_decisions.txt" near line: 358
[persistent.cpp:35]: Error: "Malformed token: iconoclast, near line: 359
" in file: "decisions/realm_decisions.txt" near line: 359
[id.cpp:83]: Failed to create id 91361 41. Already exists in game.
[id.cpp:83]: Failed to create id 91361 41. Already exists in game.
[id.cpp:83]: Failed to create id 91362 41. Already exists in game.
[id.cpp:83]: Failed to create id 88017 41. Already exists in game.
[id.cpp:83]: Failed to create id 88018 41. Already exists in game.
[id.cpp:83]: Failed to create id 88016 41. Already exists in game.
[id.cpp:83]: Failed to create id 88017 41. Already exists in game.
[id.cpp:83]: Failed to create id 88018 41. Already exists in game.
[id.cpp:83]: Failed to create id 8501 41. Already exists in game.
[id.cpp:83]: Failed to create id 8506 41. Already exists in game.
[id.cpp:83]: Failed to create id 8511 41. Already exists in game.
[id.cpp:83]: Failed to create id 8516 41. Already exists in game.
[id.cpp:83]: Failed to create id 8601 41. Already exists in game.
[id.cpp:83]: Failed to create id 8606 41. Already exists in game.
[id.cpp:83]: Failed to create id 8611 41. Already exists in game.
[id.cpp:83]: Failed to create id 8616 41. Already exists in game.
[id.cpp:83]: Failed to create id 1004000 41. Already exists in game.
[id.cpp:83]: Failed to create id 1004005 41. Already exists in game.
[id.cpp:83]: Failed to create id 1004015 41. Already exists in game.
[id.cpp:83]: Failed to create id 1004025 41. Already exists in game.
[id.cpp:83]: Failed to create id 1003125 41. Already exists in game.
[id.cpp:83]: Failed to create id 1003127 41. Already exists in game.
[id.cpp:83]: Failed to create id 86000 41. Already exists in game.
[id.cpp:83]: Failed to create id 1205343 41. Already exists in game.
[id.cpp:83]: Failed to create id 1205347 41. Already exists in game.
[gfx_dx9.cpp:1441]: Error create vertices -2005530516 8 0 28
[gfx_dx9.cpp:1444]: managed

And this is the updated link: http://www.mediafire.com/download/k9bv9odsxc7ss7e/maptesting.rar
 
Last edited:
Hi guys, since i'd like to start learning how to work on a CK II map could you tell me:
1) What's the differences between topology.bmp and world_normal_height.bmp
2) Is there a guide or tutorial about the ways of working on these two files? (which program need to be used, how etc)
 
@ngppgn
Those files have a color index. Go ahead and google that ^^
You have to use the one from the corresponding vanilla file. In Photoshop you can save the color index away and apply it to any image you want. No idea about other software.
Easiest to fix the terrain map would be to copy over the vanilla file. Then resize it to the size you are working with. Then paste over your custom terrain.
 
Well, I actual y pasted it over the corresponding Elder Kings maps (were of the size I wanted). May it be that Elder Kings have different indexes? In any case, I'll try later with vanilla maps and let you know.

Is there anything else I'd need to fix? Those logs look scary, specially those last lunes about vértices...

Thank you again
 
Well, I actual y pasted it over the corresponding Elder Kings maps (were of the size I wanted). May it be that Elder Kings have different indexes? In any case, I'll try later with vanilla maps and let you know.

Is there anything else I'd need to fix? Those logs look scary, specially those last lunes about vértices...

Thank you again

ElderKings is indeed using a different index.
 
So, fixes the indexes. The error about provence 2 having invalid origin persists. I have tried to put it at the bottom of the deffinition. Now there are the invalid origin error entry along three more telling that mapobjects 44 78 @nd 109 failed to load. What does that means?

I tried to add a second sea Province, adding the corresponding definition line and changing the number of max provinces to 5 in default. Map, but them the game would crash after calculating adjacencies. What else am I doing wrong?
 
So, fixes the indexes. The error about provence 2 having invalid origin persists. I have tried to put it at the bottom of the deffinition. Now there are the invalid origin error entry along three more telling that mapobjects 44 78 @nd 109 failed to load. What does that means?

I tried to add a second sea Province, adding the corresponding definition line and changing the number of max provinces to 5 in default. Map, but them the game would crash after calculating adjacencies. What else am I doing wrong?

Why are you messing with the default.map anyways? You should trust the map filler tool more ... it generates that for you, too.
 
Added a fourth province ( a maritime one) via the filler tool. Everything continues as above. Actual graphics log looks like this:

Code:
[provincetemplate.cpp:255]: Province 3 has invalid origin
[pdxmap.cpp:2293]: mapobject_44 failed to load
[pdxmap.cpp:2293]: mapobject_78 failed to load
[pdxmap.cpp:2293]: mapobject_109 failed to load

The error log is as before. What are those mapobjects that are now failing to load? What else should I do to fix this?

Edit: here is the updated link: https://www.mediafire.com/?k9bv9odsxc7ss7e
 
Last edited:
Added a fourth province ( a maritime one) via the filler tool. Everything continues as above. Actual graphics log looks like this:

Code:
[provincetemplate.cpp:255]: Province 3 has invalid origin
[pdxmap.cpp:2293]: mapobject_44 failed to load
[pdxmap.cpp:2293]: mapobject_78 failed to load
[pdxmap.cpp:2293]: mapobject_109 failed to load

The error log is as before. What are those mapobjects that are now failing to load? What else should I do to fix this?

Check list:
- Remove everything but colormap.dds and colormap_water.dds from the map/terrain folder.
- Delete everything from the adjacencies.csv expect the first line.
- Create a new file map/positions.txt that is empty
- Remove the stray pixels from terrain.bmp, use the correct color index
- rivers.bmp: correct color index.
- topology.bmp: Make a new one, 94/94/94 for water, 96/96/96. Unlike rivers.bmp having a single colored file isn't
- world_normal_height: Use a file that has the same dimension as your other files
 
In the way of checking all of those (Are there still rivers and terrain wrong? That's unbelievable! Sigh...). But: I dont have an adjacencies file, should I create one?

Thanks again for your help and patience, by the way

Edit: All items checked;
-done
-created a new adjacencies file (there were none) with only the first line -the one telling what is eack column
-done
-there are none left, as far as I know. If there are any left, I can't find it
-I have found the way to copy index tables, so all indexed files have vanilla indexes now, instead of being blunt overriding of vanilla files in the hope that indexed would carry over
-Done
-Done

Result: the mapobject lines are no longer in the graphics log, but the invalid origin of province 3 is still there.
I'll upload the modified files as soon as my bad connection lets me
 
Last edited:
https://www.mediafire.com/?k9bv9odsxc7ss7e

The files updated. I think that I'm exhausting action possibilities... Any further help would be desperately thanked

Edit: changed all maps a bit:
-ensured indexes are the same as vanilla files (topology shouldn't be indexed, right? The vanilla one display in GIMP as "scale of grey" mode instead of RGB or indexed mode)
-ensured there are no stray pixels (the mapchecker doesn't find any, and the other files are apropriate indexed recolors of the province files).
-ensured all files are exporte in 24 bits without intercolor spaces (or whatever the option is called); not sure about the two .dds files setting though
-deleted the testing circular sea province and split the sea provinces again in two: one encompasing all the sea pixels connected with the big ocean and one encompasing the rest of sea pixels.

Result: now the graphics log tells me that province 0 (!!!) has no valid origin. What could that possibly mean? I mean, there os no province 0, and there should be (or at least all mods start definition with the province # 1).

Any help with this transformed issue would be greatly welcome
 
Last edited:
Success!... partially. here is what I've done so far:

Created proper rivers in rivers map. Removed rivers extension of the seas in provinces map Added every inner sea except one as white territory (terra incognita) added part of the eastern land province as black territory (terra incognita.

And those are the results:
-graphics log changed: "too small rivers" refering at the yellow pixels denoting river bifurcations. However i've used them as seen in other mods and have the right indexes. What's wrong with them? "Province 0 hasinvalid origin continue to haunt me though.
-Now it crash at calculating naval ranges, so it is an advance. Now, is the remaining crash related to the issue with the rivers? Or something else entirely?

A always, thanks for any prospective help. Link to the updated files below:

https://www.mediafire.com/?k9bv9odsxc7ss7e
 
Last edited:
You should really consider to work on the Thedas kings map. Seems to have been mostly abandoned by its creators but many parts of their map are pretty damn great. That central river looks very cool on their map.
 
You should really consider to work on the Thedas kings map. Seems to have been mostly abandoned by its creators but many parts of their map are pretty damn great. That central river looks very cool on their map.

As homeworlder has claimed that their project is "on hold" as opposed as abandoned, I'd prefer to keep this to my own, specially since I don't seem able to event make into the game!

Any idea of what could make a mod crash into calculating naval ranges? the default.map? Having only One ocean province? Having an inland ocean? Having an inland sea zone?

Reading thorugh this entire thread (well, through its first half) I have read guesses that the "province 0 has invalid origin" is harmless. If I get rid of my rivers I remain with only this error (and a bunch of "id X could not be created" and "malformed token" in the error log that seem to pertain to vanilla and therefore be also irrelevant. What else should I look for? Has something changed after ROI that block the possibility of low number of provinces maps? In that youtube tutorial the guy made a map with a single land province and a single sea province, is that no longer possible?

I have also tried meesing with seas setup: having the two seas in the same sea zone and the same ocean, iaving them in separated sea zones and no ocean, having them in separated sea zones and only the external sea as an ocean... with the same result of crashing at calculating naval ranges.

Could it have to do with having "terra incognita" lakes? Or maybe do both the land and sea terra incognita have to count as proper provinces? Any answer to these could be very helpful in narrowing down the cause of the problem

Also,wouldhaving aprovince setup from other map provoke a crask? I'm so desperate to see it ingame that Iwould go that far
 
Last edited: