connect to microsoft flight simulator 2020 using golang

Related tags

Network msfs2020-go
Overview

msfs2020-go

simconnect package msfs2020-go/simconnect connects to microsoft flight simulator 2020 using golang.

cross-compiles from macos/linux, no other dependencies required. produces a single binary with no other files or configuration required.

status

msfs2020-go/simconnect package currently only implements enough of the simconnect api for examples and vfrmap.

releases and download

program zips releases are uploaded here

tools

  • vfrmap local web-server that will allow you to view your location, and some information about your trajectory including airspeed and altitude.

examples

Why does my virus-scanning software think this program is infected?

From official golang website https://golang.org/doc/faq#virus

"This is a common occurrence, especially on Windows machines, and is almost always a false positive. Commercial virus scanning programs are often confused by the structure of Go binaries, which they don't see as often as those compiled from other languages."

Issues
  • Cannot open on iPad

    Cannot open on iPad

    Hi! Tried several things, but couldn't open it on iPad. Can you make a more clear readme on how to make it happen!?

    Thanks a lot for such a great plugin!

    opened by zazaboeing 11
  • It loads but says

    It loads but says "This page can't load Google Maps correctly"

    The map is dark and has "For development purposes only" written all over it.

    opened by Raging-Beard 9
  • Tip: Make it more iPad friendly

    Tip: Make it more iPad friendly

    With some easy code in top of index.html header you can make it more user friendly on the iPad as webapp. When you open the app inside the browser, you can than choose "Add to homescreen". When opened directly from the homescreen, all the controls like favorites and address bar are hidden and you will get a more native experience.

    Following code inside header.

    <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black"> <meta name="apple-mobile-web-app-title" content="VFRMap">

    opened by BertNienhuis 9
  • Implement some design suggestions from #11

    Implement some design suggestions from #11

    This PR adds two things:

    New vfrmap design

    Based on suggestions from #21, this PR adds a different design with a small settings menu to toggle a dark mode and instrument displays. I imported two external sources for this, Tailwind and Alpine.JS. They are currently not part of the bindata. If you want me to change that, I'm happy to provide another PR.

    You can find a screenshot of it in #21.

    go-bindata generation helpers

    There was not really a hint on how to generate all the bindata, so I added a Makefile to the vfrmap project and the html subdirectory, so when running make generate, the dependencies (leafletjs, the rotatedMarker plugin) will be downloaded and prepared. Afterwards, go generate will be run. The download of the vendor files can be triggered on its own from the html/Makefile using make vendor.

    hacktoberfest-accepted 
    opened by Rukenshia 7
  • black terminal stuck at Kitty Hawk

    black terminal stuck at Kitty Hawk

    Connected to Flight Simulator! SIMCONNECT_RECV_ID_OPEN KittyHawk

    opened by rlego 6
  • Trojan:Win32/Emali.A! Found by Microsoft Security

    Trojan:Win32/Emali.A! Found by Microsoft Security

    Trojan:Win32/Emali.A! Found by Microsoft Security

    opened by Raul-WA4TPR 4
  • flight sim goes crazy

    flight sim goes crazy

    Hello I am using Flight Sim to fly the plane externally. I am using the Autopilot with heading control using the keyboard. Sometimes the FlightSim goes crazy and the heading starts rotating and cannot stop it. Seems to be related to this map program. Thanks Matt

    opened by mattinjersey 4
  • Can't find SimConnect.dll

    Can't find SimConnect.dll

    I have to following error when trying to launch vfrmap.exe

    `panic: Failed to load D:\SimConnect.dll: The specified module could not be found.

    goroutine 1 [running]: main.main() /users/lian/prj/go/lian/msfs2020-go/vfrmap/main.go:76 +0x88b`

    opened by CyrilPaulus 4
  • Is it possible to turn off teleport?

    Is it possible to turn off teleport?

    Hello lian and thank you for this amazing tool.

    I was tinkering around a bit with it - works amazingly well. I own a URL at which I created a webforward pointing to my external IP address. In my router I forwarded port 9000 to the machine running MSFS - so now if i go to http://[URL]:9000 I can view the map from anywhere in the world - even my phone or tablet.

    That also means I could in theory broadcast this URL to friends or use it for streaming so people can watch my flight in a different tab if they want to - however I noticed there's also a function that allows me (or anyone accessing the map) to click anywhere on the map and then teleport the plane to that location - which of course would be terrible if someone did that during a stream - and also could be viewed as cheating ;)

    Would it be possible to include a function to disable the "teleport" function ?

    Cheers,

    RegenCoE

    opened by RegenCoE 3
  • vfrmap.exe doesn't work by default on Steam/Linux

    vfrmap.exe doesn't work by default on Steam/Linux

    When running it on Steam/Linux, it gives the following error:

    ~/Downloads > wine vfrmap.exe
    002c:fixme:winediag:LdrInitializeThunk wine-staging 6.22 is a testing version containing experimental patches.
    002c:fixme:winediag:LdrInitializeThunk Please mention your exact version when filing bug reports on winehq.org.
    00e8:fixme:advapi:RegisterEventSourceW ((null),L"AdobeARMservice"): stub
    00e8:fixme:advapi:ReportEventW (CAFE4242,0x0004,0x0000,0x00000000,00000000,0x0001,0x00000000,0187FC6C,00000000): stub
    00e8:fixme:advapi:DeregisterEventSource (CAFE4242) stub
    011c:fixme:process:SetProcessPriorityBoost (FFFFFFFFFFFFFFFF,1): stub
    011c:fixme:powrprof:PowerRegisterSuspendResumeNotification (0x00000002,0000000000B5FD00,0000000000B5FCE8) stub!
    
    msfs2020-go/vfrmap
      readme: https://github.com/lian/msfs2020-go/blob/master/vfrmap/README.md
      issues: https://github.com/lian/msfs2020-go/issues
      version: v0.0.7 (2020-09-05_04:33:49)
    
    panic: SimConnect_Open error: -2147467259 Success.
    
    goroutine 1 [running]:
    main.main()
            /users/lian/prj/go/lian/msfs2020-go/vfrmap/main.go:115 +0x2125
    

    How to fix:

    1. Edit SimConnect.xml:

    ~/Downloads > locate SimConnect.xml /mnt/disk/home/user/.local/share/Steam/steamapps/compatdata/1250410/pfx/drive_c/users/steamuser/AppData/Roaming/Microsoft Flight Simulator/SimConnect.xml

    Set port from default of 500 to 2222:

    <?xml version="1.0" encoding="Windows-1252"?>
      
    <SimBase.Document Type="SimConnect" version="1,0">
        <Descr>SimConnect Server Configuration</Descr>
        <Filename>SimConnect.xml</Filename>
        <SimConnect.Comm>
            <Descr>Static IP4 port</Descr>
            <Protocol>IPv4</Protocol>
            <Scope>local</Scope>
            <Port>2222</Port>
            <MaxClients>64</MaxClients>
            <MaxRecvSize>41088</MaxRecvSize>
        </SimConnect.Comm>
        <SimConnect.Comm>
            <Descr>Static IP6 port</Descr>
            <Protocol>IPv6</Protocol>
            <Scope>local</Scope>
            <Port>501</Port>
            <MaxClients>64</MaxClients>
            <MaxRecvSize>41088</MaxRecvSize>
        </SimConnect.Comm>
        <SimConnect.Comm>
            <Descr>Custom Pipe</Descr>
            <Protocol>Pipe</Protocol>
            <Scope>local</Scope>
            <Port>Custom\SimConnect</Port>
            <MaxClients>64</MaxClients>
            <MaxRecvSize>41088</MaxRecvSize>
        </SimConnect.Comm>
        <SimConnect.Comm>
            <Descr>Dynamic IP4 port</Descr>
            <Protocol>IPv4</Protocol>
            <Scope>local</Scope>
            <Port>0</Port>
            <MaxClients>64</MaxClients>
            <MaxRecvSize>41088</MaxRecvSize>
        </SimConnect.Comm>
        <SimConnect.Comm>
            <Descr>Dynamic IP6 port</Descr>
            <Protocol>IPv6</Protocol>
            <Scope>local</Scope>
            <Port>0</Port>
            <MaxClients>64</MaxClients>
            <MaxRecvSize>41088</MaxRecvSize>
        </SimConnect.Comm>
        <SimConnect.Comm>
            <Descr>Default FSX Pipe</Descr>
            <Protocol>Pipe</Protocol>
            <Scope>local</Scope>
            <Port>0</Port>
            <MaxClients>64</MaxClients>
            <MaxRecvSize>41088</MaxRecvSize>
        </SimConnect.Comm>
    </SimBase.Document>
    
    
    1. Use the following SimConnect.cfg and placed it in the same directory as vfrmap.exe
    ~/Downloads > cat SimConnect.cfg 
    ; Example SimConnect client configurations
    
    ; new FS pipe
    [SimConnect]
    Protocol=IPv4
    Address=127.0.0.1
    Port=2222
    ;Protocol=Pipe
    ;Port=2222
    ;Address=.
    
    ; Automatic detection, backward compatible with FSX
    [SimConnect.1]
    Protocol=IPv4
    Address=127.0.0.1
    Port=2222
    
    [SimConnect.2]
    Protocol=Ipv6
    Port=2222
    Address=127.0.0.1
    
    [SimConnect.3]
    Protocol=Ipv4
    Address=127.0.0.1
    Port=2222
    
    ; default FSX pipe
    [SimConnect.4]
    Protocol=Pipe
    Address=.
    Port=2222
    
    ; global pipe, use the configuration of the remote server
    [SimConnect.4]
    Protocol=Pipe
    Address=.
    Port=2222
    
    ; global IPv6, use the configuration of the remote server
    [SimConnect.5]
    Protocol=IPv6
    Address=127.0.0.1
    Port=2222
    
    
    ; global IPv4, use the configuration of the remote server
    [SimConnect.6]
    Protocol=IPv4
    Address=127.0.0.1
    Port=2222
    
    1. Optionally, enable developer mode in MSFS 2020, install MSFS SDK, and copy SimConnect.dll to the same directory as vfrmap.exe:

    ~/Downloads > cp ~/.wine/drive_c/MSFS\ SDK/SimConnect\ SDK/lib/SimConnect.dll ~/Downloads

    opened by darwinte 1
  • Since today after a windows 10 release, the program stops when starting

    Since today after a windows 10 release, the program stops when starting

    The black window is shown, then it closes itself immediately

    opened by Croniat 0
  • update VFRMap CSS so the HUD is proportional to page width

    update VFRMap CSS so the HUD is proportional to page width

    The VFRMap CSS for the HUD icons and text is currently fixed size, which means if you just want a small map window in the corner, it turns into this:

    image

    Making the HUD div use text-size: 1.75vw; would solve that problem:

    image

    opened by Pomax 0
  • Openflightmap

    Openflightmap

    Hello,

    first thank you for your excellent work 👍 The navigational data of oipenaip.net are very lagging. Is it possible to integrate also openflightmap as additional map like openstreetmap. In this map the airspaces are included and so the map is not lagging. Also the pattern circuits are included, for example in germany.

    []https://github.com/openflightmaps [](https://www.openflightmaps.org/wp-content/plugins/ofmTileMap/ofmTileMap_full.php?airac=2103&language=local&coverage&controls

    opened by DeltaTango69 0
  • Easy enough to provide an interface

    Easy enough to provide an interface

    Hi Friend You could package a C# application using Webview2 that would be able to launch and view your project. it might be easier for those that aren't well versed with these things. Also, have you tried compiling in 64bit to work around the defender false positives?

    Best of luck. Love your work :)

    Cheers, Chris.

    P.S. feel free to close this issue. it's not really an issue.

    opened by boy1dr 0
  • Frequen

    Frequen

    Would it be possible to display the frequencies. ILS, Com, etc. That would be ideal for the card. Many thanks and greetings Peter

    opened by Flyinglieni 0
  • Added TransmitClientEvent

    Added TransmitClientEvent

    I wanted to use this library for an arduino project. But since it didn't include the TransmitClientEvent function I could only fetch data, not push.

    So that's why I would like to add this function.

    opened by Xartos 0
  • Map from other webservers?

    Map from other webservers?

    Would it be possible to load another map to use for VFR flight. I would like to use this map... https://minkarta.lantmateriet.se/

    opened by Lapsol 0
  • No GMaps? OSM showing names in local language.

    No GMaps? OSM showing names in local language.

    Since OSM shows the names of cities and other things in the local language/letters, it would make sense to let the people choose Google Maps too. Or is there a way to change the language behavior in OSM?

    opened by retikulumx 2
  • Incorrect Heading

    Incorrect Heading

    The heading between what's displayed on this map vs the in-game hud is off by 14 or so degrees.

    anyone else having this issue?

    opened by psycho2288 0
