skyline131313
Members-
Posts
16 -
Joined
-
Last visited
Never
Content Type
Profiles
Forums
Developer Articles
KSP2 Release Notes
Bug Reports
Everything posted by skyline131313
-
Part Classes and a Robust API
skyline131313 replied to Majiir's topic in KSP1 C# Plugin Development Help and Support
All information regarding classes and their functions are stored within the .dll, in this case 'Assembly-CSharp.dll' dounf in KSP_Data. All you need to do is add a reference to this dll in visual studio or w/e ide you are using. getOrbitalVelocityAt() returns double, 'velocity' implies direction (in this case should be a 3d vector) The little things you know? -
How do you bind to keys?
skyline131313 replied to dodrian's topic in KSP1 C# Plugin Development Help and Support
It is hardcoded to certain values in the FlightCtrlState class, which can be accessed by overriding the OnCtrlUpd(FlightCtrlState) function. It also seems you can modify certain input controls (yaw, pitch, roll) I haven\'t tested if it accepts changes to it. Also seems you can access it through 'FlightInputHandler.state'. The only way you can do it is like Crazygerbil suggested. It might be possible to have the hotkey editable through the .cfg file but I haven\'t tested this either. -
Override is just a way to ensure the virtual function you are trying to override exists. C/C++ doesn\'t have this declaration as it\'s more to for 'safety' reasons than anything else (there\'s been some modifications in C++11, only thing that comes to top of my head is 'final' to ensure a virutal function doesn\'t get overridden after that class). Although C# still needs the override key word otherwise you might get a warning or error?
-
anyone had any luck with plugin stuf yet? :)
skyline131313 replied to CardBoardBoxProcessor's topic in KSP1 Mod Development
Nothing on that end has been released yet as far as I know.