Search results

  1. Prepar3DGuy

    FSX:SE Pop up window

    I have found a solution, not perfect by the way. I guess that P3D (FSX) uses DirectSound (dsound.dll) primary buffer. I have tried to add DirectSound to the Pop-Up window and do some Cooperative, but I don't know what settings P3D (FSX) uses. If sim have used DSBCAPS_GLOBALFOCUS may be it will...
  2. Prepar3DGuy

    FSX:SE Pop up window

    I have also tried not to mute sound from sim main window, but unsuccessful. I know that it possible. Look at the IVAO pilot client. Client's main window has focus for keyboard and mouse and doesn't mute sim sound. Default kneeboard window also doesn't mute sim sound.
  3. Prepar3DGuy

    Maths... err... physics... err... ouch!

    Because 1 lbf = 1 slug * ft / s^2 and 1 slug = 32.174 lbs
  4. Prepar3DGuy

    Maths... err... physics... err... ouch!

    m = 20200 lbs = 9162 kg a = 5.48 ft/s^2 = 1.67 m/s^2 F = m * a = 9162 * 1.67 = 15300.5 N = 3439.7 lbf
  5. Prepar3DGuy

    P3D v4 P3D PDK register property

    Try to unregister your add-on directory. "%P3D%\Prepar3D.exe" "-Configure: Category=Add-on Package, Operation=Remove, Title=SimVariableModule" Then run P3D and after that again register it "%P3D%\Prepar3D.exe" "-Configure: Category=Add-on Package, Operation=Add, Title=SimVariableModule...
  6. Prepar3DGuy

    P3D v4 ISimObject's and the new P3D V4.5 Indago UAV Quad Drone

    The Indago UAS in P3D v4.5 was impelented using PDK and the module is located inside SimObjects\Modules\Quadrocopter.dll library. You can see that sim.cfg file contains CategoryId = GUID. It loads data from xml files as parameters. Properties that exposed in Control directory can be mapped from...
  7. Prepar3DGuy

    P3D v4 how to control the indago UAS from joystick?

    1. You can do it anly with buttons not axis. Current implemenation (%P3D%\SimObjects\Modules\Quadrocopter.dll) has registered control properties like "ThrottleSet", "ThrottleRelease" and etc. with EVENTTYPE_NORMAL (not EVENTTYPE_AXIS). You can set you key assignment (Joystick or Keyboard) in...
  8. Prepar3DGuy

    P3D v4 P3D PDK register property

    First of all we can't see you code, both PDK addon and SimConnect client. I can't tell you are doing right or wrong. As far as I know, your statements are wrong. Properties and Events that you have registered to your SimObject are accessible from SimConnect clients (maybe scripts, I don't sure)...
  9. Prepar3DGuy

    P3D v4 P3D PDK register property

    There are some ways: 1. Create simulation behaviour for your SimObject using ISimulation interface and P3D will process it with specified frequency when instances of your SimObject exists. (Simplest and recommended way) 2. Register static methods as Callbacks to the messages of sim events using...
  10. Prepar3DGuy

    P3D v4 P3D PDK register property

    I'm using Visual Studio 2015 and as far as I know VS2017 works the same. The trick is that VS automatically attach debugger to your dll from project output directory. You don't need to copy it somewhere every time. 1. Has you created add-on.xml file for your dll? For my example above it's copied...
  11. Prepar3DGuy

    P3D v4 P3D PDK register property

    Events for properties in terms of P3D connects name of event with your Set function. I use Visual studio to debug dll. My projects settings are: Debugging -> Command = $(P3D)\Prepar3D.exe Debugging -> Working Directory = $(P3D) note that P3D and P3D_SDK are user variables in Windows that points...
  12. Prepar3DGuy

    P3D v4 P3D PDK register property

    Ok. Try to set Unicode in project settings: General -> Project Defaults -> Character Set = Use Unicode Character Set. And return S_OK for RegisterProperties.
  13. Prepar3DGuy

    P3D v4 P3D PDK register property

    static HRESULT GetMyDoubleProperty(__in const ISimObject& Sim, __out double& dProperty, __in int iIndex) { dProperty = static_cast<const MyClass&>(Sim).v; return S_OK; }
  14. Prepar3DGuy

    FSX:SE Pop up window

    I think that you can. I have used CreateWindowEx to answer on this topic for P3D. You can try it in FSX (example with dll). It's just quick example, don't judge me.
  15. Prepar3DGuy

    P3D v4 SimConnect or PDK, advantages and disadvantages

    For the slow dive into PDK with examples I recommend (by increasing complexity): DataHarvester -> CustomPDKObjects -> CameraPDK -> SimpleCar -> SimpleAirplane -> Engine -> RadarAltimeter ... First three of them are not SimObjects but global plugins.
  16. Prepar3DGuy

    P3D v4 SimConnect or PDK, advantages and disadvantages

    It's not hard but powerfull. For GUID (Global Unique IDentifier) generation use GUIDGenerator.exe in SDK folder or from the Visual Studio menu Tools->Create GUID :p About IUknown and other stuff look for COM (Component Object Model) documentation and tutorials 1, 2. Actually you need to know the...
  17. Prepar3DGuy

    P3D v4 SimConnect or PDK, advantages and disadvantages

    Hi RED COOL. As I know, in PDK you can register custom Properties and Events callback for that properites which can be accessed via scripts and SimConnect clients for: 1. SimObjects (using ISimObjectManager for a class of SimObjects or using IBaseObject interface for the instance of existing...
  18. Prepar3DGuy

    P3D v4 how to control the indago UAS from joystick?

    2. Yes. PDK is the best for that. SimpleCar, SimpleAirplane, SimpleHelicopter examples well illustrate that.
  19. Prepar3DGuy

    P3D v4 2D universal panel

    I think IVAP example are not a panel but a window. Connection and flight plan windows have buttons, textboxes and other UI elements. Your application can add items to Add-ons menu using SimConnect SimConnect_AddMenuItem look at the the sample MenuItems. If you develop in-process dll on C++ in...
  20. Prepar3DGuy

    P3D v4 SimConnect: Loading into default scenario via code.

    "D:\Program Files\Lockheed Martin\Prepar3D v4\Prepar3D.exe" "-fxml:%USERPROFILE%\Documents\Prepar3D v4 Files\Simple Cab.fxml" Example with absolute path. Look at the quotes for paths with spaces.
Top