There is a problem using Refresh Counters with version 4.1 of the Commands & Colors Ancients module, which @g1ul10 mentioned to me. So I thought I’d take a look at it.
What happens is that some pieces (typically terrain) get replaced with other pieces when Refresh Counters is used. It doesn’t matter what settings are used for Refresh Counters. The replacement pieces are various cards; at least, in the scenarios that I tested.
I suspected from what Giulio described and my own tests that these particular cards in the buildfile are using the same PieceIds as the pieces that they replace in the save files.
My first action was to edit the build file, renumbering all the cards in question, starting from the next available PieceID slot. Sure enough, Refresh Counters now does not replace the terrain etc pieces.
However, the Refresh Counters action now replaced some of the cards with other cards that bare the same name (a variant of the game). My workaround to this was to temporarily re-name those other cards, do another Refresh Counters (that worked) and finally rename them back and Refresh Counters one last time.
I seem to have improved the situation, in that Refresh is now possible but I am left with one flaw. After renaming cards back, when the Refresh option to identify counters by name is used, the Refresh will still replace cards (unlike before, it will not replace them if this option is not clicked).I am wondering what I can do about this last hurdle. I have other modules with identically named pieces that do not get mixed up by a Refresh Counters, but what might I be missing?
Hoping that @Brent_Easton or @CloClooo might be able to shed some light.