Raoden's Quick'n'Dirty Token Manager

These are tools and utilities that make it easier to run games. This includes Lib: macro tokens dropped into MapTool to manage the game, a conversion file for CharacterTool to allow use in MapTool, or just about anything else you can think of -- except graphics with macros and anything specific to a particular campaign framework. Those are already covered by the Tilesets subforum and the Links and External Resources forum.

Moderators: dorpond, trevor, Azhrei, giliath, Gamerdude, jay, Mr.Ice

User avatar
aliasmask
RPTools Team
Posts: 9024
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: Raoden's Quick'n'Dirty Token Manager

Post by aliasmask »

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.

User avatar
Full Bleed
Demigod
Posts: 4736
Joined: Sun Feb 25, 2007 11:53 am
Location: FL

Re: Raoden's Quick'n'Dirty Token Manager

Post by Full Bleed »

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:

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)
You'll have to use Java 7 with MT 1.3b91 or earlier or MT 1.4+ with Java 8.
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."

User avatar
Full Bleed
Demigod
Posts: 4736
Joined: Sun Feb 25, 2007 11:53 am
Location: FL

Re: Raoden's Quick'n'Dirty Token Manager

Post by Full Bleed »

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:

Code: Select all

json.toVars
json.reverse
And the two lines of code to remove from the onCampaignLoad macro are:

Code: Select all

[h: defineFunction( "json.reverse", "json.reverse@this" )]
[h: defineFunction( "json.toVars", "json.toVars@this", 1, 0 )]
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! ;)
Maptool is the Millennium Falcon of VTT's -- "She may not look like much, but she's got it where it counts."

User avatar
aliasmask
RPTools Team
Posts: 9024
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: Raoden's Quick'n'Dirty Token Manager

Post by aliasmask »

Finally got around to this via the BoT integration.
Attachments
Lib_TokenManager_v2.1a.rptok
(88.36 KiB) Downloaded 71 times


Post Reply

Return to “Drop-In Macro Resources”