Transport Fever can be modified and extended by mods. Mods overwrite, add, or manipulate existing resource files. These resource files are kept in a folder named res
.
There are many different types of resources:
Scripts are text files written in the Lua scripting language. They can be edited with a simple text editor.
Lua is an easy to learn, fast and powerful language. To find out more about Lua visit https://www.lua.org/.
Model data is stored in mesh and textures files. Models can be created with a variety of modeling software.
A commonly used tool is the free open source software Blender. To find out more about Blender visit https://www.blender.org/.
Plugins or tools for converting models to a format useable in Transport Fever are available from the community, for example:
There are other resource files of various types, including but not limited to:
These resources can be modified and extended in two ways:
Changing files directly in the installation folder is possible, but NOT the recommended way of modifying Transport Fever!
Instead, a mod should be created. From a file system perspective, a mod is simply a directory containing all the necessary data and script files. The directory name serves as the mod's unique identifier and contains a version number. See Directory structure for details.
In Transport Fever, mods are not enabled globally, but on a per-game basis: Every save game remembers which mods are active. This has the advantage that multiple games with different sets of active mods can be played without hassle.
Content loaded outside of the actual game (e.g. main menu backgrounds) can’t be modded.
Please refer to the reference page for more information about scripting and examples of the most common resource types.
Learn more about how to publish mod on the Steam Workshop wiki page.