Couldn't save module {0} - Bug:1860932

I’m getting this all the time on XP.

For me, it seems to be related to adding new counter images into the module via the File Dialog. General editing does not cause me any problems.

Regards,
Brent.

*********** REPLY SEPARATOR ***********

On 26/12/2007 at 12:35 PM bsmith wrote:


Brent Easton
Analyst/Programmer
University of Western Sydney
Email: b.easton@uws.edu.au


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

EVERY time I’ve ever seen this (and there have been a number) I have
found other instances of VASSAL running. Those instances were no
longer visible, but they were running. I think it would be useful if
when experiencing this problem, the process list gets checked to see
if there are other java instances running.

It could be less of a problem with writing the file, and more of a
problem with VASSAL completely closing. Just a suggestion based on my
experience.

On 12/26/07, Joel Uckelman uckelman@nomic.net wrote:


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Grab a copy of procexp.exe from

technet.microsoft.com/en-us/sysi … 96653.aspx

It is Task Manager on steroids and can tell you what process has a file open.

Regards,
Brent.

*********** REPLY SEPARATOR ***********

On 26/12/2007 at 5:45 PM Tim Byrne wrote:


Brent Easton
Analyst/Programmer
University of Western Sydney
Email: b.easton@uws.edu.au


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Good call, That’s what I use. And every time, its been another java
process (specifically VASSAL) that has the file open.

On 12/26/07, Brent Easton b.easton@exemail.com.au wrote:


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Nice! I’m adding that to my list of must-have Windows tools, right up alongside Spacemonger and PowerGrep :slight_smile:

Thus spake “Tim Byrne”:

Why did you keep opening and closing VASSAL to work on the same file?


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

This is something I do a heck of a lot too. Quite often I like to make bulk changes to counter graphics, this may involve running a Photoshop Batch against 100 counters to clean them up/center images etc. So first I extract the module, modify the counters, re-zip the module then open it in Vassal to see how it all looks. After making some changes to the actual module, later on if I need to do more counter changes I need to repeat this process.

Another reason for opening and closing is I have VB scripts which do such things as import counters by parsing the buildFile (this is a Godsend!!), a script which takes counter names from a textfile and automatically names all of the counters in the module and sorts them alphabetically. These scripts mean I can churn out modules with hundreds of scanned counters in a couple of days. But it does involve lots of uncompressing and re-compressing of the module!

Hmmm, if only there was a way to open a module folder instead of a zip file.

Ben

I tracked down and fixed a lot of unclosed streams today. I think it’s
possible that you won’t see this bug in this build:

http://www.nomic.net/~uckelman/tmp/vassal/VASSAL-3.1.0-svn2766.zip

Please try it and let me know.

I only do about 1/3 of my editing in Vassal. The other 1/3 is in vi.
The other 1/3 is using perl.

The buildfile is not only XML, as you know its XML plus a bunch of
secret sauce. I often test my changes right away to make sure I’m ok
the right track.

I keep my source in SVN. So when I add images, I add them to SVN, and
rebuild the module (the build module is pretty much the only think I
don’t keep on SVN). After making a bunch of changes in vassal I
extract the changes and often do a svndiff to better understand how
vassal does what I want under the hood.

Lastly, I have found instances when certain changes in the editor do
not take place until I restart vassal (not just the game) Of course
I’ve done a poor job of keeping track of that, so there are time when
I can’t get things working as I like and I just restart hoping its one
of those changes. Sometime it is.

On Dec 27, 2007, at 5:17 AM, “bsmith”
messages@forums.vassalengine.org wrote:


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Here’s another build, with even more unclosed streams now closed explicitly:

http://www.nomic.net/~uckelman/tmp/vassal/VASSAL-3.1.0-svn2770.zip

Try this and let me know if you still experience this bug.

Thanks Joel.

I downloaded and tested VASSAL-3.1.0-svn2766 with my Under the Lily Banners module. It still has trouble with rotated counters. I can change layers when the counter is unrotated, but when rotated it will not change layers; This is not a problem in 3.0.15.

So at the moment at least, it’s unplayable.

Thus spake “bsmith”:

I haven’t worked on that yet.

What I wanted you to test was the module-saving problem. Does that still
happen?


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

Ah ok, I thought maybe you had missed my earlier post. I’m not sure I can deliberately reproduce the fault (even in 3.0.15) but I’ll have a play around.

Thus spake “bsmith”:

I backported my stream fixes to the 3.0 series. Try this build, and let me
know if you still have problems saving modules:

nomic.net/~uckelman/tmp/vass … vn2778.zip

(Also, if you find that I introduced any bugs by closing streams
overzealously, please report those as well.)


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)

I fixed a bug in the previous test build. There’s a new one here, svn2780:

http://www.nomic.net/~uckelman/tmp/vassal/VASSAL-3.0.16-svn2780.zip

Please try this and let me know whether it solves the problem.

Thus spake “bsmith”:

This would be a relatively simple modification, I think. It could be
done by altering ArchiveWriter, DataArchive, and maybe one other class.


J.


Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org

Post generated using Mail2Forum (mail2forum.com)