Making your first mod
As a first test, we’ll create a simple example mod that makes crystals shine super bright, makes them movable by the player, and makes them give 100 crystal resources when working on them instead of one.
1. Folder setup
Go to the mods folder at C:\Users\YOUR_USER_NAME\AppDataLocalLow\Oachkatzlschowaf Interactive\Founders Fortune\mods
and create a folder for your mod. Call it something interesting, like “Essential Crystal Mod”
2. config.json file
In this folder, create a file called config.json
. Open the file using any text editor and paste the following:
{
"name": "Essential Crystal Mod",
"version": "1.0",
"author": "Your name",
"website": "https://your.website.or.forum.post.or.steamworks.page.com",
"description": "This mod finally makes crystals useful. Not only do you get 100x resources from them, you can also relocate them easily and, oh, they shine brighter than the sun. Mining without sunglasses prohibited!",
"compatibleVersions": [
"Alpha 10.0"
],
}
These infos are used by the game and by Steam to display your mod properly
3. The mod itself
Make your change to the game using a patch.json
file.
It’s only important the file name begins with patch
and ends with .json
, so for organisation purposes, you can also name it something like patch_crystal_brightness.json
if you want.
Paste the following in the patch file:
{
"replaceOperations": {
"furniture/crystal/constructable": true,
"furniture/crystal/modules/resource/resourcesPerRound": 100,
"furniture/crystal/modules/light/intensity": 2,
"furniture/crystal/modules/light/range": 20,
},
"removeOperations": [
],
}
These lines will the change the behaviour of the crystal object.
The way it works is basically this: Most types of objects in Founders’ Fortune are defined in json files. Crystals, and most objects that are interactable are defined in furniture.json
, that’s why the replaceOperation
begins with furniture
. Most objects are categorized “furniture” because the game simply grew that way. Next, we simply follow the structure in the furniture.json
file until we get to the parameter we want to change.
For more info on how this works, check out the tutorial on Founders’ Fortune configuration files and how to patch them.
4. Done!
Start the game and check the “Mods and Extra Content” point in the main menu. You should be able to see your mod and have it active to play.
Start a game and see if it all works!