Releases(v0.0.7)
Owner
lian
lian
inlets-connect is a proxy that supports HTTPS and the CONNECT method

inlets-connect inlets-connect is a proxy that supports HTTPS and the CONNECT method. It can be deployed as a side-car or stand-alone to proxy to a sin

Alex Ellis 9 Jul 19, 2021
A simple low bandwidth simulator written in go

NETSNAIL 0.8 ABOUT Netsnail is a simple network proxy that simulates low bandwidth. RUNNING Usage of netsnail: -d=0: the delay on data transfe

Per Arneng 23 May 19, 2021
FLoC Simulator

FLoC Simulator Command line FLoC simulator to calculate CohortID with using host list and cluster data. Build and Run Demo $ cd $ cd demos/floc_sampl

Shigeki Ohtsu 35 Oct 1, 2021
secure scuttlebutt network simulator

Network Simulator a brief exposition on the network simulator to be built as part of SSB's NGI Pointer grant For the remainder of May—and likely parts

null 19 Jan 9, 2022
A LoRaWAN nodes' and network simulator that works with a real LoRaWAN environment (such as Chirpstack) and equipped with a web interface for real-time interaction.

LWN Simulator A LoRaWAN nodes' simulator to simulate a LoRaWAN Network. Table of Contents General Info Requirements Installation General Info LWN Simu

