ModConfig
- ModConfig is a framework that provides in-game configuration parameter adjustment for other mods.It allows players to directly adjust various configuration parameters of other mods through the in-game settings menu.
- Mod Settings menu currently can only be accessed from ingame scenes, not from MainMenu
- You may need to restart game after enabling ModConfig
- KillFeed shows killfeed
Delete following file if you wanna reset ModConfig’s mod settings
%USERPROFILE%AppDataLocalLowTeamSodaDuckovSavesModConfig.ES3
- Download ModConfigApi.cs from Github Project[github.com] and copy it to your project for calling ModConfig functions
- Before configuration read/write logic, be sure to call ModConfigAPI.Initialize() once to verify normal communication with ModConfig
- Check out my example project[github.com]
- bool
- int
- float
- string
- Configuration values are read through OptionsManager_Mod.Load<T>(string key, T defaultV)
- The implementation logic of ModConfig is relatively complex. There is a possibility that future game updates may broke ModConfig and require maintenance. Therefore, please note the following important tip
- Do not create strong dependencies between your mod’s configuration read/write logic and ModConfig. Your configuration read/write must function normally even without ModConfig
After uploading your mod, go to workshop item page and click Add/Remove Required Items , add ModConfig as its dependency
This mod was initially created only for one of my own mods
Due to the different approaches mod authors take to implement their mods’ configs’ persistent storage, it’s impossible for Mod Config to automatically detect and show Mod Settings of those mods. Only when other mod authors implement the Mod Config interface can their mods’ corresponding settings appear in the Mod Settings menu
This is why you only see KillFeed’s settings here, sorry if that led to the misunderstanding that this mod’s Mod Settings menu works for all other mods
However, due to my spaghetti code, the designed function interface might be cumbersome to use and only supports a few simple data types. It’s unlikely that other mod authors would adopt it
If you have implemented the Mod Config interface for your mods, feel free to send a PM to have it added to the description
Github Source[github.com]
Github Example Project[github.com]
Revisions:
Old revisions of this mod are available below. Click the link to download.