• 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.
I found out what was causing the crashing for me. In my default.map file I was missing a few lines. Here is what I currently have in mine. Copy and paste this into yours and see if it fixes your problem.

It's great that you squashed that annoying bug!

Sad thing is that my default.map does already look exactly the same (I pasted your text instead for what there was before and git registered no line changing). What lines did you change? Probably there is a problem in one of the files where these lines link.
 
Set launch options to -debug -debugscripts in Steam.
Check error.log, it will often now (2.4.x+, with those launch options set) tell you what's wrong.
 
Thank you for valuable advice, @Daronaollard and @richvh!

The debug log was of no help, there were some mistakes but I saw them their already when the mod was playable. The log helped me a lot when I was updating things to 2.4 so I strongly agree in that it is helpful now. Not this time though.

Funny hing is that after checking the log and fixing some minor issues I randomly walked into tech history and noticed a missing 769 ={} block for a newly created empire. Apparently that was the showstopper.
 
  • 1
Reactions:
It's great that you squashed that annoying bug!

Sad thing is that my default.map does already look exactly the same (I pasted your text instead for what there was before and git registered no line changing). What lines did you change? Probably there is a problem in one of the files where these lines link.

I am not too sure what the problem could be then. All I know is that this fixed it for me. Sorry about that. :( I hope you're able to fix it in time.
 
Anyone know what's wrong with my mod? I did everything in the tutorial, but it doesn't seem to work ;_;

Any help would be appreciated!

The error log says the following:

Code:
[virtualfilesystem.cpp:680]: Could not open file: , error: Het systeem kan het opgegeven pad niet vinden.
[ck_application.cpp:1207]: File exception:
Exception in: C:\jenkins\workspace\CK2-Live-R-Steam-Windows\clausewitzII\pdx_core\virtualfilesystem.cpp, line: 682. Description: Could not open file: , error: Het systeem kan het opgegeven pad niet vinden.

"Het systeem kan het opgegeven pad niet vinden" means "System can't find specified path" by the way. I only get the error when loading my mod.
 

Attachments

  • distantempires.zip
    165,3 KB · Views: 2
Anyone know what's wrong with my mod? I did everything in the tutorial, but it doesn't seem to work ;_;

Any help would be appreciated!

The error log says the following:

Code:
[virtualfilesystem.cpp:680]: Could not open file: , error: Het systeem kan het opgegeven pad niet vinden.
[ck_application.cpp:1207]: File exception:
Exception in: C:\jenkins\workspace\CK2-Live-R-Steam-Windows\clausewitzII\pdx_core\virtualfilesystem.cpp, line: 682. Description: Could not open file: , error: Het systeem kan het opgegeven pad niet vinden.

"Het systeem kan het opgegeven pad niet vinden" means "System can't find specified path" by the way. I only get the error when loading my mod.

You need to add the geographical_regions.txt and island_regions.txt to your map folder. Copy them over from the vanilla game map folder into your mod folder. And empty them out. You can leave them blank. These two files replace the regions.txt file so you can delete that one.

I believe that will fix your crashing.
 
You need to add the geographical_regions.txt and island_regions.txt to your map folder. Copy them over from the vanilla game map folder into your mod folder. And empty them out. You can leave them blank. These two files replace the regions.txt file so you can delete that one.

I believe that will fix your crashing.

Thanks for your help, but after I followed your instructions, it gave me the same error, only saying that it couldn't find \map\region.txt. When I put an empty region.txt in the \map\ folder, it gives me the same error as in my first post :(
 
Thanks for your help, but after I followed your instructions, it gave me the same error, only saying that it couldn't find \map\region.txt. When I put an empty region.txt in the \map\ folder, it gives me the same error as in my first post :(

Well let me download your file and see. I am not on mobile so I can download it and have a look. I'm no expert but I'll see what I can do.
 
Thanks for your help, but after I followed your instructions, it gave me the same error, only saying that it couldn't find \map\region.txt. When I put an empty region.txt in the \map\ folder, it gives me the same error as in my first post :(

Okay this is what you have to do.

1: Copy this into you "default.map" file in the map folder.
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"
region = "island_region.txt"
geographical_region = "geographical_region.txt"
adjacencies = "adjacencies.csv"
climate = "climate.txt"

2: Make a "island_region.txt" and "geographical_region.txt" in your map folder.

Start your game and you should be all set to go. I got it working so this is literally all you have to do. If you need more help though, ask away. I'll do my best to help.
 
Okay this is what you have to do.

1: Copy this into you "default.map" file in the map folder.
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"
region = "island_region.txt"
geographical_region = "geographical_region.txt"
adjacencies = "adjacencies.csv"
climate = "climate.txt"

2: Make a "island_region.txt" and "geographical_region.txt" in your map folder.

Start your game and you should be all set to go. I got it working so this is literally all you have to do. If you need more help though, ask away. I'll do my best to help.

Thanks for your help! I can now start the game! Strangely, on the map it shows my one province as if it has no owner, but in the interesting characters tab, it shows my test guy as the count of that province. When I click him, and click play, the game crashes. I already tried removing all cultures but Dutch, and giving him and a new character control over the two baronies. What could be the problem? Thanks in advance!
 
You don't have your character scripted as the holder of c_slyne. (Nor the higher titles, but it's the county level title that keeps the game from being playable.)

