# Does Not Stack Bug

**URL:** https://forum.vassalengine.org/t/does-not-stack-bug/74491
**Category:** Technical Support & Bugs
**Tags:** v3\_6
**Created:** [April 29, 2022, 11:16am UTC](https://forum.vassalengine.org/t/does-not-stack-bug/74491 "2022-04-29T11:16:33Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![HaraldFair](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/haraldfair/32/7071_2.png) [@HaraldFair](https://forum.vassalengine.org/u/HaraldFair)
#### Post date: [April 29, 2022, 11:16am UTC](https://forum.vassalengine.org/t/does-not-stack-bug/74491/1 "2022-04-29T11:16:33Z")

</div>

[I have created a focused .vmod (linked)](https://drive.protonmail.com/urls/JZ2H2E2D28#RQMPdakwWPxj) to demonstrate this bug. All you have to do to recreate the bug is drag a single piece onto the game-board and then click elsewhere to de-select the piece. Then, you will need to use ctrl-click to re-select it for movement as per the traits. But, you will find it does not move, even though it is set to allow “move when selected”.

---

<div class="post-metadata">

### Author: ![palad0n](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/palad0n/32/215_2.png) [@palad0n](https://forum.vassalengine.org/u/palad0n)
#### Post date: [April 29, 2022, 12:46pm UTC](https://forum.vassalengine.org/t/does-not-stack-bug/74491/2 "2022-04-29T12:46:29Z")

</div>

Thanks for that. Tried the vmod and ran a couple of trials.  
config 1: as per your rules. Piece cannot move.  
config 2: as per 1 except move normally. Piece can move.  
config 3: as for 2 except stack normally. Piece cannot move.  
config 4: as for 3 except move if selected. Piece cannot move.  
config 5: as for 1 except select using ALT key. Piece can move.  
config 6: as for 5 except stack normally. Piece can move.

Enough. The issue is with the use of the CTRL key. Everything works using the ALT key.  
As to the why, I’m not a Vassal Engine developer.

---

<div class="post-metadata">

### Author: ![marktb1961](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/marktb1961/32/231_2.png) [@marktb1961](https://forum.vassalengine.org/u/marktb1961)
#### Post date: [April 29, 2022, 1:13pm UTC](https://forum.vassalengine.org/t/does-not-stack-bug/74491/3 "2022-04-29T13:13:03Z")

</div>

> [@palad0n](#):
>
> The issue is with the use of the CTRL key. Everything works using the ALT key.

Same result for Mac where the equivalent is Cmd+click - that is not working but Shift and Alt click is.

Ctrl/Cmd + click is a new feature and I recall @Cattlesquat put it in.

---

<div class="post-metadata">

### Author: ![palad0n](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/palad0n/32/215_2.png) [@palad0n](https://forum.vassalengine.org/u/palad0n)
#### Post date: [April 29, 2022, 1:56pm UTC](https://forum.vassalengine.org/t/does-not-stack-bug/74491/4 "2022-04-29T13:56:59Z")

</div>

I have quite a few negative comments from MAC users re the use of the CMD key. They had a workaround, but I’ve forgotten what it was. I think it had something to do with the use of CMD + shift, or is it what you have stated shift + ALT in lieu of just the CMD key?

---

<div class="post-metadata">

### Author: ![palad0n](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/palad0n/32/215_2.png) [@palad0n](https://forum.vassalengine.org/u/palad0n)
#### Post date: [April 29, 2022, 4:49pm UTC](https://forum.vassalengine.org/t/does-not-stack-bug/74491/5 "2022-04-29T16:49:34Z")

</div>

FYI. I have only used the ALT key to select a piece. I have never had a problem. Change to the ALT key is the best advice I can give. The ctrl key may lead to other issues I have never considered. For windoze, who knows. Not many, if any, windoze keyboard shortcuts use ALT.

---

<div class="post-metadata">

### Author: ![HaraldFair](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/haraldfair/32/7071_2.png) [@HaraldFair](https://forum.vassalengine.org/u/HaraldFair)
#### Post date: [April 29, 2022, 5:17pm UTC](https://forum.vassalengine.org/t/does-not-stack-bug/74491/6 "2022-04-29T17:17:25Z")

</div>

That makes sense as a workaround. But, if for some reason the devs think the functionality should remain unfixed then we should probably remove that option from the trait, just so as not to confuse/frustrate those who seek to use it. I’ll standby for guidance from them on the disposition of this post (solved/unsolved).

---

<div class="post-metadata">

### Author: ![marktb1961](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/marktb1961/32/231_2.png) [@marktb1961](https://forum.vassalengine.org/u/marktb1961)
#### Post date: [April 29, 2022, 6:33pm UTC](https://forum.vassalengine.org/t/does-not-stack-bug/74491/7 "2022-04-29T18:33:16Z")

</div>

> [@palad0n](#):
>
> Not many, if any, windoze keyboard shortcuts use ALT.

Try pressing Alt+Left-Click in almost any module in Vassal v3.5.8 (at least) or later.

It is the default shortcut for “flare”… can be a bit of a distraction albeit a harmless conflict with its use for selecting a Do Not Stack piece.

On the subject of Mac and Cmd key - in this context I was only talking about Vassal’s (non-working) Mac equivalent to Ctrl as the click modifier key. Unfortunately MacOS reserves Ctrl+Click as a psuedonym for Right-Click (remember the original, single button, Mac mouse, anyone?). I’d be interested to hear the specific issues your Mac users had with the Cmd key.

I reverted to using Shift+Click after finding Alt+Click unsatisfactory. That was before this latest change, which I have yet to try until this thread. Shift then brings in a different conflict - group select, but that is less intrusive that flare.

---

<div class="post-metadata">

### Author: ![palad0n](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/palad0n/32/215_2.png) [@palad0n](https://forum.vassalengine.org/u/palad0n)
#### Post date: [April 29, 2022, 6:42pm UTC](https://forum.vassalengine.org/t/does-not-stack-bug/74491/8 "2022-04-29T18:42:44Z")

</div>

The flare is nice. We use it often to indicate the hex/spot on the map in question. A minor distraction when it comes to using ALT to select a piece.  
MAC users found the CMD key simply did nothing. Unable to even flip. Mind, I have not heard any negative results for a while now. One player in my current is a MAC user and He has not mentioned any issues.  
Back to the original question. If the Vassal guys remove the cntrl/cmd part of the do not stack trait (and have a automatic converter for modules that use this) then perhaps the ctrl/cmd key with click can activate the flare. Cntrl/cmd and click moves away from the do not stack ALT that works and removes the flare while doing so.

---

<div class="post-metadata">

### Author: ![Cattlesquat](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/cattlesquat/32/241_2.png) [@Cattlesquat](https://forum.vassalengine.org/u/Cattlesquat)
#### Post date: [April 30, 2022, 2:47am UTC](https://forum.vassalengine.org/t/does-not-stack-bug/74491/9 "2022-04-30T02:47:07Z")

</div>

With apologies I don’t actually understand what bug/problem is being discussed here. “The issue is with the use of the CTRL key” – use of the CTRL key _for what?_ Is CMD key on Mac behaving differently from CTRL key on non-Mac?

---

<div class="post-metadata">

### Author: ![HaraldFair](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/haraldfair/32/7071_2.png) [@HaraldFair](https://forum.vassalengine.org/u/HaraldFair)
#### Post date: [April 30, 2022, 3:01am UTC](https://forum.vassalengine.org/t/does-not-stack-bug/74491/10 "2022-04-30T03:01:57Z")

</div>

Yes, sorry. If you take my original post in isolation, it should be more clear. I’ve provided a focused .vmod for repro and steps in my post. This is a Does Not Stack trait issue. When the piece is set to only select with a ctrl+click and to only move when selected, it doesn’t move. The rest of the comments are ancillary to that. This isn’t urgent for my projects. But, it did come up, so I thought I should report it.

---

<div class="post-metadata">

### Author: ![palad0n](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/palad0n/32/215_2.png) [@palad0n](https://forum.vassalengine.org/u/palad0n)
#### Post date: [April 30, 2022, 12:16pm UTC](https://forum.vassalengine.org/t/does-not-stack-bug/74491/11 "2022-04-30T12:16:37Z")

</div>

Indeed the original post by HaraldFair was about the failure of the ctrl/cmd key being overzealous (!). I just thought to try and isolate the cause, not the root cause, as I know nothing of how to program Vassal. Using the ALT key has no issues that I have found or reported back from other players, MAC or PC.  
Is there a potential programming issue the use of the ctrl/cmd key? Probably.  
How much to correct the issue versus just removing that option and just stick with the ALT key?  
There would need to be some sort of workaround to convert those that use the ctrl/cmd key to the alt key though.  
Swings and roundabouts either way. Have fun.

---

<div class="post-metadata">

### Author: ![Cattlesquat](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/cattlesquat/32/241_2.png) [@Cattlesquat](https://forum.vassalengine.org/u/Cattlesquat)
#### Post date: [April 30, 2022, 7:10pm UTC](https://forum.vassalengine.org/t/does-not-stack-bug/74491/12 "2022-04-30T19:10:22Z")

</div>

@HaraldFair Gotcha – could you please install (custom install so you can keep your regular version) the build called “FixCtrlDoesNotStack” at this URL [Builds of vassalengine/vassal](https://vassalengine.org/builds/)

… and then let me know if I succeeded?

There was one obvious thing that seemed to be missing compared to the flow for the other keys.

Brian

---

<div class="post-metadata">

### Author: ![HaraldFair](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/haraldfair/32/7071_2.png) [@HaraldFair](https://forum.vassalengine.org/u/HaraldFair)
#### Post date: [April 30, 2022, 10:06pm UTC](https://forum.vassalengine.org/t/does-not-stack-bug/74491/13 "2022-04-30T22:06:05Z")

</div>

@Cattlesquat  
Your patch works perfectly. Thank you.  
Also, FWIW, I think “Alpha Centauri” was one of the best games ever made. You’re the man!  
Cheers,  
Harald

---

<div class="post-metadata">

### Author: ![Cattlesquat](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/cattlesquat/32/241_2.png) [@Cattlesquat](https://forum.vassalengine.org/u/Cattlesquat)
#### Post date: [April 30, 2022, 10:25pm UTC](https://forum.vassalengine.org/t/does-not-stack-bug/74491/14 "2022-04-30T22:25:26Z")

</div>

Great, thx! And glad you liked it, it was fun to make! BR

---

<div class="post-metadata">

### Author: ![marktb1961](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/marktb1961/32/231_2.png) [@marktb1961](https://forum.vassalengine.org/u/marktb1961)
#### Post date: [April 30, 2022, 10:49pm UTC](https://forum.vassalengine.org/t/does-not-stack-bug/74491/15 "2022-04-30T22:49:05Z")

</div>

That build also fixes the Mac variant (Cmd+Click) 🙂

---

<div class="post-metadata">

### Author: ![uckelman](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/uckelman/32/10020_2.png) [@uckelman](https://forum.vassalengine.org/u/uckelman)
#### Post date: [May 2, 2022, 7:07pm UTC](https://forum.vassalengine.org/t/does-not-stack-bug/74491/16 "2022-05-02T19:07:04Z")

</div>

I’ve merged the fix. It will go out in 3.6.7.
