Jump to content

Creating config files for mods


DynasuarezWrecks

Recommended Posts

Some mods include a .ini file for configuration, but some others do not. Specifically, I'm talking about Project Nevada, but there are a few others too. It would be nice to be able to create a new character and not have to manually reconfigure those mods. If possible, how would I go about creating a config file for a mod? I'm prepared to use the GECK if that's what it takes.

Link to comment
Share on other sites

There are functions included with the NVSE plugin that comes with MCM which allows for this. Specifically, SetModINISetting and GetModINISetting.

 

The settings for MCM menus are typically stored in global variables or quest variables, so you'd need to retrieve those and store them into INI files with SetModINISetting. Then, you'd need to monitor the variables for changes and update the INI file accordingly if something is changed. Upon starting a new game, you would use GetModINISetting to retrieve settings from the INI files and save them to the variables.

 

Problem is, not everyone who create MCM menus for their mods take advantage of these functions. I've worked on a plugin to make INI files for mods that do not have this functionality, but it's not ready to be released yet. There's some flaws with the architecture that I'd like to get straightened out first.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...