Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Failing XML fuel pressure gauge

Featured Replies

Hi all.Would someone be good enough to show me why the following XML code does not work in FS2K2 (please see below). It's for a twin engine fuel pressure gauge, which I'm trying to apply to a Pby. I suspect the problem is in the 'Rotate' parameters. Specifially, I think the "(A:General Eng Fuel Pressure:2,psi)" code is incorrect. However, my experiments have yeilded nothing. If anyone know what code needs to be replaced or inserted, I'd really appreciate it.Cheers,Matthew.(A:General Eng Fuel Pressure:2,psi)(A:General Eng Fuel Pressure:1,psi)

Greetings again Matthew,Just looked at it quickly, but I think your issue (without knowing exactly what isn't working) might be with the way you have specified your parameter values. What I mean by that is in the use of the ":1" and ":2". As far as I know, that method for designating engines is only supported in FS2004 and you stated that you are using this gauge in FS2002. I suspect you are using the FS2004 Panel SDK for ref. Try using "ENG1 FUEL PRESSURE" or "GENERAL ENG1 FUEL PRESSURE" instead of "General Eng Fuel Pressure:1". For engine #2 just change ENG1 to ENG2 in whichever of the above paramters you decide to use. There might be some other things going on in your code as well (and I'm not saying there is), but as it is 3 AM, my brain has ceased functioning and I can go no further. If that doesn't work for you, I may have another go at it when I get some sleep.

Did you get things working?

Ah, yer a ledgend Dave!Did the trick nicely. Managed to recalibrate the gauge, too. Learning all the time :-)(Think we got a time delay between Oz and your location. Presume it's the US).Thanks again.Cheers,Matthew.

Matthew,Good to hear you got it sorted out. Not sure what happened with the post timing, but hey it all turned out ok. As far as the legend thing goes, well, that may be quite a stretch. :( Most everything I know in regards to XML was either learned from folks like Arne Bartels (a true legend :) ) and a few others who post here or the hard way (which translates to spending waaay to many hours slogging through code, sacrificing sleep and sanity in the process). The latter tends to be the case quite often and the dark rings around my eyes and permanent look of confusion on my face are constant reminders. Anyway, good luck with your PBY project.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.