pizzaoverhead

[1.0.x] BatteryIndicator (2015-02-09)

Recommended Posts

If you like this concept, check out IndicatorLights by @Snark which does all this and more!

A little plugin that makes the light on the Z-100 battery pack change colour to let you know that it's running low.

jIOp2nf.png

Download from Curse

MediaFire Mirror

Get IndicatorLights instead

Source included, licenced under GPL v2.

Includes ModuleManager, licence here.

If you've enjoyed this, consider donating a cup of coffee to help with late night coding:

btn_donate_LG.gif

Planned features

  • Colour blindness-compatible colours.
  • Customisable colours.
  • An extra colour (defaulting to blue) for when the battery is locked.

Change log

v1.0 (2015-02-09)

  • Initial Release
Edited by pizzaoverhead
Superseded by IndicatorLights.

Share this post


Link to post
Share on other sites

This sir, is gold.

Edited by technicalfool
Despotic mod edit!

Share this post


Link to post
Share on other sites

Wow, that is a neat mod. Also, RO compatibility?

Share this post


Link to post
Share on other sites

You're a genius. Just the other day I staged an elaborate rescue mission to recharge the batteries on a poorly designed upper stage and I resented the lying little green lights the whole time.

Share this post


Link to post
Share on other sites

This is perfect. So helpful since you don't look at anything other than the ship often times when warping.

Share this post


Link to post
Share on other sites
This is perfect. So helpful since you don't look at anything other than the ship often times when warping.

I time warped to night to take the second half of the picture and found myself looking at a single yellow light. Probe cores: Sneaky little things!

Share this post


Link to post
Share on other sites

This would be so awesome... had I not had Ven's Revamp installed. Oh well. Good work, though, like most of your other mods, this should be stock. 1.0 needs to have more of you in it.

Share this post


Link to post
Share on other sites

A wonderfully simple idea that probably wasn't as simple to code as it sounds and adds a very neat touch.

Change request: disabled mode indicator for my 'emergency reserve' battery. Blue, since the other primaries are in use, or dimmed?

Share this post


Link to post
Share on other sites

I'm pretty new to KSP and as soon as I saw the light on the battery, Z-100, I assumed it was an indicator. Thanks to this mod, it is! Thanks!

Share this post


Link to post
Share on other sites

If this were to be made compatible with Ven's Stock Revamp's batteries, I'd be really really happy.

Share this post


Link to post
Share on other sites
Change request: disabled mode indicator for my 'emergency reserve' battery. Blue, since the other primaries are in use, or dimmed?

Ooh! seconded, I would love to have a colour for disabled batteries! (I would probably prefer cyan to blue though, (also primary) but I would defer that decision to the colour blind.)

Share this post


Link to post
Share on other sites

hey, this is just a plugin, right?

- - - Updated - - -

nevermind, I'm blind, just noticed that the title CLEARLY said Plugin

Share this post


Link to post
Share on other sites
If this were to be made compatible with Ven's Stock Revamp's batteries, I'd be really really happy.

This^^^ x10 :cool::cool:

Share this post


Link to post
Share on other sites

Amazing idea; thank you for making this! Quick question... does the color indicate the charge of the individual battery, or of the ship's total battery charge?

Share this post


Link to post
Share on other sites
A wonderfully simple idea that probably wasn't as simple to code as it sounds and adds a very neat touch.

Change request: disabled mode indicator for my 'emergency reserve' battery. Blue, since the other primaries are in use, or dimmed?

That's coming in the next version!

Amazing idea; thank you for making this! Quick question... does the color indicate the charge of the individual battery, or of the ship's total battery charge?

It's the charge of the battery pack itself. It wouldn't make sense for a little battery pack to have sensors hooked into the whole ship, and having lots of indicators displaying the same thing is less useful than having more information.

Colorblind mode please?

Working on it! I haven't found a good looking set of colours to fit everyone yet, but I plan to for the next release. It'll also be customisable, so you can pick whatever looks best for you.

Share this post


Link to post
Share on other sites

After 1 min of investigation, i found this could be easily tweaked to work with Ven's stock revamp.

The material name seems to be: unnamed.emissiveMaterial

Just change in the .cs file: t.renderer.material.name.Contains("light")) to t.renderer.material.name.Contains("emissive"))

It's untested, don't have time right now, but that should work right!

EDIT: The light gameobject will keep emiting light (illuminating parts) , but the color of the led should change. It could also be tweaked to work with the physical light, will take a look into it once i have more time!

EDIT2: This should work with all the batteries, but some of them may have different material names.

Cheers! :)

Edited by tajampi

Share this post


Link to post
Share on other sites
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.