REDmod for mod devs
Using Redmod to create mods.
Last updated
Using Redmod to create mods.
Last updated
Last documented edit: Sep 07 2024 by
This page tells you how to use REDmod for mod creation.
If you want to know what REDmod does, check here
If you're a mod user, check the REDmod page in the Mod Users section
REDmod is a command line tool developed by CDPR and Yigsoft, which allows us to interact with game files in a variety of ways.
Modules for mod creators:
When creating a REDmod, there is a certain file structure that you need to follow to ensure that it can be used by others. You will want to have a folder that is the name of the mod and in this folder you will have a file named info.json.
Whether you are doing Animation Modding, Script Modding, TweakDB Modding, Audio Modding, or other mods (archive mods), you will also need to have at least one subfolder for the mod files to go into. This subfolder should be located on the same level as the info.json
file, and be nested directly inside the folder with the mod name.
An example REDmod might look something like this:
When sharing you mod, you would package the folder that is the name of the mod. You could also package the mods folder with the "mod folder", but it is not necessary and it is assumed one might have other mods in their mods
folder anyways.
For a REDmod to be recognized and loaded by the game engine, you must include an info.json
file. This file sits in the root folder of the mod's folder at the same level as the subfolders containing your modded files. There are two required entries and a few optional entries that can be in this json file. At minimum a name
field and a version
field are needed:
In the above:
The name
field is the mod's name and should generally be the same as the folder the info.json
file sits in.
The version
field is the mod's version. The version should generally use "Semantic Versioning"
The description
field is optional for all mods, but it is generally suggested one should include it so other tools have something to display for a given mod.
The customSounds
field is semi-optional. It is required for Audio Modding.
INFO - Semantic Versioning is a method of versioning where each number gives meaning for a release based on their position. It uses the format
MAJOR.MINOR.PATCH
where aMAJOR
release change is one which will break workflows,MINOR
could break a workflow but is generally safe and might introduce deprecations, and aPATCH
is a small non breaking change that all users on the sameMAJOR
andMINOR
can update to without any issues.