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

FSX Help!!! Building C/C++ Gauges

Messages
58
Country
us-newyork
Hi, I'm a new developer, I've gotten real good at xml code in fsx, I've been trying to figure out a way to get into C/C++ Gauges so I can expand on what fsx has to offer, there are many variables (particularly Key events like VS_Hold, ever notice the VS_Hold is slaved to the ALT Hold?, because there is no way to turn VS_Hold on/off via Key events in xml, but there is a key event for this in the C code according to the sdk) in fsx that are only accesable in the C/C++ Code as many of you know much more about this than I do.

I have a couple questions I hope some1 can answer at least in part.

1. What is a good program for creating/compiling C/C++ dll's and gauge files? that doesn't cost more than my CPU... Yes I've heard of easygauge, can't find a download for the fsx compatible version, or a place to buy a registration code, I've heard rumors this product was discontinued.

2. EasyGauge... Is it really discontinued? If so, why? Can I legally buy one from someone who has it and doesn't use it? Where would one recommend soliciting such a purchace? I have found supposed crack code's, but these if legit are probally illegal, and you have to pay a whopping fee to become a "member" of these sites, too risky considering nobody knows if the thing would work. So if you are trying to help me and you don't know the answers yourself, don't waste your time looking for it in a search database unless you really know something I don't.

3. If EasyGauge is not a possibility, or it isn't any good, what else could I do? I don't mind learning the programming, but a user freindly tool for entry level programmers would help me out.
 
1) Microsoft Visual Studio Express. It's free... and it's also the format the samples are provided in and is mentioned in the SDK docs. How you missed it I'm really not sure! http://www.microsoft.com/visualstudio/en-us/products/2010-editions/visual-cpp-express

2) Compared to doing it properly, EasyGauge is not as flexible as programming things properly - in fact, I think it's easier to use XML than EasyGauge.

3)See above.

NB: I think VS hold is broken in the FS core. I don't think using a C key event will help. Just set an altitude way above or below sensible levels and adjust the VS target speed to simulate a VS hold.
 
Thank you.

Yes I've had this VS 2010 Express.

I am not accustomed to even know the 1st thing to do with it though.

I'm going to have to hope I can find someone to give me this easygauge thing. At least to start.

Thank you for your advice. Yes XML is easier to program the interface between you and the sim, the C code is to make the gauges more flexable, I ultimately want to create a moving, and unlocking map from scratch without using the default gps map, and write it's own custom draw parameters to be used by the xml system.
 
Then EasyGauge is not what you are looking for. EasyGauge can do no more then XML can, because it does not allow you access to the code. It's a bit like the aces editor for XML gauges. It's old, out of date and cannot be acquired legally.

If you want to program something as complex as a moving map, you're going to have to do it properly in Visual Studio, from scratch. No shortcuts.

If you already had VS2010, then why were you asking for a
...good program for creating/compiling C/C++ dll's and gauge files? that doesn't cost more than my CPU...

Is a free version of the industry standard not good enough for you or something?
 
Two comments.
A:AUTOPILOT VERTICAL HOLD,bool appears to be permanently true, whether or not the autopilot is switched on. Makes sense since the vertical speed mode is a sub-mode of the altitude hold mode.

I used Easygauge with FS2002, because it was a front end to creating .gau files and I found it easier than learning C type programming. I dropped it instantly when XML gauges became possible for exactly the same reasons FOJ stated.

Roy
 
Easy Gauge is simply not available AT ALL. Period.

The authors seem to have fallen into a Black Hole some years ago and never reappeared.

Even so, folks who purchased EG had to install the program, then send a file to the authors via email. They would then send back an encrypted file that was locked the the purchaser's hardware...

I still have to maintain one of my earlier development computers simply because it's the only one on which EG will run. When that computer dies, so too does my Easy Gauge... :(

Contrary to what was cited above, EG does allow access to the raw C files it generates during compilation. In fact, that's the only reason I still (occasionally) use EG; just to quickly prototype a new gauge, and get the essential structure for mouse callbacks set... :D