You should also move any changed lines in defines.lua to an .lua file in common/defines, following the format in the example file there, rather than including a modded defines.lua.
 
Last edited:
You don't have your character scripted as the holder of c_slyne. (Nor the higher titles, but it's the county level title that keeps the game from being playable.)

You should also move any changed lines in defines.lua to an .lua file in common/defines, following the format in the example file there, rather than including a modded defines.lua.

I should probably include a newer version, as these things have been corrected there. The problem I'm talking about also applies to the newest version.
 

Attachments

  • distantempires.zip
    146,9 KB · Views: 3
Your events folder is misplaced. It should be in the mod's root folder, not inside common. That wouldn't cause a crash though as you've replace_pathed events.

You have not, however, replace_pathed decisions or common/on_actions, so a vanilla decision or on_action could be causing a crash.
 
Thanks for your help. I've changed my .mod file to this:

Code:
name="Distant Empires"
path="mod\distantempires"
user_dir="distantempires"

replace_path = "history/provinces"
replace_path = "history/titles"
replace_path = "history/wars"
replace_path = "history/characters"
replace_path = "events"
replace_path = "common/landed_titles"
replace_path = "common/dynasties"
replace_path = "common/on_actions"
replace_path = "decisions"

Sadly, it still CTDs, and the weird count-but-not-selectable problem persists.
 

Attachments

  • 2015-08-10_00001.jpg
    2015-08-10_00001.jpg
    478 KB · Views: 19
Thanks for your help. I've changed my .mod file to this:

Code:
name="Distant Empires"
path="mod\distantempires"
user_dir="distantempires"

replace_path = "history/provinces"
replace_path = "history/titles"
replace_path = "history/wars"
replace_path = "history/characters"
replace_path = "events"
replace_path = "common/landed_titles"
replace_path = "common/dynasties"
replace_path = "common/on_actions"
replace_path = "decisions"

Sadly, it still CTDs, and the weird count-but-not-selectable problem persists.

After taking a quick look. I think I might have spotted a small problem. In your "provinceDef" file. You have Slyne's holdings set as 2_8. I do not believe you can have 8 holdings in a single county. Try changing the 8 to a 7 and rerun the mapfiller tool you're using and see if that fixes your crashing. The game is probably trying to load in 8 holdings in the county but as far as I know that is not possible.
 
After taking a quick look. I think I might have spotted a small problem. In your "provinceDef" file. You have Slyne's holdings set as 2_8. I do not believe you can have 8 holdings in a single county. Try changing the 8 to a 7 and rerun the mapfiller tool you're using and see if that fixes your crashing. The game is probably trying to load in 8 holdings in the county but as far as I know that is not possible.

Alright, progress! So now, I can select my test guy and click play without crashing, there's one last problem remaining though.

He's still not selectable via the map, and you automatically get a game over. It's almost like the title and the map location are detached in some way :/
 
Alright, progress! So now, I can select my test guy and click play without crashing, there's one last problem remaining though.

He's still not selectable via the map, and you automatically get a game over. It's almost like the title and the map location are detached in some way :/

Okay, good! Let me take another look then.
 
Alright, progress! So now, I can select my test guy and click play without crashing, there's one last problem remaining though.

He's still not selectable via the map, and you automatically get a game over. It's almost like the title and the map location are detached in some way :/

I am sorry to ask this, but could I get the newer version of your mod. Just so I can see what is what. I wasn't updating your mod as I made changes so I don't know how you have what.