Skyrim Special Edition
0 of 0

File information

Last updated

Original upload

Created by

Dylbill

Uploaded by

dylbill

Virus scan

Safe to use

Tags for this mod

About this mod

Adds an MCM that allows you to edit any ini file in your Skyrim Special Edition directory in game.

Requirements
Permissions and credits
Changelogs
Donations
 
     Check Out My Other Mods

Description

This mod Adds an MCM that allows you to edit any ini file in your Skyrim Special Edition directory. Lot's of mods come with custom ini files for settings, but no MCM. This mod will allow you to edit those ini files in game with the MCM.

How To Use - Basic
Any ini file paths in Data\interface\CustomIniEditorMCM\IniFilePaths.txt will be available to edit in the Ini Editor MCM
Ini files paths in Data\interface\CustomIniEditorMCM\IniExcludedPaths.txt will not be available to edit. 
By default, when you install the mod, it searches for all ini files in your Skyrim Special Edition folder (and all sub folders) and puts them in IniFilePaths.txt. 
Choose an ini file in the Ini Editor MCM to edit after installing. By default, all settings will use the input option type. 

If you don't want the mod to detect ini files in your Skyrim directory on install, and only make available those you set in IniFilePaths.txt, set these in settings.ini 
bSearchForInisOnInstall = 0
bSearchForInisOnLoad = 0

How To Use - Advanced
To change a type of an option in the MCM, hold the iChangeOptionTypehotkey (default left ctrl) found in Data\interface\CustomIniEditorMCM\Settings.ini  and click on an option. Then you can change to option name:
Spoiler:  
Show



And then the type: 
Spoiler:  
Show




OR 

You can change the option types used in the MCM, the setting names and some other parameters by adding the same settings to new sections directly in the ini file. 
Example. 

Basic ini file looks like this: 
Spoiler:  
Show

[Main]
sInput=Some setting text
bToggleSetting=1
iSliderSetting=75
fSliderSetting=0.55
ihotkey=45
iColor=10398469

In game, the MCM will look like this: 
Spoiler:  
Show



If you add sections such as this, you can specify option types and parameters. 

Spoiler:  
Show
 
;These are the ini settings used in the mod
;================
[Main]
sInput=Some setting text
bToggleSetting=1
iSliderSetting=75
fSliderSetting=0.55
ihotkey=45
iColor=10398469
;================

;These sections are only for how the above settings behave and appear in the Ini Editor MCM
;You can add these CustomIniEditorMCM_ sections to any .ini file in your Skyrim directory and the MCM will make use of them.

[CustomIniEditorMCM_Strings]
CustomIniEditorMCM_Name=Example Ini
Main=Main 
sInput=Input option
bToggleSetting=Toggle Option
iSliderSetting=Int Slider
fSliderSetting=Float Slider
ihotkey=Hotkey Option
iColor=Color Option

;CustomIniEditorMCM_Strings Sets the text for the setting or section in the MCM.
;If a setting or section isn't found here, it just uses the actual setting key or section
;The CustomIniEditorMCM_Name sets the name that appears when choosing an ini file to edit. 
;If CustomIniEditorMCM_Name doesn't exist in this section, it uses the full file path to this ini file.


[CustomIniEditorMCM_Types]
bToggleSetting=1
iSliderSetting=2
fSliderSetting=2
ihotkey=3
iColor=4

;CustomIniEditorMCM_Types Sets the type of option for the setting in the MCM.
;If a setting isn't found here, it uses input type.
;0 is Input (default)
;1 is Toggle Checkbox
;2 is slider
;3 is Hotkey 
;4 is Color option


[CustomIniEditorMCM_SliderParams]
iSliderSetting_Min=50
iSliderSetting_Max=100
iSliderSetting_Int=1
iSliderSetting_Txt={0}%
fSliderSetting_Min=0.5
fSliderSetting_Max=1.0
fSliderSetting_Int=0.01
fSliderSetting_Txt=Every {2} Seconds

;Set slider params for settings. Use the _Min _Max _Int or _Txt suffix's for settings. 
;_Min sets minimum value (default 0)
;_Max sets maximum value (default 100)
;_Int sets interval (default 1)
;_Txt sets format text of the slider. Use {x} to set how many decimals display. Change x to desired number. E.G {1} displays 1 decimal place. 


[CustomIniEditorMCM_Infos]
sInput=Set the sInput setting
bToggleSetting=If bToggleSetting is checked, enables something in my mod.
iSliderSetting=Sets some int in my mod
fSliderSetting=Sets some float in my mod
ihotkey=When this hotkey is pressed, it does something cool.
iColor=Sets some color in my mod.

;CustomIniEditorMCM_Infos Sets the info that displays at the bottom of the mcm menu when highlighting the option.

It will looks like this
Spoiler:  
Show




Papyrus
For mod authors, you can add this section to an ini file to receive mod events when an ini setting in your ini file is changed in the MCM. 
Spoiler:  
Show

[CustomIniEditorMCM_Papyrus]
sChangeSettingModEvent=MyCoolMod_IniEditorMCMSettingChanged
sChangeSettingModEventCallBack=OnIniEditorMCMSettingChanged
sAutoEventRegisterFormID=0x000D61
sAutoEventRegisterMod=MyCoolMod.esp

;CustomIniEditorMCM_Papyrus: for mod authors only. 
;
;If sChangeSettingModEvent exists, Sends mod event when one of the settings in this ini file is changed in the MCM. 
;If sChangeSettingModEventCallBack, sAutoEventRegisterFormID and sAutoEventRegisterMod exist, it searches for the form with Game.GetFormFromFile
;and auto registers it for sChangeSettingModEvent and sChangeSettingModEventCallBack when this ini file is selected in the MCM, if found.
;For the sAutoEventRegisterFormID, replace the first to characters of the form ID you wish to register with 0x. So ABCDEF77 becomes 0xCDEF77
;example use: 
;
;Event OnInit() 
;    RegisterForModEvent("MyCoolMod_IniEditorMCMSettingChanged", "OnIniEditorMCMSettingChanged") 
; ;this is only needed if sChangeSettingModEventCallBack, sAutoEventRegisterFormID and sAutoEventRegisterMod ini settings arent present.
;EndEvent
;
;Event OnIniEditorMCMSettingChanged(Int Type, String Section, String Setting, String Value)
;    Debug.MessageBox(Type + " " + Section + " " + Setting + " " + Value)
;EndEvent


Settings
Settings for this mod are in Data\interface\CustomIniEditorMCM\Settings.ini 
You can set the settings.ini from this mod with this mod's mcm. Load the ini. Very meta I know.

Installation
Extract the files to your Data folder.

Requirements
SKSE64
PapyrusUtil SE
PapyrusIniManipulator
Dylbills Papyrus Functions
Extended Vanilla Menus