Page 1 of 1

Auto reveal fog of war without snap to grip

Posted: Fri Mar 10, 2017 9:03 am
by Marno
Hello, I have a question. I use maptool for a map guide for my player for physical role-playing. In the campaign I am doing my players explore a dungeon so the fog of war and the vbl is very important for me.

What I would like to do is the fog of war auto reveal when the token of my player move. I know it's possible when we active snap to grid but my maps are not compatible with the different grid, my players often find themselves in the walls.

I see in the forum the existence of a tool name onTokenMove. I make search on this and I try it but its not work, I have an error message say me I have not the permission to modify fog of war.

How can I reveal the fog of war automatically without snap to grip, it is possible ?

ps : I use 1.4.0.5 version.
pps : if you don't understant tell me, I'm not good in english so there may be language mistakes.

Re: Auto reveal fog of war without snap to grip

Posted: Fri Mar 10, 2017 1:58 pm
by JamzTheMan
This should be possible. I'm assuming the following:

1. MapTool grid is square
2. Server started with Players can reveal FoW
3. Token has snapToGrid off

I just tested this and FoW is revealed as normal for the PC token. If this doesn't work for you, please give us the settings you are using for the Map & Server & Token.

PS When you say your maps are not compatible with the different grid, can you elaborate more? I may be able to help if you mean the maps have a grid on them and they don't align with MapTool's grid, there are several ways to fix that.

Re: Auto reveal fog of war without snap to grip

Posted: Fri Mar 10, 2017 2:59 pm
by wolph42
Of you get no permission, then in the macro editor turn off ' allow players to edit macro '

Re: Auto reveal fog of war without snap to grip

Posted: Fri Mar 10, 2017 5:11 pm
by Marno
I test this tomorrow, thanks.

The grid is not compatible because my maps have many diagonal so it's not easy to fix a grid.

Re: Auto reveal fog of war without snap to grip

Posted: Tue Mar 14, 2017 2:32 pm
by Marno
It's not work. What option do you want to know ? I launch the server with "player can reveal fow" and "auto reveal fow".

Re: Auto reveal fog of war without snap to grip

Posted: Tue Mar 14, 2017 5:18 pm
by jfrazierjr
have you considered just fixing the maps? Are these premade maps from some company? If so, just redraw them a bit enough so that it works with grids. OR, just draw your VBL a bit wider than the walls so they see some of the walls and thus it almost always bysects the "majority" of a grid square which will allow normal VBL to work.

The only case this won't work is when you have some rooms that are paper thin walls AND diagonal.

Re: Auto reveal fog of war without snap to grip

Posted: Tue Mar 14, 2017 5:57 pm
by Marno
It's a map from a popular licence in france. The problem would come from the fact that the tokens will go into a wall or into a secret room rather than stay in the corridor, I have already tried. That's why I ask if it's possible without snap to grid.

If it's not possible I push "ctr+I" every time I move token.

Re: Auto reveal fog of war without snap to grip

Posted: Tue Mar 14, 2017 6:48 pm
by jfrazierjr
Marno wrote:It's a map from a popular licence in france. The problem would come from the fact that the tokens will go into a wall or into a secret room rather than stay in the corridor, I have already tried. That's why I ask if it's possible without snap to grid.

If it's not possible I push "ctr+I" every time I move token.
Check posts by myself and/or talk to Wolph42. It's really sad that I wrote the java code for onTokenMove 4-5 years ago, but really don't know much about how the darned macro parts work together. Basically, I did the java code in a test build and Wolph42(and AliasMask and perhaps 1-2 others game me some feedback as I tweaked the java code and rebuilt).

In theory, it should be possible, it will reveal at (using another macro command for revealVBL.... no sure of the name of the macro!) inside the onTokenMove "event" ONLY at the end point of the movement and POSSIBLY at each waypoint created(but I am not 100% sure). I seem to think I originally said "snap to grid is required", but I might have changed that along the way during the feature development.