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

Luca0312

Major
2 Badges
Aug 6, 2012
716
0
  • Crusader Kings II
  • 500k Club
Hello,

recently I've been working on a "total conversion" mod (new map, titles, cultures, etc.) and I've run into a problem that is driving me crazy. Any help would be incredibly appreciated!

In a few words: when I add titles of some provinces in "landed_titles.txt", the game crashes as soon as I press "Play" (it loads fine till player selection screen).

Some details: the mod is already in a playable state and runs perfectly fine in its current version. All provinces have a file in the history/provinces folder, the relevant c_titlename in the history/titles, flags, and localization. All the map is covered as far as it regards these files. The only file that is still incomplete is the "landed_titles.txt". In it, there is only a portion of the map covered. So, at game start, the provinces missing from landed_titles appear grey and as having "no character" (but correct name, religion and culture). This provinces can't be held or taken by anyone, but the mod runs smoothly (I've tested it on "observe" mode and let it run for hundreds of years, no CTDs).

The problem came up when I started filling in the missing titles from "landed_titles.txt". Looks like there are a few provinces (c_ titles) that I CANT MAKE PLAYABLE (even by AI) or the game will crash when I press "Play" in the player selection screen. On the map, the newly added titles appear correctly... with the correct holders, liege, colors, culture. But when I press "Play" (doesn't matter the selected character), the game instantly crashed to desktop.

Nothing interesting in the logs.

Does anyone have any idea about what is wrong? Please!

I double checked the spellings of all the relevant files. The baronies in those provinces are identical in landed_titles and in the history/provinces folder, as I think it should be. Provinces.bmp looks ok with hard edges everywhere. Positions.txt looks fine and I tried emptying it as well just to be sure it wasn't it. The game crashes both if the new titles have a set holder and if they don't. It's not related to higher-than-county titles: adding a single independent county (c_name) at the end of the landed_titles.txt is enough to crash the game. Same thing if I add it as de jure vassal of any existing higher title. The problem lies in the provinces themselves, but I can't find it.

What is driving me crazy is that everything in these provinces is basically identical to all the working others. I can't spot what is making the game crash if I make these provinces playable.

Thanks for any help or suggestions!!!

Happy modding,

L.
 

lokomoko

Major
83 Badges
Apr 28, 2012
786
17
  • Victoria 2: Heart of Darkness
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Magicka
  • Cities in Motion 2
  • Europa Universalis IV: Res Publica
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Stellaris: Synthetic Dawn
  • Victoria 2: A House Divided
  • March of the Eagles
  • Rome: Vae Victis
  • Europa Universalis IV: Third Rome
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: Pre-order
  • Cities: Skylines - After Dark
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Knights of Honor
  • For the Motherland
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III Complete
  • Hearts of Iron III
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Europa Universalis III
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis 4: Emperor
  • Europa Universalis IV
  • Crusader Kings II: Conclave
Strange problem and I can't say I've ever experienced it. My first suggestion would be to make sure all end brackets and brackets are placed correctly in landed_titles.txt as well as the correct 8-space's between sub-rows, if you can't be bothered checking through all of it (If you have a lot), I believe there is an error-checker utility download somewhere in the forums. I can't really think of any other problems, seeing as I've never experienced this, perhaps try error-checking the definitions.csv in the map folder to make sure there are no errors. Sorry I couldn't be of more help.
 

unmerged(242259)

First Lieutenant
5 Badges
Dec 25, 2010
299
0
  • Crusader Kings II
  • Darkest Hour
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Victoria 2: A House Divided
Don't change k_france to (for example) k_gaul without changing every other file that refers to k_france and expect it to work. It's much easier and safer to just change k_france's localisation (in text1.csv) to "Gaul" from "France". Same for b_XYZ, c_XYZ, and d_XYZ - I'd recommend reusing vanilla provinces and renaming them in localisation rather than making whole new ones from scratch.

Hope this helps!
Ataulf
 

Luca0312

Major
2 Badges
Aug 6, 2012
716
0
  • Crusader Kings II
  • 500k Club
Thanks for the replies!

To lokomoko:

Good suggestions! First of all I don't know what you mean by "correct 8-space between sub-rows"... is it the indention of the lower level brackets? Could you explain please? The overall syntax of the file should be ok (as far as I know but I could be missing something!). As I said, it all works until I add some specific counties, than crash. I downloaded the Mod Validator and I used it often while working on the mod. It reports some errors but most of them are localization-related or other things that are basically ok, or under control, or just not real errors. Anyway it gives the same results both when the mod runs perfectly and later when I add that single more county title and it crashes. So it's not something the Validator is detecting!

I also checked the definitions.csv... it looks ok! The mod has "only" 123 provinces so it's not a crazy-long thing to go through the files.

To Ataulf:

Thanks! But as I said it's a total conversion... there are no provinces left from vanilla, no titles, no cultures, nothing. It's a new map with 105(land)+17(sea) provinces, new titles, cultures, characters, dynasties, religions, even buildings and traits. It started like a "let's see how far I can go before I get bored" and now it's more complete than I ever hoped. There should be no "broken reference" in any important (I mean required for the game to start) files to vanilla titles or other stuff. Of course I could be wrong, but I need more specific suggestions I'm afraid!

Thanks again for the help! ...and keep it coming please... I really want to sort this out because it's a shame to leave a few provinces unplayable.

L.
 

lokomoko

Major
83 Badges
Apr 28, 2012
786
17
  • Victoria 2: Heart of Darkness
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Magicka
  • Cities in Motion 2
  • Europa Universalis IV: Res Publica
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Stellaris: Synthetic Dawn
  • Victoria 2: A House Divided
  • March of the Eagles
  • Rome: Vae Victis
  • Europa Universalis IV: Third Rome
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: Pre-order
  • Cities: Skylines - After Dark
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Knights of Honor
  • For the Motherland
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III Complete
  • Hearts of Iron III
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Europa Universalis III
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis 4: Emperor
  • Europa Universalis IV
  • Crusader Kings II: Conclave
Thanks for the replies!

To lokomoko:

Good suggestions! First of all I don't know what you mean by "correct 8-space between sub-rows"... is it the indention of the lower level brackets? Could you explain please? The overall syntax of the file should be ok (as far as I know but I could be missing something!). As I said, it all works until I add some specific counties, than crash. I downloaded the Mod Validator and I used it often while working on the mod. It reports some errors but most of them are localization-related or other things that are basically ok, or under control, or just not real errors. Anyway it gives the same results both when the mod runs perfectly and later when I add that single more county title and it crashes. So it's not something the Validator is detecting!

I also checked the definitions.csv... it looks ok! The mod has "only" 123 provinces so it's not a crazy-long thing to go through the files.

To Ataulf:

Thanks! But as I said it's a total conversion... there are no provinces left from vanilla, no titles, no cultures, nothing. It's a new map with 105(land)+17(sea) provinces, new titles, cultures, characters, dynasties, religions, even buildings and traits. It started like a "let's see how far I can go before I get bored" and now it's more complete than I ever hoped. There should be no "broken reference" in any important (I mean required for the game to start) files to vanilla titles or other stuff. Of course I could be wrong, but I need more specific suggestions I'm afraid!

Thanks again for the help! ...and keep it coming please... I really want to sort this out because it's a shame to leave a few provinces unplayable.

L.

Ah yes, sorry for the confusion, I didn't know how to properly express myself in regards to the indention [which you pointed out]. So yes, the indention of the lower-level brackets, sorry if that was made unclear. Possibly another suggestion; make sure the RGB code of your new counties aren't overiding any vanilla ones, that could possibly be the problem, as the c_county refers to the vanilla RGB code before the mods'. If this is the problem, you'll have to find the trouble-making counties and change their RGB in definitions.csv and on the map to a unique one. This is could especially be the problem if you've named your definitions.csv something else in the mod/map folder.
 

Luca0312

Major
2 Badges
Aug 6, 2012
716
0
  • Crusader Kings II
  • 500k Club
Ah yes, sorry for the confusion, I didn't know how to properly express myself in regards to the indention [which you pointed out]. So yes, the indention of the lower-level brackets, sorry if that was made unclear. Possibly another suggestion; make sure the RGB code of your new counties aren't overiding any vanilla ones, that could possibly be the problem, as the c_county refers to the vanilla RGB code before the mods'. If this is the problem, you'll have to find the trouble-making counties and change their RGB in definitions.csv and on the map to a unique one. This is could especially be the problem if you've named your definitions.csv something else in the mod/map folder.

Thanks again... I checked the RGB values of the provinces and they're unique (no identical colors in vanilla). Also the indention in landed_titles.txt looks good (and it doesn't seem to be really necessary, I made some tests).

