| Author |
Message |
|
Tweety
Boo! inc.
Joined: Fri Jan 04, 2002 3:00 am Posts: 221 Location: Canada
|
 Weapon M - Error
if i create a database and then go to network, login options. the title for the game is omitted. the address and port number are filled in however. I also got this error in eclipse after entering the correct game and no scripts show up. so i pressed reload scripts. when i loaded weapon m to start, it found the scripts and loaded them into the menu just fine. now it looks like it sees that the scripts are all there, just can't put them into the scripts menu because of a array out of bounds error. Code: 21:20:06.135 [Network-10] INFO krum.weaponm.database.DataParser - entered correct game 21:20:08.872 [AWT-EventQueue-0] DEBUG krum.weaponm.gui.map.Map - map populated with 10000 sectors and 0 warps 21:20:08.872 [AWT-EventQueue-0] DEBUG krum.weaponm.gui.map.Map - map root set to sector 1 21:20:39.589 [AWT-EventQueue-0] INFO krum.weaponm.gui.ReloadScriptsAction - Reloading scripts 21:20:39.589 [AWT-EventQueue-0] INFO krum.weaponm.script.ScriptManager - searching for scripts in /Users/jamesgoudie/.weaponm/scripts 21:20:39.599 [AWT-EventQueue-0] INFO krum.weaponm.script.ScriptManager - found 7 scripts 21:20:39.602 [AWT-EventQueue-0] ERROR krum.weaponm.gui.ReloadScriptsAction - Error populating scripts menu java.lang.ArrayIndexOutOfBoundsException: No such child: 0 at java.awt.Container.getComponent(Container.java:327) [na:1.7.0_09] at javax.swing.JMenu.getMenuComponent(JMenu.java:874) ~[na:1.7.0_09] at javax.swing.JMenu.getItem(JMenu.java:772) ~[na:1.7.0_09] at krum.weaponm.gui.SortingMenu.addSorted(SortingMenu.java:59) ~[bin/:na] at krum.weaponm.gui.ActionManager.resolveMenuPath(ActionManager.java:183) [bin/:na] at krum.weaponm.gui.ActionManager.populateScriptsMenu(ActionManager.java:157) [bin/:na] at krum.weaponm.gui.ActionManager.reloadScripts(ActionManager.java:143) [bin/:na] at krum.weaponm.gui.ReloadScriptsAction.actionPerformed(ReloadScriptsAction.java:21) [bin/:na] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018) [na:1.7.0_09] at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341) [na:1.7.0_09] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402) [na:1.7.0_09] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259) [na:1.7.0_09] at javax.swing.AbstractButton.doClick(AbstractButton.java:376) [na:1.7.0_09] at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833) [na:1.7.0_09] at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877) [na:1.7.0_09] at java.awt.Component.processMouseEvent(Component.java:6505) [na:1.7.0_09] at javax.swing.JComponent.processMouseEvent(JComponent.java:3321) [na:1.7.0_09] at java.awt.Component.processEvent(Component.java:6270) [na:1.7.0_09] at java.awt.Container.processEvent(Container.java:2229) [na:1.7.0_09] at java.awt.Component.dispatchEventImpl(Component.java:4861) [na:1.7.0_09] at java.awt.Container.dispatchEventImpl(Container.java:2287) [na:1.7.0_09] at java.awt.Component.dispatchEvent(Component.java:4687) [na:1.7.0_09] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832) [na:1.7.0_09] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492) [na:1.7.0_09] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422) [na:1.7.0_09] at java.awt.Container.dispatchEventImpl(Container.java:2273) [na:1.7.0_09] at java.awt.Window.dispatchEventImpl(Window.java:2719) [na:1.7.0_09] at java.awt.Component.dispatchEvent(Component.java:4687) [na:1.7.0_09] at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:723) [na:1.7.0_09] at java.awt.EventQueue.access$200(EventQueue.java:103) [na:1.7.0_09] at java.awt.EventQueue$3.run(EventQueue.java:682) [na:1.7.0_09] at java.awt.EventQueue$3.run(EventQueue.java:680) [na:1.7.0_09] at java.security.AccessController.doPrivileged(Native Method) [na:1.7.0_09] at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) [na:1.7.0_09] at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87) [na:1.7.0_09] at java.awt.EventQueue$4.run(EventQueue.java:696) [na:1.7.0_09] at java.awt.EventQueue$4.run(EventQueue.java:694) [na:1.7.0_09] at java.security.AccessController.doPrivileged(Native Method) [na:1.7.0_09] at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) [na:1.7.0_09] at java.awt.EventQueue.dispatchEvent(EventQueue.java:693) [na:1.7.0_09] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:244) [na:1.7.0_09] at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:163) [na:1.7.0_09] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151) [na:1.7.0_09] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:147) [na:1.7.0_09] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:139) [na:1.7.0_09] at java.awt.EventDispatchThread.run(EventDispatchThread.java:97) [na:1.7.0_09]
|
| Thu Mar 07, 2013 12:21 am |
|
 |
