Search found 19 matches

by Calypso
Mon Aug 19, 2019 4:23 pm
Forum: MapTool
Topic: MapTool 1.5.3 hangs whenever I try to mouse highlight text in a form box
Replies: 1
Views: 383

Re: MapTool 1.5.3 hangs whenever I try to mouse highlight text in a form box

It turns out it was a problem with a BetterTouchTool shortcut I had created. Sorry!
by Calypso
Mon Aug 19, 2019 3:37 pm
Forum: MapTool
Topic: MapTool 1.5.3 hangs whenever I try to mouse highlight text in a form box
Replies: 1
Views: 383

MapTool 1.5.3 hangs whenever I try to mouse highlight text in a form box

Steps to reproduce:
1. Start MapTool
2. Drag a token onto the map
3. Double-click to open the editor
4. Click and drag to highlight the name of the token

MapTool then hangs indefinitely. I have to quit and restart. Has anyone else seen this? I'm on MacOS 10.14.6, using the pre-built 1.5.3 .dmg.
by Calypso
Wed Dec 26, 2018 9:43 am
Forum: MapTool
Topic: getName(), token name or id unknown
Replies: 18
Views: 865

Re: getName(), token name or id unknown

Without having looked at the code, prepending a T at the beginning does seem like it would be the simplest solution. It doesn't really "solve" the problem, but it does get around it.
by Calypso
Sun Dec 23, 2018 12:42 am
Forum: MapTool
Topic: Macro: Get selected tokens from Draw Explorer?
Replies: 7
Views: 376

Re: Macro: Get selected tokens from Draw Explorer?

To be honest, I was surprised to learn that selecting tokens in the Map Explorer doesn't *actually* select the tokens. That seems counterintuitive.
by Calypso
Fri Dec 21, 2018 11:42 pm
Forum: MapTool
Topic: getName(), token name or id unknown
Replies: 18
Views: 865

Re: getName(), token name or id unknown

Improved: [h: status = input("targetName||Name|TEXT")] [h, if(status == 0): abort()] [h: deselectTokens()] [h: ids = getTokens()] [h, foreach(id, ids), code: { [h, if(matches(id, "\\d+")): name = getName(strformat("%032d", id)); name = getName(id)] [h: pattern = concat(".*", targetName, ".*")] [h, i...
by Calypso
Fri Dec 21, 2018 11:30 pm
Forum: MapTool
Topic: getName(), token name or id unknown
Replies: 18
Views: 865

Re: getName(), token name or id unknown

KHAAAAAAAN! Okay, I finally got it working. Here is my code: [h: status = input("targetName||Name|TEXT")] [h, if(status == 0): abort()] [h: deselectTokens()] [h: ids = getTokens()] [h, foreach(id, ids), code: { [h, if(matches(id, "\\d+")): name = getName(strformat("%032d", id)); name = getName(id)] ...
by Calypso
Fri Dec 21, 2018 10:48 pm
Forum: MapTool
Topic: getName(), token name or id unknown
Replies: 18
Views: 865

Re: getName(), token name or id unknown

And for whatever reason, this is returning true from isNumber(): "00000000E56136966485000000000000".

Code: Select all

[h: ids = getTokens()]

[foreach(id, ids), code: {
   [r, if(isNumber(id)): id; ""]
}]
by Calypso
Fri Dec 21, 2018 10:44 pm
Forum: MapTool
Topic: getName(), token name or id unknown
Replies: 18
Views: 865

Re: getName(), token name or id unknown

Sadly, not working. For a token like "201522969352000000000000", isNumber() is returning true, but it's still a BigDecimal, which strformat() seems to be choking on. I'll have to think about it more, thanks for the pointer on the underlying problem I'm facing!
by Calypso
Fri Dec 21, 2018 9:04 pm
Forum: MapTool
Topic: getName(), token name or id unknown
Replies: 18
Views: 865

getName(), token name or id unknown

[h: status = input("targetName||Name|TEXT")] [h, if(status == 0): abort()] [h: deselectTokens()] [h: ids = getTokens()] [foreach(id, ids), code: { [h: name = getName(id)] [h, if(matches(name, targetName) == 1): selectTokens(id, 1)] }] When I run that, I get an error that says "Error executing "getN...
by Calypso
Fri Dec 21, 2018 6:55 pm
Forum: MapTool
Topic: Macro: Get selected tokens from Draw Explorer?
Replies: 7
Views: 376

Re: Macro: Get selected tokens from Draw Explorer?

Bummer. Thanks.
by Calypso
Fri Dec 21, 2018 5:07 pm
Forum: MapTool
Topic: Macro: Get selected tokens from Draw Explorer?
Replies: 7
Views: 376

Re: Macro: Get selected tokens from Draw Explorer?

Sorry, yes, I meant Map Explorer. And by "select" I mean have the tokens highlighted and returned by the "getSelected()" method.
by Calypso
Fri Dec 21, 2018 1:44 pm
Forum: MapTool
Topic: Macro: Get selected tokens from Draw Explorer?
Replies: 7
Views: 376

Macro: Get selected tokens from Draw Explorer?

Is there any way to get the list of tokens selected in the Draw Explorer?
by Calypso
Sat Dec 15, 2018 1:49 pm
Forum: Feature Requests
Topic: [1.4.1.8] Pre-Built Token Library
Replies: 7
Views: 794

Re: [1.4.1.8] Pre-Built Token Library

So I guess this begs the question, has anyone created prebuilt .rptok files for all of the D&D 5E monster manual?
by Calypso
Fri Dec 14, 2018 3:21 pm
Forum: Feature Requests
Topic: [1.4.1.8] Pre-Built Token Library
Replies: 7
Views: 794

Re: [1.4.1.8] Pre-Built Token Library

:shock:

You, sir or madame, are a genius!
by Calypso
Fri Dec 14, 2018 1:59 pm
Forum: Feature Requests
Topic: [1.4.1.8] Pre-Built Token Library
Replies: 7
Views: 794

[1.4.1.8] Pre-Built Token Library

It would be extremely handy to be able to pre-build tokens (set properties, sizes, notes, handouts, etc), and then add them to a library that is available on all maps for a campaign (or even between campaigns). Instead, I have to have a "token" map, where I go and grab the things I need and copy the...

Go to advanced search