GithubHelp home page GithubHelp logo

crewlight's Introduction

CrewLight

An automatic light manager

What does it do ?

It automatize lights managment !

Every part that currently hold crew gets its lights turning on

GIF of the crew transfer

Lights react to the sunshine

GIF of Sunlight

And to the depth

GIF incoming...

When approaching a distant vessel its lights will blink, sending you a welcoming message in Morse code

GIF of MorseLight

Kerbal on EVA can toggle lights

GIF of EVAToggleLight

Lights can have a motion detector set up

GIF of MotionDetectorLight

GIF of GUI MotionDetectorLight

How does it works ?

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.

How to modify how it works ?

Most of the function can be disabled, or tweaked, directly from the in-game settings screen :

settings screen

There's also some extra option for the Morse Code message.

more morse settings screen

Due to limitation of the stock settings menu (or limitation to my modding skill :p ) it's a bit tricky to access it : in the settings screen enable the "More Morse Settings", hit accept, twice, and you got it.

how-to more morse settings

Here you can change the morse message send by distant vessel as you approch them. And the timing for the different symbol (they are sync to the dit duration unless you check manual timing).

What is needed ?

ModuleManager is the only dependency, all credits go to ialdabaoth and sarbian

Know issues :

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.

What to do if it doesn't work ?

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

UPSTREAM

https://github.com/Li0n-0/CrewLight.git

crewlight's People

Contributors

li0n-0 avatar lisias avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.