On Sep 27, 2010, at 6:22 PM, krenshala wrote:
The module I am working on has multiple sides (two minimum, but I want
to set it up to allow for more as multi-faction fights can occur) all
with identical counter sets. Having some programming experience I
would
like to reuse as much on the back end as I can, but from what I have
been able to look up in the wiki and these forums I’m unclear on what
the best approach for this would be.
I know one option is to just set up one side completely, then copy/
paste
it in however many times I need them to appear, changing them to be
for
different sides. I’m hoping there is a more … elegant … way of
doing this.
Well, part of this depends on more details of what the counters look
like.
If there are only a few different types of otherwise identical
counters, then having a Game Piece Palette and drawing them as needed
works quite well. You only need to create one of each type of counter.
If the counters are standard Nato symbol counters, then there is a
tool for building the counters in the editor.
If your problem is more with the creation of lots of different
counters that only really differ in the background color, then there
may be a way to automate some of that counter creation. Scripting
your graphics program or using a command line tool like ImageMagick
would be one possibility.
With a bit more detail on what it is you want to reuse perhaps other
ideas will come up, or we could be more specific about how to go about
making this somewhat seamless.
Could you guys point me to either online reading or modules I can
dissect to further my understanding on the issue?
A more risky and radical solution would be to directly edit the build
file. This is not for the faint of heart, but since you have
programming experience, you might want to consider it. Make sure you
do this on a copy of the module, since messing up the build file can
destroy the ability to load and edit the module.
See vassalengine.org/wiki/Faq_mo … edit_it.3F