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

P3D v4 My code is working in FSX but not in P3Dv4 !!

Messages
9
Country
switzerland
Hello everyone,

First, I want to express my love for this website and forum, without all the knowledgeable resources that I have found here during the last 15 years I wouldn't be able to do what I do.

In order to update my 787 VC to a stable version which you can download here in beta: https://www.rikoooo.com/downloads/viewdownload/55/945 I need to fix a very annoying issue with a code that do not work as expected in PREPAR3D V4.

I have this code below which is supposed to return the last ILS frequency from a list in the database, however, it always returns the first frequency instead of the latest. This code works perfectly in FSX, I get the latest frequency as expected. But in Prepar3D v4 and v5 it returns the first frequency instead of the last one. What could possibly be wrong ??? There are no more hairs on my head :(

Full code is attached in GPS.zip this is Gavin Munro GPS v6

<Element>
<Position X="440" Y="247"/>
<FormattedText X="80" Y="30" Bright="Yes" Font="Century Gothic" FontSize="28" FontWeight="700"
Color="White" Adjust="Right" VerticalAdjust="Center" Multiline="No" Length="4">
<String>
%( 0 s3 s4 (C:fs9gps:WaypointAirportFrequenciesNumber, number) s2 0 &gt; (C:fs9gps:WaypointAirportApproachName, string) 0 3 ssub 'ILS' scmp 0 == &amp;&amp; )
%{if}
%(0 sp1)
%{loop}
%(l1 (&gt;C:fs9gps:WaypointAirportCurrentFrequency, number))
%((C:fs9gps:WaypointAirportFrequencyName, string) (C:fs9gps:WaypointAirportApproachName, string) scmp 0 == )
%{if}\{nr}
%((C:fs9gps:WaypointAirportFrequencyValue, mhz) s3 )
%{end}
%(l1 ++ s1 l2 &lt; )
%{next}
%{end}
%(l3 (&gt;L:GPS1 ILS Frequency, mhz))%!3.3f!

</String>
</FormattedText>
</Element>

Thank you for your help

Erik
 

Attachments

Last edited:
To better explain my problem, every ILS approach from my GPS has the same ILS frequency 108.350 which is good only for the first ILS approach (ILS 08L), what difference between FSX and P3Dv4 may cause this problem ?

ILS.jpg
 
Back
Top