What is MCI?

The MCI system, or the Mod Compatibility Information system (originally just called the “defines” system) is the system this save editor uses for mod compatibility. It’s exactly what it says on the tin.

How does MCI work?

The MCI system uses JavaScript to define and declare values. An example for an MCI configuration file can be found here.
Every MCI file should contain the following functions. Note: CSE always uses double resolution images, take this in consideration when dealing with positions and sizes!

Metadata

Game information

Information arrays

To add an empty space to any of these arrays, add a null.

Player extras

Both of these functions get the following parameters:

Entity extras

Both of the following functions receive one parameter: a WrappedPxeEntry object. Every WrappedPxeEntry object has the following fields (they’re public, so just doing object.field is okay):

Here are the functions themselves: