Reposted/reformatted from previously unlisted thread, as this is a remaining valid issue affecting HTML/JS weather listener/weather preset data use.
Version: 1.4.16.0
Frequency: Consistently
Severity: High
Context: Any flight, any aircraft, using custom/Preset weather
Bug description: Wind speeds in wind layers are limited to 150kts (77m/s) for custom preset weather via UI max/clamp values. When a user or add-on attempts to use 150kt or higher, the wind speed unexpectedly drops to zero instead of being clamped as intended.
Repro steps: Attempt to set wind speed > 150 knots (77m/s) for any wind layer in Preset/Custom weather via coherentGT debugger or custom javascript code. Observe depicted wind speed becomes 0.
Expected behavior: If there is a hard limit, the limit should be enforced but not corrupted/zeroed when reached (it should cap at 150kts in this case).
NOTE: There should not be an arbitrary limit of 150, but this is separate to this bug. See related wishlist item regarding increasing the limit: Increase maximum possible wind speed for wind layers (currently 150kt, 77m/s) - Wishlist - Microsoft Flight Simulator Forums