FG: 2020.4
System: Linux Mint
The view of the tower was not changed to the specified tower via ICAO code.
The tower view should change to the specified tower via ICAO code.
This problem does not occur in version 2020.3.19.
As far as I have noticed, in version 2020.3.19, the switching of the tower view was handled by the FGTowerLocationListener class from the positioninit.cxx file, but in version 2020.4, this class has been removed and it looks like it has not been replaced by anything.
Diff:
This is a bit odd, there's still a reference to 'initTowerLocationListener' in one file but it's not defined and never called. Would help if we can find the commit which changed this since 2020.3 and see what the intention actuall was...
Found it : commit [522d7e] by Richard moves this logic to FGEnvironmentMgr::updateClosestAirport.
@r-harrison can you comment on this U case?
Related
Commit: [522d7e]
Last edit: Gijs 2024-07-12
Hi @r-harrison, any chance you would be able to give an update on the status of this issue?
Thanks!
Joshua
Taking this one over: have the changes locally, jsut needs quite some testing.
I got stuck on this because when I reintroduced the logic it caused instability and I couldn't figure out why.
Also the dialog needs the following:
diff --git a/gui/dialogs/location-of-tower.xml b/gui/dialogs/location-of-tower.xml
index f9215ea8b..ea3a9621e 100644
--- a/gui/dialogs/location-of-tower.xml
+++ b/gui/dialogs/location-of-tower.xml
@@ -72,6 +72,7 @@
<input>
<name>airport-id</name>
<row>1</row>
1
@@ -86,6 +87,9 @@
<property>/sim/tower/auto-position</property>
<empty>
<row>0</row></empty>
I've got a fix mostly done, just testing the various cases now.
I can help with carrier testing this one - also MP carrier - however I do not understand the error (or it is not fixed). Using latest 2024.1.1 compiled this morning.
When I start at KSFO and change to tower view, then it it the view from KSFO tower.
When I continue to fly, use Location->Tower View, then uncheck the "Always use closest", change the ICAO to KOAK and then hit the OK button, the view is still from KSFO tower - I would have assumed that the view then changes to KOAK tower.
The fixes are only local, I'm trying to test before I push!
Fixed on 2024.1 in FG commit 3ea4e45b4c0b2976270c47fba1d010b062869dbc
(Needs picked to next as well)