Jump to content
Sign in to follow this  
n4gix

sd2gau23.zip uploaded

Recommended Posts

New version of the long-running gauge creation tutorial. The file ID is 227318 when the sysops get round to releasing it. Yes, it does say version 23 - I wrote 21 and 22 but forgot to release them....-Dai

Share this post


Link to post
Share on other sites

Thanks, as usual you've done an invaluable service to the entire gauge design community by maintaining this document.Regarding the "odd behavior" of the ADF, VOR1_BEARING_DEGREES and VOR2_BEARING_DEGREES tokens, if I recall correctly that is because, according to the SDK they are actually returning "16-bit pseudo-degrees." However, the fact is that the return is actually an offset to determine the relative bearing from the plane's current position and is based on "16-bit pseudo-degrees," which is a rather major difference from the simple note in the SDK!See here for more details and examples of how to convert those tokens for a digital display as well:http://forums.avsim.net/dcboard.php?az=sho...ing_type=searchAs I said in my original post of that thread:"Note to self: Next time you're in Redmond, remember to slap whoever thought "16 bit pseudodegrees" was a "good idea" silly!" :-bluegrab


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites
Guest Patrick_Waugh

You should consider just putting this up on a wiki, and then letting it become a living document.

Share this post


Link to post
Share on other sites

Hey Bill,<<"Note to self: Next time you're in Redmond, remember to slap whoever thought "16 bit pseudodegrees" was a "good idea" silly!" >>Well, when pseudodegrees were created, it was because most computers at the time didn't have floating point processors in them (thanks Intel for that horid idea called the 486SX, just when we thought we could finally count on an FPU being there :-> ). We've gotten rid of them for the most part in the code, but there are still some file formats that use them and apparently some of the navigation related vars :->

Share this post


Link to post
Share on other sites

>Hey Bill,>><<>"Note to self: Next time you're in Redmond, remember to slap>whoever thought "16 bit pseudodegrees" was a "good idea">silly!" >>>>>Well, when pseudodegrees were created, it was because most>computers at the time didn't have floating point processors in>them (thanks Intel for that horid idea called the 486SX, just>when we thought we could finally count on an FPU being there>:-> ). We've gotten rid of them for the most part in the>code, but there are still some file formats that use them and>apparently some of the navigation related vars :->>>Um... I believe the first set of code was written for the 6502 family of procesors... and floating point wasn't even considered a computer concept on 8bit. ;) Then it was ported to the 8088 for the PC.Let's give Bruce Artwick his due... he accomplished something most experts at the time said was impossible.


Ed Wilson

Mindstar Aviation
My Playland - I69

Share this post


Link to post
Share on other sites

Hi BillI'll add that into the next version.... actually, update 24 is already started! I spent a few too many hours experimenting to find which macros will successfully accept an alpha channel and then wrote a 'how-to' as a new section. In general (and I guess I'm looking for input here):-1. MAKE_STATIC and MAKE_ICON present no problems.2. MAKE_NEEDLE and MAKE_SPRITE have limited success - much seems to depend on how you define the alpha mask i.e. the number of levels of grey.3. MAKE_SLIDER: I went to bed at this point.... but I suspect it will be the same as for a needle.In summary, FS seems to have problems with a moving alpha channel but then again, it could just be my (by now) woefully underpowered PC. I'm still testing with FS9 on an AMD Semperon 2800, 1.5Gb RAM and a GeForce 7600 256Mb video card. FSX produces one of the most wonderful slideshows I've ever seen....And you really don't want to know how out-of-date my internet PC is!!! :)-Dai

Share this post


Link to post
Share on other sites

Hi PatrickThe only problem I can see with that idea is that I'm trying to keep it aimed down at a certain level of gauge programmer (beginner-level) and an open Wiki might get away from that. Everything I know about gauge programming is not in the document and it's not because I'm trying to hide 'proprietory' information, just that I consider it to be above the level of my target audience. OTOH, there is stuff I know just about absolutely zero about (e.g. XML gauges and GDI drawing) that I'd like to find out about and so I am willing to be argued into making it an open document.Is Bill not running a Wiki somewhere that covers the more advanced stuff? I thought I saw it but of course, as soon as you come to search you can never find the right search term.-Dai

Share this post


Link to post
Share on other sites

