Jump to content

Writing Kronometer configs for the New Horizons planet pack


bigyihsuan

Recommended Posts

I started up a new save playing an unofficial update to the New Horizons planet pack and noticed that because of Kerbin's new orbit around Sonnah, one "year" is no longer one year, i.e. the length of time it takes Sonnah to go around the sun.

Looking at the Kopernicus configs, a Kerbin day is 21549.4251830898 seconds (5h 59m 9.4251830898s), while a Sonnah year is 31048530350m → 34d 15h 0m 28s.

I want to write a Kronometer config so that (long form) it displays "Year X, Month Y, Day Z, HH:MM:SS".

I see there are useHomeDay, useHomeYear, and useLeapYears options in the Kronometer settings, but I'm not sure if they would work for this use case.

Link to comment
Share on other sites

17 hours ago, bigyihsuan said:

I started up a new save playing an unofficial update to the New Horizons planet pack and noticed that because of Kerbin's new orbit around Sonnah, one "year" is no longer one year, i.e. the length of time it takes Sonnah to go around the sun.

Looking at the Kopernicus configs, a Kerbin day is 21549.4251830898 seconds (5h 59m 9.4251830898s), while a Sonnah year is 31048530350m → 34d 15h 0m 28s.

I want to write a Kronometer config so that (long form) it displays "Year X, Month Y, Day Z, HH:MM:SS".

I see there are useHomeDay, useHomeYear, and useLeapYears options in the Kronometer settings, but I'm not sure if they would work for this use case.

i would ask the folks who did realism overhaul Jsnq and ksrss as they all have configs for it.

Link to comment
Share on other sites

Someone check my math, since it doesn't seem to want to work. (screenshot is with 2.5x scale, there should definitely not be 541+ days/year when there's a day length multiplier of 1.25)

6cDN6Sz.png

So my calculations are as such:

  • A Kerbin "year" around Sonnah (aka a month) is 149625.51020983295 seconds.
  • A Sonnah year around the sun is 2984428.17946685 seconds.
  • Therefore, there should be 7 months (2984428.17946685 sec/year / 149625.51020983295 sec/month = 6.943364332856852 month/year).
  • A Kerbin day is 21549.4251830898 seconds (from the Kerbin.cfg file)
  • In 1 Sonnah year, there are 138.49224070295767 Kerbin days.
  • So, each month should be 19.945984981314517 Kerbin days long, round up to 20 since Kronometer wants integers for months only.

So seven 20-day months. Is this correct? It takes me 15 minutes to test these configs because KSP loading times.

I've also forgotten about needing to deal with what happens when rescaling happens...

Edited by bigyihsuan
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...