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
Hello @LateAura49
Is this still an issue on recent builds?
If so, what call are you using exactly in the Coherent debugger to replicate this?
Regards,
Sylvain
Thanks for the follow up!
Yes, still happening, in the latest official anyway. I haven’t tried the betas this round yet. Here is an example of the code that shows the issue:
// MSFS2024 Build 1.4.20.0
// Language/units setting en-us/U.S. System
// This works, all wind layers become 150 knots
const overrideWindSpeedKts = 150.0;
for (let i = 0; i < as_wx_Preset.tWindLayers.length; i++) {
as_wx_Preset.tWindLayers[i].dvSpeed.value = overrideWindSpeedKts;
}
this.as_wx_Listener.updateTempWeatherPreset(as_wx_Preset);
// This fails, all wind layers become 0 knots
const overrideWindSpeedKts = 151.0;
for (let i = 0; i < as_wx_Preset.tWindLayers.length; i++) {
as_wx_Preset.tWindLayers[i].dvSpeed.value = overrideWindSpeedKts;
}
this.as_wx_Listener.updateTempWeatherPreset(as_wx_Preset);
Hello @LateAura49
There is an issue on the sim side.
UI team will work on a fix. I’ll update this thread when it’s available.
Regards,
Sylvain
2 Likes
Great, thank you! Hopefully we can also get the arbitrary limit of 150kts adjusted to 250kts while we are at it? 