Unable to copy and paste Piece items into Decks

Hi,

I was trying to improve the A Few Acres Of Snow module the other day by adding a “draw specific cards” function to some of the decks in the game. On editing the module I discovered that the decks in question had been created as Panels inside the Game Piece Palette rather than Decks inside a Map (hence the problem).

So I added some new Deck objects in the Main Map and tried to copy and paste the individual Single Piece objects from the Panels into the corresponding Decks. But when I tried this the “paste” option was grayed out.

I had a quick chat about this on the IRC channel and it was suggested I added it as a bug - so here I am :slight_smile:

Cheers,
Matt

That’s not a bug. You can copy a “Card” into a deck from another deck but you can’t copy a “Game Piece” into a deck as a card. Although a card and a game piece has many common traits, Vassal handles cards and game pieces differently.

What you can do is copy and paste each individual trait from the game piece into a newly created card …as long as the card will accept that trait …and off hand, I don’t know what traits a card would not accept from a game piece.

Thus spake DrNostromo:

That’s not a bug. You can copy a “Card” into a deck from another deck
but you can’t copy a “Game Piece” into a deck as a card. Although a card
and a game piece has many common traits, Vassal handles cards and game
pieces differently.

What you can do is copy and paste each individual trait from the game
piece into a newly created card …as long as the card will accept that
trait …and off hand, I don’t know what traits a card would not accept
from a game piece.

If there are no traits that a regular piece can have that a card cannot,
then I think we should permit pieces to be pasted into decks.


J.

That would be handy as I’ve had cases in the past where I would like to have copied one to the other, and vice versa.

Added:

Bug 4051 - Allow Cut and Paste between Decks and GamePiece Palette

I will look into this shortly.
Brent.

Thie Enhancement has been done. It will be included in the next build of 3.2 and will also be retrofitted to 3.0.17.

Thus spake Brent Easton:

Thie Enhancement has been done. It will be included in the next build of
3.2 and will also be retrofitted to 3.0.17.

Merged to trunk@7931.

7919 makes the 3.1 branch unbuildable:

src/VASSAL/build/GpIdChecker.java:144: cannot find symbol
symbol : method getNextGpId()
location: interface VASSAL.build.GpIdSupport
if (maxId >= gpIdSupport.getNextGpId()) {
^
src/VASSAL/build/GpIdChecker.java:145: cannot find symbol
symbol : method setNextGpId(int)
location: interface VASSAL.build.GpIdSupport
gpIdSupport.setNextGpId(maxId+1);

You’re calling some methods which don’t exist in that interface in 3.1.

J.

Thus spake Joel Uckelman:

Thus spake Brent Easton:

Thie Enhancement has been done. It will be included in the next build of
3.2 and will also be retrofitted to 3.0.17.

Merged to trunk@7931.

7919 makes the 3.1 branch unbuildable:

src/VASSAL/build/GpIdChecker.java:144: cannot find symbol
symbol : method getNextGpId()
location: interface VASSAL.build.GpIdSupport
if (maxId >= gpIdSupport.getNextGpId()) {
^
src/VASSAL/build/GpIdChecker.java:145: cannot find symbol
symbol : method setNextGpId(int)
location: interface VASSAL.build.GpIdSupport
gpIdSupport.setNextGpId(maxId+1);

You’re calling some methods which don’t exist in that interface in 3.1.

Brent, ignore this. It’s completely bogus. I somehow ended up with the
source from GpIdChecker in my 3.1 branch (uncommitted), which was
preventing me from building. There’s no problem with 7919, it’s my
mistake.


J.

Thus spake mattdp:

Hi,

I was trying to improve the A Few Acres Of Snow module the other day by
adding a “draw specific cards” function to some of the decks in the
game. On editing the module I discovered that the decks in question had
been created as Panels inside the Game Piece Palette rather than Decks
inside a Map (hence the problem).

So I added some new Deck objects in the Main Map and tried to copy and
paste the individual Single Piece objects from the Panels into the
corresponding Decks. But when I tried this the “paste” option was grayed
out.

I had a quick chat about this on the IRC channel and it was suggested I
added it as a bug - so here I am :slight_smile:

Your problem is fixed in 3.1.17, as well as in current 3.2 development
builds. Thanks for bringing this to our attention.


J.