GIF incoming...
When approaching a distant vessel its lights will blink, sending you a welcoming message in Morse code
Vessel's lights are divided into 3 groups :
- Lights of crew-able part :
- They will remain off until a kerbal gets on-board
- Lights NOT in the light action group : (and kerbal's helmet light)
- They'll go on when the sun's fall, off when it rises
- Other Lights :
- They will work as usual, toggling by the light action group
This mod rely on the light action group to determine which light belongs to which group, in stock KSP you can change action group only in the editor, so no lights on all crafts already launched will react to the sun rising/falling. To change action group in flight you will need the mod Action Groups Extended, by Diazo.
There is a file Settings.cfg
in Kerbal Space Program/GameData/CrewLight/PluginData/
with some variables to tweak, names and comment should be explicit enough. Most useful one are :
morse_code
: change the morse message sent by distant vessel, here you can find a Morse alphabetdistance
: set the distance at which the Morse message beginsonly_light_not_in_AG
: ifFalse
every light will toggle according to sunlightalways_on_in_space
: ifTrue
kerbal who disembark will always turn their lights on while on orbit
ModuleManager is the only dependency, all credits go to ialdabaoth and sarbian
Lights on kerbal's helmet don't turn on/off as the sun rises/falls. Lights will be turned on if the kerbal disembark in the dark but status of the sunlight won't be checked after that. The range sphere of the Motion Detector is offset from the light position only for the stock light, for others the sphere center is at the light position.
Report it to Github or the KSP forum
This is my first mod for KSP and one of my first working C# code, I've tested it on every situation I could think of but it may have bugs left.
A big thanks to all the modders/users of the KSP forum who have helped me, directly and by answering question before I posted them 😉
License is MIT