Hello,
I am writing a plugin for KSP, and I am trying to figure out how to make the kerbals run faster. This is the current code I have so far:
ConfigNode newKerbal = ConfigNode.CreateConfigFromObject(parts);
newKerbal.GetNode("PART").GetNode("MODULE").SetValue("walkSpeed", 3.0, false);
ConfigNode.LoadObjectFromConfig(parts, newKerbal);
Basically, I tried to edit the config file for a kerbal and load in the kerbal using the new config file, but this didn't work. Does anybody have ideas on how to fix this problem? There might be a way to do this without editing config files, I just haven't found one yet.
I don't know if this information is useful or not, but I am using Microsoft Visual Studio to write this plugin, and I am using a bunch of dll files from KerbalSpaceProgram/KSP_x64_data/Managed as references.