0 of 0

File information

Last updated

Original upload

Created by

Catllord - 7H3LaughingMan

Uploaded by

Catllord

Virus scan

Safe to use

Tags for this mod

About this mod

This tool fixes your save temporarily until warhorse fixes crashing on save issue.

Requirements
Permissions and credits
Changelogs
Donations
This tool fixes your save temporarily until warhorse fixes crashing on save issue.

Special thanks to everyone on KCD2 discord who assisted me in investigating the issue.❤️

Donate to Support Me!

Made with python.
Thank you to 7H3LaughingMan for creating a more convenient and very nice context menu tool. You are a legend.

Click here for my Github repo if you want to verify the source code

Click here for 7H3LaughingMan's Repo

May still give a warning on anti-virus or windows defender, likely because the file is recently signed and need to take a few days, just disable it for the installation.


2 versions:
.exe Tool Installer.ps1 powershell

(old exe with virus warning file can be found in optional files, Use executable version with wine if you are using Linux)

To use:


Rightclick Version:
Note: this version can be uninstalled from your pc at anytime in programs and apps.

1. Install the tool (a command window will pop up and vanish)

2. Right-click on the save file in question and select the "Clean Modlist" option. If you don't see this option you are using the new context menu and will have to hold shift when right-clicking.





Powershell and Executable version:
(in Optional Files)

For powershell you need to run this in admin powershell and rightclick -> properties -> unblock on the script before you run otherwise you will see window open and close:
set-executionpolicy remotesigned



        1. Put the broken save (the save with 400 <usedmods> entries NOT the save with 0 data) into [TARGET SAVE]. (saves located in %USERPROFILE%\Saved Games\kingdomcome2\saves\)

        2. Choose where the Fixed save goes by clicking browse. (Output will automatically be named the same as the Target save, but can be changed manually)

        3. Click 'Run Tool'


Note: 
The crash on save issue is caused by the <UserMods> having over 400 entries.
The saving system in KCD does not replace these entries if you update a mod, causing the save file eventually to corrupt and cause a heap corruption crash upon saving again.
On loading/saving, there is a chance the entire <UsedMods> gets duplicated, this can also contribute to the save eventually reaching 400 entries and crashing.

This tool sort of fixes this issue by Clearing <UserMods> entirely from save while maintaining the binary structure so you can load it. However until warhorse fixes the bugs that cause your save to be piled with <UserMods> duplicate entries, you will have to occasionally run this tool a few times. You can check your own save with a plaintext editor.