• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Tokenlab: Herolab -> Maptools converter

This is really slick! Worked flawlessly when I used your campaign file....

....but, I would really like this to work the the pathfinder template campaign settings that are available in maptool. I am using one of the bigger ones, but I don't recall the name of it.

What do I have to do to get the Lib:TokenLab fully imported and functional in my own campaignsettings?

I would also appreciate if I could still export a token even if it doesn't have any POG picture.

Sincerely!

/Mikael
 
Not seeing the digester you have linked, could you re-link that for me. Beginning to look into a conversion for d20.

hey Kendall - I wrote a very, very basic digester for d20, without any features implemented at all. so for it to work someone is going to have to roll up their sleeves and write some code, following examples from my pathfinder token implementation.

- here's the skeleton D20Token implementation
- here's the digester
- here's a unit test that shows how it ties together

If you are looking to do some programming, then I'm happy to help guide you through fleshing out how this would work.
 
Hi Sozin!

Thanks for a great tool!

I made a lvl 20 druid/fighter character in Herolabs and then exported it to a token using tokenlab. I then started the campaing file you have in your tokenlab folder and then imported the token. All looks good except a few things:

1.) I get macros giving me "Special Abilities - Memorized Spells" and then he gives me a button for each spell lvl as well as a red reset all button. However as soon I click on any of the buttons (let's say spell lvl 3 macro button), then I get an error message saying "Unknown JSON type "" in function "json.get"."

This means I cannot use the spells as I think you intended.

2.) I also miss a macro that shows all my inventory I have on my character and even more I would love it to be editable so you can add and remove items and maybe by using all the available herolabs equipment list? Well that's the big dream but simply having the equipment listed when clicking a macro button would be helpful indeed.

/Thrilled
 
Hi there! Can you send me the the .por file of your lvl 20 druid/fighter? sozinsky at gmail dot com

ty!
 
I noticed when I have one your tokens selected and I click on the "HP" button it says something like 7/10 hitpoints left. And looks great.

When I do the same on one of the PCs I have imported I get that message and then this long list of error or broken macro...

[h: ConBonus = json.get( Constitution, "bonus" ) [h: ConDamage = json.get( Constitution, "damage" )] [h: TempConModifier = json.get( Constitution, "tempModifier" )] [h: ConScore = ConBonus + ConDamage + TempConModifier] [h,if(CurrentHP 0 && CurrentHP > -ConScore), CODE: { [state.Bloodied = 1] [state.Disabled = 1] [state.Dying = 1] [state.Dead = 0] [CurrentStance = "None"] [text = " You are dying!"] }] [h,if(CurrentHP = -ConScore), CODE: { [state.Bloodied = 1] [state.Disabled = 1] [state.Dying = 1] [state.Dead = 1] [CurrentStance = "None"] [text = " You have died!"] }] [r:text]

Any thoughts?
 
Version 0.22 released. This is a minor release (no framework changes) where I've overhauled how hit points are handled (see above!). Notably:

1) There are now two hitpoint buttons, "+HP" (to heal) and "-HP" to harm.
2) All HP changes made to NPCs are now private to the GM. (Previously they went to everyone logged into the server, leading to some potential metagaming).
3) Fixed a bug where you die at -10 (old 3.5 rules), instead of at -Con.

You can download just the .jar file and put it in your Tokenlab/jars install folder, or you can do a fresh install by downloading the whole zip archive. New users should grab the zip archive. (Here's the install guide for new users).

Once inventory and a few other small features are released, we'll be close to a 1.0 prime release!
 
Something bad happened

I'm trying to get Tokenlab working on my Mac and I cannot seem to get it to run correctly. I can get the program to launch and I go through all the steps to configure a character, but when I try to export it I get the following:

Something bad happened:java.lang.NullPointerException

I've tried running the program in a Windows 7 VM under Parallels on my Mac as well, and I get the same thing. So no matter what OS I seem to use I cannot seem to get this program to export. Any ideas? Thanks in advance.

Mike
 
Hey Mike!

Can you email me the Herolab .por file from which you created the .xml output? sozinsky at gmail dot com ; this will help me debug the issue.

Cheers
 
Just began experimenting with this earlier this week. VERY cool. This is going to make my life a lot simpler. Nice job!

I do have a couple of questions, though.

1) My exported tokens don't have buttons for doing melee or ranged touch attacks. Is there some way to make Hero Lab include those? Caster type characters need to use those pretty often.

