The "download real world weather" option broke when aviationweather.gov switched from HTTP to HTTPS
To fix this issue patching of wxSimulator.dll
was required to point to the new URLs being used and and disabling SSL certificate validation
I've included a patched DLL as well as the steps to patch the DLL manually since downloading DLLs from the internet is usually frowned upon.
To install:
- Make a backup of
wxSimulator.dll
(usually found inC:\Program Files (x86)\Flag Mountain\ATCpro
) - Download the DLL provided above
- Copy the downloaded DLL into your game folder (usually
C:\Program Files (x86)\Flag Mountain\ATCpro
)
-
Run dnSpy, Select
File > Open...
, navigate to the ATPro install folder (usuallyC:\Program Files (x86)\Flag Mountain\ATCpro
) and openATCPro.exe
-
At the top of the dnSpy window click
Start
. This will open a new window, make sure theExecutable
field points toATCPro.exe
and clickOK
. ATCPro should now launch -
At the top of the dnSpy window click the
Pause
icon. -
At the bottom of the dnSpy window click on
Modules
. Right click anywhere in the Modules Pane and selectOpen All Modules
-
On the left side pane called
Assembly Explorer
, expand the modulewxSimulator
, expandwxSimulator.dll
, expandSimWeather
-
In the Assembly Explorer right click on
SimWeather()
and selectEdit Method Body...
. -
A new window will open. Line 12 will contain the URL ATCPro tries to fetch the METAR information from. Change the URL from
http://aviationweather.gov/adds/dataserver_current/current/metars.cache.xml.gz
tohttps://aviationweather.gov/adds/dataserver_current/current/metars.cache.xml.gz
After changing the URL pressOK
-
In the Assembly Explorer right click on
SimWeather(FacilityLocationInformation, string)
and selectEdit Method Body...
-
A new window will open. Line 12 will contain the URL ATCPro tries to fetch METAR information from. Change the URL from
http://aviationweather.gov/adds/dataserver_current/current/metars.cache.xml.gz
tohttps://aviationweather.gov/adds/dataserver_current/current/metars.cache.xml.gz
After changing the URL pressOK
-
In the Assembly Explorer right click on
SimWeather(FacilityInformation, string, string)
and selectEdit Method Body...
-
A new window will open. Line 12 will contain the URL ATCPro tries to fetch METAR information from. Change the URL from
http://aviationweather.gov/adds/dataserver_current/current/metars.cache.xml.gz
tohttps://aviationweather.gov/adds/dataserver_current/current/metars.cache.xml.gz
After changing the URL pressOK
-
In the Assembly Explorer right click on
SimWeather(FacilityInformation, int, int, int, wxCategory, string)
and selectEdit Method Body...
-
A new window will open. Line 12 will contain the URL ATCPro tries to fetch METAR information from. Change the URL from
http://aviationweather.gov/adds/dataserver_current/current/metars.cache.xml.gz
tohttps://aviationweather.gov/adds/dataserver_current/current/metars.cache.xml.gz
After changing the URL pressOK
-
In the Assembly Explorer pane, right click on
DownloadMetar()
and selectEdit Method (C#)...
-
A new window will open showing the source code. Add the following 2 lines to the code to match the picture below
System.Net.ServicePointManager.Expect100Continue = true; System.Net.ServicePointManager.SecurityProtocol = System.net.SecurityProtocol.Tls12;
-
Once your changes has been made, click
Compile
-
If all went well the Compilation should be successfull and the window automatically closed.
-
At the top left corner of dnSpy click on
File > Save Module...
, make sure to changefilename
by clicking on the three dots...
and navigating to yourDesktop
folder -
Click
OK
-
You can now close dnSpy
- Go to your ATCPro install directory (usually
C:\Program Files (x86)\Flag Mountain\ATCpro
) and make a backup ofwxSimulator.dll
- Copy
wxSimulator.dll
from your desktop to the install directory and replace if neccesary - "download real world weather" should now be working