Modding:JSON Patching: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
No edit summary
Line 5: Line 5:
=== The basics ===
=== The basics ===


The first thing you need to do is to setup a generic mod as outlined on the wiki. That information can be found on the [[mod packaging]] page. In that example the domain is the name of your mod. Patching is considered a content mod but if you have a .dll or .cs in your mod it is a code mod. Patches go in assets/domain/patches.
The first thing you need to do is to setup a generic mod as outlined on the wiki. That information can be found on the [[Mod Packaging|mod packaging]] page. In that example the domain is the name of your mod. Patching is considered a content mod but if you have a .dll or .cs in your mod it is a code mod. Patches go in assets/domain/patches.


Now that the mod files and folders are setup it is time to make the first patch. Start by making a .json and name it however you'd like. Open the file with your favorite text editor and fill it in with the following.
Now that the mod files and folders are setup it is time to make the first patch. Start by making a .json and name it however you'd like. Open the file with your favorite text editor and fill it in with the following.
Confirmedusers, Bureaucrats, editor, Administrators
1,778

edits