Alice Community  

Go Back   Alice Community > Alice 2 > Bugs and Troubleshooting

Reply
 
Thread Tools Display Modes
Preferences not saving
Old
rujikin
Junior Member
 
Status: Offline
Posts: 2
Join Date: Aug 2011
Default Preferences not saving - 08-25-2011, 09:49 PM

I downloaded the most recent alice and tried changing the preferences so that I could see "Java in color" however no matter how many times I restarted or reinstalled it just wouldn't save. It seems any changes to preferences that I do never save.

However I downloaded an older version of Alice and the preference saves work just fine. So it shouldn't be my computer since the problem only occurs in the most current version and not in older versions.

I am running: Windows 7. I write enabled the whole directory and took off the read only option for all of the files and still nothing. This is a PC not a networked comp
   
Reply With Quote
Old
Dj Tech42
Senior Member
 
Dj Tech42's Avatar
 
Status: Offline
Posts: 203
Join Date: Feb 2011
Default 08-26-2011, 04:00 PM

You either need to replace your AlicePreferences.xml file or it is missing. You can download it here in this thread:
http://www.alice.org/community/showt...references.xml

Put it in a folder called ".alice2." This is where Alice stores its preferences and caches. It should be somewhere in your documents and settings folder.


Flight Simulator with Dogfight Modes:
http://www.alice.org/community/showthread.php?t=6840

Last edited by Dj Tech42; 08-26-2011 at 08:03 PM.
   
Reply With Quote
Old
rujikin
Junior Member
 
Status: Offline
Posts: 2
Join Date: Aug 2011
Default 08-29-2011, 02:37 PM

I have the alice preferences and replaced it but it is still not saving. What is the manual code for changing it in the preferences file?
   
Reply With Quote
Old
brotherjohniv
Junior Member
 
Status: Offline
Posts: 1
Join Date: Sep 2011
Default 09-14-2011, 09:21 PM

I tired the method as well and it did not work.
   
Reply With Quote
Old
Mr Kidnapper
Senior Member
 
Status: Offline
Posts: 442
Join Date: Feb 2011
Default 09-15-2011, 01:16 AM

UAC is peculiar about certain directories even if you write-enable them, particularly Program Files and Windows. Have you tried running Alice as an administrator instead? Solved all my problems. If this is your problem, you should be getting an error something along the lines of ###########log.txt cannot access every time you run Alice.
   
Reply With Quote
Preferences not saving
Old
Salmendez
Junior Member
 
Status: Offline
Posts: 1
Join Date: Sep 2011
Location: Boise ID
Default Preferences not saving - 09-16-2011, 02:38 PM

I'm having the same problem I tried installing it to my desktop but every time I try and change the preferences It says the changes will take effect after restart but they never do.. I have even tryed to change the save and load from location in preferences it it never changes..
   
Reply With Quote
Old
Armaggeddon
Guest
 
Status:
Posts: n/a
Default 09-23-2011, 07:25 PM

I have Alice 2.2 and I can not change my preferences either. I try to change it and then I restart and nothing saved. It keeps resetting everything to default

I tried putting Alice in many different folders from the desktop to C drive, to program files, etc

I tried putting the "AlicePreferences-COPY" in the Alice2 folder in my documents and settings and it did not do anything. I got the error

Alice version: 2.2 08/05/2011



Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException

at javax.swing.LayoutComparator.compare(LayoutCompara tor.java:72)

at java.util.Arrays.mergeSort(Arrays.java:1270)

at java.util.Arrays.mergeSort(Arrays.java:1281)

at java.util.Arrays.mergeSort(Arrays.java:1281)

at java.util.Arrays.mergeSort(Arrays.java:1282)

at java.util.Arrays.mergeSort(Arrays.java:1282)

at java.util.Arrays.sort(Arrays.java:1210)

at java.util.Collections.sort(Collections.java:159)

at javax.swing.SortingFocusTraversalPolicy.enumerateA ndSortCycle(SortingFocusTraversalPolicy.java:119)

at javax.swing.SortingFocusTraversalPolicy.getFirstCo mponent(SortingFocusTraversalPolicy.java:434)

at javax.swing.LayoutFocusTraversalPolicy.getFirstCom ponent(LayoutFocusTraversalPolicy.java:148)

at javax.swing.SortingFocusTraversalPolicy.getDefault Component(SortingFocusTraversalPolicy.java:511)

at java.awt.FocusTraversalPolicy.getInitialComponent( FocusTraversalPolicy.java:152)

at java.awt.DefaultKeyboardFocusManager.dispatchEvent (DefaultKeyboardFocusManager.java:340)

at java.awt.Component.dispatchEventImpl(Component.jav a:4523)

at java.awt.Container.dispatchEventImpl(Container.jav a:2099)

at java.awt.Window.dispatchEventImpl(Window.java:2478 )

at java.awt.Component.dispatchEvent(Component.java:44 81)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.j ava:643)

at java.awt.EventQueue.access$000(EventQueue.java:84)

at java.awt.EventQueue$1.run(EventQueue.java:602)

at java.awt.EventQueue$1.run(EventQueue.java:600)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.AccessControlContext$1.doIntersectio nPrivilege(AccessControlContext.java:87)

