Python script to copy settings between weather files

share shaders here
Post Reply
  • Author
  • Message
Offline
User avatar
*master*
Posts: 229
Joined: 21 Feb 2013, 03:21
Location: Los Angeles, CA

Python script to copy settings between weather files

Hi All,
I made a Python script that helps when working with the weather .ini files.

You have to install python to use it. You can get that here:
https://www.python.org/download

You can get the script here:
http://www.mediafire.com/view/dzt6zct62 ... ettings.py

The script allows you to copy settings from one .ini file to others. Say, for example, that you want to copy all of the interior day settings from your clear weather SkyClr.ini to all of the other weathers, you can run it like this:

Code: Select all

copy_settings.py --intday SkyClr.ini *.ini
You can specify more than one target like this:

Code: Select all

copy_settings.py --intday SkyClr.ini SkyCld*.ini SkyFog*.ini
It also allows you to copy only certain sections if you want like this:

Code: Select all

copy_settings.py -s FIRE,BLOOM,ENVIRONMENT --intday SkyClr.ini *.ini
Add the -b option to backup any files it modifies:

Code: Select all

copy_settings.py -b -s FIRE,BLOOM,ENVIRONMENT --intday SkyClr.ini *.ini
Use -h for help:

Code: Select all

copy_settings.py -h

Usage: copy_settings.py [options] <source ini file> <target files>
Options:
        -b                                              Make backup (.\cis_backup dir will be created)

Default operation is to do all sections and values.  To be specific,
use the options below:
        -s      <section list>          Comma separated list of sections to process (no spaces)
        --sunrise                               do sunrise values
        --day                                   do day values
        --sunset                                do sunset values
        --night                                 do night values
        --intday                                do interior day values
        --intnight                              do interior night values
Any feedback is appreciated. This is my first pass on this so it might not be 100% bug free.

Enjoy! :D
_________________
i7-4970K 4.8ghz, 16gb ram, Geforce Titan X 12gb vram, win7

Offline
User avatar
*master*
Posts: 229
Joined: 21 Feb 2013, 03:21
Location: Los Angeles, CA

Re: Python script to copy settings between weather files

New version on Nexus if anyone is interested:
http://www.nexusmods.com/skyrim/mods/56133
_________________
i7-4970K 4.8ghz, 16gb ram, Geforce Titan X 12gb vram, win7
Post Reply