2) Is there someplace in the token that I can see the character's ability scores? If, for example, I need to know what the character's CON modifier is for purposes of making a stabilization check to stop bleeding out. I found the macro labeled "abil", and the source code makes it look like it ought to do this, but clicking it just makes the character portrait appear in the chat log with no text.

3) Spells are wonky. I have a witch character -- clicking a spell level on the token causes the error "Unknown JSON type "" in function "json.get"." to appear in the chat window. In a druid character, the spells open fine, but they're all set to zero uses. Wizard character, same as the druid. Spontaneous casters like sorcerers seem to work fine.

4) I'm on Maptool 1.3b87. Should I upgrade to 1.3b89?

5) Oh, and this is more of a suggestion than a question. The single most commonly used skill in the game is Perception, right? It would be nice if that one skill had a different color button than the other skills, maybe magenta background or something to make it stand out.

Again, this is an awesome thing which is going to make my life so, SO much easier. Thanks a ton!

EDIT: I wanted a proper icon for Tokenlab, so I made one. Here is the SVG version:

http://meliogeny.net/tokenlab.svg

And here is an ICO version:

http://meliogeny.net/tokenlab.ico

The ICO contains multiple resolutions. Your web browser will choose 16x16 because that's the size generally used for "favicons" in web sites. But if you download it to your desktop, Windows will choose the correct size to show you a desktop style icon.

I used some public domain stock for various elements in it:

http://openclipart.org/detail/22109/gear-by-steren -- the gear

http://openclipart.org/detail/172920/beaker-by-eternaltyro-172920 -- the beaker

The triangle is just a triangle with a gradient built in.
 
Last edited:
Hi there! Thanks for the feedback. Love the icon, I will incorporate it into the next build.

>>I'm on Maptool 1.3b87

It is fine with 1.3b87.

>>My exported tokens don't have buttons for doing melee or ranged touch attacks.
>>Is there some way to make Hero Lab include those?

Good feature! Should be easy to add.

>> Spells are wonky.

I'll look into it. In the meantime, can you send me the herolab .por file for the witch you are using so I can add it to my test suite? sozinsky at gmail dot com

I suspect one issue is my spell list is incomplete. I have a cached set of spells grabbed from pfsrd - I probably need to refresh it. The instance counts being wrong sounds like a straight up bug.

Thank you!
 
Ran my first game since adding TokenLab last night, and it was extremely helpful.

I did run into a couple of things, though:

1) The chat log behaved oddly. Specifically, sometimes the output of clicking a button would be visible only to the person who clicked the button. If I did it, I would see the result, but my player would not. If my player did it, she would see the result, but I wouldn't.

Furthermore, this wasn't consistent across tokens. On SOME tokens, either of us could click the button and both would see the output. On others, output was only visible to the person who clicked. Very odd. I may crack open the tokens later and see if I can figure it out.

2) Still wishing there were some way to see the character's basic ability scores. There were several constitution checks and a dexterity check last night -- I don't need buttons for those, but it'd be nice not to have to switch back to Hero Lab just to find out the requisite ability score.

Other than that, it helped SOOOO much. Hero Lab and MapTool are both pretty cool programs -- but adding the connection between the two makes both exponentially better.
 
I think something in XML produced by HL 5.3 makes TokenLab freak out. When I was GM'ing this weekend and needed to produce a quick token for a Giant Leech, it said the following:

attachment.php


I have attached the .por file that generated this error. It's just a stock giant leech, not customized in any way.

I got the same error when trying to export tokens for other things -- anything I created this weekend didn't work, while old XML files generated in the past work fine.

What other debug info can I supply? Let me know.
 

Attachments

Hello, my apologies for the late reply. It's probably due to the latest upgrade to Herolab. I'll have look now.

Just as a heads up, I'm (officially) putting Tokenlab into a feature freeze - I've migrated on to roll20. I will try to fix bugs though on a selective basis - macro debugging in MapTools is simply the effing worst, and I'd rather leave minor bugs in Tokenlab then spend another minute debugging the goddam things :-)
 
Back
Top