• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FSXA Why doesn't this string work?

Messages
1,510
Country
unitedstates
Hi guys, since converting local time to UTC taxes my brain somewhat I devised a gauge in FS9 to tell me the current metar cycle based on sim time. Now I'm trying to use it in FSX and while the actual readout seems to work fine, the tooltip doesn't work anymore (which I added because the actual readout was too small to read with the screen minimized).

Code:
<tooltip>Current Metar Cycle: NOAA_%((P:Zulu Month Of Year,number))%!02d!%((P:Zulu Day Of Month,number))%!02d!%((P:Zulu Year,year) 1000 % flr)%!02d!_%((P:Zulu Time,hour) flr)%!02d!Z</tooltip>

No tooltip at all, is <tooltip></tooltip> broken in FSX or something? (No, that can't be, I have other gauges that use it) I'm stumped. Not really looking to become an expert gauge programmer, I'd just like to be able to figure out which metar to download if you know what I mean :) .

Jim
 

n4gix

Resource contributor
Messages
11,674
Country
unitedstates
I can't spot anything incorrect in the string, but I do note that every example gauge I've checked has the first letter capitalized:

<Tooltip>......................</Tooltip>
 
Last edited:
Messages
1,510
Country
unitedstates
Heh, that apparently did the trick, the tooltip works now. I didn't know this stuff was case sensitive, I'll be dipped...

Thanks a lot Bill! :)

Jim
 

n4gix

Resource contributor
Messages
11,674
Country
unitedstates
No problem! Oh my yes, XML is critically case-sensitive...

I once spent nearly a week tracking down one single uncapitalized token in a 3,000+ line XML script!

That was the week I decided to start using my Visual Studio platform to write/edit XML scripts, since it will visually display such errors for me... ;)
 
Messages
1,510
Country
unitedstates
Must be something new in FSX then because it worked fine in FS9?

I usually find my errors by opening the script in internet explorer, but IE of course doesn't care whether that was capitalized or not.

In case you were wondering why I need this, I set up this Metar Archive a couple years back to save "historical weather" for use in FSMetar (which still works well even today in FSX). The gauge tells me which metar to download :) .

http://www.cat-tamer.com/flightsim/metar

thanks again Bill, I knew you'd have the answer.

Jim
 
Messages
10,088
Country
us-arizona
Jim,

If you do more coding, get XMLWrench; freeware and AWESOME! Does spellcheck on code.
 
Top