# ZIP/compression issues

**URL:** https://forum.vassalengine.org/t/zip-compression-issues/8555
**Category:** Technical Support & Bugs
**Created:** [October 2, 2016, 5:28pm UTC](https://forum.vassalengine.org/t/zip-compression-issues/8555 "2016-10-02T17:28:29Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Galileo](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/g/85e7bf/32.png) [@Galileo](https://forum.vassalengine.org/u/Galileo)
#### Post date: [October 2, 2016, 5:28pm UTC](https://forum.vassalengine.org/t/zip-compression-issues/8555/1 "2016-10-02T17:28:29Z")

</div>

Unable to unzip and zip VMOD files. Unzip using MS-Explorer compression utility and 7-Zip. Trying to remove excess images but attempted to unzip and zip without any changes to the source files. And yes, I rebuild from the subdirectory with the buildfile and moduledata and subfolders (images) in the root. Note, this was not a problem a few months a ago but I wonder if it is an issue with the latest Windows version 10, 1607, build 14393.222?

---

<div class="post-metadata">

### Author: ![uckelman](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/uckelman/32/10020_2.png) [@uckelman](https://forum.vassalengine.org/u/uckelman)
#### Post date: [October 3, 2016, 12:42pm UTC](https://forum.vassalengine.org/t/zip-compression-issues/8555/2 "2016-10-03T12:42:45Z")

</div>

Thus spake Galileo:

> Unable to unzip and zip VMOD files. Unzip using MS-Explorer compression  
> utility and 7-Zip. Trying to remove excess images but attempted to  
> unzip and zip without any changes to the source files. And yes, I  
> rebuild from the subdirectory with the buildfile and moduledata and  
> subfolders (images) in the root. Note, this was not a problem a few  
> months a ago but I wonder if it is an issue with the latest Windows  
> version 10, 1607, build 14393.222?

Post a test module with the problem so we can have a look at it.

–  
J.

---

<div class="post-metadata">

### Author: ![EpiScope35](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/episcope35/32/3849_2.png) [@EpiScope35](https://forum.vassalengine.org/u/EpiScope35)
#### Post date: [October 9, 2016, 12:57am UTC](https://forum.vassalengine.org/t/zip-compression-issues/8555/3 "2016-10-09T00:57:50Z")

</div>

What is the best way to upload the module, its 14.5Mb? A file attachment is too large, if you want I could share a DropBox link?

Thanks,  
Michael

---

<div class="post-metadata">

### Author: ![Galileo](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/g/85e7bf/32.png) [@Galileo](https://forum.vassalengine.org/u/Galileo)
#### Post date: [October 10, 2016, 4:22pm UTC](https://forum.vassalengine.org/t/zip-compression-issues/8555/4 "2016-10-10T16:22:02Z")

</div>

Uploaded file using the file upload: 7YWFG\_10.vmod

This is the original file that works but when uncompressed then compressed and error is generated. Any assistance would be appreciated.

Errorlog attached to this eMail.

Thanks in advance,  
Michael

---

<div class="post-metadata">

### Author: ![uckelman](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/uckelman/32/10020_2.png) [@uckelman](https://forum.vassalengine.org/u/uckelman)
#### Post date: [October 11, 2016, 1:07pm UTC](https://forum.vassalengine.org/t/zip-compression-issues/8555/5 "2016-10-11T13:07:12Z")

</div>

Thus spake Galileo:

> Uploaded file using the file upload: 7YWFG\_10.vmod

I don’t see the file. To where did you upload it?

–  
J.

---

<div class="post-metadata">

### Author: ![Tim\_M](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/tim_m/32/2_2.png) [@Tim\_M](https://forum.vassalengine.org/u/Tim_M)
#### Post date: [October 11, 2016, 6:44pm UTC](https://forum.vassalengine.org/t/zip-compression-issues/8555/6 "2016-10-11T18:44:36Z")

</div>

> [@uckelman](#):
>
> Thus spake Galileo:
> 
> > Uploaded file using the file upload: 7YWFG\_10.vmod
> 
> I don’t see the file. To where did you upload it?
> 
> –  
> J.

Joel, go here:

[vassalengine.org/wiki/File:7YWFG\_10.vmod](http://www.vassalengine.org/wiki/File:7YWFG_10.vmod)

---

<div class="post-metadata">

### Author: ![Brent\_Easton](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/brent_easton/32/10_2.png) [@Brent\_Easton](https://forum.vassalengine.org/u/Brent_Easton)
#### Post date: [October 11, 2016, 8:54pm UTC](https://forum.vassalengine.org/t/zip-compression-issues/8555/7 "2016-10-11T20:54:34Z")

</div>

Hi Michael,

The issue is with the images in the module with the non-Latin names. Königsberg.png, Küstrin.png, Münster.png etc.

Vassal has problems reading modules created with third party zip encoders that include file names with non-latin file names (Vassal tracker bug 4535). The module works if you load these files using Vassal, but not if you unzip and rezip the module using 7zip or Windows zip.

There are 2 work arounds for this:

1. To keep the images with the same name (same problem may happen in the future):

2. To rename the images (permanent fix):

Regards,  
Brent.

---

<div class="post-metadata">

### Author: ![Brent\_Easton](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/brent_easton/32/10_2.png) [@Brent\_Easton](https://forum.vassalengine.org/u/Brent_Easton)
#### Post date: [October 11, 2016, 9:57pm UTC](https://forum.vassalengine.org/t/zip-compression-issues/8555/8 "2016-10-11T21:57:35Z")

</div>

Sorry,last step in workaround 2 should have been

- Use the Vassal Editor to load the new renamed images back in to the appropriate components. Don’t use 7zip.

---

<div class="post-metadata">

### Author: ![Galileo](https://forum.vassalengine.org/letter_avatar_proxy/v4/letter/g/85e7bf/32.png) [@Galileo](https://forum.vassalengine.org/u/Galileo)
#### Post date: [October 12, 2016, 12:51pm UTC](https://forum.vassalengine.org/t/zip-compression-issues/8555/9 "2016-10-12T12:51:41Z")

</div>

Thanks for the quick look and information very much appreciated.

Cheers,  
Michael

---

<div class="post-metadata">

### Author: ![uckelman](https://forum.vassalengine.org/user_avatar/forum.vassalengine.org/uckelman/32/10020_2.png) [@uckelman](https://forum.vassalengine.org/u/uckelman)
#### Post date: [October 12, 2016, 3:27pm UTC](https://forum.vassalengine.org/t/zip-compression-issues/8555/10 "2016-10-12T15:27:14Z")

</div>

Thus spake Brent Easton:

> Hi Michael,
> 
> The issue is with the images in the module with the non-Latin names.  
> Königsberg.png, Küstrin.png, Münster.png etc.
> 
> Vassal has problems reading modules created with third party zip  
> encoders that include file names with non-latin file names (Vassal  
> tracker bug 4535). The module works if you load these files using  
> Vassal, but not if you unzip and rezip the module using 7zip or Windows  
> zip.

So, this is not our bug—it’s a limitiation of the pre-Java 7  
java.util.zip classes.

From Java 7 onward, it’s possible to specify a charset for ZIP archive  
names. If we could switch to Java 7, we could solve the problem by  
changing a few lines of our code. Unfortunately, we still have many  
users on systems where there is no Java 7 or later (and probably won’t  
ever be), so that’s not a great option.

We could swap out java.util.zip for Apache Commons Compress, which does  
support non-ASCII filenames. 1.11 is the last version which still  
supports Java 5.

Is that something worth doing?

–  
J.

* * *

messages mailing list  
[messages@vassalengine.org](mailto:messages@vassalengine.org)  
[vassalengine.org/mailman/listinfo/messages](http://www.vassalengine.org/mailman/listinfo/messages)
