How do I delete an image prior to saving the module?

I inadvertently, somehow, managed to get Spotify.app into my module as an image whilst editing. Now when I try to save the module I’m unable to, getting the error message that the image file Spotify.app cannot be found :frowning: How can I delete Spotify.app from my list of images? Any help would be gratefully received.

Don

Just for completeness, I’m using an Apple MacBook Pro, 2GB memory, OSX (10.6.4), Vassal 3.1.13.

Here’s the error log:

java.io.FileNotFoundException: /Applications/Spotify.app (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:106)
at java.io.FileInputStream.(FileInputStream.java:66)
at VASSAL.tools.ArchiveWriter.write(ArchiveWriter.java:378)
at VASSAL.build.GameModule.save(GameModule.java:946)
at VASSAL.build.GameModule.save(GameModule.java:922)
at VASSAL.launch.ModuleEditorWindow$2.run(ModuleEditorWindow.java:100)
at VASSAL.launch.EditorWindow.saver(EditorWindow.java:313)
at VASSAL.launch.ModuleEditorWindow.save(ModuleEditorWindow.java:98)
at VASSAL.launch.EditorWindow$2.actionPerformed(EditorWindow.java:184)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.java:6348)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6113)
at java.awt.Container.processEvent(Container.java:2085)
at java.awt.Component.dispatchEventImpl(Component.java:4714)
at java.awt.Container.dispatchEventImpl(Container.java:2143)
at java.awt.Component.dispatchEvent(Component.java:4544)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4282)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
at java.awt.Container.dispatchEventImpl(Container.java:2129)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4544)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:635)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

You will probably have to edit the buildfile, find the reference to ‘Spotify.app’ and remove it.

B.

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

On 10/09/2010 at 4:33 PM yangtze2000 wrote:

Here’s the error log:

java.io.FileNotFoundException: /Applications/Spotify.app (No such file
or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:106)
at java.io.FileInputStream.(FileInputStream.java:66)
at VASSAL.tools.ArchiveWriter.write(ArchiveWriter.java:378)
at VASSAL.build.GameModule.save(GameModule.java:946)
at VASSAL.build.GameModule.save(GameModule.java:922)
at VASSAL.launch.ModuleEditorWindow$2.run(ModuleEditorWindow.java:100)
at VASSAL.launch.EditorWindow.saver(EditorWindow.java:313)
at VASSAL.launch.ModuleEditorWindow.save(ModuleEditorWindow.java:98)
at VASSAL.launch.EditorWindow$2.actionPerformed(EditorWindow.java:184)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
at
javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
at java.awt.Component.processMouseEvent(Component.java:6348)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6113)
at java.awt.Container.processEvent(Container.java:2085)
at java.awt.Component.dispatchEventImpl(Component.java:4714)
at java.awt.Container.dispatchEventImpl(Container.java:2143)
at java.awt.Component.dispatchEvent(Component.java:4544)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4618)
at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:4282)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4212)
at java.awt.Container.dispatchEventImpl(Container.java:2129)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4544)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:635)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)


Read this topic online here:
How do I delete an image prior to saving the module? - #3 by yangtze


messages mailing list
messages@vassalengine.org
vassalengine.org/mailman/listinfo/messages

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.851 / Virus Database: 271.1.1/3125 - Release Date: 09/10/10
04:34:00

Thanks for considering this problem, B…

Can I get to the buildfile without saving the module? It presently won’t save due to this problem, hence I’m still in the editor with it. I don’t want to have to revert to the previous save if I can help it because I’ll lose a lot of work. It’s not possible to delete an image whilst editing?

Solved! First I had to create a legitimate image file called Spotify.app to fool the editor that all was well. I just took an old graphic and renamed it Spotify.app. I then renamed the real Spotify app to remove the .app suffix, and I put the impostor Spotify.app graphic in the applications folder where Vassal was expecting to find it. Bingo! The editor was fooled and the module saved normally. I then removed the Spotify.app image in the usual way. Thanks to those that spent time looking at this.

Fo the future, I wonder if it’s easily possible to prevent files that might stop a module saving from entering the images folder in the first place?

I’ve noted this problem as Bug 3198 in our tracker:

vassalengine.org/tracker/sho … gi?id=3198

Hi,

Can you confirm exactly the minimal steps to reproduce it? It looks like another OS X related bug.
Please also try with the new 3.1.15 pretest version.
I tried to reproduce it on a GNU/Linux box without any luck.

Cheers;
Wojciech