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

BUG?

GHD

Messages
12,244
Country
england
I have 14 placements, all exactly the same (apart from the positions). They all display correctly in P3D V4.

However, SODE gives the following errors for 12 of them:

[09:28:51.304] DEBUG SODE.FSLOOP : Legacy Offset altitude bug code section...not active anymore! pAlt=0.000000 ; pSO->getAlt=0.000000 ; Name=EDWF:XXX #1
[09:28:51.304] DEBUG SODE.FSLOOP : Legacy Offset altitude bug code section...not active anymore! pAlt=0.000000 ; pSO->getAlt=0.000000 ; Name=EDWF:XXX #2
[09:28:51.304] DEBUG SODE.FSLOOP : Legacy Offset altitude bug code section...not active anymore! pAlt=0.000000 ; pSO->getAlt=0.000000 ; Name=EDWF:XXX #3
[09:28:51.304] DEBUG SODE.FSLOOP : Legacy Offset altitude bug code section...not active anymore! pAlt=0.000000 ; pSO->getAlt=0.000000 ; Name=EDWF:XXX #4
[09:28:51.304] DEBUG SODE.FSLOOP : Legacy Offset altitude bug code section...not active anymore! pAlt=0.000000 ; pSO->getAlt=0.000000 ; Name=EDWF:XXX #5
[09:28:51.304] DEBUG SODE.FSLOOP : Legacy Offset altitude bug code section...not active anymore! pAlt=0.000000 ; pSO->getAlt=0.000000 ; Name=EDWF:XXX #6
[09:28:51.304] DEBUG SODE.FSLOOP : Legacy Offset altitude bug code section...not active anymore! pAlt=0.000000 ; pSO->getAlt=0.000000 ; Name=EDWF:XXX #7
[09:28:51.304] DEBUG SODE.FSLOOP : Legacy Offset altitude bug code section...not active anymore! pAlt=0.000000 ; pSO->getAlt=0.000000 ; Name=EDWF:XXX #10
[09:28:51.304] DEBUG SODE.FSLOOP : Legacy Offset altitude bug code section...not active anymore! pAlt=0.000000 ; pSO->getAlt=0.000000 ; Name=EDWF:XXX #11
[09:28:51.304] DEBUG SODE.FSLOOP : Legacy Offset altitude bug code section...not active anymore! pAlt=0.000000 ; pSO->getAlt=0.000000 ; Name=EDWF:XXX #12
[09:28:51.304] DEBUG SODE.FSLOOP : Legacy Offset altitude bug code section...not active anymore! pAlt=0.000000 ; pSO->getAlt=0.000000 ; Name=EDWF:XXX #13
[09:28:51.304] DEBUG SODE.FSLOOP : Legacy Offset altitude bug code section...not active anymore! pAlt=0.000000 ; pSO->getAlt=0.000000 ; Name=EDWF:XXX #14
 
In the placement, what are the alts?

XML:
<Placement Lat="47.1821" Lon="7.4188" Alt="1415" Hdg="0.0"/>

Should be in one of these formats:
  • Alt=”XX.XX”: Altitude in feet
  • Alt=”X.X#AGL”: Altitude in feet above Ground Level
 
The alts are all the same:

<Placement Lat="53.2647687569261" Lon="7.42467328906059" Alt="0#AGL" Hdg="0.0"/>
 
That's a debug message for the situation where the real altitude is at sea-level.

Some background info:
FSX SimConnect does not have a function to get the altitude at a given lat/lon. So doing object injections at a relative altitude (like AGL) is a two step process.
1) the object gets injected with a "on ground" flag and then the resulting altitude is retrieved from the object's properties.
2) the AGL offset from the SODE xml is then added to the retrieved ground level value and the object is then updated to the new value.

The problem was that SODE injected the object too early in the past, where the mesh was not finished with loading. So incorrect values (too high due to the coarse mesh LOD) or even zero values were returned from FS. That's what I call "Legacy Offset altitude bug" in the log. (The underlying problem here is also that there is no SimConnect call that informs about status of mesh loading).
The newer SODE versions do inject the objects now at a late stage, assuming the mesh is fully loaded. So this behaviour should be fixed.

I left the debug message in the log, should there be still zero value returns for object that should be placed effectively at a higher ground level.
I see that EDWF is nearly or at sea-level, so you can ignore the messages. Better yet, you could set your SimObjects at absolute altitudes (without #AGL). This is also faster concerning internal processing and gives you always correct results (and also gets rid of the debug message)
 
Thank you Jeffrey,

As I said, thr objects appear cortectly. The odd metre in height is not noticible.
 
hello @12bPilot
i've used your SODE and it's awsome :D
i've seen that you are using the same EXE programme for both FSX and P3D but not for the DLLs
so i have a small question about my next project : can we use the same script of FSX for an EXE programme for both FSX and P3D
i mean the simconnect , is it the same scrpit and libraries
i'm using C#

thnx in advance :)
 
Back
Top