Beauclerc

Captain
37 Badges
Aug 26, 2004
398
5
  • Crusader Kings II: Reapers Due
  • Sengoku
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Res Publica
  • Cities: Skylines - Mass Transit
  • Crusader Kings Complete
  • Cities: Skylines - Green Cities
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Cities: Skylines Industries
  • Cities: Skylines - Campus
  • Crusader Kings III
  • Deus Vult
  • 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
  • Crusader Kings II
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
ckTrim Character Removal Tool for 1.05

ckTrim is BACK, due to popular demand... well some demand anyway!

Beta Release version 0.1.0.3

*Please read update notes in subsequent posts*

What the Application Does

The ckTrim application removes extraneous characters from Crusader Kings Savegame fles (.eug). During the lifetime of a Crusader Kings campaign, characters die, and many of these serve no purpose in the campaign after that. Dead characters will need to be retained if they have produced children during their lifetime, as this is used when the game determines inheritance of titles and claims. Characters who produce no children are therefore extraneous.

Files that retain these superfluous characters can grow to become extremely large, wasting hard disk space and also increasing the loading and save times within the game itself. Furthermore, these extra characters are loaded into memory when the game is in progress, wasting resources and slowing performance. The ckTrim application removes these characters in an attempt to alleviate these problems.

Characters are removed if they conform to the following criteria:

1. Character is dead and had no children in their lifetime
2. Character is dead and only had children that have been removed themselves during the trimming process
3. Character is not associated with any current wars in progress

The application also removes any marriages associated with trimmed characters from the file.

The ckTrim application provides a further option that allows the user to retain a particular Dynasty. This allows them to keep characters within the dynasty that they are playing as within the game. This feature is particularly intended for those who use Family Tree Generators. A further option within the Retain Dynasty option allows the user to retain all characters within the selected dynasty who died in adulthood, but trim those who died before they reached 16.


Prerequisites

The ckTrim Application was written using the .NET platform v 2.0. In order to run the application you will need to have the .NET Framework v 2.0 installed on your machine. The Framework can be downloaded (free) from Microsoft's website (www.microsoft.com/downloads). The current download is named "Microsoft .NET Framework Version 2.0 Redistributable Package (x86).

Installing

If the package you downloaded to obtain ckTrim contains a setup package, then please use this and follow the instructions. Alternatively you may have been supplied with the basic files which you will need to extract onto your machine yourself. The following instructions are for the latter method.

The zip file should contain the following two files:

ckTrimBeta.exe
ckTrimBeta.exe.config

You should extract both of these files to a folder on your machine (a new subfolder within the Crusader Kings folder would be a good choice). The ckTrimBeta.exe file is the actual application, and should you wish to define a shortcut it should be to this file.

Instructions on how to use the application are included in the zip file in both rtf and txt format.

Notes
The summary has two stats that suggest they provide the size of the files before and after the trim. This feature is not yet active.

You only need one of the following downloads. The first is a standard setup program, while the other contains the files you need for manual installation.

Please provide feedback/problems in the following thread: http://forum.paradoxplaza.com/forum/showthread.php?p=5746373#post5746373
 

Attachments

  • ckTrimSetup.zip
    412 KB · Views: 550
  • ckTrim.zip
    73,6 KB · Views: 409
Last edited:

Beauclerc

Captain
37 Badges
Aug 26, 2004
398
5
  • Crusader Kings II: Reapers Due
  • Sengoku
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Res Publica
  • Cities: Skylines - Mass Transit
  • Crusader Kings Complete
  • Cities: Skylines - Green Cities
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Cities: Skylines Industries
  • Cities: Skylines - Campus
  • Crusader Kings III
  • Deus Vult
  • 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
  • Crusader Kings II
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
***UPDATE***

A new version of the ckTrim Application has been added (use the attachment in the first post as this has replaced the old one).

version 0.1.0.1 (beta)

  • Included fix for a bug in the Crusader Kings game where Characters are married twice to the same person. The additional marriage is now deleted.
  • Fixed an ommission of mine where I hardcoded the dynasties.txt path. The ckTrim application will now ask you for the main path of the Crusader Kings game.
  • Sorted out the tab ordering in the forms

Instructions:
If you have already downloaded v 0.1.0.0, simply replace all of the files in the zip (not just the .exe) into the same folder as before... overwriting the old files.
 
Last edited:

Beauclerc

