Page 1 of 1

change token layout image

Posted: Thu Jun 15, 2017 8:50 am
by Holladerwaldelf
I am trying to change the layout image of a token in the editToken/config menu. It works fine with most of the pics from the default resource library. But when I try to change to a "top down" looking image I get a big red cross and cannot see the image.
There is probably a very easy solution but I cannot seem to find it at the moment...

Re: change token layout image

Posted: Thu Jun 15, 2017 6:07 pm
by aliasmask
How exactly do you add the image to the layout. Do you click the green plus, browse through your images and select one then click Okay?

Make sure the image you're selecting is not in a zip folder. It could be a corrupted cached image, so you can try clearing the cache by double clicking on the bottom right where the green bar is. The image can be too big for your memory settings. To clear a badly cached image you can go to .maptool/assetcache and remove all the images. I would do this with MT not on. If you have a ton of file in your assetcache I recommend just deleting them in smaller groups. Lastly, try to reinstall MapTool preferably to the latest version or even better the dev version under announcements.

Re: change token layout image

Posted: Fri Jun 16, 2017 1:30 am
by Full Bleed
Holladerwaldelf wrote:It works fine with most of the pics from the default resource library. But when I try to change to a "top down" looking image I get a big red cross and cannot see the image.
Can you share the image?

Re: change token layout image

Posted: Fri Jun 16, 2017 5:09 am
by Holladerwaldelf
Thanks for the help.
It took me a while to find the folder where maptool stores the default resource library :-) But then I found out that the images that caused problems were actually rptok zip files...

Now I have another question: How do I extract the image-files (I guess they should be png-files?) from the rptok files? There seem to be files that could be images in the assets subfolder but what file type are they? GIMP cannot read them.

Re: change token layout image

Posted: Fri Jun 16, 2017 7:12 am
by aliasmask
You can change the extension of the rptok to zip and drag the image asset out and rename it. It'll either be png or jpg.

Re: change token layout image

Posted: Fri Jun 16, 2017 8:16 am
by Holladerwaldelf
You can change the extension of the rptok to zip and drag the image asset out and rename it. It'll either be png or jpg.
Somehow this does not seem to work. My zip program shows two files as file type: "File". When I extract all files I have the same problem. Gimp cannot read the files.
But when I drag the rptok file into maptools I get a nice token with two images, one as "layout", one as "portrait".
Hero.rptok
(85.39 KiB) Downloaded 64 times

Re: change token layout image

Posted: Fri Jun 16, 2017 9:00 am
by aliasmask
I this was saved with an old format which is causing the problem. But if you resave the token it will allow you to extract it using the above method. The first time it didn't show the extensions but after loading the token and then saving, then it will show the extensions and have 2 extra links to the assets in the zip folder.

Re: change token layout image

Posted: Sat Jun 17, 2017 1:59 am
by Holladerwaldelf
Thanks a lot! Now it works.

Re: change token layout image

Posted: Thu Jun 04, 2020 4:14 am
by Templar
Hi,
I seem to have a similar problem.
I want to change the "Layout" image of a token but the Layout Box in the Config tab does not seem to provide that option.
The Portrait and Handout boxes both have the greed +. The Layout box does not.

If this is not doable then is there an easy way to transfer all data from one token to another?

Re: change token layout image

Posted: Thu Jun 04, 2020 12:36 pm
by aliasmask
If you want to change the layout/token image, there is a green plus on image at top. Clicking that will allow you to change image.

Re: change token layout image

Posted: Fri Jun 05, 2020 1:33 am
by Templar
Ha,
Now I see. I was looking at the wrong boxes.
Thanks for that.