Jump to content

bawki

Members
  • Posts

    1
  • Joined

  • Last visited

Reputation

2 Neutral
  1. Hi everyone, I am currently working on implementing science/research sync for DMP since official multiplayer is always just another major release away(cough). And I am looking for a way to get a List of all available RDTech entries while NOT in the Research and Development screen(as such RDController does not qualify). Currently I am receiving the PartList with PartLoader.LoadedPartsList and iterate over that, but I hope/believe there is a better way I couldn't find so far. Google/KSP API Reference/this subforum didn't yield any results that I could find so I am just throwing out the question. Cheers and thanks! Edit: Derp I believe I found it sunken into a long thread, the solution appears to be: // Available even outside the R&D Building foreach(ProtoRDNode node in AssetBase.RnDTechTree.GetTreeNodes()) { UnityEngine.Debug.Log("Found ProtoRDNode: " + node.tech.techID + " with state: " + node.tech.state); } // Available while having the R&D Building open RDNode[] nodes = UnityEngine.GameObject.FindObjectsOfType<RDNode>(); foreach(RDNode node in nodes) { DarkLog.Debug("Found RDNode: " + node.name + "[id: " + node.tech.techID + "] with state: " + node.state); } I will update the community API wiki with all information I have gathered surrounding ResearchAndDevelopment
×
×
  • Create New...