Page 1 of 1

When I place token on map, I get a popup asking for value.

Posted: Tue Jul 04, 2017 7:42 am
by Dracwrym
Hi,

This is only happening to one particular folder of tokens, not all of them. When I place the token, I get a popup asking for "Value For Token.Lable". Even if I enter a value, the next time I click on it, the popup appears again.

How can I fix this?

Cheers

Re: When I place token on map, I get a popup asking for valu

Posted: Tue Jul 04, 2017 12:34 pm
by paulstrait
Are you using some property that asks for that field? Have you tried setting a label for the token and then resaving it? If all else fails, you could open the .rptok file with an unzipping program and pull out the png image file, and just use that, if this isn't standard behavior that happens whenever any image is put on the map.

Re: When I place token on map, I get a popup asking for valu

Posted: Tue Jul 04, 2017 1:40 pm
by Dracwrym
paulstrait wrote:Are you using some property that asks for that field? Have you tried setting a label for the token and then resaving it? If all else fails, you could open the .rptok file with an unzipping program and pull out the png image file, and just use that, if this isn't standard behavior that happens whenever any image is put on the map.
It's straight PNG files, not rptok. Sorry, I should have mentioned that. The odd thing is that I use a lot of PNG tokens in other folders. It's only the PNGs in the Labels directory that are doing this popup message. If I place one, then click on it again to select it, I get the popup again box again. It does it each time the token is selected and no matter what layer I put it on. I have restarted MapTools as well. This happens all all PNGs in the Labels folder, not just 0.

Re: When I place token on map, I get a popup asking for valu

Posted: Tue Jul 04, 2017 2:38 pm
by paulstrait
So if the same png files are in a different folder, there isn't a problem when they are brought into maptool? Also, does it make a difference which layer it goes on?

Re: When I place token on map, I get a popup asking for valu

Posted: Tue Jul 04, 2017 4:55 pm
by aliasmask
That's an odd one. Try renaming the folder to something other than labels. Also, which version of MT are you using? Could be a reserved word problem. If renaming the folder works then this is definitely a bug that needs to be addressed. I may test as well to see if I get the same error from a label(s) folder.

Re: When I place token on map, I get a popup asking for valu

Posted: Tue Jul 04, 2017 5:01 pm
by aliasmask
I couldn't duplicate error with version 1.4.1.7.

Re: When I place token on map, I get a popup asking for valu

Posted: Tue Jul 04, 2017 5:04 pm
by Full Bleed
aliasmask wrote:I couldn't duplicate error with version 1.4.1.7.
Can't do it with 1.4.0.2 either.

Should share the campaign file.

Re: When I place token on map, I get a popup asking for valu

Posted: Tue Jul 04, 2017 6:10 pm
by aliasmask
For a test, create a new campaign with nothing in it and drop the token and see if you get the error.

Re: When I place token on map, I get a popup asking for valu

Posted: Wed Jul 05, 2017 8:35 am
by Dracwrym
After more investigating, I found that if one of the tokens is already on the map, I can add another with no issues. Neither of them will display that popup anymore.

A new campaign worked fine, but the one I was adding too had Bag of Tricks installed and this is where it wasn't working.

Also, I think the issue was that the token names began with a number. 000.png, 001.png, so on. I renamed all of them to have an N out in front and that seems to have fixed the issue.

Thanks.

Re: When I place token on map, I get a popup asking for valu

Posted: Wed Jul 12, 2017 2:31 pm
by JamzTheMan
Pretty sure that's going to be a "Campaign" issue and not "MapTool" issue. There is probably a macro firing onMove or onMouseOver or something?

Furthermore, it's probably taking the variable name, converting it to a "number" (so 001 becomes 1) and now can't find it. You've discovered the workaround/fix but just offering background info.

Re: When I place token on map, I get a popup asking for valu

Posted: Thu Jul 13, 2017 3:20 am
by wolph42
tokens with numeric names are a great bug pit for all kind of macros, especially if these numbers start with leading zero's: eg. 0001. You can indeed omit these issues by changing them into a non numeric name as you did like n0001.
Note that the BoT has a 'diagnose' macro that checks your entire campaign for this (and much more).