This article is updated for Update 15.
Research subjects are defined in the file Research.txt.
In this file you define the available research subjects, their prerequisites, costs, and bonuses that they unlock.
Note: Every research subject and category must have a display name in the localization file Texts.txt using the following format:
Research Category Edit
Every research subject belongs to a category:
In the example above, every research subject that inherits "research.base.farming" (using the parent attribute as explained in Modding: Mod File Structure) will belong to the category "base" and appear under the "Base" tab.
The categories themselves are defined in the Research.txt file along with the research subjects:
The research category text is defined in the Texts.txt file using the following format:
You may add additional research categories.
Research Tier Edit
Research should have a "level" property that determines the research subject's tier. This is used to determine the player's current research level to decide what wares a trader will offer, and possible for other uses in the future.
The best way to define the tier is for the research subject to inherit one of the base level classes:
Notice the "rainwatercollection" research inherits the "research.base.level2" class which determines its level.
Research Icon Edit
You must define the name of the icon to display for each subject in the research tree.
Research icons are typically chromatic/brownish png files of size 512x512 pixels.
See Modding: Adding Images to Mods for more information on how to add new images.
Research subjects may have a pre-requesite research subject, that appears above them in the research tree.
In this example, before "brickmaking" can be unlocked, "woodworking" must be researched first.
Research subject may provide passive bonuses when unlocked. To define the bonuses received by each research, use the following format:
the "waterdistribution" research provides a "waterdistribution" passive effect. More than one effect may be defined using comma separated values.
See Modding: Global Effects for more information on defining the passive effects themselves.
Research Costs Edit
Performing research costs research points (occult or science), and may cost other resources as well.
Define what the costs of unlocking a research subject using the following format:
In this example, unlocking the "scavenging" research costs 850 of "physics1" (Science research points) and 30 "minerals".
See Modding: Items on how to define the resource items themselves.
Tree structure Edit
It is recommended to keep a structure within a category that includes a linear tree with a main trunk and smaller branches within that trunk, as in the default research tree.
To define a node as a "main trunk" node (this node will be displayed in the center of the tree, if possible), use the following format: