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

John Kane left a comment for Eric Walters
"Hi, Eric. Thanks for the welcome. I'll have a wee look around shortly. Family life is a bit…"
44 minutes ago
Brian Dodge left a comment for Eric Walters
"Hi Eric. Thank you for the warm welcome. I am sure I will be able to find some great groups to join."
1 hour ago
Eric Walters left a comment for John Kane
"Welcome to the CONSIMWORLD Social Website, John!  I hope you find some groups that you like…"
2 hours ago
Eric Walters left a comment for Thom Hall
"Thom, welcome to the CONSIMWORLD Social Website.  Yeah, I have that same problem with listing…"
2 hours ago
Eric Walters left a comment for James Boyd
"James, welcome to the CONSIMWORLD Social Website!  Stonewall's Sword is sure a cool game;…"
2 hours ago
Eric Walters left a comment for Brian Dodge
"Brian, welcome to the CONSIMWORLD Social Website!  Decision Games' D-DAY AT OMAHA beach…"
2 hours ago
Profile IconThom Hall, James Boyd, John Kane and 1 more joined ConsimWorld
2 hours ago
Joseph replied to Chuang Shyue Chou's discussion What are you reading?
"Read: "Stephen and Matilda: The Civil War of 1139-53" by Jim Bradbury. Stephen promised…"
2 hours ago




CSW Related Links

© 2020   Created by John Kranz.   Powered by

Badges  |  Report an Issue  |  Terms of Service