• 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.
Now map is crashing at loading graphics (at the very end of loading)
Is the fault of positions.txt ??

Here graphics.log
Code:
[provincetemplate.cpp:260]: Province 0 has invalid origin
[provincetemplate.cpp:260]: Province 107 has invalid origin
[provincetemplate.cpp:260]: Province 1915 has invalid origin
[pdxmapgeneration.cpp:222]: Too small river found at 2534, 1792
[pdxmapgeneration.cpp:566]: Circular river found at 2773, 1792
[pdxmapgeneration.cpp:566]: Circular river found at 2581, 1792
[pdxmapgeneration.cpp:566]: Circular river found at 2654, 1792
[pdxmapgeneration.cpp:566]: Circular river found at 2645, 1792
[pdxmapgeneration.cpp:566]: Circular river found at 2697, 1792
[eu3graphicalmap.cpp:2193]: Province 2 has illegal capital location, x: 144.000000, y: 2175.000000(Bounds x: 28-28, y: 1532-1662)
[eu3graphicalmap.cpp:2193]: Province 6 has illegal capital location, x: 346.000000, y: 2240.000000(Bounds x: 129-129, y: 1562-1677)
[eu3graphicalmap.cpp:2193]: Province 54 has illegal capital location, x: 2856.000000, y: 2062.000000(Bounds x: 2755-2755, y: 1200-1496)
[eu3graphicalmap.cpp:2257]: Invalid port location for province 68, center at 2611,1208, port location at 6.000000, 2554.000000
[eu3graphicalmap.cpp:2193]: Province 68 has illegal capital location, x: 1.000000, y: 2559.000000(Bounds x: 2115-2134, y: -587-593)
[eu3graphicalmap.cpp:2193]: Province 107 has illegal capital location, x: 2707.000000, y: 1819.000000(Bounds x: 2719-2719, y: 1790-1791)
[eu3graphicalmap.cpp:2193]: Province 110 has illegal capital location, x: 2574.000000, y: 1821.000000(Bounds x: 2541-2541, y: 1754-1773)
[eu3graphicalmap.cpp:2193]: Province 138 has illegal capital location, x: 2497.000000, y: 1800.000000(Bounds x: 2446-2446, y: 1744-1768)
[eu3graphicalmap.cpp:2257]: Invalid port location for province 139, center at 2451,1790, port location at 2437.000000, 1797.000000
[eu3graphicalmap.cpp:2193]: Province 139 has illegal capital location, x: 2450.000000, y: 1807.000000(Bounds x: 2441-2441, y: 1780-1786)
[eu3graphicalmap.cpp:2257]: Invalid port location for province 197, center at 411,1789, port location at 421.000000, 1794.000000
[eu3graphicalmap.cpp:2257]: Invalid port location for province 213, center at 291,1789, port location at 299.000000, 1817.000000
[eu3graphicalmap.cpp:2193]: Province 213 has illegal capital location, x: 290.000000, y: 1808.000000(Bounds x: 274-274, y: 1772-1782)
[eu3graphicalmap.cpp:2193]: Province 214 has illegal capital location, x: 226.000000, y: 1816.000000(Bounds x: 241-241, y: 1768-1780)
[eu3graphicalmap.cpp:2193]: Province 446 has illegal capital location, x: 3182.000000, y: 1828.000000(Bounds x: 3196-3196, y: 1770-1781)


Also I did not create province_setup file - is it necessary?


SOLVED:
Final crash was caused by non existing bookmarks.
 
Last edited:
I just noticed this thread after i posted my own about the issues i am having with map modding, could someone here help me out?
my thread:
https://forum.paradoxplaza.com/foru...s-default-map-max_provinces-weirdness.980473/

Sorry for this weird post >.<

