Jump to content

[1.9.1] KeepFit Refitted - Kerbal Fitness Degradation 0.13.0.0 (02020 Mar 16)


Recommended Posts

KeepFit

A Kerbal In-mission Fitness Degradation and Gee Loading Addon

C4DW0LU.png

Features

All Kerbals have a fitness level. Each capsule has a defined 'activity level' describing the comfort, room, and built-in fitness capabilities for crew in flight. All Kerbal fitness levels go up or down based on their opportunities for exercise (which functions in the background, not just on the active vessel). A living space can be cramped (losing 5% fitness per day), comfy (-1%/day), neutral (0%/day), or exercising (+1%/day). Unfortunately the stock game does not have any parts that are suitable for exercising (check out some mods with centrifuges for that), but Kerbals will also exercise while they are at the Space Center or are landed on a planet with at least 0.05 G's of gravity. You can track your astronauts' fitness in a "Truly Ugly" (timmers' words...) roster.

Fitness affects a Kerbal's tolerance for gee-loading, as does the duration of exposure. A 100% fit Kerbal can tolerate up to 40 G's for one second, but only 20 G's for up to five seconds, 15 G's for one minute, and 10 G's for five minutes. Their tolerance degrades to 50% of those values at zero fitness. If you're not up for the risk of killing Kerbals, you can change a setting so the game will just gripe at you if your crew exceeds any of those thresholds.

By default, KeepFit assumes that a vessel is cramped (unless it's landed on a world with sufficient gravity), but you can write a Module Manager patch to add this module to any crew part to change that:

// slightly better
@PART[mk2LanderCabin]
{
    MODULE
    {
        name = KeepFitPartModule
        strActivityLevel = COMFY
    }
}

// even more palatable
@PART[cupola]
{
    MODULE
    {
        name = KeepFitPartModule
        strActivityLevel = NEUTRAL
    }
}

You can also specify that a capsule is CRAMPED or EXERCISING.  KeepFit comes with a large library of config files for many popular (or formerly popular) mods, including the Near Future pack, Umbra Space Industries, and more.

Dependencies

  • KeepFit depends on ModuleManager to add the KeepFitPartModule to parts.

Recommended addons

  • Connected Living Spaces lets Kerbals take advantage of the best quarters in the space accessible to them. (You can enable this option without CLS, but using CLS makes it feel a little less cheaty by requiring that there must be a "short-sleeves" path to the exercise space.)

Download and install

From there, just unzip the KeepFit folder into your GameData directory.

Please let me know in the forum thread or on the GitHub issue tracker if you find any issues!

Version history and changelog

  • 0.11.9.8, 02016 Oct 30
    • Final release by timmers_uk, for KSP 1.2.0
  • 0.12.4.5, 02017 Nov 2
    • Final release by Rodhern, for KSP 1.3.1
  • 0.13.0.0, 02020 Mar 16
    • Recompiled for KSP 1.9.1 and CLS 2.0.0.3
    • Changed Kerbal icons so that their background colors reflects the text colors.
    • Internal logic reworked. G-loading is now tracked as rolling averages which update once a second.

Roadmap

There are some remnants of hooks into the (now-defunct) G-Effects mod that could stand to be removed. There's also a lot of modern mod infrastructure that could be implemented (ToolbarController, ClickThroughBlocker, build automation, internationalization, and so on), and probably loads of other cruft that could stand to be removed. I'm not inclined to be picky about pull requests.

Eventually, it might be cool to add some kind of space-limitation effect (e.g. only so many Kerbals can take advantage of an exercise space with a given number of seats) or the like, but at that point you're probably better off using a more involved mod, like Kerbal Health.

Credits

Many thanks to timmers_uk and Rodhern for accepting my pull requests before, and huge thanks to timmers for letting me adopt it!

And also many thanks to micha for adopting CLS -- KeepFit just isn't the same without it!

License

KeepFit (v0.13+) is copyright 2020 Kerbas_ad_astra and released under the MIT License. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

 
Edited by Kerbas_ad_astra
Port over the image, pending a new one
Link to post
Share on other sites
  • 1 month later...

Has nobody really responded to this to congratulate you?

Well, I will.

 

CONGRATULATIONS on the upkeep of this AWESOME mod, @Kerbas_ad_astra.

I have had this downloaded in every instance of my game.

Now can I request some features?

First: this may be already incorporated into the base mod, but does the number of unoccupied seats affect the abilities of Kerbals to excercise? i.e. a 1-2 pod with only one Kerbal in it will be comfortable instead of cramped.

Second: integration with the Kerbal Health hp system if Kerbal Health is installed. Kerbal Health doesn't have an excercise mechanic, and it's something really missing from the mod.

 

Thanks for anything you can do!

Link to post
Share on other sites

Thanks for the kind words!

The activity level of a part does not depend on occupancy.  Astronaut seats are meant to hold the body securely, so just because you're the only one in the cockpit doesn't mean you can just lounge over two chairs at once or something.

When I look at the Kerbal Health configs that are defined for some mod parts that KeepFit says are Exercising spaces, it looks like they already have special stats that reflect their capabilities.  For example, the large centrifuges from MKS and SSPX drastically reduce the effect of microgravity, and the MKS Medical Bays have powerful recuperation effects.  I also see that garwel's been asked about tying gee-tolerance to health, and he seemed receptive (although it's clearly not a high priority).

It looks like it should be possible to get a kerbal's HP value from the Kerbal Health system, and then I could use that instead of the health that KeepFit tracks itself, but I don't regard that as a very high priority -- I've never made such a large-scale addition to a plugin before (most of what I did to resurrect this mod was taking old junk out, and even then I only went at it half-way), and I'd have to also make major changes to the user interface, as otherwise I'd be showing information that is entirely disconnected from what's actually happening under the hood (Kerbal Health doesn't care what KeepFit thinks about modules).

Link to post
Share on other sites

Thanks @Kerbas_ad_astra! I appreciate your response, and after your replies I see that both of my proposals are not realistic or redundant. I will say for people reading through the thread for answers that I play with both Kerbal Health and KeepFit. They compliment each other well, and wouldn't play one without the other.

Link to post
Share on other sites
  • 9 months later...
  • 1 month later...

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