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

.gau file and bitmaps

Messages
76
Hello -

I've gotten my project finished, loaded up the gauge in FS Panel studio (and also manually in the panel.cfg) , placed all the mini-gauges where I want them, start up flight sim, voila - new gauges right where I put them.

I took the .gau file and put it online for others to download, but they see no gauges. FSPS shows the rectangle (pink) where the mini-gauges should be but the bitmaps don't show and it complains that "error gauge does not exist in this file" , FS9 gets an error "Flight Simulator is not able to load aircraft or software". I thought that the bitmaps would be contained within the .gau file? Here's a small snippet of the various files for my "underway" switch... What have I done wrong?

main_gauge.c
#define GAUGE_NAME "underway_switch_up\0"
#define GAUGEHDR_VAR_NAME gaugehdr_underway_switch_up
#define GAUGE_W 100
#include "underway_switch_up.c"

in the main_gauge.rc file:
PANEL_UNDERWAY_SW_ON BITMAP DISCARDABLE "bitmaps\\underway_switch_on.bmp"

in the main_gauge.h file:
#define PANEL_UNDERWAY_SW_ON 0x200B
#define PANEL_UNDERWAY_SW_OFF 0x200C
 

n4gix

Resource contributor
Messages
11,674
Country
unitedstates
Use FS Panel Studio to "Edit" the .gau and check your resource(s).

Also, I don't see a .rc listing for the "underway_switch_off.bmp"" bitmap???
 
Messages
76
Yes, I can see it if FSPS. I am having someone else check out the gau - see if it is specific to the one individual.

There is an off bmp. The bitmaps are part of the .gau file are they not?
 

taguilo

Resource contributor
Messages
1,585
Country
argentina
Did you use VC++ 200x or similar to build your gauges? If they work fine in your system but not in others, could be a problem related to C++ distributable files that need to be installed in the user system.

Tom
 
Messages
76
Yes, I am using VC++ 2008 Studio Express although I did not use any C++ functionality. Basically I took the SDK examples and mangled them. Any idea what those files might be?
 
Last edited:

n4gix

Resource contributor
Messages
11,674
Country
unitedstates
Yes, I can see it if FSPS. I am having someone else check out the gau - see if it is specific to the one individual.

There is an off bmp. The bitmaps are part of the .gau file are they not?

Well, yes the bitmaps are "part of the .gau file," but only if you have explicitly declared the file name(s) in the .rc file!

You have a resource number #define for the "off" bitmap, but the path/name of the "off" bitmap is not in your .rc file.
 
Top