Based on the parsing library of Klas (ck-clean) but having using a different approach to the Character Removal problems, I wrote this small tool, ck-purge.
The algorithm.
Imagine the genealogy trees of CK. How to remove the "dead branches" , that is those characters that don't affect inheritance?
The characters that can be safely removed are for sure the Dead Childless Characters (DCC ) If he is a DCC, he can be removed without changing any inheritance of titles. After their removal, some other characters could have become DCC, because their children were removed, so the program removes them too, and so on, recursively, until there are no DCC around.
The program.
The zipfile contains the program itself and the cygwin1.dll . The best thing is to put those in the same directory. Usage is simple.
ck-prune oldsavegame -o newsavegame
Please note that if you use the same name for old and new files, your old file will be lost forever.
You can find a sample output of ck-prune just below
The Download,
You can find ck-prune here
Feedback, suggestions, complains etc..
Please feel free to make suggestions, criticize and pin point errors and issues, about ck-prune
ciao
UPDATE: 07/24/2006: changed the link to work again..
Update: 11/12/2006: changed the link againg....
The algorithm.
Imagine the genealogy trees of CK. How to remove the "dead branches" , that is those characters that don't affect inheritance?
The characters that can be safely removed are for sure the Dead Childless Characters (DCC ) If he is a DCC, he can be removed without changing any inheritance of titles. After their removal, some other characters could have become DCC, because their children were removed, so the program removes them too, and so on, recursively, until there are no DCC around.
The program.
The zipfile contains the program itself and the cygwin1.dll . The best thing is to put those in the same directory. Usage is simple.
ck-prune oldsavegame -o newsavegame
Please note that if you use the same name for old and new files, your old file will be lost forever.
You can find a sample output of ck-prune just below
The Download,
You can find ck-prune here
Feedback, suggestions, complains etc..
Please feel free to make suggestions, criticize and pin point errors and issues, about ck-prune
ciao
UPDATE: 07/24/2006: changed the link to work again..
Update: 11/12/2006: changed the link againg....
Code:
C:\Lorenzo\Game tools\CK>ck-purge.exe "Kingdom of Hungary_1154_February_23.eug" -o new.eug
Reading CK savegame.....................................................
Number of marriages read: 5060
Number of characters read: 23660
Number of titles read: 1109
Number of claims read: 5295
Finding relationships between characters...
Removing characters, marriages and claims
....Number of characters removed: 6650
Checking again...
....Number of characters removed: 2758
Checking again...
....Number of characters removed: 966
Checking again...
....Number of characters removed: 332
Checking again...
....Number of characters removed: 107
Checking again...
....Number of characters removed: 42
Checking again...
....Number of characters removed: 15
Checking again...
....Number of characters removed: 13
Checking again...
....Number of characters removed: 5
Checking again...
....Number of characters removed: 3
Checking again...
....Number of characters removed: 2
Checking again...
....Number of characters removed: 2
Checking again...
....Number of characters removed: 1
Checking again...
....Number of characters removed: 0
Done
Number of marriages removed: 1124
Number of claims removed: 418
Writing CK savegame.......................
Done!
Last edited: