Page 1 of 2

Upgrading GAU's

Posted: 04 Oct 2007, 11:52
by DanKH
Hi

I'm using and old GAU, whether it is FS2002 or FS2004 I do not know. But I can say so much that is a HJG GAU ;-)

When importing the aircraft into FSX, I get a warning about it, and a question if I want to run it... If I accept this it runs fine.

But the reason it ask, is that FSX is not certain that it will run correctly.... So do anyone know if there is a quick and dirty way to upgrade a GAU to FSX, or is it only possible if you have the source?

Re: Upgrading GAU's

Posted: 04 Oct 2007, 12:11
by DaveB
Hi Dan,

There is no quick way to upgrade a gau (written in C) to FSX. I don't think FSX likes gauges written in C anyway so it'll probably give a warning with any gauge written in this language. Most folk write in XML these days anyway but there are a couple of notable exceptions.

ATB

DaveB :tab:

Re: Upgrading GAU's

Posted: 04 Oct 2007, 12:42
by DanKH
Hm.. there shouldn't be that much difference in a gauge written in C or XML. other than of cause the C-gauge is more protected than a XML-gauge, as this is quite easy to tamber with rather than decompile a c-gauge.

I think that there might be some functionality within a gauge made for previous FS-versions that results in the warning.

XML written in eg. notepad, is more "straight to go at" than programming in C. As C requires some basic programming skills. XML-is a bit more self explanatory. But it is my understanding that a C-compiled gauge is not only safer, but the possibilities are somewhat easier using a "real" programming language. Whether or not a C-gauge performs better than a XML I don't know, but my guess is that is does.

The FSX-SDK mention both methods, but as I have not taken up gauge-programming yet, I haven't read it thoroughly....

Re: Upgrading GAU's

Posted: 04 Oct 2007, 13:33
by DaveB
Then I guess the simplest thing for you to do is decompile the C gauge and find what functionality was made for the previous sim.. then remove it. That's easy isn't it :lol: XML is, as you say, more a 'laymans' program and it requires no special software to compile/decompile it. It would be interesting to know if it can be used with 3D 'modelled' gauges. I've not read the SDK and have no intention of doing so but my guess would be that it can't as I've yet to see a 3D gauge so programmed (although that could be that there are relatively few out there proficient in C) ;-)

ATB

DaveB :tab:

Re: Upgrading GAU's

Posted: 04 Oct 2007, 13:46
by DanKH
DaveB wrote:Then I guess the simplest thing for you to do is decompile the C gauge and find what functionality was made for the previous sim.. then remove it. That's easy isn't it
Thank you Dave, I'll do that then.... :roll: :kissu:


(Guess I answered my own question there.... :think: )

Re: Upgrading GAU's

Posted: 04 Oct 2007, 14:03
by DaveB
(Guess I answered my own question there.... :think: )
In one Mr H ;-)

As you well know, the HJG gauges were not put together with FSX in mind and with each new sim, the net tightens on what can and cannot be done. Are you getting the FSX query each time you load?? I thought once it had been accepted, that was it :think:

ATB

DaveB :tab:

Re: Upgrading GAU's

Posted: 04 Oct 2007, 16:35
by DanKH
Only the first time, unless of cause I only allow it to run for one session only....

Re: Upgrading GAU's

Posted: 04 Oct 2007, 17:47
by DaveB
Okey doh ;-)

ATB

DaveB :tab:

Re: Upgrading GAU's

Posted: 04 Oct 2007, 23:38
by FelixFFDS
I thought this question looked familiar:

(from fsdeveloper.com)
If the gauge "runs" after you accept it, then nothing more needs to be done. You are being asked if you want to "TRUST" this gauge, because it is not "code-signed." Once you've "Accepted" it, the gauge will be added to your "Trusted List" maintained in the fsx.cfg file. BTW, this is a "Windows thing" and really has nothing to do with FSX per se.

And no, you cannot edit or upgrade a compiled .gau file, unless you have the original source code. Period.
__________________
Bill Leaming
3d Modeler Max/GMax
C & XML Gauge Programmer
Eaglesoft Development Group
http://eaglesoftdg.com

Re: Upgrading GAU's

Posted: 04 Oct 2007, 23:48
by DaveB
That nails it Felix ;-)

There you go Dan. Learn 'C' and make your own or learn XML and make your own.. an obvious choice really :o :think: :worried:

ATB

DaveB :tab: