• 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.
Why is this one hard to figure out while the other two are make sense? :confused:
Just tell me! :D :D

TitlePreamble_B sets succession laws and titlePreamble_T sets liege relations in the history files.

It seems to me that it skips titlePreamble_C entirely. I'm not at my PC now, I will double check when I come home.
 
I retried the tutorial and, after solving a few crashes I am now stranded yet again.
My map is rather large and at this moment consists of just one small province, 2 large sea province and one huge swath of wasteland.
As soon as I select my character and press play, I get a CTD.
Tried a lot of small fixes I found on this thread, but can't seem to get it to start again. All suggestions are much appreciated :)
 
I retried the tutorial and, after solving a few crashes I am now stranded yet again.
My map is rather large and at this moment consists of just one small province, 2 large sea province and one huge swath of wasteland.
As soon as I select my character and press play, I get a CTD.
Tried a lot of small fixes I found on this thread, but can't seem to get it to start again. All suggestions are much appreciated :)

To be sure, have you modified anything besides map and histories?
 
To be sure, have you modified anything besides map and histories?
I followed the tutorial and changed a few things to prevent other crashes; like changing the dates in the technology file (cause they were put standard at a date beyond the year 2000), added an empty 'trade routes' file and removed all the lists in the vanilla geographical_regions file.
 
I followed the tutorial and changed a few things to prevent other crashes; like changing the dates in the technology file (cause they were put standard at a date beyond the year 2000), added an empty 'trade routes' file and removed all the lists in the vanilla geographical_regions file.
"they were put standard" -> you need to edit your damn config file. Sorry for sounding rude ;)

5) Technology
The map filler will create a batch of technology files for you. The rule is that a file is created for every empire when that file isn't already present. To re-create tech you need to delete tech files and re-run the tool.
The very important thing here is the tech start date. DONT_EXECUTE_TECH_BEFORE in defines.lua governs the date from which on you need to provide technology history.
Decide on the earliest start date for your mod and overwrite DONT_EXECUTE_TECH_BEFORE accordingly. Then look into your map filler config file and set the years for tech1.year and tech2.year accordingly, as well as the tech values.
To have different tech levels you can create a batch of tech files, then delete some and re-create those with different settings.

But whatever you did probably does the trick, too, I guess
 
"they were put standard" -> you need to edit your damn config file. Sorry for sounding rude ;)

5) Technology
The map filler will create a batch of technology files for you. The rule is that a file is created for every empire when that file isn't already present. To re-create tech you need to delete tech files and re-run the tool.
The very important thing here is the tech start date. DONT_EXECUTE_TECH_BEFORE in defines.lua governs the date from which on you need to provide technology history.
Decide on the earliest start date for your mod and overwrite DONT_EXECUTE_TECH_BEFORE accordingly. Then look into your map filler config file and set the years for tech1.year and tech2.year accordingly, as well as the tech values.
To have different tech levels you can create a batch of tech files, then delete some and re-create those with different settings.

But whatever you did probably does the trick, too, I guess
Haha, no problem! I should have followed that part of the tutorial better :)

I deleted the technology files, copied defines.lua from vanilla to my mod, and did the necessary edits to both defines and config.file.
After that , I ran the mapfiller again.
Sadly, now the game won't even start with my mod selected; the launcher just disappears when I press play... :/
Error log appears empty
 
Make sure you do the editing of defines.lua with Notepad++ and save in Window-1252 encoding (ANSI will do in most cases, may cause problems in localization if your language setting for non-Unicode programs isn't set to a Western European language), Notepad just doesn't cut it (does something to the file that makes CK2 barf.)
 
Make sure you do the editing of defines.lua with Notepad++ and save in Window-1252 encoding (ANSI will do in most cases, may cause problems in localization if your language setting for non-Unicode programs isn't set to a Western European language), Notepad just doesn't cut it (does something to the file that makes CK2 barf.)
Ok, downloaded Notepad++. I'm pretty sure my map files are ok, so I'm just gonna start over and rewrite all files that i used notepad and excel for in Notepad++.
I'll report here in a bit :)
 
Make sure you do the editing of defines.lua with Notepad++ and save in Window-1252 encoding (ANSI will do in most cases, may cause problems in localization if your language setting for non-Unicode programs isn't set to a Western European language), Notepad just doesn't cut it (does something to the file that makes CK2 barf.)
And, just like that, my mod starts again. Thank you very much! :D
I'll make sure to back up this working version
 
  • 1
Reactions:
Or make use of a revision control system (such as github)
 
  • 1
Reactions:
Thanks for the tutorials, I been following both of them closely trying to make my own map mod, but am currently stuck.

My mod consists of 12 provinces right now, 3 of which are ocean. The map filler is correctly compiling and creating all the files it needs to in the way it should; all the provinces are present in definitions and I have created a test character in the history files. However, whenever I load the game it crashes the moment it starts loading graphics. My map's dimensions are not one of the recommended ones in the border txt file. Could this be the problem? My dimensions are 1792x3072. Also my colormap and colormap_water files are entirely black. The only error I get from the logs is "[provincetemplate.cpp:260]: Province 0 has invalid origin" from the graphics log

Thanks in advance for the help
 
1792x3072 is not one of the standard sizes but as 1792 is dividable by 128 (14*128) this is probably not the reason for the CTD. There's a bunch of other things that could cause CTDs during startup like a faulty history/tech, errors in default.map (check if the top lines match the vanilla game's), trade routes etc.
 
JonStryker, after expanding a map, is there any easy way to readjust the positions files without having to go through a hefty nudge session?
 
Awesome, can I find this somewhere? Or is there any way I could replicate it?
 
Code:
public class Postitioning {

    private File path;
    private final int horizontally;
    private final int vertically;

    public Postitioning(File path, int horizontally, int vertically) {
        this.path = path;
        this.horizontally = horizontally;
        this.vertically = vertically;
    }

    public static void main(String... args) {
        new Postitioning(new File("C:\\Users\\Klaus\\Desktop\\positions.txt"), 128, 512).execute();
    }

    private void execute() {
        File path2 = Paths.get(String.valueOf(path.getParentFile()), "positions2.txt").toFile();

        try (
              BufferedReader br = new BufferedReader(new FileReader(path));
              BufferedWriter bw = new BufferedWriter(new FileWriter(path2))
              ) {

            int lineCounter = 1;
            String str;
            while ((str = br.readLine()) != null) {

                if (lineCounter == 6 || (lineCounter-6) % 13 == 0)  {
                    String[] split = str.split(" ");
                    for (int i = 0; i < split.length - 1; i++) {
                        NumberFormat formatter = new DecimalFormat("#0.000");
                        double num = Double.parseDouble(split[i]);
                        if (i%2 == 0) {             //X
                            num += horizontally;
                        } else {                    //Y
                            num += vertically;
                        }
                        bw.write(formatter.format(num).replace(",", "."));
                        bw.write(" ");
                    }
                    bw.write(split[split.length - 1]);

                } else {
                    bw.write(str);
                }
                bw.write("\r\n");

                lineCounter++;
            }

        } catch (IOException e) {
            e.printStackTrace();
        }

    }

}
 
You need province history for any non-sea province that has a name in the 5th field of its definitions.csv entry, and title history for any county titles used in province history. Note that the name of the province in definitions.csv and the province history filenames must match, and may not have any special characters.
 
  • 1
Reactions: