Create account / Log in

counters disappearing on tiles

Talk about module design ideas and techniques.

Moderators: Tim M, uckelman

counters disappearing on tiles

Postby rozar5 » October 23rd, 2013, 4:25 pm

Hi. I am wanting to lay out my game board using square tiles - like SPACE HULK. I have the tiles designed and added to the Vassal module according to the Designers Guide so they can be drawn and laid on the "clear" mapboard and rotated to line up doors and corridors. No problem there. I set my counters up to rotate and move on the tiles. Sometimes, when I turn the counter, it will disappear and not reappear until moved another space. The counter is actually below the tile. (I can move the tile and see the counter on the main mapboard.) I assume this is a problem that can be rectified using "layers" but I can not understand the Guide's explanation. I am reading the GAME PIECE LAYER section on page 25 but the instructions make no sense to me (probably because I am dense). The example given also confuses me. Especially the part that says, "Any piece
with a Marker Trait with Property name Layer and value Terrain will be in the bottom-most layer." ???

help
rozar5
 
Posts: 38
Joined: September 28th, 2013, 6:56 am

Re: counters disappearing on tiles

Postby JoelCFC25 » October 24th, 2013, 1:45 pm

Game Piece Layers are configured at the Map Window level. That is, if in the Editor your map window doesn't already have a Game Piece Layers node, you'll have to right-click the Map Window node and create one. Then you can double-click it to get the dialog shown here: http://www.vassalengine.org/wiki/GamePieceLayers

When you specify the "Property name for layer" (which confusingly defaults to Layer, which is also the name of a piece trait), you're describing which property you're going to have on all the pieces for which you want to assign a drawing order priority.

The way you'll assign this property to all your pieces is with the Marker trait. When you create a Marker trait on a piece (http://www.vassalengine.org/wiki/PropertyMarker), you have the freedom to pick any property name and value. But you just told the Game Piece Layer tool to look for a property called "Layer" on your pieces. The Marker trait is where you do it: make the property name "Layer" and put in your value. Maybe for your purposes you'd choose a value of "Tiles" on your map tiles, or perhaps "Map".

On all your counters you'll add a Marker trait called "Layer" but with a different value--say, "Units". Then back in the Game Piece Layer dialog, you'll have to specify these drawing layers and order them appropriately. So at the top you'll have "Tiles" (this means it will draw below all other layers), then next you'll have "Units". This ensures that units will never stack with map tiles and will always draw above them.

Does that make sense?
JoelCFC25
 
Posts: 591
Joined: October 12th, 2010, 5:15 pm
Location: Minnetrista, MN

Re: counters disappearing on tiles

Postby rozar5 » October 25th, 2013, 1:39 am

Thanks for the reply, Joel. I will get to work on this and let you know how it goes.
rozar5
 
Posts: 38
Joined: September 28th, 2013, 6:56 am

Re: counters disappearing on tiles

Postby rozar5 » October 25th, 2013, 9:58 pm

Thanks to Joel I got the thing sorted out. He explained it so I could understand the process and fix my mistakes. Thank you!!!
rozar5
 
Posts: 38
Joined: September 28th, 2013, 6:56 am

Re: counters disappearing on tiles

Postby BenWH » November 28th, 2013, 9:06 am

Rather frustratingly, I can't get this to work properly.

I have two prototype definitions; settlement and terrain. Each of them has a market called Layer with the value Settlement and Terrain respectively.

In the Map section I have a Game Piece Layer Order with Terrain at the top and Settlement second. However they continue to draw in whatever order they are placed, whereas I was expecting Terrain always to be drawn underneath. What have I missed?!
BenWH
 
Posts: 25
Joined: May 1st, 2008, 2:05 pm

Re: counters disappearing on tiles

Postby Tim M » November 28th, 2013, 1:22 pm

Check your spelling and capitalization - both must match exactly i.e Layer
is not the same as layer; same for Settlement / Terrain etc..

-----Original Message-----
From: messages [mailto:messages-bounces@vassalengine.org] On Behalf Of BenWH
Sent: Thursday, November 28, 2013 3:07 AM
To: messages@vassalengine.org
Subject: Re: [messages] [Module Design] counters disappearing on tiles

Rather frustratingly, I can't get this to work properly.

I have two prototype definitions; settlement and terrain. Each of them has a
market called Layer with the value Settlement and Terrain respectively.

In the Map section I have a Game Piece Layer Order with Terrain at the top
and Settlement second. However they continue to draw in whatever order they
are placed, whereas I was expecting Terrain always to be drawn underneath.
What have I missed?!

_______________________________________________
Read this topic online here:
viewtopic.php?p=42903#p42903
Tim,
Vassal Uber Geek/Guru

Problems? post your OS, Physical Mem, version of Vassal and Java plus the Module in question.
No developer can help with out that info, thx!
User avatar
Tim M
 
Posts: 1777
Joined: December 8th, 2007, 12:22 pm
Location: Earth

Re: counters disappearing on tiles

Postby BenWH » November 28th, 2013, 4:37 pm

Thanks for the suggestion - I went back and doubled checked, but it's not that.
BenWH
 
Posts: 25
Joined: May 1st, 2008, 2:05 pm


Return to Module Design

Who is online

Users browsing this forum: No registered users and 0 guests