Coder Social home page Coder Social logo

msfs2020-go's Introduction

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

msfs2020-go's People

Contributors

ip999 avatar lian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

msfs2020-go's Issues

Window always in front?

Hello,

is it possible that that windows is always visible in front of FS 2020? Or is it only for additional displays?

Port configuration

Is it possible to make the port configurable, so that we can use a different port than 9000?

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!

Airplane still not moving

Hello,
in my case the Airplane on the map is still not moving (v 0.0.5). Stuck at Birmingham.
The displays of altitude, speed, etc. work.

Best regards
Raller

Access from other machines on the local network?

Thanks for this nice tool! I was wondering if there could be an option to serve the map somewhere else than localhost so that other machines on the local network could access it, possibly with some confirmation prompt on the host for security reasons, but else with just the user setting up permissions in the first place?

I believe it would make vfrmap much more flexible, and also a nice and open alternative to those mobile applications. Trusted people could even follow flights on remote machines, provided they use something like Zerotier; note this would also be useful for people who use cloud computing to run MFS 2020.

Some suggestions

It would be nice if you could fold that upper area with flight instruments(alt, speed and etc). Also would be nice if you can access different flight instruments with url like localhost:9000/Alt for altimeter , localhost:9000/Speed for speed and etc(to put where you want), and maybe with graphical visualization like https://github.com/sebmatton/jQuery-Flight-Indicators or https://github.com/uw-ray/Skyhawk-Flight-Instruments or https://codesandbox.io/s/six-pack-flight-instruments-fl7b8?from-embed

False positive

Just to let you know I got a false positive from windows security.

trojan

Google Maps option

Would it be possible to get google maps back? Maybe as an option we must select ourselves and provide our own API code etc.
The satellite views with label overlays on google maps is very good for this type of thing.

v0.0.2 causing jerky gameplay

Just tested this out. It runs the map fine, but the gameplay is very jerky when this plugin is running. As soon as i close it the game starts to run smoothly again.

[Suggestion] Change cursor color

In terrain mode, black cursor is difficult to see, its posible to chance de color to white or by a option

Thanks, this mode is my favorite by far

Suggestions

I am not sure if this is possible, but wanted to toss out some suggestions.

  1. Is it possible to place a marker on the map, and have that appear in game as a custom way point?
  2. Can you show the Departure and Destination points on the map?
  3. Can we place multiple markers on the map?

