Skip to content
Andre Issa edited this page Jun 21, 2021 · 22 revisions
Installation
Features

The Mod Importer is a python script designed to implement changes from formatted mod files into the game.
The goal is to be able to dynamically react to game updates and other mod updates, and making it easier to use multiple mods at the same time.

Installation

To find your game directory on Steam:

  1. go to your steam library
  2. right click the game
  3. click "Properties..."
  4. in the "Local Files" tab:
  5. "Browse Local Files..."

The Mod Importer requires Python 3.8 or higher. Install it with recommended/full settings.

  1. Install python and install the SJSON module if you need it
  2. Save modimporter.py into the Content folder in your game directory

To use it to install mods, see Installing Mods | The Mods Folder

SJSON Module

In order to work with mods that edit .sjson files, it will also require the SJSON module.
If you never need these mods, you do not need to have the module.

  1. Download the module from nexus or here
  2. Put the folder sjson in the Content folder in your game directory

Features

The Mod Importer loads a custom file type called a Modfile

At the moment, the importer is capable of adding import statements to lua files, and merging data from sjson and xml.

For any such payload for each file it edits, the importer is able to sort mods based on priority, and in the future it will also be able to sort mods based on heirarchy and dependency.

The importer will mark any files it edits, and refreshes them with backed up files until an update replaces them, at which point it 'reacts' by incorporating the update's changes.
This reaction is not automatic though, it requires the user to re-run the program whenever this needs to happen.
The loader is able to be ran multiple times without causing issues so it encourages users to run it every now and then to resolve issues.