General Question Creating an MFD for Custom Craft

lethal_d0se

Addon Developer
Addon Developer
Joined
Jan 23, 2010
Messages
15
Reaction score
0
Points
0
Hey everyone, i'm new to making add-on's but not new to 3d modeling etc. So i'm wondering if it's possible to create an MFD for my spacecraft that will control bay doors etc with mouse clicks instead of key assignments?

Any help is greatly appreciated.

/LD
 
It can be done quite easily, but you'll need to write custom DLLs.

If you know C++, there are 2 ways to do this:
1. Call the clbkConsumeBufferedKey to send messages to the vessel.
2. Use the MFD to directly call member functions on the vessel that will do whatever you want.

In both cases, you should make sure that the MFD is controlling the correct vessel (check that v->GetClassName() corresponds to the class name of your vessel) when the MFD is opened, before you try to send commands to the vessel. Not doing this could cause odd behaviour or (if the second method is used) a CTD.
 
You could also implement these controls as part of a Virtual Cockpit or 2d panel, It'll be much easier to code that than coding a MFD to control it
 
Or you make a 2D Panel... that takes less time and can be done by anybody. It just needs skills for looking beautiful. All you need is a background bitmap.
 
Thank you for your prompt replies, I'd like to try making a 2d cockpit. Are there any resources available tutorial-wise on how to create one?
 
Assuming you've installed ObiterSDK (you'll need that to compile a .dll if you go that route) the included docs are somewhat helpfull. Viewing the source code for the stock DG is very helpfull.
 
Back
Top