TwinFan / LiveTraffic

LiveTraffic is an X-Plane multiplayer plugin, which fills your sky with live air traffic based on public flight tracking data.
https://twinfan.gitbook.io/livetraffic/
Other
100 stars 25 forks source link

V3.0: New version number format broke test for updates #239

Closed TwinFan closed 1 year ago

TwinFan commented 2 years ago

Describe the bug

LiveTraffic v3.0.0 no longer correctly identifies the version available on X-Plane.org downloads.

Code got adapted to the new version number format, but apparently either not properly or I did set the version number of X-Plane.org incorrectly.

For fix consider a change of version number on X-Plane.org to match current code...otherwise users wouldn't be informed of update.

To Reproduce

Just start LiveTraffic, there's an error in the Log.txt, see below

Expected behavior

Latest version from X-Plane.org identified and user informed in case of updates.

Technical Info

Log.txt

ERROR LTVersion.cpp:239/FetchXPlaneOrgVersion: Could not browse X-Plane.org for version info: -1 - Found no version info in response
TwinFan commented 2 years ago

Apparently I had decided not to use the build date any longer ;-) as the RegEx for finding the version number expects a closing quotation mark directly after the patch version number: \"softwareVersion\": \"(\\d+)\\.(\\d+)\\.(\\d+)\".

So with the next version of LiveTraffic, that I upload to X-Plane.org, I will set the version number to something like 3.1.0 without the trailing build date and all will be automatically good and current v3.0.0 will correctly find that new version and report a new available download.