Skyrim Special Edition
0 of 0

File information

Last updated

Original upload

Created by

Mharlek1-skyrimr0se

Uploaded by

skyrimr0se

Virus scan

Safe to use

Tags for this mod

About this mod

Script fixes for the Main Module of Rainbows over Waterfalls. This is the only module I am using in my game at this time. I made these script fixes for my immersion and I'm releasing them on the Nexus for others to use.

Requirements
Permissions and credits
Changelogs
I noticed that I was experiencing Moonbows over some of the rivers using the wonderful mod Rainbows over Waterfalls instead of the Rainbows only being visible during the prescribed times per region. The mod author no longer has Skyrim installed, so I decided to take a look at their scripts.

Full disclosure: I'm not a coder, I'm a tinkerer. I have no formal coding training. If anyone has suggestions for more optimized code for the changes I made, I'm ready to learn. That being said, the code in the original mod is pretty simple and the changes I made fairly small, yet significant.

  • I changed the conditions of the If statement in the OnInit() functions of the three scripts utilized in the Main Module to specify that the LightsOn state should be used if the current game time is within the LightsOn window of times per each of the individual scripts, as opposed to the LightsOff state being set only if the game time is after the LightsOff time. This is expected to more reliably set the appropriate state upon load of save.
  • One of the scripts was accidentally pointing to the time parameters of one of the other scripts. This was fixed.
  • I noticed that if you were to go to sleep before the rainbows turned on, and you slept through the entire window of LightsOn time, the rainbows would be activated upon awakening even though the game time was no longer in the LightsOn window. The Moonbows would appear! So, I added a check to the scripts to make sure that before applying the LightsOn or LightsOff state, the game time was actually still in the appropriate window. Oversleeping is now OK!

These changes have been successful in eliminating the Moonbows in my game and I expect it should do the same in yours. It might take 24 hours of in game time before the scripts sort everything out. It worked on my existing save!

Kudos to Mharlek1 for enhancing my immersion with these Rainbows over Waterfalls. Thank you for the permission to upload this fix to the Nexus!