ARSLab 19 Jan 14, 2022
An easy-to-use, flexible network simulator library in Go.

ns-x An easy-to-use, flexible network simulator library for Go. Feature Programmatically build customizable and scalable network topology from basic n

Bytedance Inc. 89 Jan 22, 2022
golife is a cell evolution simulator.

golife WORK IN PROGRESS golife is a cell evolution simulator. It presents autonomous organism with inner properties and behavior (hunter or prey) that

Jean-Thierry BONHOMME 0 Dec 30, 2021
Proxtor - A simple tool to connect to the network using Tor

Proxtor A simple tool to connect to the network using Tor. Installing Go to rele

null 1 Jan 1, 2022
User enumeration with Microsoft Teams API

UserEnumTeams Description Sometimes user enumeration could be sometimes useful during the reconnaissance of an assessment. This tool will determine if

immunIT 121 Jan 13, 2022
Bridge between mattermost, IRC, gitter, xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp, keybase, matrix, microsoft teams, nextcloud, mumble, vk and more with REST API

bridge between mattermost, IRC, gitter, xmpp, slack, discord, telegram, rocketchat, twitch, ssh-chat, zulip, whatsapp, keybase, matrix, microsoft teams, nextcloud, mumble, vk and more with REST API (mattermost not required!)

Wim 4.5k Jan 17, 2022
Microsoft Graph Client Library for Go

