- Description
- Files1
- Images4
- Videos0
- Posts5
- Bugs0
- Logs
- Stats
Current section
- Viewing:
About this mod
Python script to copy parameter values between ENB weather .ini files
- Permissions and credits
- Changelogs
- Donations
DESCRIPTION Note:To make things easier for yourself, I recommend adding the directory where you stored this program to your Windows PATHenvironment variable.
This is a port to SE/AE of an old utility for ENB configuration byscegielski.
This Python script has been updated to python 3.X and to modern and actual ENB configurations.
--------------------------
When I started working with the ENB weather .ini files, I quickly realized that it's difficult to keep everything consistent.
You might have 30+ weather .ini files and you want to copy some values in one of them to all the others.
For example, you might edit the sun's color filters for one of the weathers while in the game.
Then you want only those specific changes applied to all of the weathers or maybe just to all of the clear weathers.
This is tedious to do manually so I wrote this script to help that process.
It has options to make virtually any of these types of operations easy.FEATURES
- Copy values by time of day or interior (i.e. only day values or only day and night)
- Copy values by sections (i.e. only SKY or BLOOM values)
- Copy values by parameter name with wildcard support (i.e. Only SunColorFilter*)
- Optionally make a backup of your original files
- Show differences between files
- Several powerful operation modes depending on input for source ini files. See Usage section.INSTALLATION
To use the script, you need to havePythoninstalled first.
Once that is installed, just open a Windows command prompt, navigate to the directory where you downloaded the program, and type ewp.py -h to get the help.
Here'sa great program for editing your PATH and other environment variables.
USAGE
Important Note:
Even though you can use the -b option to make a backup of any files that this program modifies, I strongly advise making a backup of your enbseries folder before running this command.
Or you can move the files you want to manage in other directories and work from there.
ewp.py [options]<source ini files><target ini files>
OPTIONS:-h Note:
Print help-b
Make backup.
This will create a directory called ewp_backup_# where the original files will be copied to.
The # in the backup directory name is a number from 0 to 99 that will increment for each backup so they don't get overridden.-c
Compare mode. Read only mode that prints the differences between the source and target files.
Uses the other flags to limit what is shown.-a
When in compare mode (-c), adding this option will print all the parameters and not just the differences.
It will color the parameters that match white and the ones that don't blue.-v <level>
Verbosity. Level (0, 1, or 2)-e <files to exclude>
Comma separated list of files to exclude (no spaces).T
The way this works is that the <target files> list is built and then the <files to exclude> list is subtracted from that list.
(i.e. -e SkyCld*.ini,SovClr.ini)-s <sections>
Comma separated list of sections to process (no spaces, case insensitive)
(i.e. -s BLOOM,SKY,FIRE)-p <parameters>
Comma separated list of parameter names to process (no spaces)
(i.e. -p MoonIntensitySunrise,SunColorFilter*,Clouds*)--dawn
Copy dawn values--sunrise
Copy sunrise values--day
Copy day values--sunset
Copy sunset values--dusk
Copy dusk values--night
Copy night values--intday
Copy interior day values--intnight
Copy interior night values
The default operation if none of the above flags are specified is to copy or compare ALL sections and values.
<source ini files>
This argument can take several forms. When using either the value transfer (default) or comparison (-c) modes, you can pass the script either a single source file, a directory, or a file pattern.
The behavior changes based on what is passed as follows:<single file>- each target is compared against or transferred from the single source file
<directory>- each target tries to find a matching file name to compare against or transfer values from in the directory
<file pattern>- each target tries to find a matching file name from the files matched with the pattern. An example of a pattern is cloudy_*.ini to match all files that start with cloud_ and end with .ini.
<target ini files>Space separated list of target files or patterns to copy values to. Note that this argument is separated by spaces, but all of the listoptions(see below) use commas and no spaces.This is just a quirk of the Python argument parser I chose to use.EXAMPLESExample 1:
Copy both the day and night interior values from SkyClr.ini to all other .ini files:ewp.py--intday --intnightSkyClr.ini *.ini
Example 2:
Copy the night time BLOOM and FIRE values from SkyClr.ini to other clear and cloudy weathers:ewp.py-s BLOOM,FIRE --nightSkyClr.ini SkyClr*.ini SkyCld*.ini
Example 3:
Copy sun color filter values from SkyClr.ini to all other .ini files excluding cloudy and rainy weathers:ewp.py-p SunColorFilter* -e SkyCld*.ini,Sky*Rain*.iniSkyClr.ini *.ini
Example 4:
Compare the values in clear_tundra.ini against the all the other ini files in the current directory:ewp.py -c clear_tundra.ini *.ini
Example 5:
Compare the .ini files in the original/ directory against the ini files in the current directory:ewp.py -c original *.ini
Example 6:
Compare all clear weathers against the ones in the original/ directory:ewp.py -c original/clear*.ini clear*.ini
Example 7:
Restore all of the interior values from the files of the same names in the original/ directory:ewp.py --intday --intnight original/*.ini *.ini
CREDITS
Scott Cegielski for the original version here.
Manguz Sak Yants Tattoos
Bent Pines for Seasons Of Skyrim
Complex Bent Pines
Manguz Simply Obsidian Weathers SSE-AE
The Rift's Rest
That Night on the Lake
The Unsatisfied Ghost
The Naked Dragon
A Secret To Hide
Tokay in Skyrim