A BepInEx plugin that enables Cult of the Lamb save file editing via .json.
Warning
This plugin has the potential to corrupt and overwrite your save files! Make sure that you have a recent backup on hand and are aware of the consequences of using this plugin before continuing with the installation.
If you encounter any issues that arise after modifying your save file, please make sure that you also test that it loads your save file properly in the vanilla (un-modded) game and make sure that you do not have other mods running alongside this plugin. Once you have confirmed that, you may create an issue in this repository first to make sure the green light is given by the creator (osoclos) before reporting it as an official bug to Massive Monster.
- BepInEx - A tool to allow modding within Unity games. [Setup Guide]
- Notepad++ - A program to edit large text files. (Optional, but recommended) [Download Page]
- First, head over to the Releases section on the right of the GitHub repository homepage and click on the latest release displayed.
- Download the
.dllfile listed below the release details.
- Open up your Downloads folder and drag the downloaded
.dllplugin file into your BepInEx plugins folder in the Cult of the Lamb game folder.
Alternatively, you may wish to clone this repository using git clone and build the .dll file yourself by opening the .sln file in Visual Studio and running the build commands.
After installing the plugin, you can run Cult of the Lamb like how you normally would.
Warning
Before you proceed with the steps after this point, please make sure that you backup any save files that you would want to keep safe in case of a corruption/overwrite.
- Load up any save file of your choice and save the game file upon completing loading of said file.
- After saving, an extracted version of your save file can be located in your saves folder as a
.jsonformat (By default, this file will be namedslot_#-extracted.json). From there, you can modify it using a program (such as Notepad++) and change the values in the.jsonfile.
There is a lot of data that you can mess around with in the extracted .json save file. If you are not sure where to start, we can do a simple modification whereby we change the quantity of a specific item in the inventory.
- Open up Notepad++ (or any other text editing program) and search
"items"(include the quotation marks!) in the file (either by pressing Ctrl + F or clicking theFindfeature in your text editor).
- Find an entry that is in the following format (
"items":[{ ... }]) and change the values in the"quantity"and"UnreservedQuantity"entries inside any one of the curly brackets. (In my example, I chose to modify the number of bones [represented by"type": 9], but you may also change the quantity of any item in your current inventory)
- Go to the main menu WITHOUT SAVING (saving will overwrite your modifications) and open up your modified save.
-
If you the number of bones you have is the same as what you entered in the extracted
.jsonsave file, congratulations! You have successfully modified a save file! -
Go forth and explore further! There is so much to modifying save files (and modding in general) and I hope this little adventure serves as a starting point to give you the headstart you need to move on!
This contains the description of configuration entries for this plugin. (mod.osoclos.cotl.save-extractor-loader.cfg)
Enable extraction of save files.
The string that will be appended after the filename to prevent overwriting of the default slot_#.json file. Leaving it empty will overwrite it.
Whether to read the extracted .json save files instead of the .mp save files, if available.







