Jump to content

[1.12.x] Big Ben (Stopwatch timers to count down and up)


linuxgurugamer

Recommended Posts

A forum user requested a stopwatch timer, here is what I've done.

Big Ben, named after the famous clock in London.

This provides timers to both count down and count up.  For both, you can either start at 00:00:00 or enter a starting time.

The default settings provides for one timer, but there is a toggle on the window and on the Settings page to allow multiple timers.  When doing multiple timers, you can enter a name for it.

This is the timer with the Multiple option disabled:

hrSCvOK.png

 

This is with Multiple enabled, showing three timers.  The top one is not running, the second is in a count-down mode and the third is in a count-up mode

J49gHhe.png

Settings page:

e9NO6k7.png

Controls available are:

Control Description                                                                         
Name Available only in the multiple setting, allows you to give a name to the timer
Up/Down Specifies the direction of the count.  Default is to count up.
Entry Fields Available when not running, one each or Hours, Minutes and Seconds
^ Available when Multiple is enabled.  If enabled, moves the timer up one in the list
v Available when Multiple is enabled.  If enabled, moves the timer down one in the list
+ Adds a new timer
- Deletes the current timer
Reset Resets timer to initial values
Start Starts the timer
Stop Stops the timer

Time Warp and Pauses

These timers are keeping track of game time.  They work off of the KSP clock, and deal gracefully with both Time Warp and pausing the game

Usage

The toolbar button is available in the Space Center, Flight and Tracking Station screens, it looks like a stopwatch.  You don't have to keep them visible, once you set the timers, you can hide them until you need to know what time they are at.  Time will be kept, nothing will be lost. When ready, click the Start button of the timer you want to use

When using a countdown timer, the time will be displayed in red when the time gets below zero.

Dependencies

Availability

Available via CKAN

This page is still under construction, but the mod IS available now. 

ToDo

  • Fix entry fields to allow negative number in the most significant digit
  • Allow entry fields to be blank, right now there will always be a number there
Edited by linuxgurugamer
Link to comment
Share on other sites

15 hours ago, linuxgurugamer said:

Big Ben, named after the famous clock in London.

Pedantically, I'd like to point out that Big Ben is actually the nickname for the striking bell located within the Elizabeth Tower... so if you could include a nice "BONG!" noise when the timer reaches zero it would be very thematic. :D 

Link to comment
Share on other sites

31 minutes ago, Poodmund said:

Pedantically, I'd like to point out that Big Ben is actually the nickname for the striking bell located within the Elizabeth Tower... so if you could include a nice "BONG!" noise when the timer reaches zero it would be very thematic. :D 

Easy to do, just have to find a good bell sound

Link to comment
Share on other sites

46 minutes ago, Poodmund said:

Pedantically, I'd like to point out that Big Ben is actually the nickname for the striking bell located within the Elizabeth Tower... so if you could include a nice "BONG!" noise when the timer reaches zero it would be very thematic. :D 

Found a couple of sounds, will be added in next release

Link to comment
Share on other sites

New beta Release, 0.0.2

  • Removed the scrollview if multiple is not enabled
  • Added BigBen sounds
  • Added Repeatable countdown
  • Added bell at zero when counting down 
  • Added incrementing bell at zero
  • Fixed error with tenths of a second not being correct
  • Can now enter negative numbers for a countUp.  Make any field negative to do so
  • Displayed time now accounts for days and years.  Works with hours/day set to Kerbin or real
  • Added option to change displayed time
  • Invalid number in entry field now shows the field as red
  • Empty field is processed as a zero
  • Setting to allow each timer to have a local tenths setting

This will turn into is now a full release if no errors are reported

https://github.com/linuxgurugamer/BigBen/releases/tag/0.0.2

This release has been pushed to Spacedock, CKAN should have it soon

Edited by linuxgurugamer
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
  • 3 weeks later...
  • 1 year later...
  • 2 months later...

New beta 0.0.2.5

  • Reduced performance impact
  • Added pause after repeating countdown reaches 0
  • Added realtime timers, both up and down
  • Made window a bit wider
  • Added saving of timers to save file
     

https://github.com/linuxgurugamer/BigBen/releases/tag/0.0.2.5

Edited by linuxgurugamer
Link to comment
Share on other sites

New release, 0.0.2.7

  • Added new reset button to reset to 0
  • Fixed issue of BigBen stopping working when returning to the main menu
  • Fixed issue of BigBen not working sporatically 
  • Fixed some formatting issues when using stock KSP skin

0.0.2.8

  • Removed log spam

 

Edited by linuxgurugamer
Link to comment
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.

×
×
  • Create New...