|
Mongoose
Commander
Joined: Mon Oct 29, 2001 3:00 am Posts: 1096 Location: Tucson, AZ
|
 Re: Weapon M - Error
I fixed the game title thing.
I think I fixed the other thing last night. Update your working copy and you should get both fixes. (Right click the project > Team > Update to HEAD)
_________________ Suddenly you're Busted!
|
| Thu Mar 07, 2013 12:46 am |
|
 |
|
Tweety
Boo! inc.
Joined: Fri Jan 04, 2002 3:00 am Posts: 221 Location: Canada
|
 Re: Weapon M - Error
cool. yup you fixed the script loading issue
another thing i find annoying is the lock that is held on the databases. i always have to delete that lock file. would be nice if it would delete the last lock if you opened another database or exited the program.
|
| Thu Mar 07, 2013 12:57 am |
|
 |
|
Mongoose
Commander
Joined: Mon Oct 29, 2001 3:00 am Posts: 1096 Location: Tucson, AZ
|
 Re: Weapon M - Error
Other than a crash, is there a reliable way to make it not delete the lock?
_________________ Suddenly you're Busted!
|
| Thu Mar 07, 2013 1:12 am |
|
 |
|
Tweety
Boo! inc.
Joined: Fri Jan 04, 2002 3:00 am Posts: 221 Location: Canada
|
 Re: Weapon M - Error
but i'm not crashing. it just locks the databases and never lets go  if i open one, it keeps that lock. if i open another it makes another lock for that database. i can eventually end up with no databases that i can open. unless i delete the lock files myself.
|
| Thu Mar 07, 2013 1:22 am |
|
 |
|
Mongoose
Commander
Joined: Mon Oct 29, 2001 3:00 am Posts: 1096 Location: Tucson, AZ
|
 Re: Weapon M - Error
So if you open a database and then close the app normally, the lock file isn't deleted?
_________________ Suddenly you're Busted!
|
| Thu Mar 07, 2013 1:55 am |
|
 |
|
Tweety
Boo! inc.
Joined: Fri Jan 04, 2002 3:00 am Posts: 221 Location: Canada
|
 Re: Weapon M - Error
right. unless i close the database first with the menu Database close. i'll keep playing with it though man. to get you better instructions.
Actually after some thinking and messing around. I do'nt think I have an option in the Weapon M interface to close out the program. I have the option at the top with my menu bar, but its a Java application menu bar. probably more like jar loader.
i have a option to close the database with Database > Close in weapon M.
but that doesn't close the actual program. i'm thinking this is why i get locked databases. if i do'nt close the database then do my quit in the other menu for java loader, i get locked database files.
if i just close my connection, then go to Weapon M > quit Weapon M. i end up with the locked file. cause i don't think the java program properly runs any exit routine. i never see that Weapon M exiting message in the shutdown() procedure in WeaponM.java
|
| Thu Mar 07, 2013 2:49 am |
|
 |
|
Mongoose
Commander
Joined: Mon Oct 29, 2001 3:00 am Posts: 1096 Location: Tucson, AZ
|
 Re: Weapon M - Error
I've been relying on the window closing event caused by closing the main window. This thread is a couple years old, but maybe it's still a problem on OSX. I'll add an option in the menu to exit the app.
_________________ Suddenly you're Busted!
|
| Thu Mar 07, 2013 10:07 pm |
|
 |
|