Spell effect names are missing if openmw.cfg has no Ashstorm and Blight weather settings

In 0.52 RC1, spell tooltips can lose the effect names:

image

This happens when a openmw.cfg doesn't have the Ashstorm and Blight weather fallbacks. This was reported in the Discord. 0.51 shows the names with the same config.

Since !5248 (merged), effect names are set in onContentFilesLoaded of esmfallbacks.lua, right after the weathers from !5723 (merged). If a weather record can't be created, the handler stops there, and the names are never set:

Load[scripts/omw/esmfallbacks.lua] onContentFilesLoaded failed. Lua error: cloudsMaximumPercent must be greater than 0

Steps to reproduce

  1. Remove fallback=Weather_Ashstorm_Clouds_Maximum_Percent and fallback=Weather_Blight_Clouds_Maximum_Percent from your openmw.cfg.
  2. Start the game and hover over any spell in the magic menu.
  3. The tooltip has no effect name, and openmw.log has the error above.

Edit by AnyOldName3: Line breaks

Edited by AnyOldName3