There are an extensive set of sticky posts on how to set up and use Visual Studio in my Panel and Gauges forum at http://flightsim.com
 
Thank you everyone.

No I'm not too good for the free version of VS2010, I'm simply too new at this and hearing about easygauge got me hot n bothered! And I tried to compile the sample gauge from the sdk using VS2010 and I couldn't figure it out. I'll be glad to look for the article Bill wrote on flightsim.com when I get back from work.

You all could very well be right about vs hold, I have found in guages.h in the "inc" folder of the sdk, it lists about 4 seperate "key" vs /hold/ on/off/set. That doesn't mean for sure it will work, but in xml you can only set vs, there are no key events to turn it on or off. That is not the main reason I'm looking into c code, I really need to write my own code, I'm going to have to go back to school!

Thank you all for your input
 
Suggestion

Easy Gauge is simply not available AT ALL. Period.
I still have to maintain one of my earlier development computers simply because it's the only one on which EG will run. When that computer dies, so too does my Easy Gauge... :(

If you mirrored the hard drive from that computer, you couldn't use it with any other computer in the case it goes? You should mirror the drive onto a backup, and keep that backup in a safe place, even if it's not possible to run on anything else out there now, you never know what sort of retro-communitave devices could come out next year or in two or three years ect...
 
:banghead:
If you mirrored the hard drive from that computer, you couldn't use it with any other computer in the case it goes? You should mirror the drive onto a backup, and keep that backup in a safe place, even if it's not possible to run on anything else out there now, you never know what sort of retro-communitave devices could come out next year or in two or three years ect...

No, I can't. The software is now hard-coded to work only with that specific computer, period. The small file that was sent back by the developer rewrites part of the main executable to create an unbreakable machine binding...

But, I can and do run that executable across my LAN. Since I don't care about actually compiling the project, that's just fine by me. All I want are the .c, .rc, .h, and G.c files anyway. :D
 
Last edited:
Jeesh

A program that sophisticated as far as security? Leads me to believe the developer was possibly paid off to discontinue their product, maybe to make an easier way for high end payware developers to be better assured they won't get showed up as often by freeware developers, It might sound like a far fetched conspiracy theory, but if I worked my behind off to make and sell a product, and all I had to do to keep the money flowing was keep the domain open and keep selling it, it would take alot for me and my product to just "dissapear".
 
Frankly, they simply priced themselves out of existence! At $300 for a single user developer's license, it was simply way too much for far too little. They quoted me a cost of $2500 for a ten user license!

Although it generated the structure required for multi-gauge creation, it nonetheless was limited to actually compiling only single gauges. For any sophisticated project that might require up to three HUNDRED gauges, it was an absolute nightmare...

...most especially the extremely clumsy way they implemented global variable sharing!

Considering that their target market was casual developers with little to no programming experience, they would have fared much better by adopting the pricing model that FS Panel Studio's creator did. I can guarantee you that he's made far, FAR more money from FSPS than Marcel and his brother ever did from EasyGauge!

Nonetheless, I do not regret my purchase of EasyGauge, even at its horribly inflated price. In the end I learned a lot just by examining the "raw C code" the program generates, and have adopted the design layout and format of their code structure as my defacto standard.

In fact, one of the things I did early on was use EG to generate "blank templates" for each of the various MAKE_ macro structures...

...which I can now simply copy/paste into a new Virtual Studio 2005 gauge project. :)
 
Nonetheless, I do not regret my purchase of EasyGauge, even at its horribly inflated price. In the end I learned a lot just by examining the "raw C code" the program generates, and have adopted the design layout and format of their code structure as my defacto standard.

In fact, one of the things I did early on was use EG to generate "blank templates" for each of the various MAKE_ macro structures...

:)


Exactley, thats what I was hoping to do, I just learned a great deal of xml knowledge by examining and modifying the default gauges of the fsx stock planes, mainly using ACE, and am just now being able to write my own individual notepad xml without ace for more flexibility, without ace i wouldnt have had as easy a time figuring it out.
C code is another story, I'm now looking at schools instead of the fs sdk when it comes to c code. :)
 
Back
Top