Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Cabin Comfort Sample

Featured Replies

  • Commercial Member

As a result of my last posted question ('Getting the FLT file being loaded'), for the first time I've started looking at SimConnect and immediately run into a roadblock. The SDK says:

 

Creating a Gauge using XML and C++

(...)

Copy the CabinComfort cabinet file to the Flight Simulator X\Gauges folder.
Copy the panel file to the Flight Simulator X\SimObjects\Airplanes\Lear45\panel folder.

(...)

 

Now, knowing me I'm probably blind, but I can find neither the .cab file, nor the LearJet panel.cfg. Where did I miss them?

  • Commercial Member

Using SimConnect inside a gauge means that the gauge is physically tied to the SimConnect version you develop with. If that version is not installed, the gauge will fail to load properly.

 

Lots of fun....

 

In short, what you're wanting to do... has a price.

Ed Wilson

Mindstar Aviation
My Playland - I69

  • Author
  • Commercial Member

It's giving me stick - why am I not surprised? I have cabin_comfort.dll along with dll.xml in the root of the fsx folder and the gauge itself called from the Cessna 208B panel.cfg file For info, my dll.xml is:

 

 

<?xml version="1.0" encoding="Windows-1252"?>

<SimBase.Document Type="Launch" version="1,0">
  <Descr>Launch</Descr>
  <Filename>dll.xml</Filename>
  <Disabled>False</Disabled>
  <Launch.ManualLoad>False</Launch.ManualLoad>


  <Launch.Addon>
    <Name>Cabin Comfort</Name>
    <Disabled>False</Disabled>
    <ManualLoad>False</ManualLoad>
    <Path>cabin_comfort.dll</Path>
  </Launch.Addon>

</SimBase.Document>
 

I have four versions of simconnect.dll in the windows\winsxs folder. The gauge loads but all information is zero. There was an old (2010) thread about this problem but no solution. It worked first time for Bill B)

  • Commercial Member

The file dll.xml is supposed to be in the appdata area, not the core FS folder. The cabin_comfort.dll should be in the modules folder simply because there is no legitimate reason to dump it into the main folder... that's just messy by design.

Ed Wilson

Mindstar Aviation
My Playland - I69

  • Author
  • Commercial Member

Please excuse my stupidity Ed, but after doing the following as suggested it still doesn't work.

 

1. I created a \modules folder in the main FSX folder and moved cabin_comfort.dll to there

2. I moved dll.xml to C:\Users\Flight Simulator\AppData\Roaming\Microsoft\FSX (actually added it to the existing dll.xml file)

 

'Flight Simulator' is the user for that particular account - it's not a typo. CabinComfort.cab is in the \gauges folder.

 

[Edit] Just for a test I put cabin_comfort.dll back in the FSX root folder. On startup I got the 'do you trust this?' dialog but nothing else changed.

  • Commercial Member

You forgot to put the Modules folder in the Path entry in the dll.xml file... that's why it wouldn't load until you moved it to the root folder.

 

As for the rest, I'd have to look at the code.

Ed Wilson

Mindstar Aviation
My Playland - I69

  • Author
  • Commercial Member

Ooops... adding the path does help. I was going to attach a debugger this morning but realised I'd need to start changing the compiler instructions and I wasn't willing to (inadvertantly) make things worse. If you can find the time I would be grateful if you would take a look - the rar package is here:

 

https://www.dropbox.com/s/yehuty3e6hklbd5/Cabin%20Comfort%20Gauge.rar?dl=0

 

Package size should be 9,920,761 bytes. The dll.xml, panel.cfg, cabincomfort.cab and gauges.h are all included. It is absolutely bog-standard FSX/P3D code, which is what is making it so frustrating!

  • Commercial Member

Found the issue.

 

In your dll.xml edit you forgot to add two lines. Your dll.xml entry is this:

 

  <Launch.Addon>
    <Name>Cabin Comfort</Name>
    <Disabled>False</Disabled>
    <ManualLoad>False</ManualLoad>
    <Path>modules\Cabin_Comfort.dll</Path>
  </Launch.Addon>
It should be this:

 

  <Launch.Addon>
    <Name>Cabin Comfort</Name>
    <Disabled>False</Disabled>
    <ManualLoad>False</ManualLoad>
    <Path>modules\Cabin_Comfort.dll</Path>
    <DllStartName>module_init</DllStartName>
    <DllStopName>module_deinit</DllStopName>
  </Launch.Addon>

Ed Wilson

Mindstar Aviation
My Playland - I69

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.