Create account / Log in

Problem with Startup Global Key Command

Issues with the Vassal engine.

Moderators: uckelman, Tim M

Problem with Startup Global Key Command

Postby msz4 » October 14th, 2020, 12:21 pm

Hello,
I made module of card game where at start are activated several Startup Global Key Commands which move cards from deck to other deck and from decks to places on board. Everything is fine... but only for user which start the game. Every other user (even if I start game and then I'll change my password in Preferences) can't discard these cards moved by Startup Global Key Commands. There is no card owners in this module, or at least I hope I configured it like that. Options under right-click except of unmask card for not-starting users disappeared. All cards traits back to normal when card is unmasked. Until then not-starting users can move cards on board but they can't move cards to any deck. I don't know if miss some configuration or is it bug?
I use Vassal 3.4.2 and 3.4.6 on Windows 7 and 10.
msz4
 
Posts: 3
Joined: October 14th, 2020, 11:43 am

Re: Problem with Startup Global Key Command

Postby Cattlesquat » October 15th, 2020, 4:32 pm

Brent is the expert on this masking stuff, but I *think* if you go to Global Options in the Editor (it is one of the early options in the editor's "tree"), and double-click on it to open its properties, there will be an option at the top about "Allow non-owners to unmask pieces". Change that to "Always". That should fix your problem (although if you are using "Predefined Setups" that i.e. i.e. use save files to start the game position, you may need to re-make those).

Brian
User avatar
Cattlesquat
 
Posts: 947
Joined: December 2nd, 2019, 4:57 pm
Location: Baltimore, Maryland, USA

Re: Problem with Startup Global Key Command

Postby msz4 » October 15th, 2020, 7:38 pm

Thank you for reply Brian. :)
I'm not using "Pre-defined Setup". "Allow non-owners to unmask pieces" is set to "Always" and only it works the way I want. Anyone can mask and unmask cards (of course only these with that option), but it is the only card trait possible for non-owners. Unmasking card unlock other traits, but I want to be able to operate masked cards.
Regards
Mariusz
msz4
 
Posts: 3
Joined: October 14th, 2020, 11:43 am

Re: Problem with Startup Global Key Command

Postby msz4 » November 7th, 2020, 10:35 am

I think that problem is with Mask trait. Cards without that trait are able to manipulate by any player. Only cards with defined Mask trait are not behave properly. I made video to show what I mean.
https://youtu.be/7-4QFwFt1t8
msz4
 
Posts: 3
Joined: October 14th, 2020, 11:43 am

Re: Problem with Startup Global Key Command

Postby cemoreno » November 9th, 2020, 4:00 pm

I think this is just how vassal works.

The mask trait has an option "Can be masked by" which is not the same as "can be un-masked by". Only the owner (the one who masked a piece) can un-mask it.

I've struggled with this too, but I didn't find any good solution.

Eventually I used a layer instead a mask, with "restrict command" and some properties here and there... worked more or less right but the owned couldn't "peek" the pieces, and finally I decided against automated setup.
cemoreno
 
Posts: 67
Joined: September 30th, 2010, 4:57 pm

Re: Problem with Startup Global Key Command

Postby Cattlesquat » November 9th, 2020, 5:03 pm

If you want traits that are available to ALL players, EVEN when the card is masked, then put those traits BELOW the Mask trait in the list of traits. Any trait that is below the Mask trait will be visible and available regardless of whether the card is masked.

Brian
User avatar
Cattlesquat
 
Posts: 947
Joined: December 2nd, 2019, 4:57 pm
Location: Baltimore, Maryland, USA

Re: Problem with Startup Global Key Command

Postby cemoreno » November 10th, 2020, 3:39 pm

Yes, but "peek" is part of the Mask trait, cannot be placed below or above it.
cemoreno
 
Posts: 67
Joined: September 30th, 2010, 4:57 pm

Re: Problem with Startup Global Key Command

Postby jrwatts » November 10th, 2020, 4:42 pm

I've run into this problem of only one player (the last one to "touch" it) being able to peek at a card/tile. The developer of the Merchant of Venus module found a work-around for this problem--when you try to peek at a tile, it flips it twice (which isn't visible to any player--at least in a online game; I'm not sure about PBEM--but transfers "ownership" to the new player), then peeks.

I copied that mechanism and refined it a bit (so the non-functional Peek command no longer appears on the menu) for the latest version of Carcassonne: The Castle. Take a look at the BonusTile prototype here: http://www.vassalengine.org/mediawiki/i ... e.2.0.vmod

The important traits are Mask and Trigger Action - grab ownership....

I see no reason why the double-flip technique wouldn't work to allow other commands besides peeking to work, also.
jrwatts
 
Posts: 125
Joined: April 29th, 2020, 10:30 pm


Return to Technical Support & Bugs

Who is online

Users browsing this forum: No registered users and 3 guests