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

Silverlight Flight Tracker

ollyau

Resource contributor
Messages
1,038
Country
us-california
Hey everyone,

I'm trying to build a FSX flight tracker using Silverlight and Beatle's SimConnect library (beta 3), but I can't seem to make it connect to FSX.

I originally tried the MovingMapSL sample, but I didn't have the Virtual Earth library. I got the newer version of the Bing Maps library, and got everything to show up alright, but it didn't seem to want to connect to FSX. I tried creating a new project and moving the code over (since I thought something may have gotten lost in the VS2008 project -> VS2010 project conversion), but it still didn't work.

I'm not getting any messages from the SimConnect event handlers I set up either.

I haven't got any prior experience in Silverlight, but I have done some stuff with the SDK's SimConnect library in both VB.NET and C# winforms programs.

Does anyone have any ideas or suggestions on where to start?

Thanks,
Orion
 
Are you running the Silverlight Policy Server (source included in my SDK) on the FSX computer (this is required to allow Silverlight apps to make socket connections)? Did you add an entry to your SimConnect.XML file to allow connections on a port that Silverlight can connect to (has to be in the range 4502 - 4534 - I generally use 4504 for IPv4 and 4506 for IPv6). See the section "A note on Silverlight Support" in the readme included with the SDK.
 
Nope. Must have skipped over that bit. Ran the policy server and added the SimConnect.xml and it works nicely. Thanks Tim!
 
Glad that got you running, it's a real pain but the only way to make Silverlight do socket communications (which is at least better than the Windows Phone version of Silverlight which doesn't do any Socket communications at all currently).
 
Back
Top