Jump to content

[1.12.x] Night Shift - Auto Day/Night cycle in the VAB/SPH - Version 1.0.0 - No more lit windows!


Coldrifting

Recommended Posts

Night Shift

Download via CKAN

Manual Install: Download from GitHub

ZcomjoT.png

Expand for more preview images

Spoiler

itnmqnD.png

OcKvk7V.png

LcrjjNr.png

Has it ever bothered you that the VAB/SPH was always stuck in daytime, even in the middle of the night? Well, I got sick of forgetting that I clicked on the VAB at night and forgot until a half hour later when I launched, so I made this mod. Plus I just thought it would be cool. With this mod, the background in the VAB and SPH will be in either a day or night mode, depending on what time you enter it. You can manually change between day and night mode too, by clicking on the toolbar button or pressing ALT+N. Note that time still does not pass while in the editor.

Compatibility:
Incompatible with Lights Out Relit, as it does many similar things. I thought about adding the functionality of turning of the lights of the VAB/SPH, but I ran into too many issues getting that working with having a lit editor at night. I'm open to pull requests though if someone can figure it out in a graphically satisfactory way.

Other than that it should be compatible with most editor mods that don't adjust the lighting of the VAB, and I've used it with the Hangar extender mod without issue.

Since the mod automatically goes into day or night mode depending on the time, I've tried to code the it in a way that makes it consistent with alternate space center locations and planet sizes, but let me know if you run into issues and I'll see what I can do.

Please let me know if you find any mods that don't appear to be compatible.

Known Issues:
New v1.0 update should fix and previous issues, let me know if you find any.

Credits:
Thanks a bunch to the creators of the LightsOut mod, which provided both the inspiration and technical implementation necessary for me to figure out how to create this mod. The skybox code in particular was very helpful. Also, the Kerbal Object Inspector mod was very nice for testing changes in game. I wish I had found it sooner in this mod's development.

License:

MIT

Edited by Coldrifting
Link to comment
Share on other sites

  • 3 weeks later...
  • 4 weeks later...
  • 1 year later...
Posted (edited)

I believe that there is a conflict between this mod and blackrack's new deffered rendering mod/TUFX while in editor. It appears to cause an excess of bloom, perhaps TUFX profiles being applied more than once?

qRay89P.png

Edited by Errol
Link to comment
Share on other sites

  • 1 month later...
Posted (edited)
On 7/7/2024 at 12:55 AM, Errol said:

I believe that there is a conflict between this mod and blackrack's new deffered rendering mod/TUFX while in editor. It appears to cause an excess of bloom, perhaps TUFX profiles being applied more than once?

qRay89P.png

Thanks for the report. The way I had implemented the mod was a little hacky with a bunch of manually placed lights, which I suspect are doubling up somehow.  I'm working on an update right now that should fix this and get rid of those extra lights.

 

EDIT: I've decided to enhance the mod while I'm at it. I'm working on custom glass textures for the SPH/VAB, so that the glass is dark at night

n9StzZj.png

Edited by Coldrifting
Link to comment
Share on other sites

New Update! Version 1.0 is out which is a major rewrite of the mod designed to be less hacky and more functional!

Any bloom issues should now be resolved, since I'm no longer placing any lights, and overall the lighting should look a lot better than before.

I also managed to patch the VAB/SPH window textures so that they are dark at night, and it looks really cool now!

Finally, I also added better support for the career mode 1 and 2 facilities, rotated the night sky so that the galaxy is less distracting, and improved the daytime icon on the toolbar.

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...