• 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.

Leyic

Corporal
120 Badges
Jan 25, 2007
25
11
  • Naval War: Arctic Circle
  • Gettysburg
  • Hearts of Iron III
  • Hearts of Iron III: Their Finest Hour
  • Heir to the Throne
  • Impire
  • Europa Universalis III Complete
  • Iron Cross
  • Knights of Pen and Paper +1 Edition
  • The Kings Crusade
  • Magicka
  • March of the Eagles
  • Europa Universalis III Complete
  • For the Motherland
  • Europa Universalis IV: Res Publica
  • Victoria: Revolutions
  • Rome Gold
  • Semper Fi
  • Sengoku
  • Sword of the Stars
  • Sword of the Stars II
  • Starvoid
  • Teleglitch: Die More Edition
  • The Showdown Effect
  • Victoria 2
  • Europa Universalis 4: Emperor
  • Darkest Hour
  • Arsenal of Democracy
  • Hearts of Iron II: Armageddon
  • Cities in Motion 2
  • Crusader Kings II
  • 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
  • A Game of Dwarves
  • Deus Vult
  • Europa Universalis III
  • Europa Universalis III: Chronicles
  • Europa Universalis III Complete
  • Divine Wind
  • Europa Universalis IV
  • Europa Universalis IV: Art of War
  • Europa Universalis IV: Conquest of Paradise
  • Europa Universalis IV: Wealth of Nations
  • Europa Universalis IV: Call to arms event
This is a primitive set of Python 2.x scripts I've written for converting some of the game's .txt files into the .csv format, wherein they can be modified and converted back into the appropriate .txt format. There is currently only support for dynasties.txt and the character files. This should make it a bit easier to modify and add characters, but that's about it for now. The imported files will be saved in a separate mod directory with the appropriate structure, so they won't overwrite the vanilla files and can easily be added to a mod. Just to be clear: This does not operate on the save file.

To install, extract the archive into the main CKII directory, so that a new ExportImportTools directory is created within. Semi-detailed instructions are provided with the archive. The scripts are in plain Python, so feel free to modify them.

I should emphasize that these tools are in a very primitive state. While they get the job done, they're not fancy. There's no interactivity with the scripts. You don't want to change the .csv format. There's no validation. Prepare for crashes and frustration. If you're not comfortable with .csv files, the command console, and Python error codes, you probably don't want to bother with this just yet. Future versions shouldn't break backwards compatibility, but I won't guarantee it. You've been warned.
 

Attachments

  • ExportImportTools 2012 Feb 22.zip
    7,7 KB · Views: 2
Here's a new version with support for provinces and titles, along with bug fixes and optimizations. As each type of file is condensed into a single .csv file, this means 2,378 files can be reduced to four for data browsing and editing purposes. This should also make cross referencing id#s and finding empty id#s a bit easier. Any modding that can be done with the .txt files can also be done with the .csv files, so you could treat this as a simple character/dynasty/province/title editor without validation. Here's an image that should help convey what this does.

characters.jpg
 

Attachments

  • ExportImportTools 2012 Feb 23.zip
    10,6 KB · Views: 9
Looks nice! Good work!
Would it be possible to load the dynasty.txt file as well along with the character-files? Just so that tehre will be an extra column next to the dynast_id column that will say what id actually is what dynasty?