Raoden's Quick'n'Dirty Token Manager
Moderators: dorpond, trevor, Azhrei, giliath, Gamerdude, jay, Mr.Ice
Re: Raoden's Quick'n'Dirty Token Manager
Yep, the check for arrays and objects with json.type gets messed up if you have a regular string that starts/ends with {} or []. My previous work around was broken with at least b87.
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
- Full Bleed
- Demigod
- Posts: 4736
- Joined: Sun Feb 25, 2007 11:53 am
- Location: FL
Re: Raoden's Quick'n'Dirty Token Manager
EDIT: This isn't compatible with Java 8 and pre-MT 1.4 due to the stylesheet bug.
So if you're seeing the following error:
You'll have to use Java 7 with MT 1.3b91 or earlier or MT 1.4+ with Java 8.
So if you're seeing the following error:
Code: Select all
java.util.ConcurrentModificationException
at java.util.LinkedHashMap$LinkedHashIterator.nextNode(Unknown Source)
at java.util.LinkedHashMap$LinkedKeyIterator.next(Unknown Source)
at java.util.Collections$3.nextElement(Unknown Source)
at net.rptools.maptool.client.ui.htmlframe.HTMLPane.setText(HTMLPane.java:165)
at net.rptools.maptool.client.ui.htmlframe.HTMLPanel$2.run(HTMLPanel.java:92)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at net.rptools.maptool.client.swing.MapToolEventQueue.dispatchEvent(MapToolEventQueue.java:36)
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)
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."
- Full Bleed
- Demigod
- Posts: 4736
- Joined: Sun Feb 25, 2007 11:53 am
- Location: FL
Re: Raoden's Quick'n'Dirty Token Manager
There hasn't been much activity in this drop-in for a loooong time, but it's still in my core campaign framework and I still use it. Unfortunately, I recently ran into a problem with it and it needs a little update.
Both Token Manager 2.0 and Aliasmask's TM 2.1 update have two custom functions that conflict with newer official MTscript functions that did not exist at the time this was created.
The define function calls should be removed from Token Manager's onCampaignLoad and the offending macros should be deleted. Neither are used in Token Manager so there is no consequence for doing this.
The two macro functions to remove are:
And the two lines of code to remove from the onCampaignLoad macro are:
Please Note: If you've got code in your framework that relies on these custom functions you will need to update that code to use the proper parameters and syntax of the official versions of these functions. Upside is that you'll be more compliant with current macroscript and may even pick up some speed.
Perhaps Alias will come along with an update at some point that takes care of this... but if he doesn't, you've been warned!
Both Token Manager 2.0 and Aliasmask's TM 2.1 update have two custom functions that conflict with newer official MTscript functions that did not exist at the time this was created.
The define function calls should be removed from Token Manager's onCampaignLoad and the offending macros should be deleted. Neither are used in Token Manager so there is no consequence for doing this.
The two macro functions to remove are:
Code: Select all
json.toVars
json.reverse
Code: Select all
[h: defineFunction( "json.reverse", "json.reverse@this" )]
[h: defineFunction( "json.toVars", "json.toVars@this", 1, 0 )]
Perhaps Alias will come along with an update at some point that takes care of this... but if he doesn't, you've been warned!
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."
Re: Raoden's Quick'n'Dirty Token Manager
Finally got around to this via the BoT integration.
- Attachments
-
- Lib_TokenManager_v2.1a.rptok
- (88.36 KiB) Downloaded 73 times
Downloads:
- Notepad++ MapTool addon
- RPEdit details (v1.3)
- Coding Tips: Modularity and Design
- Videos: Macro Writing Tools
Re: Raoden's Quick'n'Dirty Token Manager
wel ive updated that lib in the bot as well
GETTING STARTED WITH MAPTOOLS - TUTORIALS, DOCS, VIDEOS, TOOLS, ETC
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS
DISCORD (the new MT forum!)
My stuff
Excel Tools: Table and Light editors
MT Tools: Bag of Tricks: Tools for Maptool, Dungeon Builder I, Dungeon Builder II,onMouseOverEvent.
Frameworks: Dark Heresy, Rogue Trader, Deathwatch, Black Crusade, Only War, SET Card Game, RoboRally
Wiki: Debugging Tutorial, Speed Up Your Macros, Working With Two CODE Levels, Shortcut Keys, Avoiding Stack Overflow, READ THIS