Name of game piece not showing correctly in chat log when put on map

Hello there,

I updated an old module (basically, changed most of the game pieces, not really anything else).

In old module, when i put game piece named “bla” on the table, chat log shows a message “bla has been put on the table”. However, in the new one, now, whatever the piece i add, it shows “ *grey has been put on the table”.

To give more context, old module used a “translation” option, but i tried the updated module in the old module native language (not translated) and didn’t work either. So i don’t know if it might be the explanation.

If anyone of you has any idea, i’ll be thankfull.

See you around,

smeagol

If you use layer traits, layer names can enhance or replace piece names.

2 Likes

Perhaps check your Map Window configuration - in particular the

  1. Auto-report format for movement within this map
  2. Auto-report format for movement to this map
  3. Auto-report format for units created in this map
  4. Auto-report format for units modified on this map

configurations. The third configuration is typically

$pieceName$ created in $location$ *

or as a BeanShell expression

{PieceName+" created in "+LocationName+" *"}

I looks like your configuration may read

$playerName$ has been put on the table

Of course, @shilinski could also be right if you use a Layer and set the configuration Level Name. Note that the prefix and postfix options allows you to put a string in front of and after, respectively, the initial piece name.

Other traits, such as Mask, may also modify the shown name of a piece, depending on the context and circumstances. The trait Basic Name redefines the piece name entirely.

Perhaps, if you can post your module, it would be easier to help you out.

Yours,
Christian

1 Like

Text Label is another trait than can completely change the piece name.

2 Likes

So, i checked, this is configured as you say, refering to pieceName.

I’m searching for a potential layer which could be the problem.

Thanks for the tips, will keep you all informed

This looks like to be the solution : Thanks you a lot :slight_smile:

I have an issue with a layer, that i solved. It was not exactly a layer name issue, but a level of layer name issue. The name of the level of the layer appeared as name of the piece.

BTW thank you Christian, your answer helped me solve another slight problem :wink: