Reload & Papyrus

Simple Custom Weights supports runtime reloading of settings, allowing you to tweak weights without restarting the game.

Automatic Reload Behavior

Tip: This means INI edits take effect the next time you load a save — no full game restart needed.

Papyrus Function

The plugin registers a global Papyrus function that lets you trigger a reload from scripts:

Calling this function will:

  1. Re-read the INI file from disk
  2. Reapply all weight patches immediately

Papyrus Example

Scriptname MySCWHelper extends Quest

Event OnInit()
    ; Reload the INI and reapply all weight patches
    SimpleCustomWeights.ReloadSimpleCustomWeights()
EndEvent

MCM Integration Example

If you want to trigger a reload from an MCM menu:

Scriptname MySCW_MCM extends SKI_ConfigBase

Event OnOptionSelect(int option)
    if (option == reloadOption)
        SimpleCustomWeights.ReloadSimpleCustomWeights()
        ShowMessage("Weights reloaded!")
    endif
EndEvent

When to Use Manual Reload

Note: The reload function re-reads the INI from disk. If you're modifying settings programmatically, write to the INI file first, then call the reload function.