by 2184 » 14 Mar 2018, 18:03
I generated the config file (saved an empty) and it seems to save the configs (except items&toys which are all false;0), but I can't seem to load it. I select it from the "load configuration" drop down menu, but nothing happen? Is there something I have missed, a button I need to press or something?
EDIT: Selected the config file as the Autoload Configuration, and now when I try to launch the program it throws an "String index out of bounds exception" and can't open. Renaming the config file made it able to open, but then of course without the settings.
Added output log for reference:
- | +
- Computer:CTI user$ java -jar Teaseviewer.jar
151
1521050984967: selection changed
Exception in thread "AWT-EventQueue-0" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1967)
at Teaseviewer.FolderManager.loadConfiguration(FolderManager.java:608)
at Teaseviewer.Mainmenu.<init>(Mainmenu.java:4022)
at Teaseviewer.Mainmenu$194.run(Mainmenu.java:12993)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
EDIT2: Figured out the first edit's problem! I had put the quantity as a number with two digits, I assume you only read one char when reading the file.
I generated the config file (saved an empty) and it seems to save the configs (except items&toys which are all false;0), but I can't seem to load it. I select it from the "load configuration" drop down menu, but nothing happen? Is there something I have missed, a button I need to press or something?
EDIT: Selected the config file as the Autoload Configuration, and now when I try to launch the program it throws an "String index out of bounds exception" and can't open. Renaming the config file made it able to open, but then of course without the settings.
Added output log for reference:
[spoiler=]Computer:CTI user$ java -jar Teaseviewer.jar
151
1521050984967: selection changed
Exception in thread "AWT-EventQueue-0" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1967)
at Teaseviewer.FolderManager.loadConfiguration(FolderManager.java:608)
at Teaseviewer.Mainmenu.<init>(Mainmenu.java:4022)
at Teaseviewer.Mainmenu$194.run(Mainmenu.java:12993)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)[/spoiler]
EDIT2: Figured out the first edit's problem! I had put the quantity as a number with two digits, I assume you only read one char when reading the file.