wkFlamingHealthBars

From Worms Knowledge Base

Jump to: navigation, search
(Up to WormKit)
wkFlamingHealthBars
wkFlamingHealthBars screenshot
Developer: terion
Latest version: v2 / 24 Sep 2020
Supported games: W:A
Supported W:A version: 3.8
Supported W:A editions: This item is compatible with the CD edition of W:A.  This item is compatible with the Steam edition of W:A.This item is compatible with the GOG edition of W:A.
Language: C++
License: Open-Source
Website: TUS thread
Download: wkFlamingHealthBars-v2.zip (215 kB)

This WormKit module brings back the famous flaming team health bars to WA 3.8.

Version 2 later added the ability to use your own custom animations as shown in the details window screenshot.


How to use it

  1. Ensure that you have the "Load WormKit modules" option from Advanced settings enabled.
  2. Extract wkFlamingHealthBars.dll, wkFlamingHealthBars.ini and healthbars/ to your WA installation directory.
  3. Edit wkFlamingHealthBars.ini config to match your team names. More teams can be added by copy & pasting [team#] section. Up to 128 teams can be configured.
  4. Launch the game. If the configured team name is matched and the game was able to load the specified IMG file, the flame should be visible.


How to create your own animations

Health bar animations are regular IMG files with all animation frames stacked on top of each other. One frame is 128px wide and 13px tall. For example, if your animation has 10 frames, then the file dimensions must be 128x130px. The module will automatically determine animation type (flame/custom) based on image dimensions.

  1. Create a 128x13px movie with your animation
  2. Download ImageMagick and ffmpeg binaries. ImageMagick, ffmpeg
  3. Extract all frames from your movie to png files:
    ffmpeg.exe -i movie.mp4 img%04d.png
  4. Merge all frames vertically:
    magick.exe img*.png -append animation.png
  5. Convert your animation.png to compatible IMG format, as explained here
  6. If animation plays too fast, add AnimationDelay=1 or AnimationDelay=2 to your team in wkFlamingHealthBars.ini


Template pack: healthbars template v2.zip


Notes

  • If you are using colorblind settings, then use files with "gfx1" suffix. Otherwise use "gfx0" suffix.
  • Custom healthbars can be created with sprite editor - make sure you use exactly the same palette colors.
  • The animated bars are only visible locally and other players do not see the flames (unless you agree to use the same .ini file settings and files).
  • Teams that do not match any name in .ini file will use a default file specified for alliance color .ini or display normal health bar if filename is empty
  •  %COLOR% macro in filename will automatically match the alliance color of the team
Personal tools