Jump to content

[1.12.5] Realtime


Recommended Posts

icon.svg

Realtime

This plugin syncs the in game time to realtime. It's for those kinds of players. Yeah, you know which kind.

LW8Yk9D.png

How does it work?

By default, the plugin will not do anything, except show a warning message when a scene loads at the top of the screen.

In the Space Center, open the Realtime configuration window from the toolbar. There, you can select a "base time" - a point in real time which will be equivalent to the beginning of time in the current save.

Once you hit "Set", the game's timewarp will be controlled by the mod alone, you will be fixed at warp factor 1x in all scenes.

If the game time (offset by the base time) is behind realtime, the mod will automatically warp forward until it's in sync again, but only while the game is warping on rails (e.g. not during driving, atmospheric flight or burns).

The game's times will also be displayed based on the real time, and durations will be based on 24h days and 365d years.

The mod will only warp if the game lags behind by more than 10 seconds, to avoid constant micro-warps when the game is running slow.

A warning will be shown and the mod will relinquish control of timewarp if the game time is ahead of real time by more than 10 seconds.

SEIZURE WARNING: The automatic warping can, depending on the time difference, cause quick continuous flashing as days pass in the Space Center. I am planning to add a setting to limit the maximum warp factor to avoid this.

Incompatible Mods:

  • Kronometer

Compatible Mods:

Mods that do not modify timewarp or the time format should be compatible. Visual mods, part mods and system replacement / scaling should work just fine.

Download

SpaceDock

Edited by MarkusA380
Link to comment
Share on other sites

6 minutes ago, theJesuit said:

Awesome idea! 

Will this work with sustems that use 12 or 8 hour 'days?' L

such as JNSQ?

This mod does not change the length of Kerbin days. In the stock system, 4 days will pass for each real day.

The mod just synchronizes the passage of time. If you shut down the game and come back 24 hours later, it will warp forward 24 hours.

The game itself has a setting to display time in 24hour format instead of 6 hour format. This way, if a maneuver node is in 1 day, 1 hour, you will be able to plan ahead that you should return to the game on the next day, 1 hour later. But it's not required for this mod to work.

Link to comment
Share on other sites

So two days will pass in JNSQ for every real day that passes. Interesting...

Could make the game frustrating or amazing. Can't decide yet!

Could make planning burns quite tricky, I can't get up at 3am to fire up an engine for a Mun encounter! Would need to leave the game running I guess with automation to handle the burn.

Link to comment
Share on other sites

8 hours ago, Cruesoe said:

So two days will pass in JNSQ for every real day that passes. Interesting...

Could make the game frustrating or amazing. Can't decide yet!

Could make planning burns quite tricky, I can't get up at 3am to fire up an engine for a Mun encounter! Would need to leave the game running I guess with automation to handle the burn.

Or plan your burn for a time you can be available 

Link to comment
Share on other sites

Posted (edited)
On 7/24/2024 at 5:37 AM, Nightside said:

Or plan your burn for a time you can be available 

Exactly.
This mod was born because I had a LMP server without timewarp running for a while and found the implications quite exciting, e.g. planning a Munar transfer in such a way that it would reach PE on the moon at a time I was available, then setting an alarm on my phone 30m prior to the burn time. It felt more... real,  in a sense.

Unfortunately, LMP does not simulate the orbits in the background, meaning changes of SOI simply do not occur if the vessel is not being controlled, and orbits shift all the time.

Edited by MarkusA380
Link to comment
Share on other sites

I always imagined something like this but didn't think someone would actually have the guts to do it. Looking forward to start a Titan mission that will arrive when my yet to be born son gets married (only to realise, years from now when I'm old and grumpy, that I forgot parachutes) 

Link to comment
Share on other sites

New update!

Changes:

  • Auto warp when catching up with real time is much faster!
  • The time format is now overridden to use real timestamps, e.g. 2024-07-27 23:29:00+02:00
  • You can choose between local and UTC time
  • Time intervals use 24 hour days and 365 day years
  • Mod will not unpause the game after 10 seconds to catch up with real time
  • Add toolbar icon
  • Warp forwards even when window is open
  • Reset to default day and year length when no base time is selected
Link to comment
Share on other sites

On 7/27/2024 at 6:36 PM, MarkusA380 said:

