Animated Dice not changing on the Tool Bar on a Network game

  1. Animated Dice (Symbolic) not changing on the Tool Bar on a Network game, when rolling dice. Animated dice change for the person rolling the dice, but not for the other players.

  2. Also, I use HTML for putting a dice icon in the log, to show the roll. 1 Player of 4 using the same Module version, and Vassal 3.8.2 sees a broken Icon. Started happening with 3.8.0 This happened before using the Animated dice, in 3.8.2.

  3. is there a way to close the Animated dice window automatically after the animation is done?

Thank you,
Tim

What precisely is the input for #2?

“” $playerName$ ($playerSide$) rolls 1 dice: $result$ *** <img src=“32H$result1$.png” $LogIconSize$> *** “”

Without the “”

As I said works for 3 Players, but not for the 4th in a Network game.

Tim

This is issue is solved by this PR. However, that PR also does some other changes that are currently up for discussion.

Typically when a “broken icon” is shown, it is because the image file is missing from the module (.vmod), or was for some reason not unpacked correctly.

When quoting code, put the code between pairs of ``` to use preformatted rendering in a monospace font. That makes the code easier to read. See also How to format forum posts.

So

$playerName$ ($playerSide$) rolls 1 dice: **$result$** \*\*\* <img src=“32H$result1$.png” $LogIconSize$>

What is $LogIconSize$? Try formatting the message as a BeanShell expression:

{PlayerName + "(" + PlayerSide + ") rolls 1 dice: **" + result1 + " *** <img src='32H" + result1 + ".png' " + LogIconSize +">"}

Has the player that sees the broken image icon enabled HTML in the chat through File→Preferences?

Nope, but it would be an obvious improvement on both the Animated and Symbolic dice button elements. Whether to close the window or not, should at least be configurable in the module, if not through a user setting. One way to do it, would be to be able to define a hot-key command that will close the window.

Yours,
Christian

As far as I know, $LogIconSize$ is not a standard Vassal property; it would have to be a Global Property defined in your module. If it expands to just a number like 32, that is not valid as an img attribute—use explicit width=‘32’ height=‘32’ (or a CSS style) and drop that variable. Since only one player sees the broken icon with the same module version, also suggest they clear that client’s module cache and reopen the .vmod; a stale unpacked image can produce that while others are fine.