Create account / Log in

Labeling hexes with leading characters

Suggestions for additional features for the module editor and Vassal engine.

Moderators: uckelman, Tim M

Labeling hexes with leading characters

Postby BigAl737 » July 6th, 2014, 9:04 pm

Greetings,

I would like to request a way to label hexes with a leading alphanumeric character, similar to the way you can add a separator. This would come in handy when several maps are abutted and you wanted to differentiate the hex IDs between the maps. For example, if you had 3 maps, a north map, center map, and a south map, you could define a hexgrid for each and VASSAL would label the north map hexes as "Nxxx" (vice the "xxNxx" format currently available), the center map hexes as "Cxxx", and the south map hexes as "Sxxx".

Maybe there is a way to do this already by modifying the build file or adding a class, neither of which I know how to do.

Thanks for your consideration.

Allan

GridNumbering.jpg
GridNumbering.jpg (67.58 KiB) Viewed 8099 times
BigAl737
 
Posts: 49
Joined: July 10th, 2009, 6:47 am
Location: Eagle River, AK

Re: Labeling hexes with leading characters

Postby Tim M » July 7th, 2014, 2:15 am

If each map is a board component, you can simply edit the board label to be “WhateverIWantToPutInFront”$GridLocation$. Works perfectly for what you are describing



From: messages [mailto:messages-bounces@vassalengine.org] On Behalf Of BigAl737
Sent: Sunday, July 06, 2014 4:05 PM
To: messages@vassalengine.org
Subject: [messages] [Feature Requests] Labeling hexes with leading characters



Greetings,

I would like to request a way to label hexes with a leading alphanumeric
character, similar to the way you can add a separator. This would come
in handy when several maps are abutted and you wanted to differentiate
the hex IDs between the maps. For example, if you had 3 maps, a north
map, center map, and a south map, you could define a hexgrid for each
and VASSAL would label the north map hexes as "Nxxx" (vice the "xxNxx"
format currently available), the center map hexes as "Cxxx", and the
south map hexes as "Sxxx".

Maybe there is a way to do this already by modifying the build file or
adding a class, neither of which I know how to do.

Thanks for your consideration.

Allan

GridNumbering.jpg



__________ Information from ESET Smart Security, version of virus signature database 10054 (20140706) __________

The message was checked by ESET Smart Security.

http://www.eset.com



__________ Information from ESET Smart Security, version of virus signature database 10054 (20140706) __________

The message was checked by ESET Smart Security.

http://www.eset.com
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: 1817
Joined: December 8th, 2007, 12:22 pm
Location: Earth

Re: Labeling hexes with leading characters

Postby BigAl737 » July 7th, 2014, 6:07 am

Thanks for the reply Tim.

What you suggest works perfectly for prefixing grid locations in the chat window.

Unless I'm misunderstanding you, I don't see a way to have VASSAL actually prefix the hex numbering on the map itself. Hex 0101 In my jpg example is labelled 01N01. I'd like a way to label it N0101.

Allan
BigAl737
 
Posts: 49
Joined: July 10th, 2009, 6:47 am
Location: Eagle River, AK

Re: Labeling hexes with leading characters

Postby Tim M » July 7th, 2014, 11:21 am

Same thing but in the grid numbering dialog, change the location format
label to read $row$N$column$ or $column$N$row$ whatever way is correct



From: messages [mailto:messages-bounces@vassalengine.org] On Behalf Of
BigAl737
Sent: Monday, July 07, 2014 1:07 AM
To: messages@vassalengine.org
Subject: Re: [messages] [Feature Requests] Labeling hexes with leading
characters



Thanks for the reply Tim.

What you suggest works perfectly for prefixing grid locations in the
chat window.

Unless I'm misunderstanding you, I don't see a way to have VASSAL
actually prefix the hex numbering on the map itself. Hex 0101 In my jpg
example is labelled 01N01. I'd like a way to label it N0101.

Allan

_______________________________________________
Read this topic online here:
viewtopic.php?p=45594#p45594
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: 1817
Joined: December 8th, 2007, 12:22 pm
Location: Earth

Re: Labeling hexes with leading characters

Postby BigAl737 » November 6th, 2014, 7:19 pm

I'm just getting back to this project.

Thanks Tim. I'll try this out.

Much appreciated.

Allan
BigAl737
 
Posts: 49
Joined: July 10th, 2009, 6:47 am
Location: Eagle River, AK

Re: Labeling hexes with leading characters

Postby Stiglr » November 7th, 2014, 4:26 pm

I just asked and had solved the same Q:

viewtopic.php?f=4&t=7737
Stiglr
 
Posts: 197
Joined: June 28th, 2014, 12:06 am


Return to Feature Requests

Who is online

Users browsing this forum: No registered users and 3 guests