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

It never fails...

n4gix

Resource contributor
Messages
11,674
Country
unitedstates
I've been trying to find a very obscure error in a project's XML script(s) for several years. Today it came to my attention once again with over 900 "errors" of the same so-called error in the Content Error Log of P3Dv4.

I had just finished typing in a post describing the problem and was editing the text before submitting it, and...

...wouldn't you know that the error jumped off the screen and bit me on the nose! :banghead:

Just for fun though, how many can spot the error immediately?

First the complaint:
Code:
[error.999]
error=Gauge/Script Error
Type: Unknown
Name: Unknown
Error: Invalid script (command not found - perhaps a space is missing or there's an extra space?): ")" in: )
          els{ (L:B737_Com1Stby_FRAC_TUNE,enum) }

Here is the block of script P3Dv4 was complaining about. Understand that I first had to determine where the error occurred since Type: Unknown and Name: Unknown aren't really all that helpful! :yikes: I've since concluded that "Unknown" actually is referring to the modeldef.xml embedded script(s). :stirthepo

Code:
        <Code>
          (L:B737_COM1_XferSwitch,bool) !
          if{ (L:B737_Com1_FRAC_TUNE,enum) )
          els{ (L:B737_Com1Stby_FRAC_TUNE,enum) }
        </Code>
 
Presumabobbly you want to have those L:'s to get a value assigned?
 
Fortunately, Notepad2 has bracket highlighting and it really minimizes the risk for such errors.
 
Glad you found it. Have you ever tried XML Notepad 2007? It might have coughed that up for you. I wrote a gauge for myself to provide some info on my fuel use and range. I was using the variable (A:GPS WP ETE, minutes). I was never able to get my calculation of hours and minutes flying time left over after deducting for the time en route correct. It kept showing minus numbers. Finally it dawned on me. The value in that variable would exceed 59.
 
Closing bracket on the second line should be } and not )
Bingo! As I said, I'd never noticed this before since FSX/A simply ignores the "error" and works just like there was no problem anyway. :rotfl:
 
Back
Top