Help! Almost all my images in each of my maps have disappeared.

Thoughts, Help, Feature Requests, Bug Reports, Developing code for...

Moderators: dorpond, trevor, Azhrei

Forum rules
PLEASE don't post images of your entire desktop, attach entire campaign files when only a single file is needed, or generally act in some other anti-social behavior. :)
Post Reply
Screwed101
Kobold
Posts: 6
Joined: Sat May 26, 2018 3:39 am

Help! Almost all my images in each of my maps have disappeared.

Post by Screwed101 »

Generally a newbie, have been using maptool for a few years but mostly as an in person board to host on a second monitor, no fancy macros or anything like that. I have lots of maps, with lots of backgrounds, objects and tokens on each map.

Recently I updated to 1.13.2, and I'm not sure if it happened right away, or if it just took me a while to notice, but almost all of my maps have blank spaces where there used to be images.

In the Map Explorer, I can see little thumbnails of each of my images, but when I double click them, they move the map to where that image ought to be, but it just shows a blank space, selected in dotted lines. Please help. I'll attach my campaign file in dropbox below.

https://www.dropbox.com/scl/fi/38fq0069 ... xwoa5&dl=0

Any help would be greatly appreciated, thank you!

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

Re: Help! Almost all my images in each of my maps have disappeared.

Post by aliasmask »

That's a known bug with older campaign files. You should also delete the campaign repository since it's not valid anymore.

This code will fix your tokens.

Code: Select all

<!-- Fix Blank Token Opacity on all maps -->
[H: maps = getAllMapNames("json")]
[H, foreach(mapName,maps), code: {
   [H: allTokens = getTokens("json",json.set("{}","mapName",mapName,"layer",json.append("[]","TOKEN","HIDDEN","OBJECT","BACKGROUND")))]
   [H, foreach(tokenId,allTokens), code: {
      [H, if(isNumber(tokenId)): setTokenOpacity(1,strformat("%032d",tokenId),mapName); setTokenOpacity(1,tokenId,mapName)]
   }]
}]
All tokens on all Maps updated.

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

Re: Help! Almost all my images in each of my maps have disappeared.

Post by aliasmask »

Screwed101 wrote:
Tue Sep 05, 2023 11:01 pm
Generally a newbie, have been using maptool for a few years but mostly as an in person board to host on a second monitor, no fancy macros or anything like that. I have lots of maps, with lots of backgrounds, objects and tokens on each map.

Recently I updated to 1.13.2, and I'm not sure if it happened right away, or if it just took me a while to notice, but almost all of my maps have blank spaces where there used to be images.

In the Map Explorer, I can see little thumbnails of each of my images, but when I double click them, they move the map to where that image ought to be, but it just shows a blank space, selected in dotted lines. Please help. I'll attach my campaign file in dropbox below.

https://www.dropbox.com/scl/fi/38fq0069 ... xwoa5&dl=0

Any help would be greatly appreciated, thank you!
I do have a question. Supposedly, this was fixed in 1.13.0. Do you recall which version of MapTool was used before you upgraded to 1.13.2? For example, did you open the campaign in 1.12.1 at one point? Or was your upgrade a bigger jump in versions?

Screwed101
Kobold
Posts: 6
Joined: Sat May 26, 2018 3:39 am

Re: Help! Almost all my images in each of my maps have disappeared.

Post by Screwed101 »

I really appreciate your help, and I'm relieved that its a known bug with a fix.

I did a pretty large update, I think my previous version of maptool was 1.4.0.5?

I think I'm actually going to send you a dm with some questions, it's just becoming so clear to me how much of a newbie I am with this software, and that I'm not using it as intended. For example, I'm not even sure I understand how to implement the fix that you've provided for me.

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

Re: Help! Almost all my images in each of my maps have disappeared.

Post by aliasmask »

Screwed101 wrote:
Sat Sep 16, 2023 2:55 pm
I really appreciate your help, and I'm relieved that its a known bug with a fix.

I did a pretty large update, I think my previous version of maptool was 1.4.0.5?

I think I'm actually going to send you a dm with some questions, it's just becoming so clear to me how much of a newbie I am with this software, and that I'm not using it as intended. For example, I'm not even sure I understand how to implement the fix that you've provided for me.
You can find "quicker" help from the MapTool Discord. As for the code I wrote, just copy/paste in to the chat window and hit enter.

As for turning off and on a campfire, there's a lot of bells and whistles you can do with macros like swapping out image, but I avoid stuff like that most of the time. Turning on/off the light source connected to it is very useful. I use this macro on the token

[H: setLight("D20","Torch - 20",1 - hasLightSource())]

Where "Torch - 20" is the name of the light source and "D20" is the lighting group which can be found in Campaign Properties. running the macro on the token toggles the light.

As for doors, I recommend going to Discord for a whole lot of options, simple and complex.

Screwed101
Kobold
Posts: 6
Joined: Sat May 26, 2018 3:39 am

Re: Help! Almost all my images in each of my maps have disappeared.

Post by Screwed101 »

Thank you so much, I really appreciate the help.

I will head over to the discord for some ideas, and I was able to get all my images back, so thank you again!

Post Reply

Return to “MapTool”