>Is Bill not running a Wiki somewhere that covers the more>advanced stuff? I thought I saw it but of course, as soon as>you come to search you can never find the right search term.No Wiki yet... Flightsim.com management was planning for a Wiki, but it seems to have disappeared for the moment. Of course, some points I made to the fellow in charge (Dan) might have prompted that result...=============================The idea of a Wiki is good, but it seems to me that re-inventing the wheel isn't always the best thing. FS-Developer.com has had a Wiki up for quite awhile now, with categories for Aircraft Design, Scenery Design, Mission Design, SimConnect, File Formats and Manuals.http://fsdeveloper.agerrius.nl/wiki/index....title=Main_PageOne of the banes of all simmers and developers is that - with the proliferation of FS websites, forums and news groups - we are in fact suffering from self-induced "Information Dilution," a phenomenon that's unique to the Internet Age.In fact, that's the entire reason sites such as Google.com, Ask.com et alia exist! They are meant to supply a "master index to all information available on the World Wide Wasteland (er, Web!), but......due to the plethora of such "search engine sites," they actually contribute more to the problem than they solve.Consider that currently I invest at a minimum four hours each day reading/replying to EIGHT different websites, a total of FIFTY-SIX forums, and THIRTY-EIGHT internet news groups (some of which are admittedly FSDN* and therefore closed to the general public), and that only includes a very small fraction of all the FS websites and other forums, ng's et cetera...So, my suggestion would be to maintain the Flightsim.com Wiki's unique Categories, but for those of Aircraft, Scenery, Mission, SimConnect simply link directly to the same categories at the fsdeveloper.com Wiki...* FSDN: Flightsim Developers Network, sponsored by MS/ACES==========================


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

>Well, when pseudodegrees were created, it was because most>computers at the time didn't have floating point processors in>them (thanks Intel for that horid idea called the 486SX, just>when we thought we could finally count on an FPU being there>:-> ). We've gotten rid of them for the most part in the>code, but there are still some file formats that use them and>apparently some of the navigation related vars :->Thanks for the comment, Tim. I was - of course - speaking entirely tongue-firmly-in-cheek, but still......after all these years shouldn't some attention be paid to throughly rationalizing the panel "system?" ;)Quite honestly I've begun retrieving fs token vars from XML in most of my C gauge projects. It's just as fast, and best of all I can actually get rational, usable and properly scalable returns from them! :-lol


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

>Yes, it does say version 23 - I wrote 21 and 22 but forgot to>release them....You did? Funny that my previous downloaded "version" had this in the readme.txt file:FS2K+ and CFS+ Gauge Creation Tutorial Rev.22Not for non-programmers but can be used bynon-C programmers. FSX SP1 gauges.h filecorrected and included. XML read/write information updated. Some other minorupdates and clarifications.FOR PROGRAMMING C-LANGUAGE GAUGES ONLY.Dai Griffiths, Dragonflight Design.It is still hosted in the Flightsim.com Library... ;)Perhaps you simply forgot that you released Rev.22 :-hah


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

>>Perhaps you simply forgot that you released Rev.22>:-hah Urrr... no, it's a bit simpler than that (puts on stupid hat). I did a search on sd*.* in the file library and it popped up sd2gau20.zip. As I normally put the previous version as a file to be deprecated (deleted) in the upload infromation, I assumed that sd2gau20 was in fact the current release....Bill, how on earth do you find that much time each day to go chasing forums?! I find that if I have to spend more than a few minutes each day answering emails and posts, I actually start to resent it quite badly!-Dai

Share this post


Link to post
Share on other sites

>Bill, how on earth do you find that much time each day to go>chasing forums?! I find that if I have to spend more than a>few minutes each day answering emails and posts, I actually>start to resent it quite badly!I rationalize it by averaging out my "daily earnings" and consider it part of my job description to invest the required time as a form of "continuing education." ;)Since flightsim development is my "full-time" (read: only job!), this is entirely reasonable... ;)BTW, the Wiki is indeed up and running. Would you be at all interested in migrating your "book" over to it as a sub-topic withing the "Panels and Gauges" entry?Right now, it's a complete Tabula Rasa: http://forums.flightsim.com/fswiki


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

Hi BillI would.... but this jumped out and bit me:"including distributing it for free or profit".I guess I'm not the only one who would baulk at the thought that someone else could make a direct profit from my freely-given work. I accept that in my case you could make a good argument that a lot of people may have made a considerable profit from using the information in the gauhelp and sd2-series documents, but that's not quite the same as agreeing to allow the document itself to be sold.Get rid of the words 'or profit' and I'm your man.Now, what's the betting that someone else will object to the words 'for free'? :-wink2 -Dai

Share this post


Link to post
Share on other sites

That's a really odd wiki agreement. LOLWiki is rarely set up as 'owned' by any group/organization/etc... but this one comes rather close.


Ed Wilson

Mindstar Aviation
My Playland - I69

Share this post


Link to post
Share on other sites

>Get rid of the words 'or profit' and I'm your man.>>Now, what's the betting that someone else will object to the>words 'for free'? :-wink2 Hmmm... I confess I hadn't ever read the "Terms and Conditions" there...In any case, it appears that "they" (meaning flightsim.com management) are restricting data input to the Wiki only to a limited few individuals whom "they" deem "experts..." In that case then, might I propose that the Wiki at FSDeveloper.com as an alternate? As it is "open to everyone" and is "owned" by well-known "freeware" developers (Arno Gerretsen and Nick), it seems to embrace the spirit of the entire Wiki concept... ;)http://www.fsdeveloper.com/wiki/index.php?title=Main_PageIn fact, there's already a Category of "Manuals" which would be a likely good place for it to be created...


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...