Skip to content

Mod Development: Creating a Mod

vingard edited this page May 25, 2024 · 1 revision

The Basics

In Tactical Intervention Revived mods have their own file system, seperate to the main game. This allows for each mod to have a simple source, that can be merged into the main game files by the Tactical Intervention Revived launcher.

In a nutshell, all content in a mod folder will be written to the game file system automatically. The mods will overwrite base game content and other mods (based on load order).

  • MOD_FOLDER/models/player.mdl will be mounted to GAME_FOLDER/models/player.mdl

Create a new mod

To create a new mod follow these steps:

  1. Select the dropdown next to 'Add Mod' in the top left of the launcher
  2. Select 'Create a new mod' and fill out the form. For the version, enter '0.0.1'

You will now see your new mod appear in mod manager list - it will be marked as a 'Local Mod', this is because it is hosted on your machine locally and has not been downloaded from the internet.

Developing and testing a mod

  • When you add, rename or remove files from your mod directory, you must press the 'Sync' button to sync your changes with the game.
  • Remember to only develop in a local mod.
  • You can edit your mod.json file in the base directory to change the mod details, never change the uid
  • You should increment the version number of your mod when you make new releases, this will allow users to update the mod automatically. Always keep the version number in the 'X.X.X' format. For example '1.6.3' is a valid version, '6.4' is not, '0.9.1' is a valid version, '0.9.1.1' is not.

Publishing a mod

Mods can be published using GitHub. To publish a mod, make the mod directory into a git repository and host it on GitHub. An example of a published mod can be found here.

If you don't know how to do this follow this simple guide:

  1. Get GitHub Desktop
  2. Open GitHub Desktop and goto File > New Repository
  3. Get the path to your mod in Tactical Intervention Revived (click the dropdown next to the mod and open the directory, then copy the path)
  4. Paste the mod path into the 'Local path' field
  5. Fill out the name and description
  6. Ingore the other options and click 'Create repository'
  7. Now use the GitHub Desktop interface to commit and push your changes. Each time you push changes, your mod will be updated.
  8. You can now share the GitHub link to your mod, and other users can download it.
  9. Join our Discord and share your mod in the #mod_releases channel