Search the Community
Showing results for tags 'sciencedata'.
The search index is currently processing. Current results may not be complete.
-
Hey all, Coming back to KSP for 1.1, I kinda want to give the plugin API a try. I'm interested in fiddling with science experiments and new styles of data collection, but I'm not really sure how to instantiate new pieces of ScienceData. I need to figure that out before I can proceed with fiddling. Here are a couple of things that are leaving me a bit lost: 1) IScienceDataContainer seems to contain the function prototype for recovering data. However, the ModuleScienceExperiment class (which implements it) doesn't actually store data. Am I correct in assuming there's some external, possibly global, storage structure for ScienceData? Where is it located and how do I add to it? 2) By overwriting the location of an existing ScienceData within ModuleScienceExperiment, I can trick the game into recovering my homemade ScienceDatas. However, there are fields within ScienceData that I can't figure out how to populate properly, so it causes problems with the science archives. I can retrieve the base Experiment ID from ModuleScienceExperiment, but ScienceData appears to need something of the format 'ExperimentID@SituationID'. Where do I get the current situation? From the Vessel? What about the container ID? 3) Even if I had the right stuff in my new ScienceData, I'm not certain the new data would show correctly in the science archives. Where is the science recovery process handled? Do I have to register new pieces of ScienceData with some additional class for it to report correctly? What values are displayed in the archive GUI? 4) Where's the science? ScienceData has the number of Mits, but stores no actual science. ScienceExperiments show a base value, but not the current amount collected towards the maximum. How does the game keep track of collected science/data on a per biome, per situation basis? ...Now that I think about it, 3 and 4 are kinda redundant. へ‿(ツ)‿ㄏ Anyways, I'd appreciate any advice for science plugins in specific and the plugin API in general. Thanks!
- 3 replies
-
- sciencedata
- modulescienceexperiment
-
(and 1 more)
Tagged with:
-
I'm trying to update Impact to KSP 1.0.5, which is challenging because of the changes to the science system. There's the new ReturnData method, for one thing, but it seems like the ScienceData class itself has a couple of new members -- a boolean, and part.flightID. What's the boolean do? (This would be great to add to the Anatid API.) Also, are there any other changes to ScienceData flying around?