Search results

  1. DragonflightDesign

    Sim sound on/off

    Is there any way of easily detecting whether the simulator sound is on or off (key Q by default)? I thought there was at one time, but I can't find anything relevant in the simvars.
  2. DragonflightDesign

    Calling multi-smoke entries

    Given this in the aircraft.cfg file: [SMOKESYSTEM] smoke.0= -14.00, 0.00, 0.00, fx_dummy smoke.1= -18.40,-0.29,-2.95, fx_AOA_red smoke.2= -18.40,-0.29,-2.71, fx_AOA_green smoke.3= -18.40,-0.29,-2.83, fx_AOA_amber smoke.4= -66.00,-1.80, 0, fx_fsxba_smoke_w smoke.5= -68.50,-1.80, 0...
  3. DragonflightDesign

    TRUE!=FALSE

    Okay - it's a clickbait title but... I've found a possible candidate for the oft-quoted 'false = zero and true = not zero (i.e. anything else)'. I spotted this in the source code of MS-DOS 1.0 (yeah... getalife). FALSE EQU 0 TRUE EQU NOT FALSE OTOH it probably goes back a lot...
  4. DragonflightDesign

    Setting payload weights... I don't give up, do I? :-)

    I've been using the AI_waypoints.cs managed example as a guide to setting data on a sim object. As usual, I thought I'd got it beat, but no. Dim arrWeights(numPayloadStations) As Double Dim i As Integer = 0 Dim datum As Integer = 400 Dim dataRequest As String =...
  5. DragonflightDesign

    "PAYLOAD STATION NAME"

    As a follow-on from my previous question, can anyone confirm if the above is another non-working variable? ' Create the definition p3d_simconnect.AddToDataDefinition(P3Data.DefinePayloadStations, "PAYLOAD STATION NAME:1", "string", SIMCONNECT_DATATYPE.FLOAT64, 0, 600) ' Request the payload...
  6. DragonflightDesign

    Getting payload station weights

    I'm being unkind to SimConnect again and it's repaying me with an exception 3: 'The client event, request ID, data definition ID, or object ID was not recognized.' What I'm trying to do is get the payload station weights from an aircraft. Getting the number of payload stations is easy, but of...
  7. DragonflightDesign

    Fuel-air ratio does not set

    Yet another complete failure on my part. I'm trying to set the fuel-air ratio on a reciprocating engine. Both the FSX and P3D SDK state that this can only be set through a simconnect action. I'm not interested in finding out what it currently is; I just want to set the ratio, so no REQUEST in...
  8. DragonflightDesign

    Failing to correctly read battery master [solved]

    I had this problem before but failed to solve it, so I ignored it but it hasn't gone away... :( I'm trying to check to see if the master battery and avionics circuits are on. I'm leaning towards the theory that I'm using the wrong variables (either set or get) but I'm evidently too stupid to...
  9. DragonflightDesign

    P3D v4 RequestDataOnSimObject [Solved]

    Gotta 'nother problem (sigh). It's vb.Net again and I can say two things before proceeding: the C++ equivalent works perfectly and if I use RequestDataOnSimObjectByType triggered from an event timer then it also works perfectly. This, however, never triggers except when the P3D connection is...
  10. DragonflightDesign

    P3D v4 Fuel selectors

    The fuel tank selectors are listed as enum with a data run of zero to twenty. I thought (incorrectly) that the enum for each selector would return a zero or one (off or on). Consequently, I declared the datatype as Int32 . p3d_simconnect.AddToDataDefinition(P3Data.DEFINE_FUEL_SELECTORS, "FUEL...
  11. DragonflightDesign

    Weather Request sample produces an odd METAR string

    Namely: WEATHER OBSERVATION: EINN&A13 301300Z 00000KT&D0NG 27019KT&A2012NG 27024KT&A6012NG 100KM&B-437&D3048 CLR 17/07 Q1013 @@@ 66 17 270 19 | 198 17 270 24 | This is for Foynes in Ireland. I get the same decorated string in both the original WeatherRequest C++ console sample and when I've...
  12. DragonflightDesign

    Accuracy of P3D with Orbx Ireland

    I spend a lot of hours developing for FSX / P3D and next to no time actually flying it. Tonight though, I decided on a short hop in the Maule from BHD (EGAC) round the area and back again. I set course down the coast for the Mourne Mountains and levelled out at 2,500 feet, then thottled back to...
  13. DragonflightDesign

    Frustrating mouse problem - as in, it refuses to work

    I needed to increase the size of a gauge's bitmaps to twice the original size (i.e. W x 2 and H x 2, four times the original area, new size 780 x 600 pixels). However, if I increase the mouse rectangles (tooltip and callback), both the tooltip and the cursor disappear. If I use the original...
  14. DragonflightDesign

    Trouble with KEY_THROTTLEx_SET [Solved]

    Dunno what's going on here, so I'm looking for a way out of the mudpit. Throttle setting depends on the throttle icon that is being shown - it's not the normal slider but a series of icons that change depending on what percentage of input is being demanded. The screenshot doesn't show...
  15. DragonflightDesign

    XML gauge coder needed to create a VC (paid) [filled]

    This is for a commercial project for Pilot's GesmbH. The aircraft is a Boeing B-314 (and the B314-A) variant - pictures here: https://www.pilots.shop/Cms/Ui/Pages/Products/MainPage.aspx?id=9c96eb9a-0097-4083-be89-64f534a61a6e&pageid=017fac64-ff48-4139-8dd1-8dae8b5ab1f9 What is expected from...
  16. DragonflightDesign

    Classes in gauges [Solved]

    You might not believe this, but I've never really strayed from the path of C over the years. Now I find I'm having to move into C++ and it's becoming a mild nightmare. Google is just not helping with what I know is a relatively simple question (it's probably one of those 'but you should already...
  17. DragonflightDesign

    P3D v4 2D panel redraw problem

    Firstly - this ONLY happens in P3Dv4. If compiled to 32-bit and launched in FSX, no problems. I have a gauge that draws the background (MAKE_STATIC) and two MAKE_ICONS that add two bitmaps to represent night lighting when the cockpit lights are turned on. All instruments and swicthes have the...
  18. DragonflightDesign

    Image bit flags

    Does anyone know what the following image flags do? IMAGE_CREATE_DIBSECTION IMAGE_BILINEAR_GRAY IMAGE_PRESERVE_COLOR_IN_HUD IMAGE_CONTAINS_NO_MASK IMAGE_CONTAINS_MASK IMAGE_NO_STRETCH IMAGE_HUD_COLOR_MAP I figured out all the others by writing code until something happened :) but these have...
  19. DragonflightDesign

    P3D v4 Fifth parameter code not working any more? [Solved]

    If someone is building a C-gauge for P3Dv4, I'd be grateful if they could insert the following code and check to see if P3Dv4 still allows you to grab a fifth parameter from the gauge info in the panel.cfg file e.g. myGauge!myInstrument 3,4,100,100,fifth...
  20. DragonflightDesign

    P3D v4.4 SDK error

    The new SDK samples have been updated to Visual Studio 2017 and dotNet 4.7.2 but I'm afraid someone in LMCO didn't check the documentation. This is in the 'Managed SimConnect Projects' topic:- Ensure the Microsoft .NET Framework 4.6.2 Developer Pack is installed as many of the Managed Samples...
Top