I would (and I know this probably isn't the type of answer you were looking for) use jonstryker's filler tool he mentioned in your other thread and kind of start fresh with it. Using it 100% removes the potential for so many different types of errors across all types of files (combining his Ireland tutorial and filler tool thread is a combined amazing resource for overhaul maps). I have used the tool for 5+ custom maps and following his guide/tool's instructions it is essentially foolproof to getting a new map loaded and working correctly.
 
I would (and I know this probably isn't the type of answer you were looking for) use jonstryker's filler tool he mentioned in your other thread and kind of start fresh with it. Using it 100% removes the potential for so many different types of errors across all types of files (combining his Ireland tutorial and filler tool thread is a combined amazing resource for overhaul maps). I have used the tool for 5+ custom maps and following his guide/tool's instructions it is essentially foolproof to getting a new map loaded and working correctly.

Yeah i really want to use that tool since it seems really useful, any idea however what JonStryker means with this?
- create gfx/flags/_other and copy flags from other mods or from vanilla into it. Vanilla flags can be found here: "..\SteamApps\common\Crusader Kings II\gfx\flags"; You need at least as many as you have counties, duchies, kingdoms and empires on your map
What does he mean with _other?
 
I don't know why he posted _other to be honest. I have all my flags for all my mods under gfx/flags and it works fine (his filler tool even puts them where I do). Maybe his tool will take from the flag pool in _other when you run it (otherwise the tool generates flags with "?" on a black canvas). At any rate, if you have your own flags made up you can skip the _other part of the directory.
 
Hey, can anyone help me with this?

I've got a map mod set up and everything appears to be correct.

But when I try to run the map it crashes at "loading flags..." and graphics.log gets spammed with messages saying that every single province has an invalid origin. The problem is, the only response that I've ever seen to one of these questions (every time this gets asked people tend to ignore it) is that default.map needs to be the number of provinces + 1. So I have 399 provinces and default.map says 400. So this shouldn't be causing errors, and when I try to increase it to 401, suddenly the nonexistent province 400 has an invalid origin.

Can anyone please help? I've been searching for an answer for 3 hours and all I've found is forum posts with no answers.
 
Hey, can anyone help me with this?

I've got a map mod set up and everything appears to be correct.

But when I try to run the map it crashes at "loading flags..." and graphics.log gets spammed with messages saying that every single province has an invalid origin. The problem is, the only response that I've ever seen to one of these questions (every time this gets asked people tend to ignore it) is that default.map needs to be the number of provinces + 1. So I have 399 provinces and default.map says 400. So this shouldn't be causing errors, and when I try to increase it to 401, suddenly the nonexistent province 400 has an invalid origin.

Can anyone please help? I've been searching for an answer for 3 hours and all I've found is forum posts with no answers.

Sounds like a overwrite problem, there are probably still vanilla references that you didn't replace in your .mod file. I think a temporary solution to this problem was setting your max_provinces in default.map to something like 1466 (the vanilla value). But eventually you'll have to replace the paths in your .mod file that are still referencing to the vanilla provinces or the amount.
 
Thanks for replying! I just tried setting it t 1466, problem is that the only thing that's changed is that now 1465 provinces have an invalid origin.

I have my folder set up like this:

-newmap
-common
-landed_titles​
-gfx
-flags​
-history
-characters
-provinces
-titles​
-localisation
-map​

And then my .mod folder has these replace paths:

replace_path = "common/landed_titles"
replace_path = "gfx/flags"
replace_path = "history/characters"
replace_path = "history/provinces"
replace_path = "history/titles"

Is there anything obviously wrong with that?

If you need me to I can link to the files
 
Thanks for replying! I just tried setting it t 1466, problem is that the only thing that's changed is that now 1465 provinces have an invalid origin.

I have my folder set up like this:

-newmap
-common
-landed_titles​
-gfx
-flags​
-history
-characters
-provinces
-titles​
-localisation
-map​

And then my .mod folder has these replace paths:

replace_path = "common/landed_titles"
replace_path = "gfx/flags"
replace_path = "history/characters"
replace_path = "history/provinces"
replace_path = "history/titles"

Is there anything obviously wrong with that?

If you need me to I can link to the files

I'm just making guesses here by looking at my own .mod file, but does adding this to your .mod file work?

Code:
replace_path = "history/characters"
replace_path = "history/diplomacy"
replace_path = "history/provinces"
replace_path = "history/titles"
replace_path = "history/wars"
replace_path = "history/technology"
replace_path = "history/eu4_converter"
replace_path = "events"

You could also try to remove all text from adjacencies.csv and positions.txt in /map.
If all that doesn't work then it could be a problem in your default.map maybe?
 
Ok, I tried all those things and nothing's changed. The only thing in default.map which I'm not confident is working is the sea_zones and ocean_region, which I just changed until it stopped showing as an error in the validator.

Here it is if you want to take a look:

max_provinces = 1466
definitions = "definition.csv"
provinces = "provinces.bmp"
positions = "positions.txt"
terrain = "terrain.bmp"
rivers = "rivers.bmp"
terrain_definition = "terrain.txt"
heightmap = "topology.bmp"
tree_definition = "trees.bmp"
continent = "continent.txt"
adjacencies = "adjacencies.csv"
climate = "climate.txt"
region = "island_region.txt"
geographical_region = "geographical_region.txt"
static = "statics"
seasons = "seasons.txt"

sea_zones = { 1 345 }

ocean_region = {
1
}

tree = { 3 4 7 10 }

major_rivers = { 302 325 99 223 192 59 135 1 350 158 102 368 321 286 241 182 56 212 351 84 70 254 100 352 329 127 296 66 145 55 16 63 130 12 122 250 361 251 287 112 303 }
 
Ok, I tried all those things and nothing's changed. The only thing in default.map which I'm not confident is working is the sea_zones and ocean_region, which I just changed until it stopped showing as an error in the validator.

Here it is if you want to take a look:

max_provinces = 1466
definitions = "definition.csv"
provinces = "provinces.bmp"
positions = "positions.txt"
terrain = "terrain.bmp"
rivers = "rivers.bmp"
terrain_definition = "terrain.txt"
heightmap = "topology.bmp"
tree_definition = "trees.bmp"
continent = "continent.txt"
adjacencies = "adjacencies.csv"
climate = "climate.txt"
region = "island_region.txt"
geographical_region = "geographical_region.txt"
static = "statics"
seasons = "seasons.txt"

sea_zones = { 1 345 }

ocean_region = {
1
}

tree = { 3 4 7 10 }

major_rivers = { 302 325 99 223 192 59 135 1 350 158 102 368 321 286 241 182 56 212 351 84 70 254 100 352 329 127 296 66 145 55 16 63 130 12 122 250 361 251 287 112 303 }


Well the only thing i see that is wrong with the default map is the sea zones, but i am not sure if that is what is causing the crash. You should give sea provinces the last id's of all provinces, when the last province id is land it tends to cause trouble.
 
Well the only thing i see that is wrong with the default map is the sea zones, but i am not sure if that is what is causing the crash. You should give sea provinces the last id's of all provinces, when the last province id is land it tends to cause trouble.

Right, would you mind explaining the sea provinces a bit further? I don't really understand what they're supposed to be.

I checked how it was done in the vanilla map, and that's no help because they seem to link a sea near greece to a landlocked lake in finland.
 
Right, would you mind explaining the sea provinces a bit further? I don't really understand what they're supposed to be.

I checked how it was done in the vanilla map, and that's no help because they seem to link a sea near greece to a landlocked lake in finland.

Well, there's really not much to tell you about sea zones, you list them with the last id's in definition.csv, give them names in localisation and flag the id's as sea zones in default.map. (any major river is also flagged as sea zone.)
 
Well, there's really not much to tell you about sea zones, you list them with the last id's in definition.csv, give them names in localisation and flag the id's as sea zones in default.map. (any major river is also flagged as sea zone.)

Right, so I basically get every single sea/river zone, split them into pairs of two and put them into a sea_zone thing?

That's not what they do in the vanilla map so I'm still fairly confused.

I'll try and speed this up a bit:

If I had a definition.csv which has 18 provinces, where half are land and half is sea, how would the sea_zones be arranged?
 
Right, so I basically get every single sea/river zone, split them into pairs of two and put them into a sea_zone thing?

That's not what they do in the vanilla map so I'm still fairly confused.

I'll try and speed this up a bit:

If I had a definition.csv which has 18 provinces, where half are land and half is sea, how would the sea_zones be arranged?

sea_zones = { 10 18 }
 
  • 1
Reactions:
hi guys im trying to mod the map of geheimnisnacht but i cant seem to show it in game.I modded province file with photoshop,added provinces with their colors to definition file and changed max province in default file but when i opened the game provinces still wont show.Bytheway im trying to add provinces to wasteland.Can you guys help?
 
I get a CTD at loading databases. I have checked my map files and all of them are properly indexed... There are no errors listed in the graphics.log, but I'll post my setup.log. For some reason it stops at CasusBelliDatabase initialized.
[ck_application.cpp:1080]: Map Initialized
[ck_application.cpp:1088]: DynastyDatabase Initialized
[building.cpp:777]: Building #0 tag = nobuilding name = nobuilding
[building.cpp:777]: Building #1 tag = ca_wall_q_1 name = Castle Fortifications
[building.cpp:777]: Building #2 tag = ca_wall_q_2 name = Castle Fortifications
[A LOT OF STUFF]
[casusbellitype.cpp:696]: CB Type #0 tag = null
[casusbellitype.cpp:696]: CB Type #1 tag = claim
[casusbellitype.cpp:696]: CB Type #2 tag = other_claim
[casusbellitype.cpp:696]: CB Type #3 tag = claim_on_liege
[casusbellitype.cpp:696]: CB Type #4 tag = claim_on_liege_plot
[casusbellitype.cpp:696]: CB Type #5 tag = claim_on_vassal_plot
[casusbellitype.cpp:696]: CB Type #6 tag = other_claim_on_liege
[casusbellitype.cpp:696]: CB Type #7 tag = claim_all
[casusbellitype.cpp:696]: CB Type #8 tag = change_seniority_succession_law
[casusbellitype.cpp:696]: CB Type #9 tag = change_primogeniture_succession_law
[casusbellitype.cpp:696]: CB Type #10 tag = change_feudal_elective_succession_law
[casusbellitype.cpp:696]: CB Type #11 tag = invasion
[casusbellitype.cpp:696]: CB Type #12 tag = tribal_invasion
[casusbellitype.cpp:696]: CB Type #13 tag = crusade
[casusbellitype.cpp:696]: CB Type #14 tag = religious
[casusbellitype.cpp:696]: CB Type #15 tag = excommunicated_ruler
[casusbellitype.cpp:696]: CB Type #16 tag = bid_for_independence
[casusbellitype.cpp:696]: CB Type #17 tag = depose_liege
[casusbellitype.cpp:696]: CB Type #18 tag = overthrow_ruler
[casusbellitype.cpp:696]: CB Type #19 tag = overthrow_ruler_no_calls
[casusbellitype.cpp:696]: CB Type #20 tag = change_gavelkind_succession_law
[casusbellitype.cpp:696]: CB Type #21 tag = lower_crown_authority_law
[casusbellitype.cpp:696]: CB Type #22 tag = lower_tribal_organization_law
[casusbellitype.cpp:696]: CB Type #23 tag = coastal_republic
[casusbellitype.cpp:696]: CB Type #24 tag = coastal_county_republic
[casusbellitype.cpp:696]: CB Type #25 tag = weaken_vassal_plot
[casusbellitype.cpp:696]: CB Type #26 tag = decadence_invasion
[casusbellitype.cpp:696]: CB Type #27 tag = muslim_invasion
[casusbellitype.cpp:696]: CB Type #28 tag = cb_faction_independence
[casusbellitype.cpp:696]: CB Type #29 tag = imperial_reconquest
[casusbellitype.cpp:696]: CB Type #30 tag = embargo_cb
[casusbellitype.cpp:696]: CB Type #31 tag = seize_trade_post
[casusbellitype.cpp:696]: CB Type #32 tag = viking_invasion
[casusbellitype.cpp:696]: CB Type #33 tag = pagan_subjugation
[casusbellitype.cpp:696]: CB Type #34 tag = peasant_revolt
[casusbellitype.cpp:696]: CB Type #35 tag = heretic_revolt
[casusbellitype.cpp:696]: CB Type #36 tag = religious_revolt
[casusbellitype.cpp:696]: CB Type #37 tag = liberation_revolt
[casusbellitype.cpp:696]: CB Type #38 tag = duchy_adventure
[casusbellitype.cpp:696]: CB Type #39 tag = pagan_holy_war
[casusbellitype.cpp:696]: CB Type #40 tag = caliphal_subjugation
[casusbellitype.cpp:696]: CB Type #41 tag = muslim_county_conquest
[casusbellitype.cpp:696]: CB Type #42 tag = pagan_county_conquest
[casusbellitype.cpp:696]: CB Type #43 tag = dejure_county_claim
[casusbellitype.cpp:696]: CB Type #44 tag = dejure_barony_claim
[casusbellitype.cpp:696]: CB Type #45 tag = other_dejure_barony_claim
[casusbellitype.cpp:696]: CB Type #46 tag = other_dejure_county_claim
[casusbellitype.cpp:696]: CB Type #47 tag = shia_caliphate_rising
[casusbellitype.cpp:696]: CB Type #48 tag = depose_antipope
[casusbellitype.cpp:696]: CB Type #49 tag = cb_install_antiking
[casusbellitype.cpp:696]: CB Type #50 tag = buddhist_holy_war
[casusbellitype.cpp:696]: CB Type #51 tag = indian_subjugation
[casusbellitype.cpp:696]: CB Type #52 tag = manifest_destiny_invasion
[casusbellitype.cpp:696]: CB Type #53 tag = cb_decadence_usurption
[casusbellitype.cpp:696]: CB Type #54 tag = rivalry_cb
[casusbellitype.cpp:696]: CB Type #55 tag = tributary_cb
[casusbellitype.cpp:696]: CB Type #56 tag = free_tributary_cb
[casusbellitype.cpp:696]: CB Type #57 tag = cb_install_khan
[casusbellitype.cpp:696]: CB Type #58 tag = nomad_dispute
[casusbellitype.cpp:696]: CB Type #59 tag = cb_liberate_nomad_duchy
[casusbellitype.cpp:696]: CB Type #60 tag = cb_minor_clan_revolt
[casusbellitype.cpp:696]: CB Type #61 tag = nomad_subjugation
[casusbellitype.cpp:696]: CB Type #62 tag = nomad_invasion
[casusbellitype.cpp:696]: CB Type #63 tag = nomad_expansion
[casusbellitype.cpp:696]: CB Type #64 tag = increase_council_power_war
[casusbellitype.cpp:696]: CB Type #65 tag = nomad_humiliate_cb
[casusbellitype.cpp:696]: CB Type #66 tag = powerful_vassal_takeover_war
[ck_application.cpp:1115]: CasusBelliDatabase Initialized
I included the top line because it shows the map has properly initialized (I think). Does anyone have a clue?
 
mapfiller1_1.png


I'm really not sure what to do... I've read the guide completely multiple times. It wasn't very clear where to put the files from the map filler, so I thought maybe putting them in the Map Folder would be right, but now it's incredibly messy... But aside from all that, I'm not sure what to do for the mapfiller.bat to work. I thought I had all the right files. I put all the RGB codes in correctly in the provinceDef.xls, all the other .bmp are correct. Any help at all would be appreciated.

Basically the image on the left is the provinces.bmp. I'm making a galaxy map of the Star Wars universe and made the ocean provinces into grid squares. But just to test the map out, I just made everything a land province, under one kingdom and one duchy. My plan was to add the correct info in manually once I knew the map itself worked. I'm also using all the terrain files from the Crises of the Confederation mod.
 

Attachments

  • SWResurgence.zip
    54,2 MB · Views: 2