Jump to content
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


Wide-5.jpg

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)CheersBob ScottATP IMEL Gulfstream II-III-IV-V L-300Santiago de Chile


Bob Scott | President and CEO, AVSIM Inc
ATP Gulfstream II-III-IV-V

System1 (P3Dv5/v4): i9-13900KS @ 6.0GHz, water 2x360mm, ASUS Z790 Hero, 32GB GSkill 7800MHz CAS36, ASUS RTX4090
Samsung 55" JS8500 4K TV@30Hz,
3x 2TB WD SN850X 1x 4TB Crucial P3 M.2 NVME SSD, EVGA 1600T2 PSU, 1.2Gbps internet
Fiber link to Yamaha RX-V467 Home Theater Receiver, Polk/Klipsch 6" bookshelf speakers, Polk 12" subwoofer, 12.9" iPad Pro
PFC yoke/throttle quad/pedals with custom Hall sensor retrofit, Thermaltake View 71 case, Stream Deck XL button box

Sys2 (MSFS/XPlane): i9-10900K @ 5.1GHz, 32GB 3600/15, nVidia RTX4090FE, Alienware AW3821DW 38" 21:9 GSync, EVGA 1000P2
Thrustmaster TCA Boeing Yoke, TCA Airbus Sidestick, 2x TCA Airbus Throttle quads, PFC Cirrus Pedals, Coolermaster HAF932 case

Portable Sys3 (P3Dv4/FSX/DCS): i9-9900K @ 5.0 Ghz, Noctua NH-D15, 32GB 3200/16, EVGA RTX3090, Dell S2417DG 24" GSync
Corsair RM850x PSU, TM TCA Officer Pack, Saitek combat pedals, TM Warthog HOTAS, Coolermaster HAF XB case

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


Wide-5.jpg

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


Wide-5.jpg

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


Wide-5.jpg

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


Wide-5.jpg

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