• 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.
Thanks for the quick response! I tried adding every replace_path which you have in your .mod to mine (including cultures). This solved the problem of the blank events. While I'm happy that I can finally actually work on the map, I also want to have this map be compatible with vanilla cultures, and preferably other culture mods. Is it possible to mod the map but not cultures?
 
Thanks for the quick response! I tried adding every replace_path which you have in your .mod to mine (including cultures). This solved the problem of the blank events. While I'm happy that I can finally actually work on the map, I also want to have this map be compatible with vanilla cultures, and preferably other culture mods. Is it possible to mod the map but not cultures?

Yes, of course. replace_path-ing culture is only a quick fix to make a mod load up as quick as possible.

By removing all the references to non-existent titles, cultures, religions and people I meant to ask whether you worked through all the evens, decisions, etc. and removed them from there.
 
Just to let you know, the reason why my mod was crashing at Naval Ranges is due to the Sea Provinces being too big. You should make some sort of warning that You can't make provinces too big.
 
Just to let you know, the reason why my mod was crashing at Naval Ranges is due to the Sea Provinces being too big. You should make some sort of warning that You can't make provinces too big.

Could you clarify "too big"?

In the guide cut the ocean into two giant sea provinces. This worked. A single sea province did not.
 
Could you clarify "too big"?

In the guide cut the ocean into two giant sea provinces. This worked. A single sea province did not.

The map I was using was 6144x4096. The two sea provinces that was 3000+ pixels large. Turning them into 8 sea provinces at around 1000px stopped the crash. Wasn't there a 13million pixel rule for provinces or is that something else I'm thinking of.
 
But how get those colors into the mod files without too much tedium?
If you extract all the color RGBs at once you have hundreds of colors and figuring out which one is which will take some time.
What do we need the RGB values for?
 
Hi, I followed all your instructions and my mod seems to fail right after "creating trees".

I checked the logs and I got this:

Code:
[instanttextboxtype.cpp:92]: Not used, use maxWidth and maxHeight  file: launcher/interface/main.gui line: 87
[instanttextboxtype.cpp:92]: Not used, use maxWidth and maxHeight  file: launcher/interface/main.gui line: 104
[technology.cpp:718]: Missing Tech seed values:
[technology.cpp:745]: d_hispania
[rome_bitmap.cpp:23]: We do not support bitdepth at 32
[gfx_dx9.cpp:1349]: D3DXCreateEffectFromFile failed with error: C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,56): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,104): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): error X4579: NaN and infinity literals not allowed by shader model

[gfx_util.cpp:810]: Pixel shader failed: terrain
[gfx_dx9.cpp:1349]: D3DXCreateEffectFromFile failed with error: C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,56): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,104): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
gfx/FX/pdxwater.lua(193,51): warning X4008: floating point division by zero
gfx/FX/pdxwater.lua(193,8): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
gfx/FX/pdxwater.lua(193,8): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): error X4579: NaN and infinity literals not allowed by shader model
gfx/FX/pdxwater.lua(193,8): error X4579: NaN and infinity literals not allowed by shader model

[gfx_util.cpp:810]: Pixel shader failed: water
[gfx_dx9.cpp:1349]: D3DXCreateEffectFromFile failed with error: gfx/FX/tree.lua(205,56): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,56): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,104): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
gfx/FX/tree.lua(205,8): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
gfx/FX/tree.lua(205,8): error X4579: NaN and infinity literals not allowed by shader model

[gfx_util.cpp:810]: Pixel shader failed: tree
[gfx_dx9.cpp:1349]: D3DXCreateEffectFromFile failed with error: C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,56): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,104): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): error X4579: NaN and infinity literals not allowed by shader model

[gfx_util.cpp:810]: Pixel shader failed: river
[gfx_dx9.cpp:1441]: Error create vertices -2005530516 8 0 28
[gfx_dx9.cpp:1444]: managed
[gfx_dx9.cpp:1441]: Error create vertices -2005530516 8 0 20
[gfx_dx9.cpp:1444]: managed

I would really appreciate some help, since I really don't understand all this code...
 
good tutorial. All I did in a map was adding some provinces, so doing a whole map from scratch.... You have courage and time to lose too :D

i'll probably use some advices from this thread if I ever want to create a map, though a good part of it is useless for me as I run CK2 on Linux. But good job and great idea - keep up the good work !
 
Hi, I followed all your instructions and my mod seems to fail right after "creating trees".

I checked the logs and I got this:

