Search the Community
Showing results for tags 'rnd archives'.
-
Ok, so I’m updating a mod called Syncrio, it is a multiplayer extension that syncs scenario data from client to client. I’m almost done with the update, but I need help figuring out how to add a science subject to the RnD archives. I've been using the game event "OnScienceRecieved" to get the data on client A and "ResearchAndDevelopment.Instance.SubmitScienceData(float dataAmount, scienceSubject subject)" to add it on client B’s side. But, all I get on client B’s side is "[Research & Development]: +5 data on Crew Report from LaunchPad. Subject value is 0.00" in KSP's debug log and it does not register the data in the RnD archives. Meaning the same data can be gathered on client A and then gathered again on client B. Oddly enough, client A data gets this message "[Research & Development]: +5 data on Crew Report from LaunchPad. 2 Science added. Subject value is 0.00" when they gather the data, the difference between the two messages being the "2 Science added." part. I have also tried creating a custom part/part module to gather and transmit the science data, but all I got was a message saying that I had completed the progress node for science recovery on kerbin. This is the last thing I need done for Syncrio's science game mode to be released and I have been at this for over a week now and have made no progress. So any help anyone can give will be greatly appreciated. ========Edit======== A workaround has been found. Using the config nodes from the science subjects, it is possible to input the config nodes into the RnD config node. Here is a code example: I hope this helps anyone trying to do this, or something like this.