n4gix
Resource contributor
- Messages
- 11,674
- Country

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!
Just for fun though, how many can spot the error immediately?
First the complaint:
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!
I've since concluded that "Unknown" actually is referring to the modeldef.xml embedded script(s). 
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!

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!
I've since concluded that "Unknown" actually is referring to the modeldef.xml embedded script(s). 
Code:
<Code>
(L:B737_COM1_XferSwitch,bool) !
if{ (L:B737_Com1_FRAC_TUNE,enum) )
els{ (L:B737_Com1Stby_FRAC_TUNE,enum) }
</Code>