New update!

Changes:

  • Auto warp when catching up with real time is much faster!
  • The time format is now overridden to use real timestamps, e.g. 2024-07-27 23:29:00+02:00
  • You can choose between local and UTC time
  • Time intervals use 24 hour days and 365 day years
  • Mod will not unpause the game after 10 seconds to catch up with real time
  • Add toolbar icon
  • Warp forwards even when window is open
  • Reset to default day and year length when no base time is selected

Neat, does this mean if I set up a bunch of MechJeb (or KOS) manuveures or commands and come back later it will time warp, perform anything up to "now" in the game?

Example:

I set a Mun Capture burn in 4 hours, quit, come back in 8 hours this will timewarp 4 hours, perform the burn, then timewarp the remaining ~4 hours to my current time... hopefully with a ship in orbit around mun if I set things up correctly...

Link to comment
Share on other sites

39 minutes ago, PicoSpace said:

Neat, does this mean if I set up a bunch of MechJeb (or KOS) manuveures or commands and come back later it will time warp, perform anything up to "now" in the game?

Example:

I set a Mun Capture burn in 4 hours, quit, come back in 8 hours this will timewarp 4 hours, perform the burn, then timewarp the remaining ~4 hours to my current time... hopefully with a ship in orbit around mun if I set things up correctly...

Not really, if I understand you correctly.

For maneuvers to be executed the vessel must be loaded and simulated. It cannot happen in the background.

As such, it makes no sense for this mod to only warp to the next maneuver - it will not be executed regardless.

There is a theoretical possibility for an essentially different mod, that will only run when you are in flight, not in the space center or tracking station scene, and that would warp only until the next maneuver, wait until it has been executed (by MechJeb or manually or whatever) then continue the warp. But that's not the point of this mod, as it would not enforce the sync to realtime and give you free reign to do whatever you want while you are at a maneuver node in the "past".

Link to comment
Share on other sites

6 hours ago, MarkusA380 said:

Not really, if I understand you correctly.

For maneuvers to be executed the vessel must be loaded and simulated. It cannot happen in the background.

As such, it makes no sense for this mod to only warp to the next maneuver - it will not be executed regardless.

There is a theoretical possibility for an essentially different mod, that will only run when you are in flight, not in the space center or tracking station scene, and that would warp only until the next maneuver, wait until it has been executed (by MechJeb or manually or whatever) then continue the warp. But that's not the point of this mod, as it would not enforce the sync to realtime and give you free reign to do whatever you want while you are at a maneuver node in the "past".

I think I understand you, so this timewarps when you load the game so if you have a manuever node (or requirements to control your rocket) in 4 hours from when you finish playing, you NEED to be there in 4 hours to perform the commands."

PS. This would be evil combined with signal delay mod :o for those who want ultra realism.

Link to comment
Share on other sites

18 minutes ago, PicoSpace said:

I think I understand you, so this timewarps when you load the game so if you have a manuever node (or requirements to control your rocket) in 4 hours from when you finish playing, you NEED to be there in 4 hours to perform the commands."

PS. This would be evil combined with signal delay mod :o for those who want ultra realism.

Yeah, pretty much! :)

Link to comment
Share on other sites

10 hours ago, MarkusA380 said:

Yeah, pretty much! :)

Could this be applied to say Dark Multiplayer Server (the idea being is it keeps everyone in real time?)

Edited by PicoSpace
Link to comment
Share on other sites

  • 1 month later...

This mod needs a companion mod, like Kerbal Alarm Clock Extended or something that will send your alarms to an external program or claendar so you know when you need to get bakc online for various manuevers.

Link to comment
Share on other sites

25 minutes ago, Ultimate Steve said:

In the past I attempted to do a real time program, it did not get very far. I don't think I have the free time to commit to anything large, but this might be interesting to try someday.

When I get faster internet it would be interesting to stream a real time all the way through mission (to the mun and then Minmus, that's crazy enough).

 

Edited by PicoSpace
Link to comment
Share on other sites

  • 2 months later...

Wow this mod is exactly what I have been looking for the past couple of years. I can't wait to use this in my next hardcore save file. Thank you so much for creating this

Edited by itchyDoggy
Link to comment
Share on other sites

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...