Jump to content

[1.0.5] LightsOut (v0.1.5) - Day/Night Mode in VAB/SPH


nodrog6

Recommended Posts

  • 1 month later...
18 minutes ago, agrock said:

Latest version does not work with KSP 1.3 (no menu in hangars).

Also this version 0.2.2 that you mention, its not downloadable from either site.

You need the RealGecko versions not the ones in the OP:

https://spacedock.info/mod/1006/Lights Out or https://github.com/Real-Gecko/LightsOut/releases

 

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

hmm, i'm not that familiar with ksp's api but i can take a look into this and see if i can figure what is going on or not

Well, looking at the original repo, looks like there are tons of hard coded light names, shader names, etc.

I don't know how to look for those names or even check if they exist or not, also, I'm not sure if the way he is handling it is right way to go for this or not, honestly, if it was possible, maybe a better approach would be to turn off everything first then find lights on the ship and turn them back on, same for shaders, as i said, I'm not that familiar with KSP some one like @linuxgurugamer would be a better person to take care of this although in linux's case, he already have tons on his plate

Edited by Jiraiyah
Link to comment
Share on other sites

  • 1 month later...
On 1/28/2018 at 11:56 AM, linuxgurugamer said:

I looked at this, but it’s dealing with things I don’t know Bout.  Best to find somebody else for this.

ouch, you where my only hope lol, not knowing many capable modders :/

Link to comment
Share on other sites

  • 2 weeks later...
  • 3 weeks later...
On 3/22/2018 at 9:55 AM, ZobrAA said:

Looks like LightsOut v0.2.2 from @RealGecko still works fine. :)

honestly, i looked at the repo, but can't figure what is not working  properly from his version  that causes the lights to not be pitch dark like how it was supposed to be in older versions. any one has any idea?

honestly, this line should have done it properly :

https://github.com/Real-Gecko/LightsOut/blob/master/LightsOut/LOAmbient.cs#L121

that line is setting the ambient light to 0.15 on all RGB,  unless, they have added more lights to the VAB than what is listed here, that would explain turning off a light would not turn  the whole place dark

https://github.com/Real-Gecko/LightsOut/blob/master/LightsOut/LOExternalLights.cs#L38

because as you  can see here, if it's night mode, it will disable the light, unless again, those conditions that were checked have any problems because of updates

https://github.com/Real-Gecko/LightsOut/blob/master/LightsOut/LOExternalLights.cs#L184

this last method is being called from the main stuff in this line  :

https://github.com/Real-Gecko/LightsOut/blob/master/LightsOut/LightsOut.cs#L131

long story short, does anyone know how we can check the name and number of lights in the scene and does anyone see any problem in the logic?

thanks

Edited by Jiraiyah
Link to comment
Share on other sites

  • 3 weeks later...
On 3/22/2018 at 2:55 AM, ZobrAA said:

Looks like LightsOut v0.2.2 from @RealGecko still works fine. :)

Sometimes "good enough" is fine -- but ultimately it's probably a good idea to "do it right" as Jiraiyah has noticed. Even not total blackness still gives a good idea of light placement, visiblity, etc. I'll likely be adding the mod back to my list if it fires up in 1.4.2 :)

Link to comment
Share on other sites

  • 3 months later...
  • 1 month later...
This thread is quite old. Please consider starting a new thread rather than reviving this one.

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...