Battle for Wesnoth

Strategy

Battle for Wesnoth patch notes · Jul 22, 2022

Experiment

Patch 1.17.6

What's new in Patch 1.17.6: 27 changes to Battle for Wesnoth, released Jul 22, 2022.

Content · 4

  • Added a [screen_fade] interface action giving a smooth screen fade that also covers units.

    screen fade interface action
  • Added wesnoth.interface.screen_fade, which applies a colour overlay to the display, fading over a given duration.

    screen fade lua function
  • Added animations for the Nightgaunt unit.

    nightgaunt animation
  • Updated sprites for several Loyalist units.

    loyalist sprite

System · 14

  • Large rendering engine changes enable hardware acceleration for most components, greatly increasing performance and decreasing CPU and GPU usage.

    rendering engine hardware acceleration
  • Events now support filter conditions written in the Wesnoth Formula Language via a filter_formula key.

    event filter condition
  • All features of the event tag are now available from the Lua API.

    event tag feature availability
  • wesnoth.remove_event_handler was renamed to wesnoth.game_events.remove for consistency.

    event handler removal function name
  • wesnoth.fire_event_by_id was renamed to wesnoth.game_events.fire_by_id.

    fire event by id function name
  • The fire_event tag supports a subtag for passing arbitrary information, such as damage to attack events or former owner to village capture events.

    fire_event arbitrary data passing
  • Minimum required SDL version increased to 2.0.10 on non-macOS platforms.

    minimum sdl version
  • wesnoth.game_event.add is the primary API; the other registration functions are shortcuts for common use cases.

    event registration shortcut
  • wesnoth.current.event_context now has a data attribute containing the full event data, including former owner in village capture events.

    event context data attribute
  • wesnoth.game_events.fire (renamed from wesnoth.fire_event) now supports passing event-specific data such as damage or previous owner.

    fire event data passing
  • Added new Lua functions to register game events: add, add_menu, add_repeating and add_wml under wesnoth.game_events.

    lua game event registration function
  • Variable interpolation in an event name can now expand to multiple event names, split on commas before and after interpolation.

    event name variable interpolation
  • Minimum required SDL increased to 2.0.22 and minimum macOS version to 10.12 due to needing an SDL fix.

    minimum sdl and macos version
  • Both the action and the filter for events can now be a native Lua function.

    lua action and filter type

Fix · 8

  • Fixed a replay out-of-sync problem on the victory event in scenario S8 of Under the Burning Suns campaign.

    replay out-of-sync on victory event
  • Fixed being unable to interact with units when Scroll Lock is active.

    unit interaction with scroll lock
  • Fixed Warden and Arbiter animations popping on water tiles.

    animation popping on water tile
  • Fixed a replay out-of-sync problem on the victory event in scenario S4 of The South Guard campaign.

    replay out-of-sync on victory event
  • Fixed the Bezoar artifact being bugged and broken in World Conquest.

    broken artifact
  • Implemented a workaround for bad SDL rectangle drawing in some versions.

    sdl rectangle drawing
  • Fixed the addon manager UI blanking incorrectly.

    addon manager ui blanking
  • Rendering engine changes resolved issues #1291, #1350, #1605, #1755, #2059, #2458, #2618, #2865, #3238, #3255, #3421, #3592, #3798, #3937, #4210, #4460, #4877, #5115, #5420 and #5494.

    long-standing rendering issue

General · 1

  • Translations were updated for eight languages.

    general