Modding

## Before You Mod: Disclaimer

The developers of **Going Medieval** are not responsible for any bugs or loss of data as a result of modifying any game files!
You may crash your save files or wreck your game installation; your computer may catch the plague, or be struck by Thor's Lightning!
Any modding you do is at your own risk. *Caveat modder*!

## Modding Document by Kye

Kye from the official Going Medieval Discord channel has put together a large and detailed Google Docs document with
lots of information about modding Going Medieval. You can find it here.

## Modding Made Easy

The simplest method of modding the game is to edit JSON text files.
JSON stands for JavaScript Object Notation, but all you need to know is that there are a bunch of text files
formatted in such a way that they are readable by people, but also formatted in such a way as to also be readable by your computer.
You have to follow the JSON format or you may break your game.
The JSON files contain a lot of the data used in the game, like the settings for the different levels of difficulty,
attributes for weapons, food, and armor, etc.

## Locating those JSON Files

To edit the files, first you have to find them. The JSON files are located in subdirectories off of the main game directory. The location of the game directory depends on which version of the game you have. Did you get it from the Epic Games Store or Steam?

### Epic Games Store

For the Epic Games Store, the default game directory is located at:

* C:\Games\Epic Games\GoingMedieval

### Steam

For Steam, the default game directory is located at:

* C:\Program Files (x86)\Steam\steamapps\common\Going Medieval

Once you find the game directory, go to the "Going Medieval\_Data" directory, then the "StreamingAssets" directory.
The relevant JSON files are located in that directory and its 23 subdirectories.

## How to Edit JSON Files

Windows Notepad will technically work, but it will not provide syntax highlighting.
Other programs are much better suited for this task.
Visual Studio Code and Notepad++ are two popular options.

## The JSON Format

You should be able to get a feel for how to edit the files based on how they look.
For more information, see this w3schools.com article on writing JSON.

## Validate Your Code

Once you make changes to the file and save it, you should validate it to make sure you wrote your code correctly.
There are many sites online that you can use to check your code to make sure it is syntactically correct.
JSONLint is one of those sites, but you can just search for "validate json online" and find your own if you like.

## The List

Click this link to see a table of all the JSON files and what they do.

* List of Going Medieval's JSON Configuration Files

There are other ways to modify the game, but they require writing software and are much more complication.
If anyone cares to write more on that topic, please feel free!

## Removing your modifications

If you've made changes to the game's code, and something goes wrong, you can remove your modifications by verifying that game's files. This is especially useful if you don't remember what code you changed, or if you've downloaded mods online and can't figure out why they're not working for you. You can find the instructions to do this for your install here:

* Instructions for Steam

* Instructions for Epic Games Store

* Instructions for GOG

NAVIGATION

About
Stake your claim in this colony building sim and survive a turbulent Medieval age. Construct a multi-storey fortress in a land reclaimed by wilderness, defend against raids, and keep your villagers happy as their lives are shaped by the world.**Developer:** Foxy Voxel Website**Publisher:** The Irregular Corporation Website**Engine:** Custom**Genre:** City Builder, Colony Sim, Simulation**Mode:** Single-player**Language:** English, Simplified Chinese, French, German, Japanese, Portugese (Brazil), Russian, Spanish (Spain), Korean, Polish, Turkish**Media:** DigitalPlatforms and Release dates
Early access: Steam, Epic & GOG

SOCIAL MEDIA:
Facebook -
Twitter -
Discord

Mobile Menu - Desktop Menu