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

Failed to load file [Resolved]

GHD

Messages
12,244
Country
england
I have one particular placement file which SODE refuses to load (others with exactly the same format work correctly).

Code:
<SODE>   

    <!-- Data Probe serving its clients -->
    <SimObject Name="EGFH">
        <Placement Lat="51.60570" Lon="-4.06896" Alt="91.140 Hdg="0.0"/>
        <Model SimTitle="12bPilot_SODE_Environmental_Data_Probe">
            <EnvironmentalDataProbe ClientList="Wind Sockf"/>
        </Model>
    </SimObject>
    

     <SimObject Name="Wind Sock">
        <Placement Lat="51.60769" Lon="-4.06392" Alt="0#AGL" Hdg="0.0"/>           
        <Placement Lat="51.60620" Lon="-4.06806" Alt="0#AGL" Hdg="0.0"/>           
        <Placement Lat="51.60019" Lon="-4.06935" Alt="0#AGL" Hdg="0.0"/>           
       <Model SimTitle="WindsockSlow">       
            <VariableDrivenRotation Variable="WindDirection" Axis="HEADING" Animated="No"/>           
            <ConditionalVisibility Variable="WindSpeed" Value="0-14"/>
        </Model>
        <Model SimTitle="WindsockNormal">       
            <VariableDrivenRotation Variable="WindDirection" Axis="HEADING" Animated="No"/>           
            <ConditionalVisibility Variable="WindSpeed" Value="15-28"/>
        </Model>
        <Model SimTitle="WindsockFast">       
            <VariableDrivenRotation Variable="WindDirection" Axis="HEADING" Animated="No"/>           
            <ConditionalVisibility Variable="WindSpeed" Value="29-60"/>
        </Model>             
    </SimObject>

   
</SODE>


From the SODE log:

[14:48:54.628] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\EGFH.xml'
[14:48:54.628] ERROR SODE.XML : Failed to load file 'C:\ProgramData\12bPilot\SODE\xml\EGFH.xml'

Any ideas?
 
Last edited:
The syntax in your posted code is correct. I'm pretty sure that it is the file encoding of the xml file that is wrong.

I recommend to use the free Notepad++ as an editor for all things textfile based, especially xml. You can alter the xml file encoding with a couple of mouse clicks to UTF-8, which is supported by SODE's xml parser.
 
Thanks Jeffrey,

The file format is UTF-8.

Currently, I have 20 xml files all with the same syntax and all in UTF-8 format. SODE objects to three of them:

Code:
[10:18:51.249] DEBUG  : Trying to build SimObject List out of XML definition files...
[10:18:51.249] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\EDAB.xml'
[10:18:51.249] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\EDAC.xml'
[10:18:51.250] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\EDAD.xml'
[10:18:51.250] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\EDAE.xml'
[10:18:51.250] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\EDAG.xml'
[10:18:51.250] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\EDAJ.xml'
[10:18:51.251] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\EDAM.xml'
[10:18:51.251] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\EDAN.xml'
[10:18:51.251] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\EDAO.xml'
[10:18:51.252] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\EDAP.xml'
[10:18:51.252] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\EDAR.xml'
[10:18:51.252] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\EDAT.xml'
[10:18:51.252] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\EDAU.xml'
[10:18:51.252] ERROR SODE.XML : Failed to load file 'C:\ProgramData\12bPilot\SODE\xml\EDAU.xml'
[10:18:51.252] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\EDAW.xml'
[10:18:51.252] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\EDAX.xml'
[10:18:51.252] ERROR SODE.XML : Failed to load file 'C:\ProgramData\12bPilot\SODE\xml\EDAX.xml'
[10:18:51.252] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\EDAY.xml'
[10:18:51.253] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\EDAZ.xml'
[10:18:51.253] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\EDBA.xml'
[10:18:51.253] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\EDBC.xml'
[10:18:51.254] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\EGFH.xml'
[10:18:51.254] ERROR SODE.XML : Failed to load file 'C:\ProgramData\12bPilot\SODE\xml\EGFH.xml'
[10:18:51.254] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\UK2000 Aberdeen Xtreme.xml'
[10:18:51.254] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\UK2000 Belfast City Xtreme.xml'
[10:18:51.255] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\UK2000 Birmingham Xtreme.xml'
[10:18:51.257] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\UK2000 Edinburgh Xtreme.xml'
[10:18:51.257] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\UK2000 Glasgow Xtreme.xml'
[10:18:51.258] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\UK2000 Guernsey Xtreme.xml'
[10:18:51.259] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\UK2000 Heathrow Xtreme.xml'
[10:18:51.267] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\UK2000 Jersey Xtreme.xml'
[10:18:51.267] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\UK2000 Leeds Xtreme.xml'
[10:18:51.268] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\UK2000 Luton Xtreme.xml'
[10:18:51.270] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\UK2000 Manchester Xtreme.xml'
[10:18:51.271] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\UK2000 Newcastle Xtreme.xml'
[10:18:51.272] DEBUG SODE.XML : Building List from File 'C:\ProgramData\12bPilot\SODE\xml\UK2000 Stansted Xtreme.xml'
[10:18:51.273] DEBUG SODE.XML : XML Data successfully read and List created.

Could it be that the Data Probe is within 40Km of another?
 
Last edited:
Sorry Jeffrey,

There was a missing quotation mark in the "Alt" field.

I need new spectacles ;)
 
Back
Top