• 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.
Damn. Somehow I got it to work, but now the game ends immediately saying that he the leader of a republic, even though the only succession mentioned in the mod is agnatic primogeniture. Sigh.

EDIT: Also fiddled until that worked too. Not sure why but glad it does!
 
Last edited:
Hello,

I'm new to map modding and thought for starters I'd try to add just a single province to the vanilla map. But apparently I must have done something wrong.

I followed the instructionss for adding a province given in the wiki step by step https://ck2.paradoxwikis.com/Map_modding .

But when trying nudge I don't see any icons for the new province (I could edit the province I split it from correctly). I only have an empty selectable province as seen in the screenshot. When I start the game regularly I get an unselectable province (outside all borders if I understood it correctly).

Any guess at what I did wrong?
 

Attachments

  • test.png
    test.png
    4,4 MB · Views: 52
Hello,

I'm new to map modding and thought for starters I'd try to add just a single province to the vanilla map. But apparently I must have done something wrong.

I followed the instructionss for adding a province given in the wiki step by step https://ck2.paradoxwikis.com/Map_modding .

But when trying nudge I don't see any icons for the new province (I could edit the province I split it from correctly). I only have an empty selectable province as seen in the screenshot. When I start the game regularly I get an unselectable province (outside all borders if I understood it correctly).

Any guess at what I did wrong?
Assuming all previous work is done properly, when you open the nudge tool, default position for name cities councillors etc. is 0;0 so you should find them int he very left bottom corner of the map.
To prevent this, you can add an entry in positions.txt with approximative coordinates. Then finetuning them inside nudge tool.

Providing an enpty or no positions.txt file at all will default positions to the centers of provinces. You could start that way, but don't forget to backup your original positions.txt to keep the positions for all non-new provinces.
 
Finally got it to work. I made a number of errors (too many to recall now particularly after doing several rereaads, including missing one apparently part of the wiki's checklist). The last error was a capital letter where a lower case would have been required :-( .

Now I'll create my own step by step checklist and start adding more provinces...
 

Attachments

  • test3.png
    test3.png
    4,2 MB · Views: 48
Just noticed one more apparent problem. Though I set the terrain to forest in common/province_setup/00_province_setup it appears as plains. Did I miss a file to edit?
 
Just noticed one more apparent problem. Though I set the terrain to forest in common/province_setup/00_province_setup it appears as plains. Did I miss a file to edit?
You'd need to define it in the province history. province_setup does actually nothing once ingame.
 
Henlo! Time for me to bump this thread with a handful of questions...
  • How exactly do I define a province as a wasteland? I keep getting a note in the errorlog that the game is expecting history files for the provinces that are not supposed to have owners because they are wastelands, seas or rivers.
  • Have any of you had an issue with the sea level being low? My topology file uses the same grayscale values as the vanilla heightmap (the deepest sea, coastline, and highest peaks are all at the same levels) but for some reason only the blackest black actually gets covered in water.
  • Who has had an issue with a bazillion horizontal coast-to-coast rivers being generated inexplicably, covering up a good part of the map?
Regarding the latter two points: I did take care to save my files with the proper bit depth. But I'm now wondering whether the indexing was thrown off at some point in the process. Copying over the vanilla file, rescaling and pasting my modded picture on top of it, then using that, did not yield and benefits. Is there any way for me to check how the colours in the bmp are indexed?
 
Henlo! Time for me to bump this thread with a handful of questions...
  • How exactly do I define a province as a wasteland? I keep getting a note in the errorlog that the game is expecting history files for the provinces that are not supposed to have owners because they are wastelands, seas or rivers.
  • Have any of you had an issue with the sea level being low? My topology file uses the same grayscale values as the vanilla heightmap (the deepest sea, coastline, and highest peaks are all at the same levels) but for some reason only the blackest black actually gets covered in water.
  • Who has had an issue with a bazillion horizontal coast-to-coast rivers being generated inexplicably, covering up a good part of the map?
Regarding the latter two points: I did take care to save my files with the proper bit depth. But I'm now wondering whether the indexing was thrown off at some point in the process. Copying over the vanilla file, rescaling and pasting my modded picture on top of it, then using that, did not yield and benefits. Is there any way for me to check how the colours in the bmp are indexed?

1. I believe that those errors will go away if you include a PROV# - PROVNAME.txt file in history\provinces that includes a few things like max_settlements and terrain type.

2. Are you using mode Grayscale and exporting it without writing color space information?

3. You're the first other person that I have found to have experienced this problem. I found that it comes form at least one of the rivers colors being saved as the wrong shade. Instead of using the index values on the wiki for a custom palette for the rivers.bmp, I open rivers.bmp in Visual Studio and copy over the rivers layer from my image editor and save it.
 
1. I believe that those errors will go away if you include a PROV# - PROVNAME.txt file in history\provinces that includes a few things like max_settlements and terrain type.
In the end I solved it by removing the names from the definition file for every wasteland :)
2. Are you using mode Grayscale and exporting it without writing color space information?
Welp, after failing to set colour mode in paint.net I opened up Photoshop, and there was a button right there! I hit that, everything darkened and now my map is flooded :D I'll keep tinkering.
3. You're the first other person that I have found to have experienced this problem. I found that it comes form at least one of the rivers colors being saved as the wrong shade. Instead of using the index values on the wiki for a custom palette for the rivers.bmp, I open rivers.bmp in Visual Studio and copy over the rivers layer from my image editor and save it.
That did the trick! Thank you so much!
 
