Preferences keep re-setting.

When I set my preferences in a module, then play a game then close out the program everything is fine until I go to open the module again and the preferences have reverted back to their default settings. How do I get my preferences to stay?

Thus spake Thomas Russ:

On Nov 21, 2010, at 5:49 AM, Dazooz wrote:

When I set my preferences in a module, then play a game then close out
the program everything is fine until I go to open the module again and
the preferences have reverted back to their default settings. How
do I
get my preferences to stay?

The preference should automatically be saved, unless there is
something that prevents writing of the file. This can often be a
permissions problem.

What type of computer and operating system are you using?

What is in the error log file? You can find it in the Vassal folder
in your home folder. It is called “errorLog”.

I’m reposting this for TR, since the list bridge ate his message.

I have an older Compaq running Windows XP.

Here is the errorlog file.

30 Nov 2010 02:32:00.703 0 – Starting
30 Nov 2010 02:32:00.718 0 – OS Windows XP
30 Nov 2010 02:32:00.718 0 – Java version 1.6.0_22
30 Nov 2010 02:32:00.718 0 – VASSAL version 3.1.14
30 Nov 2010 02:32:02.671 0 – Manager
30 Nov 2010 02:33:01.515 0 – Loading module file C:\Downloads\Wargames\Vassal\VassalWindows\games\Wilderness War\Wilderness_War_2_3.vmod
30 Nov 2010 02:33:01.531 0 – Loading module Wilderness War
30 Nov 2010 02:33:06.734 0 C:\Program Files\Java\jre6\bin\java -Xms64M -Xmx128M -DVASSAL.id=1 -Duser.home=C:\Documents and Settings\Jason Lewandowski -cp lib\Vengine.jar VASSAL.launch.Player
30 Nov 2010 02:33:34.687 1 – Wilderness War version 2.3
30 Nov 2010 02:33:34.703 1

30 Nov 2010 02:34:24.781 1 – Exiting
30 Nov 2010 02:34:35.390 0 – Loading module file C:\Downloads\Wargames\Vassal\VassalWindows\games\Wilderness War\Wilderness_War_2_3.vmod
30 Nov 2010 02:34:35.390 0 – Loading module Wilderness War
30 Nov 2010 02:34:36.109 0 C:\Program Files\Java\jre6\bin\java -Xms128M -Xmx256M -DVASSAL.id=2 -Duser.home=C:\Documents and Settings\Jason Lewandowski -cp lib\Vengine.jar VASSAL.launch.Player
30 Nov 2010 02:34:59.359 2 – Wilderness War version 2.3
30 Nov 2010 02:34:59.359 2

30 Nov 2010 03:01:23.609 2 java.io.IOException: Unable to write to C:\Documents and Settings\Jason Lewandowski\VASSAL\Preferences
Data stored in C:\Documents and Settings\Jason Lewandowski\VASSAL\temp78.zip
at VASSAL.tools.ArchiveWriter.write(ArchiveWriter.java:481)
at VASSAL.tools.ArchiveWriter.write(ArchiveWriter.java:266)
at VASSAL.preferences.PrefsEditor.write(PrefsEditor.java:235)
at VASSAL.preferences.Prefs.write(Prefs.java:206)
at VASSAL.build.GameModule.shutDown(GameModule.java:710)
at VASSAL.launch.ShutDownAction.actionPerformed(ShutDownAction.java:57)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

30 Nov 2010 03:01:23.828 2 – Exiting
30 Nov 2010 03:02:12.765 0 – Exiting

Thus spake Dazooz:

I have an older Compaq running Windows XP.

This is a problem for which we’ve had a lot of reports but we’ve never been
able to reproduce it ourselves.

Would you cheheck the permissions on the file
C:\Documents and Settings\Jason Lewandowski\VASSAL\Preferences? One reason
this might fail is that you don’t have permission to write to it.


J.

What do you mean by permissions? The attributes? Read Only is not checked.

Thus spake Dazooz:

What do you mean by permissions? The attributes? Read Only is not
checked.

Yes. Is the file owned by your user account?


J.

I don’t know how to check for that either, under properties? I didn’t see anything about ownership.

Thus spake Dazooz:

I don’t know how to check for that either, under properties? I didn’t
see anything about ownership.

I don’t know how to check for it either—I’m not a Windows user.


J.

I donèt have any XP machies any more, but in VIsta you do the following:
In Windows Explorer, select View → Choose Details
and select the details owner, etc. that you wish to have displayed.

In Vista you can also right-click on the right-hand-pane header and select “More …” to get the complete list of displayable attributes.

Or, navigate to the folder in a command prompt window, and run the command “Dir /Q”.

Hope that helps.

Pieter

XP works same way