Add Automatic Lab Housekeeper from SpaceDock #10406
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request was automatically generated by SpaceDock on behalf of ScienceDaemon, to add Automatic Lab Housekeeper to CKAN.
Please direct questions about this pull request to ScienceDaemon.
Mod details
Description
Tired of constantly having to manage data for mobile labs on stations you have flying around? Automatic Lab Housekeeper is for you.
Let's set the stage, you have a few space stations in Kerbin's SOI, a ship currently in orbit around Duna, waiting for a transfer window back, and a ship currently on its way to Eeloo.
Each of them has a mobile lab on-board, turning data into science. The transfer to eeloo takes at least another three years and you can't wait to finally go explore it, but hang on.
With your labs eventually filling up with science, you gotta stop warping every X amount of days, transmit science home and fill the lab back up with data you have stored.
Using more efficient modded labs and well-seasoned scientists, that amount of days can easily go below 10. That does not sound fun, and I don't think I have to tell you that it isn't.
When warping (or not), every in-game day, Automatic Lab Housekeeper will check any loaded or unloaded vessels for labs it might have on-board, transmit its science back home, and hopefully in the future fill up its data whenever there's space.
As this mod checks for the Science Lab module instead of part names, its functionality shouldn't have an issue with mods that add new science lab parts into the game (like Nertea's Stockalike Station Parts Expansion).
In detail, the mod does the following:
In Flight Mode: Checks loaded and unloaded vessels every 1 in-game day, regardless of time-warp
In Tracking Station & Space Center: Checks unloaded vessels every 1 in-game day, regardless of time-warp
Looks for module ModuleScienceLab on-board vessels
For loaded vessels: Checks if there is science >= 1 on-board. If there is science, it transfers it (as whole numbers, leaving the rest in the lab) to R&D
For unloaded vessels: Using the module ModuleScienceConverter and part cfg data, simulates how much science has been created since the last update, if science has accumulated, transfers it to R&D (the used formula is not 100% accurate to the in-game calculation, the calculated value will be lower than in vanilla KSP)
Dependencies
Currently this mod does not have any dependencies
Considered for future implementation are (in order of priority):
Git?
Implementation of this mod into CKAN
Automatic data re-filling
Implementation of Strategia's scientist experience level enhancements
Checking if unloaded vessel has an established CommNet connection to home.
Checking if unloaded vessel has enough electricity on-board.
Adding a tab into game difficulty settings that includes CommNet and electricity settings
Installation
Simply merge the downloaded zip with the GameData folder
License
MIT
Known Issues
So far I wasn't able to figure out the correct science accumulation rate, so it's currently a little lower than in-game
When using Strategia's Scientist Focus, the enhanced Scientist Experience isn't considered in the background simulation of science
This is my first mod, so I hope you'll like it. Naturally there might still be some additional issues.
Currently, this game is not configured to add any additional modules or inject into existing dll's, so installing and un-installing should pose no issues.
HOWEVER, THIS MOD IS VERY MUCH A WORK IN PROGRESS, USE AT OWN RISK