Building a mod base on pre-2.1 map frame with up-to-date land_titles data and provinces.
ck2_202.png

ck2_203.png
files under /map , /common/landed_titles have been ported.
but minimap is shifted a little bit. Can't move it precisely.
What should I do with /gfx/interface/minimap_area.dds and interface/main.gui to make it work properly.
 
I'm looking to make a simple mod by editing terrains/rivers/trees on the map to my liking (so no new provinces and things like that), no matter what I do it seems to mess up the map and it loads grayish with black lines and things like that, i presume its saving formats or something but I'm incredibly bad at understanding why, I use paint.net which is probably dumb and just save with 8bit depth 0 dithering level (it defaults and auto detect and 7 dithering but that doesnt seem to work either), and the file comes out as bmp with the exact same size.

Anyone willing to thoroughly walk me through a very simple secure way of editing and saving the map without causing these issues? Preferably free tools even if theyre not as intuitive (seeing as I only need to edit pixels at a time for map editing at such a micro level, maybe 4-15 provinces depending on how easily I get it to work)

And to clarify I know how to copy colors and paint small parts of the map pixel by pixel, so if anyone knows and is willing to summarize what program and how to save the rivers.bmp map terran.bmp and trees.bmp map I would be grateful
 
I'm looking to make a simple mod by editing terrains/rivers/trees on the map to my liking (so no new provinces and things like that), no matter what I do it seems to mess up the map and it loads grayish with black lines and things like that, i presume its saving formats or something but I'm incredibly bad at understanding why, I use paint.net which is probably dumb and just save with 8bit depth 0 dithering level (it defaults and auto detect and 7 dithering but that doesnt seem to work either), and the file comes out as bmp with the exact same size.
Try GIMP, save without color space info. There's no option in Paint.net IIRC.
 
Now I have a second problem.. https://cdn.discordapp.com/attachments/458429177217941525/587367629661011971/unknown.png
For some reason, terrain colors do not directly correlate with the map colors, and the region I'm currently testing out the editing on really really really wants to be yellow as opposed to a more green background color, any ideas? I've tried adding trees and rivers too and it doesnt seem to help. Presumably it might be based on latitude or nearby colors but Ive tried at least 3-4 different backgrounds and they all end up looking yellow like this, and for some reason the grass in the nile ends up a lot more greener (even if I add rivers it wont make it greener) but I really dont know why

I believe that the colors in terrain.bmp only relate to terrain types. The colors that show up on the map in game are taken form the colormap.dds.
 
Does anyone know what might be causing any of this? I've been trying to figure it out, but I can't figure out the names, the wasteland, the black island, or anything like that.
 

Attachments

  • upload_2019-8-17_17-54-26.png
    upload_2019-8-17_17-54-26.png
    1,3 MB · Views: 313
I'm having some trouble creating a TC map. The map can be loaded, but about half the provinces have to be combined to prevent a loading CTD. The only thing that's changing is the province.bmp. I can cause the game to crash by changing single pixels. Please help me understand why on earth this is occurring. The first image with the null province works, the second CTDs. The green part at the top middle is land, everything else is a sea province. The deeper green to the left is also nulled, it will also crash when assigned.
ex1works.png
ex2crash.png