Generate Countersheets or Hexmaps from Command-Line

I'm adding the following paragraph to the readme.html file of the next release of Inkscape Boardgame Extensions:

For advanced users, if you want to use these scripts from the command-line,
there's little to stop you. You need to have the
lxml python module
and (from the Inkscape extensions directory) in your python
module path
(PYTHONPATH) and then execute the script with the SVG
file as first argument (after any options). For a list of
options for a command you can execute for example:
python --help
As an example on how to create a countersheet without starting Inkscape:
python -d units.csv counter_templates.svg > countersheet.svg
This can be very useful if you write scripts to automate creation of all
components for a game in a single command, or to automatically update
images in modules for VASSAL (or similar) (see the -b, -w, -y, and -f
options). You may also have to use this technique when producing big
countersheets as Inkscape will unfortunately
easily run out of memory and be unable to display too big SVG files.
Notice that the output SVG is written to standard output of the script.

Thought it could be useful to some of you, even if I understand most people will be happier just
clicking around doing things in the GUI, which is of course fine as well (execpt when you run out
of memory, but buying more RAM should fix that as well :) ).

Views: 46


You need to be a member of ConsimWorld to add comments!

Join ConsimWorld

Help Center

Latest Activity

Andy Loakes posted a status
"LYG's June Upadate is Complete. See what we have for you here:"
14 hours ago
Dan Geer posted a status
"I've been looking for a Vassal (something akin) module for Proud Monster Deluxe. Where can I find one? Thnaks"
Nathan posted a video

Guide to Operation Overlord Wargames [D-Day, Normandy, 6 June 1944]

Guide to Operation Overloard Games [D-Day, Normandy, 6 June 1944]
Eric Walters commented on Kid's photo


"Really appreciate the annotations on the map, showing those historically significant locations!"
Kid posted a photo


Part of Hue south-east-of the river. To use for the 'Sweep' actions of the US Marines capturing the…
Eric Walters left a comment for Dan Geer
"Welcome to the CONSIMWORLD Social Website, Dan.  I'm sure you've found the ASL group…"
Dan Geer is now a member of ConsimWorld
Eric Walters commented on Kid's photo


"All sorts of tactical possibilities on this board!  "




CSW Related Links

© 2020   Created by John Kranz.   Powered by

Badges  |  Report an Issue  |  Terms of Service