G1000 bezel FS2020

You can talk about anything flight (simulation) related here

Moderators: russ, Ralph

Message
Author
jplewis02
Posts: 34
Joined: Mon May 04, 2020 5:16 am

Re: G1000 bezel FS2020

#21 Post by jplewis02 »

G1000 ENABLEMENT HOW-TO GUIDE.
If you have suffering along with the stock limited functionality and have been waiting impatiently for the ASOBO Glass Cockpit updates. Well we have an alternative solution that provides the functionality you need.

MobiFlight Installation[Updated 01-09-2021]
MobiFlight installation / integration is as easy as downloading and install the MobiFlight zip file from [https://www.mobiflight.com](https://www.mobiflight.com/). As of this writing you need at least ver. 7.10.0
There may be security warnings when you extract the zip due to unsigned drivers. Scan the file yourself before extraction and decide on the best course of action for you.
Here are the steps that you need to do to get access to the new events:
These are the instructions from the [Flight Tracker user guide](https://github.com/nguyenquyhy/Flight-T ... ntegration) to install Mobiflight and get the module.

1. Have MSFS 2020 stopped.
2. Install MobiFlight - https://www.mobiflight.com/en/download.html
3. Run MobiFlight
4. In the Extras -> Settings menu, at the bottom, check "I would like to receive beta version updates"
5. Click "Help -> Check for update"
6. After update, navigate to the install location for MobiFlight on your machine.
7. There should now be a "MSFS2020-module" folder, open that folder.
8. Copy the "mobiflight-event-module" folder to your MSFS community folder.
9. Relaunch MSFS 2020
10. Configure Flight-Stream-Deck with [newly supported events](https://github.com/nguyenquyhy/Flight-T ... s.cs#L1317), courtesy of MobiFlight! They are like the normal SDK events, except the wasm module in the community folder interacts with the gauges/instruments directly when receiving them.
That’s it, integration done!

A little bit of background to help explain the module. Microsoft have changed the way they do new Addons for FS2020 and now use Web Assemblies. This event module integrates into FS2020 itself and extends the events list that are supported via SimConnect, SimConnect is really just a way to communicate between the Sim and external software and hardware. Don’t be at all surprised to find future Asobo extensions to use the same technique.

Other tools I use

FSUIPC7 Pretty much only used to see what events are triggered

VS Code with LUA extensions for LUA editing though you could use Notepad ++ if you like.

New MobiSoft Events.


There a couple of ways to get the list of new events that relate to to the various Glass Cockpit versions.

One is to gather the info from Mobisoft,com itself.

Another way (This is how I did it) I use the Flight Tracker Structs.cs file which also integrates with MobiFlight. if you go to the Flight Tracker Git Repo, and open the https://github.com/nguyenquyhy/Flight-T ... mDeck.Core Folder you will find the file that lists all the available flight Tracker events and variables. Look for the Events section then just search for the MOBIFLIGHT events that were added when Flight Tracker added MobiFlight integration.
When there are new releases, I just import the events and variables into a simple spreadsheet and then use filters on the data to find what need.

A thrid option is to use this list: https://pastebin.com/fMdB7at2

Air Manager
There is currently a Beta Version 4 available for download from Sim Innovations. Its free at present I think. https://SimInnovations.com. I have found it to be stable and only a couple of minor issues present.

Updating the overlay yourself.

Once familiar with Air Manager you can go find the XPlane G1000 overlay or other gauge in the online gauge repository in the app.

You will be editing the LUA file for the overlay (logic.lua) This one does not yet support FS2020. The Changes or additions you’ll make are rudimentary. See here https://www.youtube.com/watch?v=lLvlqMB for a full video series on gauge construction. The main videos ones you might want to look at are for Dials and Buttons.

These examples below use the G1000 Overlay for Xplane as our example.

What you will be adding are new lines for FS2020_Events. Simply open the logic.lua file look inside the various callback functions associated with each Button or Dial to see the existing events. Look for the xpl_command(“Dataref name”) lines…
I replaced or added FS2020_Event(“eventname”) I use the MOBIFLIGHT events because it drives the current G1000 Logic so you can do minimal coding to get things working.

MOBIFLIGHT Events add what you will need to make your FS2020 glass panel work. In some cases you may / will need to craft your own logic too (I did for Target Altitude but it is pretty simple stuff. So lets get down to an example or three:

Swapping Selected Nav Radio to be tuned, Nav1 or 2

Code: Select all

function nav_ff()
–fs2020_event(“NAV1_RADIO_SWAP”)
fs2020_event(“MOBIFLIGHT.AS1000_PFD_NAV_Switch”)
–xpl_command(“sim/GPS/g1000n”…g_unitpos…"_nav_ff")
sound_play(click_snd)

end

button_add(nil,“ff_button.png”, 102,107,50,32, nav_ff)
Pressing Softkey 6 (CDI)

Code: Select all

function sc_6_click()
–fs2020_event(“TOGGLE_GPS_DRIVES_NAV1”)
fs2020_event(“MobiFlight.AS1000_PFD_SOFTKEYS_6”)
sound_play(click_snd)
end

button_add(nil,“uparrow_button.png”, 640,852,50,32, sc_6_click)
That’s about as complex as it needs to be to get started. If you already have a Knobster then you can really dial up your control!

Important to note
MOBIFLIGHT is Donate-Ware developed in Germany (I Think) If this helps you along PLEASE help out the community and support further development by sending a few dollars or whatever your local currency is, to help support the product development efforts! Oh and spread word too!!!
Last edited by jplewis02 on Sun Jan 10, 2021 5:24 am, edited 1 time in total.

stretchman07
Posts: 6
Joined: Sat Oct 03, 2020 8:43 pm

Re: G1000 bezel FS2020

#22 Post by stretchman07 »

Thank you @jplewis02 for your detailed instructions and for the effort you put into figuring this out. I and I'm sure a number of other people on this forum appreciate your efforts. In your instructions you refer to locating a "MSFS2020-MODULE" folder in the extracted MobiFlight zip file. I've downloaded "MobiFlightSetup-7.10.0.exe" and extracted it. None of the extracted folders have a name of "MSFS2020-MODULE", am I missing something here?

jplewis02
Posts: 34
Joined: Mon May 04, 2020 5:16 am

Re: G1000 bezel FS2020

#23 Post by jplewis02 »

stretchman07 wrote: Sat Jan 09, 2021 9:09 pm Thank you @jplewis02 for your detailed instructions and for the effort you put into figuring this out. I and I'm sure a number of other people on this forum appreciate your efforts. In your instructions you refer to locating a "MSFS2020-MODULE" folder in the extracted MobiFlight zip file. I've downloaded "MobiFlightSetup-7.10.0.exe" and extracted it. None of the extracted folders have a name of "MSFS2020-MODULE", am I missing something here?
You are right! Let me work out what is going here and get back to you. I just updated the MobiFlight install instructions. I did have to run the installation to get the folder downloaded. I have updated the guide to reflect that.
Last edited by jplewis02 on Sun Jan 10, 2021 12:27 am, edited 1 time in total.

dpaget21
Posts: 12
Joined: Thu Sep 24, 2020 9:05 am

Re: G1000 bezel FS2020

#24 Post by dpaget21 »

The MobiFlight I downloaded has the MSFS2020_Module folder, I added it to the community folder and I still can't seem to get the commands to work, I do have MSFS2020 from Steam

dpaget21
Posts: 12
Joined: Thu Sep 24, 2020 9:05 am

Re: G1000 bezel FS2020

#25 Post by dpaget21 »

jplewis02 wrote: Sat Jan 09, 2021 9:31 pm
stretchman07 wrote: Sat Jan 09, 2021 9:09 pm Thank you @jplewis02 for your detailed instructions and for the effort you put into figuring this out. I and I'm sure a number of other people on this forum appreciate your efforts. In your instructions you refer to locating a "MSFS2020-MODULE" folder in the extracted MobiFlight zip file. I've downloaded "MobiFlightSetup-7.10.0.exe" and extracted it. None of the extracted folders have a name of "MSFS2020-MODULE", am I missing something here?
You are right! Let me work out what is going here and get back to you.
In order to get that folder to download, you need to go into settings and enable betas then check for updates

jplewis02
Posts: 34
Joined: Mon May 04, 2020 5:16 am

Re: G1000 bezel FS2020

#26 Post by jplewis02 »

jplewis02 wrote: Sat Jan 09, 2021 5:01 am G1000 ENABLEMENT HOW-TO GUIDE.
If you have suffering along with the stock limited functionality and have been waiting impatiently for the ASOBO Glass Cockpit updates. Well we have an alternative solution that provides the functionality you need.

MobiFlight Installation [Updated 01-09-2021]
MobiFlight installation / integration is as easy as downloading and install the MobiFlight zip file from https://www.mobiflight.com. As of this writing you need at least ver. 7.10.0
There may be security warnings when you extract the zip due to unsigned drivers. Scan the file yourself before extraction and decide on the best course of action for you.
Install the MobiFlight Application to a folder of your choice. Note the location, as you'll need to copy the event module to the flight sim community folder when installation completes.
Once installed, open the MobiFlight install folder and locate then open the MSFS2020-MODULE Folder.
Copy the Mobiflight-event-module folder and contents to your flight simulator community folder.

That’s it, integration done!

A little bit of background to help explain the module. Microsoft have changed the way they do new Addons for FS2020 and now use Web Assemblies. This event module integrates into FS2020 itself and extends the events list that are supported via SimConnect, SimConnect is really just a way to communicate between the Sim and external software and hardware. Don’t be at all surprised to find future Asobo extensions to use the same technique.

Other tools I use

FSUIPC7 Pretty much only used to see what events are triggered

VS Code with LUA extensions for LUA editing though you could use Notepad ++ if you like.

New MobiSoft Events.


There a couple of ways to get the list of new events that relate to to the various Glass Cockpit versions.

One is to gather the info from Mobisoft,com itself.

Another way (This is how I did it) I use the Flight Tracker Structs.cs file which also integrates with MobiFlight. if you go to the Flight Tracker Git Repo, and open the https://github.com/nguyenquyhy/Flight-T ... mDeck.Core Folder you will find the file that lists all the available flight Tracker events and variables. Look for the Events section then just search for the MOBIFLIGHT events that were added when Flight Tracker added MobiFlight integration.
When there are new releases, I just import the events and variables into a simple spreadsheet and then use filters on the data to find what need.

A thrid option is to use this list: https://pastebin.com/fMdB7at2

Air Manager
There is currently a Beta Version 4 available for download from Sim Innovations. Its free at present I think. https://SimInnovations.com. I have found it to be stable and only a couple of minor issues present.

Updating the overlay yourself.

Once familiar with Air Manager you can go find the XPlane G1000 overlay or other gauge in the online gauge repository in the app.

You will be editing the LUA file for the overlay (logic.lua) This one does not yet support FS2020. The Changes or additions you’ll make are rudimentary. See here https://www.youtube.com/watch?v=lLvlqMB for a full video series on gauge construction. The main videos ones you might want to look at are for Dials and Buttons.

These examples below use the G1000 Overlay for Xplane as our example.

What you will be adding are new lines for FS2020_Events. Simply open the logic.lua file look inside the various callback functions associated with each Button or Dial to see the existing events. Look for the xpl_command(“Dataref name”) lines…
I replaced or added FS2020_Event(“eventname”) I use the MOBIFLIGHT events because it drives the current G1000 Logic so you can do minimal coding to get things working.

MOBIFLIGHT Events add what you will need to make your FS2020 glass panel work. In some cases you may / will need to craft your own logic too (I did for Target Altitude but it is pretty simple stuff. So lets get down to an example or three:

Swapping Selected Nav Radio to be tuned, Nav1 or 2

Code: Select all

function nav_ff()
–fs2020_event(“NAV1_RADIO_SWAP”)
fs2020_event(“MOBIFLIGHT.AS1000_PFD_NAV_Switch”)
–xpl_command(“sim/GPS/g1000n”…g_unitpos…"_nav_ff")
sound_play(click_snd)

end

button_add(nil,“ff_button.png”, 102,107,50,32, nav_ff)
Pressing Softkey 6 (CDI)

Code: Select all

function sc_6_click()
–fs2020_event(“TOGGLE_GPS_DRIVES_NAV1”)
fs2020_event(“MobiFlight.AS1000_PFD_SOFTKEYS_6”)
sound_play(click_snd)
end

button_add(nil,“uparrow_button.png”, 640,852,50,32, sc_6_click)
That’s about as complex as it needs to be to get started. If you already have a Knobster then you can really dial up your control!

Important to note
MOBIFLIGHT is Donate-Ware developed in Germany (I Think) If this helps you along PLEASE help out the community and support further development by sending a few dollars or whatever your local currency is, to help support the product development efforts! Oh and spread word too!!!

jplewis02
Posts: 34
Joined: Mon May 04, 2020 5:16 am

Re: G1000 bezel FS2020

#27 Post by jplewis02 »

[/quote]
dpaget21 wrote: Sat Jan 09, 2021 10:05 pm The MobiFlight I downloaded has the MSFS2020_Module folder, I added it to the community folder and I still can't seem to get the commands to work, I do have MSFS2020 from Steam
There is a slight syntactic difference in what is listed in the SDKs and what you need in the LUA File Event.

Code: Select all

function nav_ff()
    print("Inside Nav Callback")
    --fs2020_event("NAV1_RADIO_SWAP")
    fs2020_event("MOBIFLIGHT.AS1000_PFD_NAV_Switch")
    sound_play(click_snd)
end
Note the period between MobitFlight and As1000 The command in the Flight Tracker STRUCTS list is MOBIFLIGHT_AS1000_PFD_NAV_Switch which has an underscore instead. This caught me out at first too. If this is not it Please send me your Logic.lua and I will take a look to see if I can make it work for you.
In the meantime I have uploaded my Overlay here: https://drive.google.com/file/d/1iWqKcU ... sp=sharing

jplewis02
Posts: 34
Joined: Mon May 04, 2020 5:16 am

Re: G1000 bezel FS2020

#28 Post by jplewis02 »

I have uploaded my FS2020 G1000 Overlay to my Google drive. You can download the Overlay in Air Manager import format from here:
It is based upon Russ Barlows Xplane Overlay.
https://drive.google.com/file/d/1iWqKcU ... sp=sharing

Note only the PFD is operational at present the rest is WIP!

dpaget21
Posts: 12
Joined: Thu Sep 24, 2020 9:05 am

Re: G1000 bezel FS2020

#29 Post by dpaget21 »

jplewis02 wrote: Sun Jan 10, 2021 5:56 am I have uploaded my FS2020 G1000 Overlay to my Google drive. You can download the Overlay in Air Manager import format from here:
It is based upon Russ Barlows Xplane Overlay.
https://drive.google.com/file/d/1iWqKcU ... sp=sharing

Note only the PFD is operational at present the rest is WIP!
Much appreciated, I am now having a bigger problem is that my Airmanager is no longer sending any events to MSFS2020, I have tried reinstalling Airmanger, removing the mobiflight-event-module folder from the community folder. Any ideas what else I should try? edit: I reinstalled the bridge and it seems to be working, even though Airmanager was telling me I was connected.

User avatar
Ralph
Posts: 7876
Joined: Tue Oct 27, 2015 7:02 pm
Location: De Steeg
Contact:

Re: G1000 bezel FS2020

#30 Post by Ralph »

The bridge service is still a bit buggy. We'll have to focus on that part as well, but there's a lot of of other things to do...

Post Reply