• 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.

Recent content by ZG862

  1. ZG862

    C# *Console* app?

    I'll second that. The documentation took me down an unwanted forms rabbit hole until I figured out that I was wasting my time...
  2. ZG862

    C# *Console* app?

    Sorry - been doing other things for a while now. Do you still need me to dig out the working code?
  3. ZG862

    MSFS20 MSFS2020 SimConnect in Winforms && Wpf WORKING, but some help needed. CODE EXAMPLES INCLUDED

    Yep - both of them. I'm going to run it again and double check that I get a sim start. Perhaps I can duplicate the RequestDataOnSimObject() in the Unpaused event too as belt & braces... Will report back. Edit: Sure enough, a combination of factors. I was calling RequestDataOnSimObject() only on...
  4. ZG862

    MSFS20 MSFS2020 SimConnect in Winforms && Wpf WORKING, but some help needed. CODE EXAMPLES INCLUDED

    @B21-soaring , did you get your own C# code working with RequestDataOnSimObject? I can get such requests to execute without error but never get data back on my "SimConnect.ReceiveMessage();". Repeatedly polling "RequestDataOnSimObjectType()" seems an inelegant solution. My request (which I...
  5. ZG862

    MSFS20 C# SimConnect Windows Form example

    I don't want to hijack this thread (so am happy to start a separate one if people would prefer) but I noticed that many of the LM examples for P3D do indeed call RequestDataOnSimObjectType within an endless loop rather than using RequestDataOnSimObject. Indeed, I've yet to find a managed code...
  6. ZG862

    P3D v4 Character animation in Prepar3Dv4

    Thanks Christian. It is obvious from those videos that you are very skilled at this; I've seen plenty of examples of "human" movement that looks anything but. Your videos on YouTube (I followed links on your website) raise many really interesting possibilities; I've seen that there are aircraft...
  7. ZG862

    P3D v4 Character animation in Prepar3Dv4

    Dusting off an old(ish) thread because I just watched these videos and they are brilliant! Christian, how do you embark your skydivers/pilots on their aircraft? Do the avatars have any awareness of its proximity such that they can board in a realistically animated manner (which seems like it...
  8. ZG862

    C# *Console* app?

    Bingo! You beauty! (There was another error in the switch statement where I pointed at element[1], but that did the trick.) So the [MarshallAs()] only needs to precede a string value that I'm requesting? I didn't understand what it was doing so blindly copied from the LM example - which started...
  9. ZG862

    C# *Console* app?

    Right - I think I know that the problem is with my Struct, but I can't figure out what I'm doing wrong. I have: [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)] struct Struct1 { [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]...
  10. ZG862

    C# *Console* app?

    OK, so now I'm making progress. The Forms thing looks like it may be a red herring in that there is no need to pass a form handle when instantiating a SimConnect object. The LM Scenario Controller sample shows that you pass null pointers and zeros, like this: SimConnect = new SimConnect("Managed...
  11. ZG862

    C# *Console* app?

    Thanks DD - appreciate the advice. I'm actually making some progress omitting forms entirely and will update when I have something more concrete to report. Z
  12. ZG862

    C# *Console* app?

    VS19 Community. Reasonable sure I did select WinForms, but below is the list from Help/About (many of which I don't recognise as things I want/need). If the below means the answer to your question is "no", is it Tools/Get Tools and Features to install it? List of stuff from Help/About...
  13. ZG862

    C# *Console* app?

    Well: Can open, worms everywhere. While I was waiting, I kept searching and came across this: https://prepar3d.com/forum/viewtopic.php?t=130820 ...which in summary says "Don't try creating a console app. Doesn't work. Use a forms app." So, realising that all C# apps are pretty much the same...
  14. ZG862

    C# *Console* app?

    Morning chaps. Long time no visit. Hope you're all surviving lockdown[n]. Please can you give me a nudge in the right direction? I've previously coded a prototype "application" (=scrappy bit of test code) in VBA that successfully connected to SimConnect and exchanged various bits of flight...
  15. ZG862

    Please can you help me with my maths?

    Wilco. Ta.
Back
Top