
Vintage Story Mod DB · Vintage Story mod
PatchDebug
This is a tool for mod developers. Dumps JSON to logs before and after selected patches are made. Rename your patch file to include .debug. in its filename to trigger dumping. For example, assets/ropeorganization/patches/ropetricks.debug.json. Copious amoun
Quick answer
Which PatchDebug release should I use?
PatchDebug 1.1.2 targets 1.14.8. It must be installed on the client. Installation on the dedicated server is optional. No extra mods listed for this file.
Where it goes
Is PatchDebug required on the client, server, or both?
It must be installed on the client. Installation on the dedicated server is optional.
This release supports both sides, but the source does not require it on the server.
What else does PatchDebug 1.1.2 need?
1.1.2. Change the file and its required mods may change too.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add PatchDebug without breaking your instance.
Built for PatchDebug 1.1.2. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 1.1.2. It targets 1.14.8; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
It must be installed on the client. Installation on the dedicated server is optional.
- 04
Pick the file you checked
Use the “Get this file” button beside 1.1.2. It opens that exact file at the source.
About this project
What does PatchDebug add?
This is a tool for mod developers.
Dumps JSON to logs before and after selected patches are made.
Rename your patch file to include .debug. in its filename to trigger dumping. For example, assets/ropeorganization/patches/ropetricks.debug.json.
Copious amounts of JSON will be dumped to your server-debug.txt and/or client-debug.txt log files.
Please make sure to rename your files back when you're done!
Example
assets/ropeorganization/patches/ropetricks.debug.json:
[
{
"file": "game:itemtypes/resource/rope.json",
"op": "add",
"path": "/creativeinventory",
"value": {
"made_of_plants": ["*"],
"long_and_thin": ["*"]
},
}
]
Excerpt from server-debug.txt:
15.4.2021 03:29:36 [VerboseDebug] === PatchDebug === patches/ropetricks.debug.json => game:itemtypes/resource/rope.json #0 === BEFORE ===
15.4.2021 03:29:36 [VerboseDebug] {
code: "rope",
texture: { base: "item/resource/rope" },
creativeinventory: { "general": ["*"], "items": ["*"] },
maxstacksize: 16,
materialDensity: 510
}
15.4.2021 03:29:36 [VerboseDebug] === PatchDebug === patches/ropetricks.debug.json => game:itemtypes/resource/rope.json #0 === /BEFORE ===
15.4.2021 03:29:36 [VerboseDebug] === PatchDebug === patches/ropetricks.debug.json => game:itemtypes/resource/rope.json #0 === AFTER ===
15.4.2021 03:29:36 [VerboseDebug] {
"code": "rope",
"texture": {
"base": "item/resource/rope"
},
"creativeinventory": {
"made_of_plants": [
"*"
],
"long_and_thin": [
"*"
]
},
"maxstacksize": 16,
"materialDensity": 510
}
15.4.2021 03:29:36 [VerboseDebug] === PatchDebug === patches/ropetricks.debug.json => game:itemtypes/resource/rope.json #0 === /AFTER ===
Oops! /creativeinventory got replaced, deleting "general": ["*"], "items": ["*"].
Solution
The purpose of this mod is to help identify problems, but for posterity, here is the correct way to solve the problem above of adding multiple keys:
[
{
"file": "game:itemtypes/resource/rope.json",
"op": "add",
"path": "/creativeinventory/made_of_plants",
"value": ["*"]
},
{
"file": "game:itemtypes/resource/rope.json",
"op": "add",
"path": "/creativeinventory/long_and_thin",
"value": ["*"]
}
]
Project description from Vintage Story Mod DB.
Pick your setup
PatchDebug releases for each Vintage Story version.
Choose the version and loader you play, then open the matching release.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
PatchDebug versions and loaders
1.1.2
PatchDebug-1.1.2.zip
19 Apr 2021
1.1.0
PatchDebug-1.1.0.zip
16 Apr 2021
1.0.0
PatchDebug-1.0.0.zip
15 Apr 2021
Looking for an older file? The official Vintage Story Mod DB project page is in Resources.