Sign in to follow this  
Gypsy Baron

FSX -SDK...a couple of problems noted...

Recommended Posts

After bringing the FS9 FSDZigns L-049A Connie into FSX I foundeverything worked fine, excluding the neutered side/back/diagonal views of course. On closer inspection I found that the fuel weightgauges on the FEpanel were always reading "0" as were the ToolTipvalues.I had also imported an L-188 along with the panel I created forit in FS9. The fuel weight gauges worked fine in that panel.On further investigation I discovered the reason for the differencein the operation of the two panels.The following statement does not work in FSX XML gauges, it seems to always return a value of "0":(A:Fuel weight per gallon, pounds per gallon)Here is the statement from a FS9 XML gauge for displaying fuel in pounds: (A:Fuel tank left main quantity, gallons) (A:Fuel weight per gallon, pounds per gallon) * And the statement used for the tooltip:Tank 2 (%((A:Fuel tank left main quantity, gallons) (A:Fuel weight per gallon, pounds per gallon) * flr)%!d! lbs, Fuel menu: Left Main)This results in the gauge and tooltip always reading "0" in FSX.To get the gauge to display correctly, I had to change the statement to this:(A:Fuel tank center quantity, gallons) 6 * Inspite of what is stated in the SDK:Microsoft Flight Simulator X SDK/SDK/Core Utilities Kit/Variables/Simulation Variables.html#AircraftFuelDataFUEL WEIGHT PER GALLON Self explanatory Pounds ------------------------------------------------I also discovered another oversight whilst browsing the SDK:Another error in the FSX SDK has to do with the "Reload User Aircraft" key command. From the following location:Microsoft Flight Simulator X SDK/SDK/SimObject Creation Kit/SimObject Container SDK/Aircraft Configuration Files.htm#mozTocId409079 "Testing Changes to the aircraft.cfg file To see the effects of a change, the aircraft must be reloaded. Aircraft are loaded into the memory cache from disk, so you have to flush the cache to enable your changes to be reflected in-game. This involves a couple of steps: 1.Configure a key command to Reload User Aircraft (which will reload your aircraft from within the simulation). To do this go to Settings, Controls Assignments, and scroll down to the Reload User Aircraft event. By default, it’s unassigned. Use Change Assignment to configure a keystroke combination for this event. Once assigned, you can use this key command to reload the aircraft within the simulation. "The key command "Reload User Aircraft" no longer exists in FSX. It did exist in FS9.The "closest" key command is "Reset flight". There is also a "Refreshscenery" key command,but no "Reload User Aircraft". If you "Reset Flight" you have to wait for the entireFSX load processs to take place...loading scenery and traffic andweather as well as the aircraft. In FS9 the "Reset User Aircraft" reloaded the aircraft.cfg and panel.cfg but did not reload all theother time consuming stuff. I dug around a bit in FSX looking for the file that defines theKey_Commands in hope of editing that file to insert the "ReloadUser Aircraft" entry but I didn't find anywhere to do that. Ifsomeone knows where that file is, I'd sure like to know. Paul

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

>The key command "Reload User Aircraft" no longer exists in>FSX. Actually, it does. The menu option has been re-named Aircraft (reload)CheersBob ScottATP IMEL Gulfstream II-III-IV-V L-300Santiago de Chile

Share this post


Link to post
Share on other sites

I think (A:Fuel weight per gallon, pounds) will work. I think they have just deprecated the "pounds per gallon" units.Doug

Share this post


Link to post
Share on other sites

>I think (A:Fuel weight per gallon, pounds) will work. I>think they have just deprecated the "pounds per gallon">units.>>Doug>> Could be, Doug. I'll test that later. What I'm finding is that the SDK, although a little more comprehensive than the FS9 SDK, it's still riddled with errors and those danged "Self explanatory" entries which aren't always :) Paul

Share this post


Link to post
Share on other sites

>>The key command "Reload User Aircraft" no longer exists in>>FSX. >>Actually, it does. The menu option has been re-named Aircraft>(reload)>>Cheers>>Bob Scott>ATP IMEL Gulfstream II-III-IV-V L-300>Santiago de Chile> Thanks for that input Bob. I was just going by the text in the SDK and looking under "R" in the list :) Paul

Share this post


Link to post
Share on other sites

Something I noticed from the beta was that there didn't appear to be a reload PANEL available anymore. (>K:RELOAD_PANELS) simply didn't work as I recall. Can anyone confirm this with the retail version?Surely there must be some alternative if this is true? Reloading the entire aircraft takes much longer than reloading the panel.--Jon

Share this post


Link to post
Share on other sites

>I think (A:Fuel weight per gallon, pounds) will work. I>think they have just deprecated the "pounds per gallon">units.>>Doug> Still haven't had time to check this out Doug, but here is an entry in the current FSX SDX that shows the same format as in FS9:TOOLTIPTEXT_RIGHT_FUEL_LBS "Right Fuel Tank Indicator (%((A:FUEL RIGHT QUANTITY, gallons) (A:FUEL WEIGHT PER GALLON, pounds per gallon) *)%!d! lbs)"BTW, Doug, do you know what file defines the keyboard commands/funtionsthat can be set from within the sim via the Controls menu? Paul

Share this post


Link to post
Share on other sites

>Something I noticed from the beta was that there didn't>appear to be a reload PANEL available anymore.>(>K:RELOAD_PANELS) simply didn't work as I recall. Can anyone>confirm this with the retail version?>>Surely there must be some alternative if this is true?>Reloading the entire aircraft takes much longer than reloading>the panel.>>--Jon Hello Jon, I just did a search of the "Event IDS.htm" located in the "Core Utilities KitVariables" folder of the SDK.KEY_RELOAD_PANELS.......RELOAD_PANELS........Reload panel data(....'s added for clarityas multiple spces are removed by BBS ) Is indeed present. Looks like I'll be creating an XML gauge that I can use to exercise that command when I'm tweaking... Paul

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