msgraph.go v1.0 beta (The online references at pkg.go.dev above are not shown due to huge size of packages - #23) Introduction Microsoft Graph client

YAEGASHI Takeshi 60 Dec 5, 2021
Downloads the Windows 10 wallpapers provided by Microsoft.

microsoft-wallpapers Preparation Prepare an input file that contains a list of links from the Microsoft website that lead to wallpapers. This list is

River Wooley 0 Nov 29, 2021
protoc-gen-grpc-gateway-ts is a Typescript client generator for the grpc-gateway project. It generates idiomatic Typescript clients that connect the web frontend and golang backend fronted by grpc-gateway.

protoc-gen-grpc-gateway-ts protoc-gen-grpc-gateway-ts is a Typescript client generator for the grpc-gateway project. It generates idiomatic Typescript

gRPC Ecosystem 47 Jan 16, 2022
A tool for connect url write by Golang

goURL A tool for connect url write by Golang To-Do In this month (2021.11), our development plan is adding the following functions: -X, a flag to choo

null 0 Nov 8, 2021
Connect your devices into a single private WireGuard®-based mesh network.

Wiretrustee A WireGuard®-based mesh network that connects your devices into a single private network. Why using Wiretrustee? Connect multiple devices

null 1.8k Jan 14, 2022
Connect to SagerNet in the LAN

SagerConnect Connect to SagerNet in the LAN (no configuration required) Usage Upgrade SagerNet to 0.4-rc02 or later Enable "Allow Connections from LAN

Project S 39 Oct 1, 2021
A tool helps connect to your AriPods when sound playing in your Mac

Auto connect to airpods this tool helps connect to your AriPods when sound playing in your Mac. dependencenes SwitchAudioSource $ brew install switcha

Fndroid 2 Dec 9, 2021
Fail2Connect - Ban connections that fail to connect

Fail2Connect - Ban connections that fail to connect Fail2Connect is a program written in Golang. It reads log files like /var/log/openvpn.log or /var/

null 1 Oct 19, 2021
Connect directly to Docker-for-Mac containers via IP address 🐳 💻

Docker Mac Net Connect Connect directly to Docker-for-Mac containers via IP address. Features L3 connectivity: Connect to Docker containers from macOS

Chipmunk 10 Jan 14, 2022