Kerbin Date Calendar Recalculated
Please note that this Plugin is deprecated!
You can find a updated version for 1.5.x+ here:
Thanks @linuxgurugamer
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Description:
Adds a small calendar window to keep track of the date and time at home on Kerbin KSC and displays it in a proper format.
Preview:
Summary:
This is a small Plugin I created in first place for myself as a proof-of-concept for Plugin-development. Also whenever I'm playing KSP I often wanted to have something which shows me the passed time in my universe in a proper date and time representation, instead of "Year 1, Day 64, 2h 41m 12s".
So I made this ... and thought to share it with you.
License:
The Source Code of the Plugin and Plugin itself are released under the Creative Commons Public Domain Mark 1.0 license.
See http://creativecommons.org/publicdomain/mark/1.0/ for further details.
The Source Code is included in the Zip file in the folder Source\KSPCalendar.
You are of course free to change, contribute or modify this plugin.
However if you plan to improve its functionality and/or features you are invited to send me a PM here on Kerbal Space Program forums so that we can maintain a consistent branch.
Future Plans:
Time Zones
Utilization of the Toolbar plugin. (Version 1.1)
Display on demand (not always visible). (Version 1.1)
Dropdown-list of (famous) initial dates. (Discarded)
Requirements
This Plugin utilizes and requires the Toolbar Plugin, which can be found here:
http://forum.kerbalspaceprogram.com/threads/60863
The Toolbar Plugin is NO LONGER shipped with this package.
Download & Installation:
Latest version (1.1.x)
https://github.com/nanathan/KSPCalendar/releases
Old versions (for 0.25, 0.90)
http://www.curse.com/ksp-mods/kerbal/223684-kerbin-date-calendar
Extract the Zip archive into your Path/To/KSP/ directory.
Usage:
After installation just start KSP and load your savegame.
Add the Calendar Button(s) to your Toolbar.
Displaying the Calendar can be enabled or disabled by clicking the button:
Configuring the Calendar can be done by clicking the button:
The windows can be moved by drag & drop.
The display format settings of the date follow the C# DateTime format strings:
http://www.csharp-examples.net/string-format-datetime/
The Plugin will work with any savegame since the passed time in your universe will be added to the initial date and time of KSP Calendar.
The Plugin will not modify savegames.
Hints:
If you enable the new Kerbin time scale feature you will have an accurate Real Time display of the local time at Kerbin Space Center!
If you enable the new Override MET timer in flight mode feature you will get the Kerbin date and time displayed in the top left corner, instead of the default Mission Timer.
Changelog:
Version 1.5-Redux - nathan1
* Recompile for KSP 1.1.x
Version 1.5-14/08/25 - nuclearping
* Removed included Toolbar from Mod package
* Removed config button from calendar window
* Integrated Config button into Toolbar
* Removed obsolete Calendar window from Flight Scene when "Override MET display" is enabled
* Calendar window will now only be visible in Flight Scence when "Show System date" and "Override MET display" are enabled
to display the System date / time.
Version 1.4-14/08/24 - nuclearping
* Recompile for 0.24.2
* Added Option to override flight mode MET display with KSPCalendar Date
Version 1.3-14/02/13 - nuclearping
* Fixed the "Kerbin time scale" problem from 1.2
* The Calendar window will now stay visible when switching scenes
* Removed unnecessary config window entries introduced with 1.2
* Thanks to diomedea who helped me figuring out the problem from 1.2
* Also thanks to Christian who helped us aswell figuring out the problems with the getCurrentKerbinDateTime()-formula for Kerbin time scale
Version 1.2-14/02/08 - nuclearping
* Found an issue in the "Kerbin time scale" calculation.
In the long run the date & time go awfully inaccurate.
Like it is late at night at KSC but Calendar shows ... 14:37
So my tests have shown that either Kerbin doesn't rotate exactly
4 times faster or there is some sort of floating point inaccuracy
occuring in the long run.
However I found out that a fixed Time Scale factor of 3.991 does a
pretty good job instead.
So with an Initial Time of ... 13:00 and a Kerbin factor of 3.991
you should get an accurate result.
Version 1.1-14/02/04 - nuclearping
* Toolbar implementation
* Added "Kerbin time scale" feature
* Added "System time" feature
* Cleaned up GUI
* Cleaned up code
Version 1.0-14/02/02 - nuclearping
* Initial release
Issues:
If you encounter any issues (maybe because you messed up with some of the settings ) close the game and delete the file
X:\Path_To_Your_KSP\GameData\KSPCalendar\Plugins\PluginData\config.xml
This will reset the Plugin to default settings.
Otherwise ...
Have fun!