Wind speeds in wind layers via weather listener/preset data not properly limited (HTML/JS)

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? :folded_hands:

Hello @LateAura49

There is a fix candidate for this in SU5 Beta.
Let us know if this is ok for you.

Regards,
Sylvain

1 Like

Setting above 150 no longer causes wind speed to become zero, but sadly the limit of 150 knots is still imposed in the ui, preventing realistic scenarios above such speeds.

This is a gameplay design decision so this is to be discussed on the forums.

Regards,
Sylvain

1 Like

It has been requested in the forums wishlist: Increase maximum possible wind speed for wind layers (currently 150kt, 77m/s) - Wishlist - Microsoft Flight Simulator Forums

This topic has been automatically closed after 60 days of inactivity since it was marked as fixed.

If there is important new information about this same report, you can use the “Request reopen” button below to ask the moderation team to review it again.
For other issues or broader discussion, please open a new topic in the appropriate category.