Code:
[instanttextboxtype.cpp:92]: Not used, use maxWidth and maxHeight  file: launcher/interface/main.gui line: 87
[instanttextboxtype.cpp:92]: Not used, use maxWidth and maxHeight  file: launcher/interface/main.gui line: 104
[technology.cpp:718]: Missing Tech seed values:
[technology.cpp:745]: d_hispania
[rome_bitmap.cpp:23]: We do not support bitdepth at 32
[gfx_dx9.cpp:1349]: D3DXCreateEffectFromFile failed with error: C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,56): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,104): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): error X4579: NaN and infinity literals not allowed by shader model

[gfx_util.cpp:810]: Pixel shader failed: terrain
[gfx_dx9.cpp:1349]: D3DXCreateEffectFromFile failed with error: C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,56): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,104): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
gfx/FX/pdxwater.lua(193,51): warning X4008: floating point division by zero
gfx/FX/pdxwater.lua(193,8): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
gfx/FX/pdxwater.lua(193,8): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): error X4579: NaN and infinity literals not allowed by shader model
gfx/FX/pdxwater.lua(193,8): error X4579: NaN and infinity literals not allowed by shader model

[gfx_util.cpp:810]: Pixel shader failed: water
[gfx_dx9.cpp:1349]: D3DXCreateEffectFromFile failed with error: gfx/FX/tree.lua(205,56): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,56): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,104): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
gfx/FX/tree.lua(205,8): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
gfx/FX/tree.lua(205,8): error X4579: NaN and infinity literals not allowed by shader model

[gfx_util.cpp:810]: Pixel shader failed: tree
[gfx_dx9.cpp:1349]: D3DXCreateEffectFromFile failed with error: C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,56): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,104): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): warning X4008: floating point division by zero
C:\Program Files (x86)\Steam\steamapps\common\Crusader Kings II\memory(161,2): error X4579: NaN and infinity literals not allowed by shader model

[gfx_util.cpp:810]: Pixel shader failed: river
[gfx_dx9.cpp:1441]: Error create vertices -2005530516 8 0 28
[gfx_dx9.cpp:1444]: managed
[gfx_dx9.cpp:1441]: Error create vertices -2005530516 8 0 20
[gfx_dx9.cpp:1444]: managed

I would really appreciate some help, since I really don't understand all this code...

Most of the error messages are new to me. But I guess this is caused by some mistake with the image files. Bitdepth at 32 is something many people get.
Maybe this solves it for you, too: http://forum.paradoxplaza.com/forum...of-Ireland&p=18155532&viewfull=1#post18155532
 
Will you eventually cover how to create your custom texture palette? Not creating the actual textures, but making them appear in-game. I thought that copying atlas0.dds, atlas0_normal.dds and terrain.txt from another mod would suffice to make the textures of said mod work in mine, but instead it turns out that the engine recognize absolutely no textures and texturises the map with a sort of empty tiles.
 
Will you eventually cover how to create your custom texture palette? Not creating the actual textures, but making them appear in-game. I thought that copying atlas0.dds, atlas0_normal.dds and terrain.txt from another mod would suffice to make the textures of said mod work in mine, but instead it turns out that the engine recognize absolutely no textures and texturises the map with a sort of empty tiles.

You'd have to copy the terrain.txt, too ;)
 
You'd have to copy the terrain.eh... txt, too ;)

The thing is that ai already have - the terrain.txt inside map folder. Is there any other terrain.txt that I'm unaware of?. Or can it be something else?

Edit: moreover, how would I go about setting my own custom terrain palette, provided I already have my atlas0 and atlas_normal0.dds?

And to be sure, any square number of textures can be used, right?
 
Last edited:
The thing is that ai already have - the terrain.txt inside map folder. Is there any other terrain.txt that I'm unaware of?. Or can it be something else?

Edit: moreover, how would I go about setting my own custom terrain palette, provided I already have my atlas0 and atlas_normal0.dds?

And to be sure, any square number of textures can be used, right?


Did you copy vanilla terrain.bmp, open with photoshop resize, copy your map on top of it, merge+save? That way your terrain file saves vanilla terrain colors.
 
Hi, I followed all your instructions and my mod seems to fail right after "creating trees".

I checked the logs and I got this:

Code:
[gfx_dx9.cpp:1441]: Error create vertices -2005530516 8 0 28
[gfx_dx9.cpp:1444]: managed
[gfx_dx9.cpp:1441]: Error create vertices -2005530516 8 0 20
[gfx_dx9.cpp:1444]: managed

I would really appreciate some help, since I really don't understand all this code...

This bit means that one of your provinces are too large. try splitting them up.