Working on tokenTool

Thoughts, Help, Feature Requests

Moderators: Azhrei, dorpond, trevor

User avatar
CoveredInFish
Demigod
Posts: 3104
Joined: Mon Jun 29, 2009 10:37 am
Location: Germany
Contact:

Re: Working on tokenTool

Post by CoveredInFish »

I looked into this again and made my old patch working again.

I generated a new patch file in case someone would still apply this :)

Maybe we should check out an exception I can trigger - but I havent found the reason yet. Its in the SVN version even without my patch.

1) start TT
2) manage overlays
3) close manage-overlays-window
[spoiler=exception dump]

Code: Select all

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
   at net.rptools.tokentool.ui.ControlPanel$9.actionPerformed(ControlPanel.java:257)
   at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1240)
   at javax.swing.JComboBox.contentsChanged(JComboBox.java:1311)
   at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
   at net.rptools.tokentool.ui.OverlayListModel.refresh(OverlayListModel.java:124)
   at net.rptools.tokentool.ui.OverlayManagementDialog.setVisible(OverlayManagementDialog.java:85)
   at net.rptools.tokentool.ui.OverlayManagementDialog$2.actionPerformed(OverlayManagementDialog.java:113)
   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.Component.processMouseEvent(Component.java:6373)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
   at java.awt.Component.processEvent(Component.java:6138)
   at java.awt.Container.processEvent(Container.java:2085)
   at java.awt.Component.dispatchEventImpl(Component.java:4735)
   at java.awt.Container.dispatchEventImpl(Container.java:2143)
   at java.awt.Component.dispatchEvent(Component.java:4565)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4621)
   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:4565)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:679)
   at java.awt.EventQueue.access$000(EventQueue.java:85)
   at java.awt.EventQueue$1.run(EventQueue.java:638)
   at java.awt.EventQueue$1.run(EventQueue.java:636)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
   at java.awt.EventQueue$2.run(EventQueue.java:652)
   at java.awt.EventQueue$2.run(EventQueue.java:650)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:649)
   at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
   at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:205)
   at java.awt.Dialog$1.run(Dialog.java:1046)
   at java.awt.Dialog$3.run(Dialog.java:1098)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.awt.Dialog.show(Dialog.java:1096)
   at java.awt.Component.show(Component.java:1584)
   at java.awt.Component.setVisible(Component.java:1536)
   at java.awt.Window.setVisible(Window.java:842)
   at java.awt.Dialog.setVisible(Dialog.java:986)
   at net.rptools.tokentool.ui.OverlayManagementDialog.setVisible(OverlayManagementDialog.java:87)
   at net.rptools.tokentool.AppActions$6.actionPerformed(AppActions.java:171)
   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.AbstractButton.doClick(AbstractButton.java:389)
   at de.muntjak.tinylookandfeel.TinyMenuItemUI.doClick(TinyMenuItemUI.java:569)
   at de.muntjak.tinylookandfeel.TinyMenuItemUI$MouseInputHandler.mouseReleased(TinyMenuItemUI.java:421)
   at java.awt.Component.processMouseEvent(Component.java:6373)
   at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
   at java.awt.Component.processEvent(Component.java:6138)
   at java.awt.Container.processEvent(Container.java:2085)
   at java.awt.Component.dispatchEventImpl(Component.java:4735)
   at java.awt.Container.dispatchEventImpl(Container.java:2143)
   at java.awt.Component.dispatchEvent(Component.java:4565)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4621)
   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:4565)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:679)
   at java.awt.EventQueue.access$000(EventQueue.java:85)
   at java.awt.EventQueue$1.run(EventQueue.java:638)
   at java.awt.EventQueue$1.run(EventQueue.java:636)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
   at java.awt.EventQueue$2.run(EventQueue.java:652)
   at java.awt.EventQueue$2.run(EventQueue.java:650)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:649)
   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)
[/spoiler]
Attachments
tokentool_patch_cif_v3.txt
(58.65 KiB) Downloaded 184 times

User avatar
RPTroll
TheBard
Posts: 3148
Joined: Tue Mar 21, 2006 7:26 pm
Location: Austin, Tx
Contact:

Re: Working on tokenTool

Post by RPTroll »

Wow, one year and you thought to try it again. I'm impressed.
ImageImage ImageImageImageImage
Support RPTools by shopping
Image
Image

User avatar
CoveredInFish
Demigod
Posts: 3104
Joined: Mon Jun 29, 2009 10:37 am
Location: Germany
Contact:

Re: Working on tokenTool

Post by CoveredInFish »

Yeah, I forget nothing! :x


Naah ... the other current TT thread somehow reminded me of this project ... :D

User avatar
Azhrei
Site Admin
Posts: 12050
Joined: Mon Jun 12, 2006 1:20 pm
Location: Tampa, FL

Re: Working on tokenTool

Post by Azhrei »

I have the new patch, CiF. I'll get it applied and committed tonight or Monday (holiday weekend, y'know!).

User avatar
JamzTheMan
Great Wyrm
Posts: 1872
Joined: Mon May 10, 2010 12:59 pm
Location: Chicagoland
Contact:

Re: Working on tokenTool

Post by JamzTheMan »

Wow, glad I finally found this thread... :)

I had checked out the latest code and made some changes (to save the token as an actual .rptok with base images a token portrait) and started having weird issues with the overlay comboBox and Manage Overlays dialog...

After hours of debugging, all I can say is the current trunk does NOT work well. There are thread timing issues on loading the images. Which I surmise is from the attempted fix to decrease the startup time by delaying the image load routine into external threads.

So, I guess, for anyone else looking, checkout trunk revision 4632 and you should be good from there.
-Jamz
____________________
Custom MapTool 1.4.x.x Fork: maptool.nerps.net
Custom TokenTool 2.0 Fork: tokentool.nerps.net
More information here: MapTool Nerps! Fork


Post Reply

Return to “TokenTool”