I need some message report help... - SOLVED

Somehow in my module I’ve lost the ability to report names?

Moving a named piece gives me this:

  • 1 created in 0703
  • 1 moves 0703 → 0803 *

When the mapboard is set to report this:

$pieceName$ moves $previousLocation$ → $location$ *

And a player altering a piece gives me this:

  • (Omniscient) changes BRP Base: (000) to BRP Base: (100) on Belgium Nation Card*

When the message is set to report this:

$PlayerName$ ($playerSide$) changes $oldPieceName$ to $newPieceName$ on $mapName$*

So it seems the ____Name function for pieces and players is not working?

I’m stumped.

Download the module here (4.1MB)

C’mon now, gimme some love! I even posted the module! :confused:

I had a quick lookm but nothing obvious. I won’t get a chance to look in detail for a day or two. I did manage to generate a bug report while testing, so I need to look at that also.

B.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Thank you, Brent. I will now commence with the patience! :slight_smile:

This has been fixed. The capital “P” in $PlayerName$ broke it.

I still can’t get $pieceName$ to report on the MainMap though.

Can you point to the piece of documentation that says that a reference to pieceName (as you have it capitalized) should ever return anything?

B.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

At the properties for my MainMap window I have:

Auto-report format for movement within this map:

and beside that space there’s an Insert box, which includes:

pieceName

which if selected inserts:

$pieceName$

If that’s not intended to report the name of the piece when moving, what is it for?

:slight_smile:

That was a little test. You got 100%!

I’ll check it out when I get a chance.

B.

*********** REPLY SEPARATOR ***********

On 29/06/2009 at 7:35 PM Shad wrote:


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Shad,

The problem is in your Mark layer in the All trait. The level names are ‘1’ and ‘2’, but neither ‘is prefix’ or ‘is suffix’ is selected, which causes the level name to completely replace the counter name. Hence the counters report their name as ‘1’ if not activated and ‘2’ if they are.

B.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Thank you for finding that mistake! I’ve got it working correctly now!