• 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.

Zapiastur

Recruit
8 Badges
Jul 25, 2024
5
0
  • Knights of Pen and Paper +1 Edition
  • Lead and Gold
  • Magicka
  • Victoria 2
  • War of the Roses
  • Magicka: Wizard Wars Founder Wizard
  • Magicka 2
  • Crusader Kings III
I am creating a mod and when adding the map using the blankmap mod, everything works fine. I added the heightmap, and the terrain is visible. However, when I add the provinces.png and the CSV file with the provinces, their colors, and the sequential index, the map editor crashes upon starting. What could be the reason for this?
 

Attachments

  • definition.csv
    63 bytes · Views: 0
  • island_region.txt
    540 bytes · Views: 0
  • 00_landed_titles.txt
    1,3 KB · Views: 0
  • k_rokugan.txt
    899 bytes · Views: 0
  • k_rokugan.txt
    179 bytes · Views: 0
  • geographical_region.txt
    14,9 KB · Views: 0
Not sure if I'll be helpful, despite doing lots of map modding myself, I never tried making completely new map...

the possible problem could be that in landed_titles.txt, the capital of e_ k_ and d_rokugan is set as c_rokugan, but that county doesn't exist in the file.
I don't think it's something to cause a crash, though.
 
Not sure if I'll be helpful, despite doing lots of map modding myself, I never tried making completely new map...

the possible problem could be that in landed_titles.txt, the capital of e_ k_ and d_rokugan is set as c_rokugan, but that county doesn't exist in the file.
I don't think it's something to cause a crash, though.
Thank you, i fix it but the game is loading and not finish
Could it be a problem that the image of provinces size is >20MB? And could having provinces split into two with the same color be an issue? Attached is an example.
 

Attachments

  • Screenshot_2024-07-26-20-03-57-735_org.telegram.messenger.jpg
    Screenshot_2024-07-26-20-03-57-735_org.telegram.messenger.jpg
    258,1 KB · Views: 0
Could it be a problem that the image of provinces size is >20MB?
Yes.
I don't have much experience with making custom maps from scratch, but I do believe that the province.png map should have the same format as the original vanilla map. But I sense there might be even larger problem why things don't work for you:


And could having provinces split into two with the same color be an issue? Attached is an example.
I'm not sure what you mean.
Do you know that the provinces should have the exact colors, as defined in the definition.csv file, right?
The values in that file mean
province ID;Red color value;Green color value;Blue color value;Province tag; etc.

Also in the province.png, you should only use colors, which are defined in that definition.csv file. If you want your game to load properly, you should list all provinces there and use the colors for those provinces, as they are defined in that file.

If the color on your province.png doesn't reflect the values in your definition.csv, the game won't load those provinces.
 
Yes.
I don't have much experience with making custom maps from scratch, but I do believe that the province.png map should have the same format as the original vanilla map. But I sense there might be even larger problem why things don't work for you:



I'm not sure what you mean.
Do you know that the provinces should have the exact colors, as defined in the definition.csv file, right?
The values in that file mean
province ID;Red color value;Green color value;Blue color value;Province tag; etc.

Also in the province.png, you should only use colors, which are defined in that definition.csv file. If you want your game to load properly, you should list all provinces there and use the colors for those provinces, as they are defined in that file.

If the color on your province.png doesn't reflect the values in your definition.csv, the game won't load those provinces.
Yes, I know the format has to be sequential with the ID, colors, x. I am not sure if they can be split.
 
Yes, I know the format has to be sequential with the ID, colors, x. I am not sure if they can be split.
split?
Can 2 different colors have the same RGB value? I believe that even slightly different shade means different RGB value, hence different ID.

Also, the picture you showed of the map deffinitely has lot more than 2 provinces/colors shown in your definition.csv which, I would assume, should cause some problems.
Note that even sea or wasteland (impassable mountains etc.) should also be defined as provinces.
 
Last edited:
Thank you, i fix it but the game is loading and not finish
Could it be a problem that the image of provinces size is >20MB? And could having provinces split into two with the same color be an issue? Attached is an example.
That doesn't look anything like a province.png file. Can you upload it here?
 
split?
Can 2 different colors have the same RGB value? I believe that even slightly different shade means different RGB value, hence different ID.

Also, the picture you showed of the map deffinitely has lot more than 2 provinces/colors shown in your definition.csv which, I would assume, should cause some problems.
Note that even sea or wasteland (impassable mountains etc.) should also be defined as provinces.
For example, the red province to the right of the dark green one is divided but it is still the same province. Could this cause any problems? In my file, it is a single province with the values 31;157;16;22;Bayushi;x; and that RGB does not repeat.
In the image 'province edit.png', you can see what I mean. Bayushi is a single province but is separated, just like the other white-colored province outlined by a black circle. Another example is the province outlined with a white circle; it is separated but is a single province. Is this possible, or does it cause any problems?
 

Attachments

  • definition.csv
    1,2 KB · Views: 0
  • provinces.png
    11,4 MB · Views: 0
  • province edit.png
    14,2 MB · Views: 0
Last edited:
For example, the red province to the right of the dark green one is divided but it is still the same province. Could this cause any problems? In my file, it is a single province with the values 31;157;16;22;Bayushi;x; and that RGB does not repeat.
In the image 'province edit.png', you can see what I mean. Bayushi is a single province but is separated, just like the other white-colored province outlined by a black circle. Another example is the province outlined with a white circle; it is separated but is a single province. Is this possible, or does it cause any problems?
First of all, this isn't how provinces are supposed to look like. Why are they all separated by a "base color" instead of touching each other?
The second problem, which is most likely responsible for the crash, is that you're using some kind of soft brush of an image editor. All your province borders excluding those that touch the base color (ocean?) have gradients. Since the gradients are different colors, they get treated as distinct provinces, and all these unexpected one pixel provinces confused the game
 
First of all, this isn't how provinces are supposed to look like. Why are they all separated by a "base color" instead of touching each other?
The second problem, which is most likely responsible for the crash, is that you're using some kind of soft brush of an image editor. All your province borders excluding those that touch the base color (ocean?) have gradients. Since the gradients are different colors, they get treated as distinct provinces, and all these unexpected one pixel provinces confused the game
Mmmm, okay, thank you very much. One last question: the green islands, are they the same province. Is it possible, or does each island have to be a separate province?
 
Mmmm, okay, thank you very much. One last question: the green islands, are they the same province. Is it possible, or does each island have to be a separate province?
They don't need to, but unless you plan for them to be wastelands, it would be better to make them individual provinces