Skip to content

en Mod Prerequisite Reference

HoCha113 edited this page Jun 22, 2026 · 8 revisions

Documentation moved: This page is archived. See the up-to-date guide at innovault.wiki.

Expanded coverage on innovault.wiki

中文版本

Mod prerequisite setup

Add to your mod project's build.txt:

modReferences = InnoVault@1.9

modReferences declares dependency mods. Format: [InternalName]@[MinVersion]. Multiple entries use commas, e.g. modReferences = CalamityMod@2.0.4.3, InnoVault@1.9.

Obtain InnoVault.dll

Build from source: Clone and compile; dll is usually at InnoVault/bin/Debug/net8.0 (path varies by environment).

Unpack tmod: Subscribe to InnoVault on the workshop, then unpack with TmodUnpacker.

Reference the DLL

In VS Solution Explorer, right-click Dependencies:

en_1727245081421

Click Add Project Reference:

en_1727245189752

Click Browse.

en_1727245256136

Browse to the InnoVault.dll directory, select the file, click Add:

en_1727245359034

Basic Project Structure

After completing the reference, your build.txt should look similar to:

displayName = MyMod
author = YourName
version = 0.1
modReferences = InnoVault@1.9

IVaultLoader Interface

InnoVault's IVaultLoader runs custom logic at mod load stages:

public class MyLoader : IVaultLoader
{
    // Called before Mod.Load
    public void LoadData() { }
    
    // Load client resources (at the end of Mod.Load)
    public void LoadAsset() { }
    
    // Setup data (at the end of Mod.Load)
    public void SetupData() { }
    
    // Add recipes
    public void AddRecipesData() { }
    
    // Unload data (at the end of Mod.Unload)
    public void UnLoadData() { }
}

Next Steps

Once configured, continue with InnoVault systems:


Navigation

Previous Home Next
Home Home Basic VaultLoaden

Clone this wiki locally