A few friends and I love using this add-on, its really made our trips much more enjoyable. Kudos on the good work.

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`

Idea non exit

hi,

is it possible to make vfrmap wait for connection

	s, err := simconnect.New("msfs2020-go/vfrmap")
	if err != nil {
		print("Wait for connection...\n")
		time.Sleep(5*1000*1000*1000)
		goto startConnection

	}

and restart when the socket to MSFS was lost?

Strange behavior when multiple users open the map

I don't know if this is known yet, but I had something very strange moments with the VFR map yesterday.
I have used the mod a few times now, it worked fine, but yesterday I wanted to test how it is when
I share the mapserver so that external people can open the map as well. (port forward) This works so far,
but as soon as a second or third person opens the card, Flight Simulator goes crazy. The following is
happens:

Sim is running active flight:

Second person opens the card : Plane is teleported randomly or SIM crashes completely.

New flight is started and the map is opened by 2 or 3 persons:

Plane starts somewhere in the world or SIM crashes.

Is this known? This has not happened every time, but quite regularly.


exe wont launch since 0.0.3 - simconnect error

I am fairly sure this is something on my end, as I waited to see if anyone else reported but there has been a ton of releases and no one has complained, but since 0.0.3 which changed to openstreetmap my exe opens then closes. If I launch it from CMD I get the following:

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 The operation completed successfully.

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

I know this isn't an issue with the software itself as others would be having, but can anyone advise on what I have done wrong here. I am quite new to all of this but it was working at one point :)

Thanks,

[Suggestion] Using drone mode

Thank you for wonderful add-on.

I am curious, is it possible to use at drone mode?
now It supports only flight mode, but if it is possible to use drone mode, that's awesome for me.

Access away from LAN

I stream my game from a remote server.

Looking through the code, it looks like at present this only works over LAN but I presume there's no reason this couldn't be opened up to be available on a port that can be accessed remotely?

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

Error in console

Hi,

Many times when i connect and start ingame a flight.
My consoles says something going wrong look at the console.
when i check the console cmd, i see some text talking about closes 1001 socket (go away) message.
so the browser starts the page and i can click the button on low left and i see the map but after a few seconds its disconnecting.
How can it be resolved?

some scanners from virustotal.com triggers false-postive

all important scanners are fine with the builds. (Microsoft, Avast, ClamAV, F-Secure, CrowdStrike Falcon)

but MaxSecure triggers a false-positive for Trojan.Malware.300983.susgen that i haven't found a way to work around.

https://www.virustotal.com/gui/file/946f9fa093369c29e3f8db51293b84bc7296ae4ed68112b2aebfa71ae85e349c/detection

previous discussion #13

edit: Microsoft now too, although yesterday it liked the exact same zip file, now it says Trojan:Win32/Emali.A!cl

this is from the official golang website: https://golang.org/doc/faq#virus

Why does my virus-scanning software think my Go distribution or compiled binary is infected?

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.

Readme

Hi, I would like to contribute, but I'm not too familiar with go.
Can you maybe update the readme on how to build the app?
I would really appreciate that

Night Mode?

Would it be possible to add a night-mode feature so it's better on the eyes? Are you even able to since it seems that the data is pulled from a website such as OpenStreetMap? Anyway if because of that it makes it incredibly difficult if not impossible, what about filters or something? To layer over the map.

Backlog/Kanban board

Hi, would you want to work from a Kanban board with an icebox, backlog etc? There are lots of feature requests and plans, and if I'm to help with the user interface, it would be useful to know which features will be developed before I put the effort in to design them. We could any free one, but here are some that claim to integrate with Github https://stackshare.io/kanban-for-github-issues

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

Simconnect causes significant FPS drop.

When I have simconnect installed I am getting 8-15 FPS or lower in big cities like Paris, what makes unplayable experience, I uninstalled simconnect now I am getting regular 20-30 FPS. My setup gtx1070/I7 6700k cpu/16 RAM. Anyone else having these issues? If it's simconnect issue, maybe there is a way to read flight data directly from RAM, without simconnect.

How to open in program

Hi - I can get the map to open in the browser but how exactly do I get it to then open within MSFS?

Is there a way to use it with my own API key?

Hello Lian

Thanks for your great work!

I have compiled your version 0.0.1 and 0.0.2 with go and tried to use my own google api key

cmd > vfrmap.exe -api-key [mykey]

it just works for a second and then I get an javascript error in my browser
do I something wrong?
can I implement my key direct in your code somewhere?

your version 0.0.6 works really fine.
but google satellite data together with MSFS is just wow

Request: Remaining Fuel

Thanks for this awesome app! Is it possible to also display the remaining fuel (probably percent, but however you can get and display it)?

Python alternative

Hello, I wanted to make you aware of the work that we are doing over on MSFS2020-cockpit-companion as this has a similar objective, albeit written in Python rather than Go.

In building the web interface over there I looked at the work that you had done around the moving map which I found very helpful, in particular in pointing me towards Leaflet JS as the mapping library which I wasn't aware of before.

The web interface we have now is a bit more advanced than yours. As well as the moving map it includes a variety of data such as autopilot settings and control surfaces. We have also built in the functionality to set data within the simulator (eg autopilot settings, headings, altitude, etc) and do things like trigger emergencies (eg engine fire, hydraulic failure, etc). We also lack some features that you have (eg teleporting).

There's a fair bit in the repo but the part that is similar to your vfrmap is glass_server.py. You can see a full list of features at https://msfs2020.cc/

I wanted to make you aware of the project and invite you to repurpose any parts of the front end HTML/CSS/JS that you might find useful in your project if you wished.

VRF MAP

Hi, I am having an issue with VFR Map,
After downloading the VFR Map software I click on the .exe file to extract it and a black little console open for just a second and disappear, I tried with the version 6 and 5 same result.
Can you tell me what's wrong, thanks a lot.

Sincerely
Jacques

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">

simconnect.dll fails every time

Unzip to folder.
Start MSFS2020
Start a flight
Launch vfrmap.exe
Nothing happens.
Open command prompt, launch vfrmap.exe, get:

vfrmap -verbose

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: Failed to load C:\Users\dannb\Downloads\vfrmap-win64-v0.0.7\SimConnect.dll: The specified module could not be found.

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

The file is there:
Directory of C:\Users\dannb\Downloads\vfrmap-win64-v0.0.7

09/14/2020 08:22 PM

.
09/14/2020 08:22 PM ..
09/14/2020 08:22 PM 58,368 SimConnect.dll
09/05/2020 06:33 AM 5,375,488 vfrmap.exe
2 File(s) 5,433,856 bytes
2 Dir(s) 737,648,037,888 bytes free

Font Size

Can I increase the font size of place names on the map?
The place name is too small to see on the tablet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.