Just tell me!Why is this one hard to figure out while the other two are make sense?![]()
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 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.To be sure, have you modified anything besides map and histories?
"they were put standard" -> you need to edit your damn config file. Sorry for sounding rudeI 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.
Haha, no problem! I should have followed that part of the tutorial better"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
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++.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!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.)
When programming, always, always, always do backups.And, just like that, my mod starts again. Thank you very much!
I'll make sure to back up this working version
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();
}
}
}