at java.security.AccessControlContext$1.doIntersectio nPrivilege(AccessControlContext.java:98)

at java.awt.EventQueue$2.run(EventQueue.java:616)

at java.awt.EventQueue$2.run(EventQueue.java:614)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.AccessControlContext$1.doIntersectio nPrivilege(AccessControlContext.java:87)

at java.awt.EventQueue.dispatchEvent(EventQueue.java: 613)

at java.awt.SequencedEvent.dispatch(SequencedEvent.ja va:101)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.j ava:641)

at java.awt.EventQueue.access$000(EventQueue.java:84)

at java.awt.EventQueue$1.run(EventQueue.java:602)

at java.awt.EventQueue$1.run(EventQueue.java:600)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.AccessControlContext$1.doIntersectio nPrivilege(AccessControlContext.java:87)

at java.security.AccessControlContext$1.doIntersectio nPrivilege(AccessControlContext.java:98)

at java.awt.EventQueue$2.run(EventQueue.java:616)

at java.awt.EventQueue$2.run(EventQueue.java:614)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.AccessControlContext$1.doIntersectio nPrivilege(AccessControlContext.java:87)

at java.awt.EventQueue.dispatchEvent(EventQueue.java: 613)

at java.awt.EventDispatchThread.pumpOneEventForFilter s(EventDispatchThread.java:269)

at java.awt.EventDispatchThread.pumpEventsForFilter(E ventDispatchThread.java:184)

at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:174)

at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:169)

at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:161)

at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:122)

-------------------------------------------------------------------------------------------

So I removed the -COPY from the file name so it was "AlicePreferences" and it gave me an error when i loaded Alice.

Alice version: 2.2 08/05/2011



java.lang.IndexOutOfBoundsException: Invalid index

at javax.swing.DefaultRowSorter.convertRowIndexToMode l(DefaultRowSorter.java:497)

at sun.swing.FilePane$SortableListModel.getElementAt( FilePane.java:528)

at javax.swing.plaf.basic.BasicListUI.updateLayoutSta te(BasicListUI.java:1343)

at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayo utState(BasicListUI.java:1294)

at javax.swing.plaf.basic.BasicListUI.getCellBounds(B asicListUI.java:935)

at javax.swing.JList.getCellBounds(JList.java:1600)

at javax.swing.JList.ensureIndexIsVisible(JList.java: 1116)

at sun.swing.FilePane.ensureIndexIsVisible(FilePane.j ava:1543)

at sun.swing.FilePane.doDirectoryChanged(FilePane.jav a:1466)

at sun.swing.FilePane.propertyChange(FilePane.java:15 16)

at java.beans.PropertyChangeSupport.firePropertyChang e(PropertyChangeSupport.java:339)

at java.beans.PropertyChangeSupport.firePropertyChang e(PropertyChangeSupport.java:276)

at java.awt.Component.firePropertyChange(Component.ja va:8154)

at javax.swing.JFileChooser.setCurrentDirectory(JFile Chooser.java:568)

at edu.cmu.cs.stage3.alice.authoringtool.dialog.SaveF orWebContentPane.guiInit(SaveForWebContentPane.jav a:239)

at edu.cmu.cs.stage3.alice.authoringtool.dialog.SaveF orWebContentPane.<init>(SaveForWebContentPane.java :45)

at edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l.dialogInit(AuthoringTool.java:645)

at edu.cmu.cs.stage3.alice.authoringtool.AuthoringToo l.<init>(AuthoringTool.java:405)

at edu.cmu.cs.stage3.alice.authoringtool.JAlice.main( JAlice.java:141)


I need to use Alice in Java mode for Computer Sci 120
everything in class is explained in Java and to work on the assignments in Alice format is confusing because a lot of the stuff is worded differently in Alice mode.

Please Help

Last edited by Armaggeddon; 09-23-2011 at 07:28 PM.
   
Reply With Quote
Preferences
Old
aikmin
Senior Member
 
aikmin's Avatar
 
Status: Offline
Posts: 85
Join Date: Mar 2008
Default Preferences - 10-03-2011, 04:17 AM

Quote:
Originally Posted by rujikin View Post
I downloaded the most recent alice and tried changing the preferences so that I could see "Java in color" however no matter how many times I restarted or reinstalled it just wouldn't save. It seems any changes to preferences that I do never save.

However I downloaded an older version of Alice and the preference saves work just fine. So it shouldn't be my computer since the problem only occurs in the most current version and not in older versions.

I am running: Windows 7. I write enabled the whole directory and took off the read only option for all of the files and still nothing. This is a PC not a networked comp
Download and replace your jar file.
http://www.cs.purdue.edu/homes/aik_min/alice.jar

File is for Windows only. Your file should be in (...\Alice 2.2\Required\lib)

Last edited by aikmin; 10-03-2011 at 04:20 AM.
   
Reply With Quote
Old
jlengson
Junior Member
 
Status: Offline
Posts: 1
Join Date: Oct 2011
Default 10-21-2011, 03:45 PM

the alice.jar method is working for me.

The first one didn't work for me.

Thank you so much,
I really needed it for my computer science class
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.