• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Search results

  1. Bert Laverman

    Feedback on SimConnect_SetDataOnSimObject()

    Almost all calls in SimConnect have two or three ways in which they can return a result to the caller: The call itself can fail, which generally means that required values are missing or wildly incorrect. An obvious example is an incorrect HANDLE. The call can fail validation by the simulator...
  2. Bert Laverman

    New SimConnect API for C#

    Well, for what it's worth, the pushbackHelper app won't work with Prepar3D, because of the SimConnect namespace; "Microsoft.FlightSimulator.SimConnect" vs "LockheedMartin.Prepar3D.SimConnect". Sidestepping that, let's take a snippet from the pushbackHelper's "SimConnectManager" class...
  3. Bert Laverman

    New Managed Class-Library started: CsSimConnect

    In a follow-up to my earlier question, I have actually started building a new SimConnect library in C#. The code is available on GitHub under the Apache 2.0 license, which makes it free to use also for commercial purposes, but retains the copyright. Because this is 2021 I also claimed the...
  4. Bert Laverman

    New SimConnect API for C#

    Ok, I've got a small start now. All the code is up on GitHub, under the Apache 2.0 license. This means any code in this repository is copyrighted, but you are free to use it in private and commercial applications. See here for the details on the license, or a short explanation on Wikipedia. The...
  5. Bert Laverman

    New SimConnect API for C#

    [If the below feels like I am a "Grumpy old man" then please humor me. 57 years and developing since before the 8086 and 8088 came around should entitle me to that. I still have the TRS-80 version of Flight Simulator somewhere, if the floppy is still readable] I am a reasonably experienced...
  6. Bert Laverman

    Controlling rudder, flaps, etc on AI aircraft

    Ok, that appears to do the trick. Value is indeed -16384..16383 for events which can take negative values, 0..16383 for FLAPS_SET and SPOILERS_SET, 0 or 1 for GEARS_SET. The negative values will work if you make sure they're two's complement signed values, so 0x00003fff is 16383, 0xffffc000 is...
  7. Bert Laverman

    Controlling rudder, flaps, etc on AI aircraft

    Hi, I'm progressing quite nicely on my project and can now create AI aircraft, give them a location, and (mostly) control the lights. Next bit are the control surfaces. Monitoring the user aircraft to get the data was not a big problem, although the "Position" type returned not a value from -16K...
  8. Bert Laverman

    Which SDK to use for cross-platform development

    I now have An SDK from FSX itself, one from FSX-SE (ignoring the installers for the older DLLs), and one from P3D. Should I build against the oldest one to ensure least-common-denominator compatibility, go for the possible fixes in FSX-SE, or use P3D? Or is it a dream to be able to cover all...
  9. Bert Laverman

    Not receiving some data (e.g. engine and controls data)

    Ronald, an impressive amount of documentation. I'll take a look. Just two things straight away: 1) I'm not querying AI aircraft but my own aircraft. 2) while discussing the whole issue I discovered the mistake was entirely my own, because I had different logging levels on the different...
  10. Bert Laverman

    Not receiving some data (e.g. engine and controls data)

    Very bad coding practice to have a Bool or Position (or any kind of integer actually) sent to you as a float or double. Equality on floats and double always turns into an epsilon comparison if you want to rule out rounding errors. I only use floats and doubles if the SimConnect variable is one...
  11. Bert Laverman

    Not receiving some data (e.g. engine and controls data)

    Oops, that was embarrassing. LOG4CPLUS_TRACE(log_, "[aircraftControlsDataCompleteCallback](): Data block complete"); Changed it to log level DEBUG and I got results.:oops: I guess going into detail on what is happening in the code got me to review that.
  12. Bert Laverman

    Not receiving some data (e.g. engine and controls data)

    okay, that thought hadn't occurred to me. I was assuming you were talking about my own application. That is an interesting question. I have no idea how SimConnect works on the FSX side, so I couldn't comment on that. Ah, a small misunderstanding. I said no data comes in, but neither an...
  13. Bert Laverman

    Not receiving some data (e.g. engine and controls data)

    For example, like this one: // Aircraft controls data aircraftControlsData_.clear(); aircraftControlsData_.add(DATAID_CONTROL_RUDDER, "RUDDER PEDAL POSITION", "Position", SIMCONNECT_DATATYPE_INT32); aircraftControlsData_.add(DATAID_CONTROL_ELEVATOR, "ELEVATOR...
  14. Bert Laverman

    Not receiving some data (e.g. engine and controls data)

    Ronald, Thank you for this insight. I'm however not sure it applies here, because it is not a mattor of having no data or being denied access, SimConnect is not sending any. I request a bunch of definition blocks one after the other, and only the one with the lights gets sent. CheckDispatch does...
  15. Bert Laverman

    Not receiving some data (e.g. engine and controls data)

    Can my inability to obtain controls data come from the fact that they are connected through FSUIPC and LINDA? Shouldn't matter for the general combustion indication though...
  16. Bert Laverman

    Not receiving some data (e.g. engine and controls data)

    I have a C++ client connecting to SimConnect and have inconsistent result on getting data returned. When I try to get the light data returned, I never got data sent for "LIGHT TAXI ON", which should return the state of the taxi light, but did get data for "LIGHT TAXI", which is the taxi lights...
Top