AEBS Weather Fix
О материале
«AEBS Weather Fix» — материал мастерской Project Zomboid. Карты, транспорт, оружие и моды для выживания. Данные Steam, описание автора и ссылка для установки через подписку. Совместимость редакцией не проверена.
Описание автора
⚠ No longer needed — Fixed in Build 42.16
The bug this mod fixes has been officially resolved in Build 42.16. If you're on 42.16 or later, you do not need this mod. Keeping it installed won't cause any issues (it auto-detects and switches to passthrough mode), but unsubscribing is recommended.
AEBS Weather Broadcast Display Fix
Fixes a bug introduced in Build 42.15 where AEBS (Automated Emergency Broadcast System) weather broadcasts display raw format placeholders "%s" instead of actual temperature, humidity, and wind values.
Before:
Today, average temperature %s. Minimum: %s. Maximum: %s. Humidity: %s%...
After:
Today, average temperature 15.2 °C. Minimum: 10.5 °C. Maximum: 20.1 °C. Humidity: 65%...
Features
-
Self-disabling — Automatically switches to passthrough mode once the bug is fixed upstream. No harm if you forget to unsubscribe, but unsubscribing is recommended.
-
All languages — Works with every language. This mod fixes the escaping at display time without modifying any translation data.
-
Lightweight — Minimal implementation that overrides a single game function.
Compatibility
-
Requires: Build 42.15+
-
Singleplayer and Multiplayer
-
No conflicts with other mods (only overrides getRadioText)
Verification
Check your console or log file for one of the following messages:
AEBSWeatherFix: double-escape bug detected, fix active
AEBSWeatherFix: bug not detected, passthrough mode
Technical Details
Root Cause
In Build 42.15, the translation system was refactored and the file format migrated from .txt (Lua-style key = "value") to .json. As part of this change, Translator.java now applies percent-escaping (% → %%) to all loaded values for use with Java's String.format.
This works correctly for most translation categories processed on the Java side. However, AEBS weather broadcast texts (DynamicRadio category) are passed directly to Lua via getRadioText() and processed by Lua's string.format. Since the Java-side unescaping is never applied, %%s is interpreted as a literal %s by Lua, causing the raw placeholders to appear in broadcasts.
How This Mod Fixes It
Overrides getRadioText() to unescape %% back to % before returning values to Lua. On the first call, it uses a canary key (AEBS_temperature) to auto-detect whether the double-escape bug is present. If the bug is not detected, the original function is used as-is.
Affected Texts
-
AEBS_temperature (temperature and humidity)
-
AEBS_wind_0 (wind direction and speed)
-
AEBS_weather_warning (severe weather alerts)
-
AEBS_weather_0_a / _c (weather forecast periods)
-
AEBS_random_0–3 (random AEBS transmissions)
Links
Workshop ID: 3687634406 Mod ID: AEBSWeatherFix
Как установить и запустить
Откройте оригинальную страницу в Steam Workshop, проверьте версию игры, зависимости и порядок загрузки в описании автора. Нажмите «Подписаться» и дождитесь загрузки Steam. Включите материал в меню модификаций или контента игры, если это требуется. Совместимость и запуск редакцией не проверены.