Captain
37 Badges
Aug 26, 2004
398
5
  • Crusader Kings II: Reapers Due
  • Sengoku
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Res Publica
  • Cities: Skylines - Mass Transit
  • Crusader Kings Complete
  • Cities: Skylines - Green Cities
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Cities: Skylines Industries
  • Cities: Skylines - Campus
  • Crusader Kings III
  • Deus Vult
  • 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
  • Crusader Kings II
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
***UPDATE***

A new version of the ckTrim Application has been added (use the attachment in the first post as this has replaced the old one). Back to zero views again! :(

version 0.1.0.2 (beta)

  • Somehow the changes for the duplicate marriage in the previous version were lost. This addresses the problem again.

Instructions:
If you have version v 0.1.0.1 you may decide to only add the executable, as the config file is unchanged, and you can then keep your settings without having to set your directories again.

If you have v 0.1.0.0 then overwrite all files in your target directory.

If you don't have any version, follow the instructions in the first post

Apologies for this... totally bemused as to what happened there.
 

Beauclerc

Captain
37 Badges
Aug 26, 2004
398
5
  • Crusader Kings II: Reapers Due
  • Sengoku
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Res Publica
  • Cities: Skylines - Mass Transit
  • Crusader Kings Complete
  • Cities: Skylines - Green Cities
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Cities: Skylines Industries
  • Cities: Skylines - Campus
  • Crusader Kings III
  • Deus Vult
  • 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
  • Crusader Kings II
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
***UPDATE***

A new version of the ckTrim Application has been added (use the attachment in the first post as this has replaced the old one).

version 0.1.0.3 (beta)

  • Previous versions did not write back extra unicode characters correctly. This means that characters with, for example, umlauts simply were not written. This problem has been addressed.


Instructions:
If you have version v 0.1.0.1 or v 0.1.0.2 you may decide to only add the executable, as the config file is unchanged, and you can then keep your settings without having to set your directories again.

If you have v 0.1.0.0 then overwrite all files in your target directory.

If you don't have any version, follow the instructions in the first post.
 

Beauclerc

Captain
37 Badges
Aug 26, 2004
398
5
  • Crusader Kings II: Reapers Due
  • Sengoku
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Res Publica
  • Cities: Skylines - Mass Transit
  • Crusader Kings Complete
  • Cities: Skylines - Green Cities
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Cities: Skylines Industries
  • Cities: Skylines - Campus
  • Crusader Kings III
  • Deus Vult
  • 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
  • Crusader Kings II
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
***UPDATE***

The releases of ckTrim are suspended as there are one or two known issues, mainly to do with Intenational Character Encoding.

I will fix these problems... do some intensive testing, then release when I'm happy things are as they should be.

Thanks to all who've provided feedback on the Beta release so far. The Parser will be used for a number of tools I'm planning and problems resolved in this Beta will have an impact on future tools, so it is worthwhile (I hope).
 

Beauclerc

Captain
37 Badges
Aug 26, 2004
398
5
  • Crusader Kings II: Reapers Due
  • Sengoku
  • 500k Club
  • Cities: Skylines
  • Crusader Kings II: Holy Knight (pre-order)
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Cities: Skylines - After Dark
  • Crusader Kings II: Conclave
  • Cities: Skylines - Snowfall
  • Europa Universalis IV: Res Publica
  • Cities: Skylines - Mass Transit
  • Crusader Kings Complete
  • Cities: Skylines - Green Cities
  • Cities: Skylines - Parklife Pre-Order
  • Cities: Skylines - Parklife
  • Cities: Skylines Industries
  • Cities: Skylines - Campus
  • Crusader Kings III
  • Deus Vult
  • 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
  • Crusader Kings II
  • Europa Universalis III Complete
  • Europa Universalis IV
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
  • Heir to the Throne
  • Europa Universalis III Complete
  • Europa Universalis III Complete
***UPDATE***

A new version of the ckTrim Application has been added (use the attachment in the first post as this has replaced the old one).

version 0.1.0.4 (beta)

  • Special characters should now be successfully read and written back to the file.
  • Put in a safety measure to ensure that dead characters who hold titles are not pruned


Instructions:
If you have version v 0.1.0.1 or v 0.1.0.2 or v 0.1.0.3 you may decide to only add the executable, as the config file is unchanged, and you can then keep your settings without having to set your directories again.

If you have v 0.1.0.0 then overwrite all files in your target directory.

If you don't have any version, follow the instructions in the first post.