Vassal version. (Go to Help and select About VASSAL) 3.1.10
Java version. 1.6.0_15
New Module
Exactly what steps are required to reproduce your problem. If you are reporting on a problem that you can’t reproduce consistently, include as much information as possible about what you were doing right before the error occurred.
When I place an SVG image for a counter it doesn’t show up. Even if I delete the counter, Vassal crashes with “Bad Data in Module error reading xxx.svg” when I try to save it.
The SVG comes from Illustrator CS3. (I attached it, but had to change the extension to zip to get it to upload.)
OK. I’ve looked at it using an XML editor (XML mode in Emacs) and the
file does not validate.
There are undefined XML namespace prefixes in use, in particular
The problem apparently is in the British Ensign that I downloaded from online as an svg and then placed in the counter image. When I remove that (and collapse all those unnecessary layers), it works!
I still have a problem however, that if I load an svg it doesn’t like (such as if I forget to collapse all the layers), it gives an error when saving - even after I replace the bad piece - or even delete the entire class.
If I delete all such lines, it loads fine for me. There’s no need to
collapse layers to get it to work—if it works for you after doing
that, it’s only because these bad lines are removed in the process.
When I add your bad image to a module and try to save it, I get an
error dialog, but VASSAL does not crash for me. We need some more
details about what you’re seeing when this occurs.
I’ve put the problem with saving modules after trying to load faulty
SVG into the bug tracker:
The 3.1.12-svn6080 build contains a temporary fix for this problem. It’s
not an ideal fix, as the error message doesn’t really tell you what’s
happening—but now you’ll at least be able to save the module if you’ve
added a bad SVG file.