Create account / Log in

Newbie needs help

Talk about module design ideas and techniques.

Moderators: Tim M, uckelman

Newbie needs help

Postby Kezerk » February 11th, 2014, 3:23 pm

I've prettymuch managed to solve most of my problems and maybe could manage to do so for these too, but someone may already have done it and can post a step-by-step howto. No need to re-invent the wheel.

I'm making Europa modules for Vassal, and next I'd need to figure out how to do two things:

* Create a "Partisan" counter. The owner is the only one who can view the reverse side. This can be easily done with "Restricted Access" but the problem is, how can the owning player check the reverse side of the counter (to see what it is) without it also showing to the opponent and observer? Optimal would be that the owner could see the name of the unit even with the "masked side" up, but I don't think it can be done, can it?

Currently I have the piece defined as:
Basic Piece (image of Partisan counter and name "Partisan")
Prototype - Ground Unit (Includes Delete, Movement Trail, Mark when Moved, Marker - Type = Ground Unit)
Restricted Access
Layer - Front side (Partisan) and reverse side (the actual unit/Dummy)

* Hide all counters with a specific Marker Type.
The Ownership markers sometimes obscure the terrain beneath, and I'd like to be able to have a "Show ownership on/off" button.
The ownership markers are already defined with Marker - Type = Terrain
How do I create a button/command that only affects them?

Thanks in advance,

- Kez.
Kezerk
 
Posts: 2
Joined: February 11th, 2014, 3:13 pm

Re: Newbie needs help

Postby tar » February 12th, 2014, 10:48 pm

For the partisan counter I would imagine you want to use the "Mask" trait.
See, for example p. 52 of the Module Designer's Guide.
I don't think you will need restricted access.

For ownership markers, I would suggest using "Game Piece Layers".
This is a different kind of layer than the layers used in counters.
It lets you define different layers to which game pieces belong which can
be used to give stacking orders (so, for example, ownership markers can be
on the bottom) and it also makes it easy to turn off the display of certain
layers. See p. 25 and p. 52.

Guide:
http://www.vassalengine.org/mediawiki/i ... rguide.pdf


On Tue, Feb 11, 2014 at 7:23 AM, Kezerk wrote:

> I've prettymuch managed to solve most of my problems and maybe could
> manage to do so for these too, but someone may already have done it and
> can post a step-by-step howto. No need to re-invent the wheel.
>
> I'm making Europa modules for Vassal, and next I'd need to figure out
> how to do two things:
>
> * Create a "Partisan" counter. The owner is the only one who can view
> the reverse side. This can be easily done with "Restricted Access" but
> the problem is, how can the owning player check the reverse side of the
> counter (to see what it is) without it also showing to the opponent and
> observer? Optimal would be that the owner could see the name of the
> unit even with the "masked side" up, but I don't think it can be done,
> can it?
>
> Currently I have the piece defined as:
> Basic Piece (image of Partisan counter and name "Partisan")
> Prototype - Ground Unit (Includes Delete, Movement Trail, Mark when
> Moved, Marker - Type = Ground Unit)
> Restricted Access
> Layer - Front side (Partisan) and reverse side (the actual unit/Dummy)
>
> * Hide all counters with a specific Marker Type.
> The Ownership markers sometimes obscure the terrain beneath, and I'd
> like to be able to have a "Show ownership on/off" button.
> The ownership markers are already defined with Marker - Type = Terrain
> How do I create a button/command that only affects them?
>
> Thanks in advance,
>
> - Kez.
>
> _______________________________________________
> Read this topic online here:
> viewtopic.php?p=43893#p43893
> _______________________________________________
> messages mailing list
> messages@vassalengine.org
> http://www.vassalengine.org/mailman/listinfo/messages
>
User avatar
tar
 
Posts: 772
Joined: January 2nd, 2008, 6:53 pm
Location: Los Angeles area

Re: Newbie needs help

Postby Kezerk » February 14th, 2014, 11:14 am

Thanks. Mask works like a charm, but I still haven't figured out how to hide the layer.

Any chance of a step-by-step instruction?

The Ownership marker has the following properties:
Basic Piece
Layer - Hex ownership (with Loyalist/Insurgent sides)
Does not stack
Delete
Marker - Layer = Terrain
Marker - Type = Ownership

Terrain has not been defined as a layer in the map (yet), so this is pretty much what I have going for it. What next?

- Kez.
Kezerk
 
Posts: 2
Joined: February 11th, 2014, 3:13 pm


Return to Module Design

Who is online

Users browsing this forum: No registered users and 1 guest