Savefiles are normally compressed and saved as binary. To prevent that, open game in debug mode and save game again. Warning: Save Files will become 10x bigger! To return file size to normal, after editing open game without debug mode and save again.
This page is intended to assist with editing the CKII Save File. Before editing save files, it is highly recommended that you create a copy of the files in question. Simple mistakes made while editing can make a save file unplayable. Save-game editing is IMPOSSIBLE on ironman.
Any character in the game can be edited very easily. Any aspect of a character including stats, traits and prestige/piety can be changed. You can open save files in Notepad, but they will take several minutes to load. A more advanced text editor such as Notepad++ is therefore recommended.
In order to edit a character you must first locate them within the file. The Character ID of the player character can be found at the very top of the save file. Other Character IDs can be found in a non-ironman game by using the charinfo console command. When you have the character ID, search the document using Ctrl+F and type in the Character ID followed by =.
If you do not know this number, then simply run a search for the name of the character and cross reference information like birth dates, parent names, or traits (this requires knowing the trait codes). This becomes a lot easier if the character has an uncommon name.
Once you find the character you are looking for, you can edit any of their features. Numerical values such as health, base stats and fertility are very easy to alter. Traits must be added using their numerical ID as opposed to actual name.
If your character has moved capitals already and you wish to allow them to do it again, change the "moved_capital" variable to "yes" instead of "no", then choose your new capital from within the game. This is very helpful if your landed son inherits from you, as the inheritance causes them to change capitals. Given that rulers normally suffer a prestige penalty for having unlanded sons, most players opt to give them land, only to discover they're stuck with their current capital when the father dies.
where the ID is the other characters ID. This will marry the two characters in game. For a free divorce from a non-matrilineal marriage, simply remove this section. In order to divorce a matrilineal marriage, you will also need to remove the section outlined below.
If you want a matrilineal marriage you will need to add to the relation= section of the save file. As an example, let's take 1500 as the husband's ID, and 2800 as the wife's ID. Add this to the relation section:
This page is intended to assist with editing the EU4 Save File. Before editing save files, it is highly recommended that you create a copy of the files in question. Simple mistakes made while editing can make a save file unplayable. Editing ironman saves directly would require advanced knowledge of the binary format which is used by them, but tools exists which can be used to turn ironman saves into non-ironman saves which then can be edited like this article describes.
To edit a save, a plaintext file is needed. The easiest way to get it is to save it with compression turned off(checkbox above the save button). Alternatively a compressed save can be edited by changing the extension from .eu4 to .zip, and then using a compression program to unzip it. Then most of the relevant information is in the gamestate file.
If the file is ironman, it has to be melted which turns it into a plaintext save. To identify an ironman save outside of the game, the first characters in the file can be used(after unzipping). EU4txt is a non-ironman save and EU4bin denotes an ironman save.
You can open save files in Notepad, but they will take several minutes to load and saving can break the save. A more advanced text editor such as Notepad++ is therefore recommended. The encoding of the save file is Windows-1252 which should be selected in the open file dialog.
The section below, Save File Contents, can help you identify if you are in the right spot. Once you find the element you are looking for, you can edit any of their features. Numerical values such as prestige, diplomacy.
By using the edit function in the 7zip file manager (the editor needs to be chosen by going to tools then options then editor and putting a link to editor of chice) the file can be edited and then once the file is closed 7zip will automatically re-compress the file to ensure no issues
An easier way to compress the saves on Mac is to highlight the two files, left click and click "Compress 2 Items". A .zip file named Archive.zip will appear: left click on this and click "Get Info". Under the "Name & Extension" section, click the box containing Archive.sav and change .zip to .sav. You will be prompted for confirmation on changing the extension.
Nearly any information about a given playthrough can be modified via editing the gamestate file. This includes current energy, mineral, food and unity stores, as well as planet tiles and pop traits. The following is an example of a populated tile on a Fallen Empire's planet, containing a dark matter power plant.
You can save plots as images or as vector graphics files using either the export button in the axes toolbar, or by calling the exportgraphics function. When deciding between the two types of content, consider the quality, file size, and formatting requirements for the document you are placing the file into.
Images are supported in most applications. They are useful for representing pictorial images and complex surfaces. However, because they made up of pixels, they do not always scale well when you print or display them on other devices that have different resolutions. In some cases, you might need to save an image with enough resolution to satisfy certain quality requirements. Higher resolution files tend to be larger, which can make them difficult to share in an email or upload to a server. It can also be difficult to edit the lines and text in an image without introducing artifacts.
Vector graphics files contain instructions for drawing lines, curves, and polygons. They are useful for representing content consisting of lines, curves, and regions of solid color. These files contain high quality content that is scalable to any size. However, some surfaces and mesh plots are too complicated to be represented using vector graphics. Some applications support extensive editing of vector graphics files, while other applications support only resizing the graphics.
To save a plot using interactive controls, use the export button in the axes toolbar. The toolbar appears when you hover over the upper right corner of the axes. The export button supports three image formats (PNG, JPEG, and TIFF), as well as PDF files, which can contain images or vector graphics, depending on the content in the axes.
When you use the export button to save a plot, the output is tightly cropped around the axes content, including any legends or colorbars. The output does not include content outside the axes, such as other axes in the figure.
If the figure contains multiple plots in a tiled chart layout, you can save all the plots together by moving the toolbar to the layout. To move the toolbar, call the axtoolbar function and specify the TiledChartLayout object as an input argument. Then hover over the export button in the toolbar. The toolbar appears when you hover over the upper right corner of the layout
To save plots programmatically, use the exportgraphics function. The saved content is tightly cropped around the axes with minimal white space. All UI components and adjacent containers such as panels are excluded from the saved content. The exportgraphics function supports three image formats (PNG, JPEG and TIFF) and three formats that support both vector and image content (PDF, EPS, and EMF). The PDF format supports embedding fonts.
You can control whether the file contains an image or vector graphics by specifying the 'ContentType' name-value pair argument. For example, save the content in the current figure as a PDF containing vector graphics.exportgraphics(gcf,'vectorfig.pdf','ContentType','vector')
To save multiple plots in a figure, create a tiled chart layout and pass the TileChartLayout object to the exportgraphics function. For example, create a 2-by-1 tiled chart layout t. Place two axes in the layout by calling the nexttile function, and plot into the axes. Then, save both plots as an EPS file by calling the exportgraphics function with t as the first argument.t = tiledlayout(2,1);nexttileplot([0 1 0 1])nexttileplot([1 0 1 0])exportgraphics(t,'twoplots.eps')
To add a plot to a LaTeX document, first save the plot as an EPS file using the exportgraphics function. Then add the \includegraphics element to the LaTeX document. For example:\documentclassarticle\usepackagegraphicx\begindocument\beginfigure[h]\centerline\includegraphics[height=10cm]twoplots.eps\captionPlots from MATLAB\endfigure\enddocument
The .prison format is the way games are saved in Prison Architect. They are effectively just .txt files, as demonstrated by the tutorial campaign files where they are in plain text format. The .prison file defines all features of a prison, including the progress of Research, the daily Regime and several game options.
Save files can be found from the main menu in Prison Architect by selecting the "Open Save Folder" option. Alternatively, save files can be found in the following locations, depending on the operating system being run and the version of the game installed (e.g. Steam vs standalone):
Each object is given an Id.i and an Id.u, which are two separate identifier numbers. Id.i is unique to that object type while Id.u is unique to the whole game. The next Id.u to be used is stored as ObjectId.next.
On the forums, Chris has stated that adding the text below will "All materials will be delivered by truck, and your workmen will spend a lot of time unloading them. Workmen will no longer be able to teleport materials around"
3a8082e126