• 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 Start-stop-reset button

The solution is that I deleted all the unnecessary spaces from the code within <String> element and put the statments in only one line :

Code:
<String>%((A:GENERAL ENG GENERATOR SWITCH:1,bool))%{if}Generator (on)%{else}Generator (Off)%{end}</String>
 
The solution is that I deleted all the unnecessary spaces from the code within <String> element and put the statments in only one line :

Code:
<String>%((A:GENERAL ENG GENERATOR SWITCH:1,bool))%{if}Generator (on)%{else}Generator (Off)%{end}</String>
:yikes: :scratchch

Um, that's a "solution" to a problem that's imaginary! The formatting of the XML script should be for YOUR convenience in READING it...

The parsing engine will strip out all of the extra spaces as it parses the XML script prior to generating the C code that's actually run.

There is absolutely no difference whatever between what you had before and what you have now...

I honestly don't know whether to :laughing: or :(

Perhaps I'd best :ziplip: or :tapedshut before I have to :duck:
 
Last edited:
Bill, I believe you, take it easy ;) But I believe what I see, also :) For me when the code is separated more lines for easier reading, there will remain spaces in the text field in FS. Anyway, I don't mind if it is in one line, I'm pleased for the final result :)
 
Bill, I believe you, take it easy ;) But I believe what I see, also :) For me when the code is separated more lines for easier reading, there will remain spaces in the text field in FS. Anyway, I don't mind if it is in one line, I'm pleased for the final result :)

Now that I (finally) understand what you were trying to explain, I have the answer to your quandry. There was in fact one very tiny difference between your "expanded" version and the new "compressed" version...
Code:
<String>%((A:GENERAL ENG MASTER ALTERNATOR:1, bool))%
                 %{case}

Note that extra % at the end of the first line? That's what your problem was. It was forcing the tooltip text to include all the blank spaces before the %{case} element...

Since XML is so precise, there simply had to be a rational explanation for the behavior you were seeing. :D
 
Back
Top