• 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

    Questions about pointer to pData in MyDispatchProc1

    I won't go into the "how to correctly say this in English". Yes, you seem to understand correctly. As long as the pointer in in its generic form, only the common fields can be accessed. Once casted to the more specific form the compiler will accept you referring to the other fields. 👍
  2. Bert Laverman

    Questions about pointer to pData in MyDispatchProc1

    Hi! Yes, this is indeed the effect of "is inherited from". If you search for the SIMCONNECT_RECV_OPEN struct in the Learning Center (aka the Windows Help file of the SDK), then you'll see it is declared as: struct SIMCONNECT_RECV_OPEN : public SIMCONNECT_RECV Effectively that means that the...
  3. Bert Laverman

    P3D v5 Passing strings in SimConnect

    These functions are for blocks of data where you use variable-length strings rather than fixed-length ones, so you can conserve bytes while exchanging data with the simulator. I think you have to consider the age of the API as well as the C language. Using a block of memory where you have to...
  4. Bert Laverman

    January 2022 update for CsSimConnect

    Been silent for a while, but here is the update on what was happening: https://cssimconnect.wordpress.com/2022/01/30/january-2022-update-events-and-data-flying-around/ Cheers, Bert
  5. Bert Laverman

    Can't seem to find many airports in default scenery

    Ok, found it. There can be multiple Airports in each Subsection. Also found there are at least three different Ids for Airports; the one currently documented, a Prepar3D new addition, and an MSFS addition.
  6. Bert Laverman

    Can't seem to find many airports in default scenery

    I've been using the BGL File Format documentation to read scenery files, so I can build a list of airports and parkings. I'll use this data for a small app to test CsSimConnect, by creating an AI aircraft at user-provided parking locations. So far all is progressing nicely, and I appear to be...
  7. Bert Laverman

    FSX Info needed for add-on please

    Have you tried using the UI? I only added the README with the CLI instructions because someone told me he _only_ wanted CLI build instructions and would not accept pre-built ZIPs. I'll do a refresh of the README and verify it works, and upload a ZIP with a release build of the current state. I...
  8. Bert Laverman

    FSX Info needed for add-on please

    For an example of how to send events with CsSimConnect, please take a look at the "AutoPilotController" demo app. It uses ClientEventButtons from the CsSimConnectUIComponents package. Each button has a ClientEvent field which is initialized from the name of the event, such as "ap_master" for the...
  9. Bert Laverman

    FSX Info needed for add-on please

    Shameless plug: CsSimConnect! ;-)
  10. Bert Laverman

    FSX Info needed for add-on please

    Hey Brandon, exciting project! Throwing some questions in another direction: are you planning on writing just a driver or an application with a UI showing e.g. device and FS connectivity status? Also, are you going to code in C/C++ or C#? The thing is: you have three simulator platforms to take...
  11. 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...
  12. 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...
  13. 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...
  14. 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...
  15. 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...
  16. 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...
  17. 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...
  18. 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...
  19. 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...
  20. 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...
Top