Reload & Papyrus
Simple Custom Weights supports runtime reloading of settings, allowing you to tweak weights without restarting the game.
Automatic Reload Behavior
- DataLoaded: The plugin loads the INI and applies patches when the game finishes loading data.
- PostLoadGame: Settings are reloaded and patches reapplied every time you load a save.
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:
- Script Class:
SimpleCustomWeights - Function:
ReloadSimpleCustomWeights()
Calling this function will:
- Re-read the INI file from disk
- 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
- Live testing: Edit
SimpleCustomWeights.iniand trigger a reload without loading a save - MCM integration: Let users reload weights from an in-game menu
- Dynamic setups: Build scripts that modify the INI and then 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.