I think the fact that the provinces are all on the map borders might be relevant. It can't be a coincidence. The three provinces that crash the game are all in contact with the map edge. But they're not the only, of course, and the others work!

L.
 

Luca0312

Major
2 Badges
Aug 6, 2012
716
0
  • Crusader Kings II
  • 500k Club
Solved!!! :laugh:

It was culture. Those provinces were set to a unique culture and I guess the game couldn't find enough dynasties of that culture or something like this. I had single characters from that culture holding titles elsewhere in the map, and they worked fine, but no other provinces were set to be native of that culture, and that was the problem!

Thanks again for your help!

By the way, I've got another question and it's probably not worth a new thread... is it possible to change the game speed? I mean the 5 levels of speed (days/second) are hardcoded or moddable?

Thank you!

L.
 

lokomoko

Major
83 Badges
Apr 28, 2012
786
17
  • Victoria 2: Heart of Darkness
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Magicka
  • Cities in Motion 2
  • Europa Universalis IV: Res Publica
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Stellaris: Synthetic Dawn
  • Victoria 2: A House Divided
  • March of the Eagles
  • Rome: Vae Victis
  • Europa Universalis IV: Third Rome
  • Cities: Skylines Deluxe Edition
  • Europa Universalis IV: Pre-order
  • Cities: Skylines - After Dark
  • Stellaris - Path to Destruction bundle
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Mare Nostrum
  • Knights of Honor
  • For the Motherland
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Darkest Hour
  • Europa Universalis III Complete
  • Hearts of Iron III
  • Europa Universalis IV: Call to arms event
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Art of War
  • Divine Wind
  • Europa Universalis III
  • Hearts of Iron IV: Cadet
  • Europa Universalis IV: El Dorado
  • 500k Club
  • Mount & Blade: Warband
  • Crusader Kings II: Way of Life
  • Europa Universalis IV: Common Sense
  • Crusader Kings II: Horse Lords
  • Europa Universalis 4: Emperor
  • Europa Universalis IV
  • Crusader Kings II: Conclave
Solved!!! :laugh:

It was culture. Those provinces were set to a unique culture and I guess the game couldn't find enough dynasties of that culture or something like this. I had single characters from that culture holding titles elsewhere in the map, and they worked fine, but no other provinces were set to be native of that culture, and that was the problem!

Thanks again for your help!

By the way, I've got another question and it's probably not worth a new thread... is it possible to change the game speed? I mean the 5 levels of speed (days/second) are hardcoded or moddable?

Thank you!

L.

Ah, sorry I didn't help then, I hadn't really considered the culture's. As for your next question, I would say it *may* be possible, try either defines.lua in common or one of the text.csv files in localisation.