Back to mods
Config lib project artwork

Vintage Story Mod DB · Vintage Story mod

Config lib

You can support me on Patreon: Requires ImGui There is an addon you might want to check: Auto Config lib For other modders (or if you want to help): I need help with wrighting documentation for this library, I'm bad at it and dont have energy to do this stu

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Config lib release matches 1.22.0-rc.4?

Updated 3 months ago
Best match for your filters 1.12.0
Game version 1.22.0-pre.1, 1.22.0-pre.2, 1.22.0-pre.3
Loader Built-in Vintage Story mod system

Config lib 1.12.0 targets 1.22.0-pre.1, 1.22.0-pre.2, 1.22.0-pre.3. It must be installed on the client. Installation on the dedicated server is optional. 1 required mod needs a matching file.

Where it goes

Is Config lib required on the client, server, or both?

It must be installed on the client. Installation on the dedicated server is optional.

Client Required
Dedicated server Optional
Loader for this release Built-in Vintage Story mod system
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

This release supports both sides, but the source does not require it on the server.

What else does Config lib 1.12.0 need?

1.12.0 on 1.22.0-rc.4. Every mod below is checked against that same setup.

1 required mod needs a matching file

Install ImGui first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.

ImGui Needed by Config lib 1.12.0
required
No matching file Version asked for: 1.2.0

We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Config lib without breaking your instance.

Built for Config lib 1.12.0 on 1.22.0-rc.4. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use 1.12.0. It targets 1.22.0-pre.1, 1.22.0-pre.2, 1.22.0-pre.3; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install ImGui first, but 1 required mod has no matching file for this setup. Do not mix loader builds to force a match.

  3. 03

    Put it on the correct side

    It must be installed on the client. Installation on the dedicated server is optional.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside 1.12.0. It opens that exact file at the source.

About this project

What does Config lib add?

You can support me on Patreon:


Requires ImGui

There is an addon you might want to check: Auto Config lib

For other modders (or if you want to help): I need help with wrighting documentation for this library, I'm bad at it and dont have energy to do this stuff. Also I will be happy to have some help with testing new features.

 

This is a library that allows making configs even for content mods (there is also API for code mods, including custom widgets) and provides a unified GUI for editing them in game. It does not require for your mod to depend on this library. If the library is not installed, default values from assets will be used.

This library also allows changing values in regular JSON patches, that can be valuable for server configurations and can make tweaking other mods for server needs much easier.

 

Documentation on JSON API of this library (written by Somnium). If you want to help keep documentation up-to-date, expand it and help test new features, please ping me in discord, any help will me much appreciated.

If you need help with adding a config file using this lib feel free to ping me in discord on official VS server.

Thanks Somnium for feature suggestions and help with testing them, and the documentation.

Some of the mods that use this library:

Feel free to request any features you might need under mod's discord post (link is above in Homepage tab).

 

Example of adding config reload functionality keeping optional dependency:

public sealed class CombatOverhaulSystem : ModSystem
{
    public Settings Settings = new();

    public override void Start(ICoreAPI api)
    {
        if (api.ModLoader.IsModEnabled("configlib"))
        {
            SubscribeToConfigChange(api);
        }
    }

    private void SubscribeToConfigChange(ICoreAPI api)
    {
        ConfigLibModSystem system = api.ModLoader.GetModSystem<ConfigLibModSystem>();

        system.SettingChanged += (domain, config, setting) =>
        {
            if (domain != "combatoverhaul") return;
            setting.AssignSettingValue(Settings);
        };
        system.ConfigsLoaded += () =>
        {
            system.GetConfig("combatoverhaul")?.AssignSettingsValues(Settings);
        };
    }
}

Project description from Vintage Story Mod DB.

Pick your setup

Config lib releases for each Vintage Story version.

Choose the version and loader you play, then open the matching release.

56 available setups

Showing the newest 12 of 56 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Config lib versions and loaders

2 of 85 releases match
Clear filters

Looking for an older file? The official Vintage Story Mod DB project page is in Resources.