[messages] [Module General Discussion] Cleaning up vassal modules.

Joel Uckelman uckelman at nomic.net
Wed Apr 16 00:13:55 CEST 2014

Thus spake jlchacon:
> I've built a module for a game I am designing and have gone through
> several different updates including the new icons and maps. 
> I noticed the file size keeps growing and the old images remain. Is
> there a way to prune out the unused images from the VASSAL file to
> reduce its size? 
> I was told before that a module is simply a zipfile with a different
> file extension and to rename the module from ModuleName.vmod to
> ModuleName.zip. Then open the zipfile, go into the images/ folder it
> contains, and delete any stale/unwanted images. When finished, to change
> the file extension back to .vmod 

What you've described to this point is correct.
> I’ve tried this on both my mac and pc but after I convert my VASSAL
> module to a zip file, unzip it, delete the unneeded images, rezip it,
> and change the extension back to .vmod, I can’t open it in VASSAL.  I
> get an error:  Invalid VASSAL module; The file
> '/Users/josephchacon/Desktop/Vietnam Firefights v04' is not a valid
> VASSAL module.

This is the sort of error you'd get if you're not rezipping the module
correctly. What files are in the root directory of the ZIP archive you


More information about the messages mailing list